File tree Expand file tree Collapse file tree 4 files changed +28
-2
lines changed Expand file tree Collapse file tree 4 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 2727 "pinia-plugin-persistedstate" : " ^3.0.2" ,
2828 "reconnecting-websocket" : " ^4.4.0" ,
2929 "vite-plugin-build-id" : " ^0.2.3" ,
30- "vue" : " ^3.2.45" ,
30+ "vue" : " ^3.2.47" ,
31+ "vue-github-button" : " https://github.com/0xJacky/vue-github-button" ,
3132 "vue-router" : " 4" ,
3233 "vue3-ace-editor" : " ^2.2.2" ,
3334 "vue3-apexcharts" : " ^1.4.1" ,
Original file line number Diff line number Diff line change @@ -49,13 +49,16 @@ const advance_mode = computed({
4949 get() {
5050 return advance_mode_ref .value || parse_error_status .value
5151 },
52- set(v ) {
52+ set(v : boolean ) {
5353 advance_mode_ref .value = v
5454 }
5555})
5656const history_chatgpt_record = ref ([])
5757
5858function handle_response(r : any ) {
59+ if (r .advanced ) {
60+ advance_mode .value = true
61+ }
5962
6063 Object .keys (cert_info_map ).forEach (v => {
6164 delete cert_info_map [v ]
Original file line number Diff line number Diff line change 22import gettext from ' @/gettext'
33import logo from ' @/assets/img/logo.png'
44import version from ' @/version.json'
5+ import GithubButton from ' vue-github-button'
56
67const {$gettext} = gettext
78
@@ -16,6 +17,12 @@ const this_year = new Date().getFullYear()
1617 <h2 >Nginx UI</h2 >
1718 <p >Yet another WebUI for Nginx</p >
1819 <p >Version: {{ version.version }} ({{ version.build_id || $gettext('Development Mode') }})</p >
20+ <div class =" star-on-github" >
21+ <github-button href =" https://github.com/0xJacky/nginx-ui"
22+ data-color-scheme =" no-preference: light; light: light; dark: dark;" data-size =" large"
23+ data-show-count =" true" aria-label =" Star 0xJacky/nginx-ui on GitHub" >Star
24+ </github-button >
25+ </div >
1926 <h3 v-translate >Project Team</h3 >
2027 <p ><a href =" https://jackyu.cn/" >@0xJacky</a > <a href =" https://blog.kugeek.com/" >@Hintay</a ></p >
2128 <h3 v-translate >Build with</h3 >
@@ -44,4 +51,8 @@ const this_year = new Date().getFullYear()
4451.ant-btn {
4552 margin : 10px 10px 0 0 ;
4653}
54+
55+ .star-on-github {
56+ margin-bottom : 10px ;
57+ }
4758 </style >
Original file line number Diff line number Diff line change @@ -1983,6 +1983,11 @@ gettext-extractor@^3.5.4:
19831983 pofile "1.0.x"
19841984 typescript "2 - 4"
19851985
1986+ github-buttons@^2.22.0 :
1987+ version "2.27.0"
1988+ resolved "https://registry.yarnpkg.com/github-buttons/-/github-buttons-2.27.0.tgz#bbebea3d1c4f8c302b7d8432fd25a679242597e2"
1989+ integrity sha512-PmfRMI2Rttg/2jDfKBeSl621sEznrsKF019SuoLdoNlO7qRUZaOyEI5Li4uW+79pVqnDtKfIEVuHTIJ5lgy64w==
1990+
19861991glob-parent@^5.1.2, glob-parent@~5.1.2 :
19871992 version "5.1.2"
19881993 resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4"
@@ -3232,6 +3237,12 @@ vue-demi@*:
32323237 resolved "https://registry.yarnpkg.com/vue-demi/-/vue-demi-0.13.6.tgz#f9433cbd75e68a970dec066647f4ba6c08ced48f"
32333238 integrity sha512-02NYpxgyGE2kKGegRPYlNQSL1UWfA/+JqvzhGCOYjhfbLWXU5QQX0+9pAm/R2sCOPKr5NBxVIab7fvFU0B1RxQ==
32343239
3240+ " vue-github-button@https://github.com/0xJacky/vue-github-button " :
3241+ version "3.1.0"
3242+ resolved "https://github.com/0xJacky/vue-github-button#fc3c93355a790d3249de6610de3ebe35949ee314"
3243+ dependencies :
3244+ github-buttons "^2.22.0"
3245+
32353246vue-router@4 :
32363247 version "4.1.3"
32373248 resolved "https://registry.yarnpkg.com/vue-router/-/vue-router-4.1.3.tgz#f8dc7931a2253cc5aa9b740f8b98969d08ca283c"
You can’t perform that action at this time.
0 commit comments