Skip to content

Commit 1577882

Browse files
committed
textfsm_online: 添加备案信息
1 parent e5801f6 commit 1577882

3 files changed

Lines changed: 51 additions & 8 deletions

File tree

demo/netmiko_opendevice/config.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
enable_mode_check = ""
2+
enable_mode_cmd = ""
3+
enable_mode_pattern = ""
4+
enable_mode_exit = ""
5+
6+
7+
config_mode_check = "#"
8+
config_mode_cmd = ""
9+
config_mode_pattern = ""
10+
config_mode_exit = ""
11+
config_mode_exit_pattern = "" or config_mode_pattern
12+
13+
14+
commit_cmd = ""
15+
16+
17+
save_cmd = ""
18+
19+
20+
find_prompt = False
21+
base_prompt_pri = ""
22+
base_prompt_alt = ""
23+
24+
25+
disable_paging = "terminal length 0"
26+
27+
28+
special_login_handler = ""
29+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from netmiko.cisco_base_connection import CiscoSSHConnection
2+
from config import *
3+
4+
class OpenDevice(CiscoSSHConnection):
5+
6+
pass

demo/vue_demo/textfsm_online/src/views/HomeView.vue

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,15 @@
2929
</el-col>
3030
</el-main>
3131
<el-footer>
32-
<a href="https://github.com/xdai555" target="_blank" rel="noopener noreferrer">
33-
<svg width="24" height="24" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" fill="white" fill-opacity="0.01"/><path d="M29.3444 30.4767C31.7481 29.9771 33.9292 29.1109 35.6247 27.8393C38.5202 25.6677 40 22.3137 40 19C40 16.6754 39.1187 14.5051 37.5929 12.6669C36.7427 11.6426 39.2295 4.00001 37.02 5.02931C34.8105 6.05861 31.5708 8.33691 29.8726 7.8341C28.0545 7.29577 26.0733 7.00001 24 7.00001C22.1992 7.00001 20.4679 7.22313 18.8526 7.63452C16.5046 8.23249 14.2591 6.00001 12 5.02931C9.74086 4.05861 10.9736 11.9633 10.3026 12.7946C8.84119 14.6052 8 16.7289 8 19C8 22.3137 9.79086 25.6677 12.6863 27.8393C14.6151 29.2858 17.034 30.2077 19.7401 30.6621" stroke="#333" stroke-width="4" stroke-linecap="round"/><path d="M19.7402 30.662C18.5817 31.9372 18.0024 33.148 18.0024 34.2946C18.0024 35.4411 18.0024 38.3465 18.0024 43.0108" stroke="#333" stroke-width="4" stroke-linecap="round"/><path d="M29.3443 30.4767C30.4421 31.9175 30.991 33.2112 30.991 34.3577C30.991 35.5043 30.991 38.3886 30.991 43.0108" stroke="#333" stroke-width="4" stroke-linecap="round"/><path d="M6 31.2156C6.89887 31.3255 7.56554 31.7388 8 32.4555C8.65169 33.5304 11.0742 37.5181 13.8251 37.5181C15.6591 37.5181 17.0515 37.5181 18.0024 37.5181" stroke="#333" stroke-width="4" stroke-linecap="round"/></svg>
34-
</a>
35-
<el-switch style="padding:0 10px 0 10px; margin-bottom: 15px"
36-
active-color="#6b6c6c"
32+
<el-switch style="padding:0 10px 0 10px;"
33+
active-color="#999"
3734
inactive-color="#1e1e1e"
3835
v-model="isDark"
3936
@change="changeTheme"
4037
>
4138
</el-switch>
39+
<a href="https://beian.miit.gov.cn/" target="_blank">京ICP备2022010024号</a>
40+
<a href="https://github.com/xdai555/" target="_blank">@xdai555</a>
4241
</el-footer>
4342
</el-container>
4443
</template>
@@ -98,7 +97,14 @@ export default {
9897
background: #1e1e1e;
9998
}
10099
.darkMode svg path {
101-
stroke: #fff;
100+
stroke: #999;
101+
}
102+
.darkMode a {
103+
color: #999;
104+
}
105+
a {
106+
color: #1e1e1e;
107+
margin-right: 5px
102108
}
103109
svg path {
104110
stroke: #333;
@@ -107,8 +113,10 @@ export default {
107113
height: 100%;
108114
}
109115
.el-footer {
110-
height: 30px !important;
116+
height: 23px !important;
111117
text-align: center;
118+
font-size: 90%;
119+
margin-bottom: 5px
112120
}
113121
.el-col {
114122
border-radius: 4px;
@@ -123,7 +131,7 @@ export default {
123131
border: 1px solid;
124132
border-radius: 10px;
125133
padding: 5px;
126-
height: calc(100vh - 70px); /* viewport height */
134+
height: 100%; /* viewport height */
127135
font-size: 14px;
128136
}
129137
.vue-codemirror {

0 commit comments

Comments
 (0)