|
1 | 1 | const $ = new Env('BoxJs') |
2 | 2 | $.domain = '8.8.8.8' |
3 | 3 |
|
4 | | -$.version = '0.4.17' |
| 4 | +$.version = '0.4.18' |
5 | 5 | $.versionType = 'beta' |
6 | 6 | $.KEY_sessions = 'chavy_boxjs_sessions' |
7 | 7 | $.KEY_versions = 'chavy_boxjs_versions' |
@@ -73,11 +73,26 @@ function getSystemCfgs() { |
73 | 73 | icon: 'https://avatars3.githubusercontent.com/u/29748519', |
74 | 74 | repo: 'https://github.com/chavyleung/scripts' |
75 | 75 | }, |
| 76 | + senku: { |
| 77 | + id: 'GideonSenku', |
| 78 | + icon: 'https://avatars1.githubusercontent.com/u/39037656', |
| 79 | + repo: 'https://github.com/GideonSenku' |
| 80 | + }, |
76 | 81 | orz3: { |
77 | 82 | id: 'Orz-3', |
78 | 83 | icon: 'https://raw.githubusercontent.com/Orz-3/task/master/Orz-3.png', |
79 | 84 | repo: 'https://github.com/Orz-3/' |
80 | 85 | }, |
| 86 | + contributors: [ |
| 87 | + { id: 'danchaw', icon: 'https://avatars1.githubusercontent.com/u/33873206?s=60&v=4', repo: 'https://github.com/danchaw' }, |
| 88 | + { id: '0x959', icon: 'https://avatars3.githubusercontent.com/u/42092849?s=60&v=4', repo: 'https://github.com/0x959' }, |
| 89 | + { id: 'lcandy2', icon: 'https://avatars1.githubusercontent.com/u/45784494?s=60&v=4', repo: 'https://github.com/lcandy2' }, |
| 90 | + { id: 'lowking', icon: 'https://avatars0.githubusercontent.com/u/33308659?s=60&v=4', repo: 'https://github.com/lowking' }, |
| 91 | + { id: 'chouchoui', icon: 'https://avatars1.githubusercontent.com/u/14866249?s=60&v=4', repo: 'https://github.com/chouchoui' }, |
| 92 | + { id: 'evilbutcher', icon: 'https://avatars1.githubusercontent.com/u/62224738?s=60&v=4', repo: 'https://github.com/evilbutcher' }, |
| 93 | + { id: 'eegod', icon: 'https://avatars0.githubusercontent.com/u/9635792?s=60&v=4', repo: 'https://github.com/eegod' }, |
| 94 | + { id: 'KaytZ', icon: 'https://avatars2.githubusercontent.com/u/17397324?s=60&v=4', repo: 'https://github.com/KaytZ' } |
| 95 | + ], |
81 | 96 | boxjs: { |
82 | 97 | id: 'BoxJs', |
83 | 98 | show: false, |
@@ -342,7 +357,6 @@ function wrapapps(apps) { |
342 | 357 | if (![null, undefined].includes(valdat)) { |
343 | 358 | setting.val = valdat ? valdat.split(',') : [] |
344 | 359 | } |
345 | | - console.log(setting.val) |
346 | 360 | } else { |
347 | 361 | setting.val = val || setting.val |
348 | 362 | } |
@@ -665,46 +679,37 @@ function printHtml(data, curapp = null, curview = 'app') { |
665 | 679 | [v-cloak]{ |
666 | 680 | display: none |
667 | 681 | } |
668 | | -
|
669 | 682 | .v-bottom-navigation, |
670 | 683 | .v-bottom-sheet { |
671 | | - padding-bottom: constant(safe-area-inset-bottom); |
672 | | - padding-bottom: env(safe-area-inset-bottom); |
| 684 | + padding-bottom: constant(safe-area-inset-bottom); |
| 685 | + padding-bottom: env(safe-area-inset-bottom); |
673 | 686 | } |
674 | | -
|
675 | 687 | .v-bottom-navigation{ |
676 | | - box-sizing: content-box; |
| 688 | + box-sizing: content-box; |
677 | 689 | } |
678 | | -
|
679 | 690 | .v-bottom-navigation button { |
680 | | - box-sizing: border-box; |
| 691 | + box-sizing: border-box; |
681 | 692 | } |
682 | | -
|
683 | 693 | .v-main.safe { |
684 | | - margin-bottom: 56px; |
685 | | - margin-bottom: calc(56px + constant(safe-area-inset-bottom)); |
686 | | - margin-bottom: calc(56px + env(safe-area-inset-bottom)); |
687 | | - |
| 694 | + margin-bottom: 56px; |
| 695 | + margin-bottom: calc(56px + constant(safe-area-inset-bottom)); |
| 696 | + margin-bottom: calc(56px + env(safe-area-inset-bottom)); |
688 | 697 | } |
689 | | -
|
690 | 698 | .v-main .v-main__wrap { |
691 | | - padding-bottom: 68px; |
692 | | - padding-bottom: calc(68px + constant(safe-area-inset-bottom)); |
693 | | - padding-bottom: calc(68px + env(safe-area-inset-bottom)); |
| 699 | + padding-bottom: 68px; |
| 700 | + padding-bottom: calc(68px + constant(safe-area-inset-bottom)); |
| 701 | + padding-bottom: calc(68px + env(safe-area-inset-bottom)); |
694 | 702 | } |
695 | | -
|
696 | 703 | .v-main.safe .v-main__wrap { |
697 | | - padding-bottom: 68px; |
| 704 | + padding-bottom: 68px; |
698 | 705 | } |
699 | | -
|
700 | 706 | .v-speed-dial { |
701 | | - bottom: calc(12px + constant(safe-area-inset-bottom)); |
702 | | - bottom: calc(12px + env(safe-area-inset-bottom)); |
| 707 | + bottom: calc(12px + constant(safe-area-inset-bottom)); |
| 708 | + bottom: calc(12px + env(safe-area-inset-bottom)); |
703 | 709 | } |
704 | | -
|
705 | 710 | .v-speed-dial.has-nav { |
706 | | - bottom: calc(68px + constant(safe-area-inset-bottom)); |
707 | | - bottom: calc(68px + env(safe-area-inset-bottom)); |
| 711 | + bottom: calc(68px + constant(safe-area-inset-bottom)); |
| 712 | + bottom: calc(68px + env(safe-area-inset-bottom)); |
708 | 713 | } |
709 | 714 | </style> |
710 | 715 | </head> |
@@ -785,14 +790,29 @@ function printHtml(data, curapp = null, curview = 'app') { |
785 | 790 | <v-navigation-drawer v-model="ui.drawer.show" app temporary right> |
786 | 791 | <v-list dense nav> |
787 | 792 | <v-list-item two-line dense @click="onLink(box.syscfgs.chavy.repo)"> |
788 | | - <v-list-item-avatar> |
789 | | - <img src="https://avatars3.githubusercontent.com/u/29748519?s=460&u=392a19e85465abbcb1791c9b8b32184a16e6795e&v=4" /> |
790 | | - </v-list-item-avatar> |
| 793 | + <v-list-item-avatar><img :src="box.syscfgs.chavy.icon" /></v-list-item-avatar> |
791 | 794 | <v-list-item-content> |
792 | 795 | <v-list-item-title>{{ box.syscfgs.chavy.id }}</v-list-item-title> |
793 | 796 | <v-list-item-subtitle>{{ box.syscfgs.chavy.repo }}</v-list-item-subtitle> |
794 | 797 | </v-list-item-content> |
795 | 798 | </v-list-item> |
| 799 | + <v-list-item two-line dense @click="onLink(box.syscfgs.senku.repo)"> |
| 800 | + <v-list-item-avatar><img :src="box.syscfgs.senku.icon" /></v-list-item-avatar> |
| 801 | + <v-list-item-content> |
| 802 | + <v-list-item-title>{{ box.syscfgs.senku.id }}</v-list-item-title> |
| 803 | + <v-list-item-subtitle>{{ box.syscfgs.senku.repo }}</v-list-item-subtitle> |
| 804 | + </v-list-item-content> |
| 805 | + </v-list-item> |
| 806 | + <v-divider></v-divider> |
| 807 | + <v-list-item class="pt-1"> |
| 808 | + <v-row align="center" justify="start" no-gutters> |
| 809 | + <v-col v-for="(c, cIdx) in box.syscfgs.contributors" cols="2"> |
| 810 | + <v-avatar class="ma-1" size="26" @click="onGoToRepo(c.repo)"> |
| 811 | + <img :src="c.icon" /> |
| 812 | + </v-avatar> |
| 813 | + </v-col> |
| 814 | + </v-row> |
| 815 | + </v-list-item> |
796 | 816 | <v-divider></v-divider> |
797 | 817 | <v-list-item v-if="false"> |
798 | 818 | <v-list-item-content> |
@@ -1115,7 +1135,7 @@ function printHtml(data, curapp = null, curview = 'app') { |
1115 | 1135 | </v-tooltip> |
1116 | 1136 | <v-btn icon @click="ui.addAppSubDialog.show = true"><v-icon color="green">mdi-plus-circle</v-icon></v-btn> |
1117 | 1137 | </v-subheader> |
1118 | | - <v-list-item two-line dense v-for="(sub, subIdx) in appsubs" :key="sub.id"> |
| 1138 | + <v-list-item two-line dense v-for="(sub, subIdx) in appsubs" :key="sub.id" @click="onGoToRepo(sub.repo)"> |
1119 | 1139 | <v-list-item-avatar v-if="sub.icon"><v-img :src="sub.icon"></v-img></v-list-item-avatar> |
1120 | 1140 | <v-list-item-avatar v-else color="grey"><v-icon dark>mdi-account</v-icon></v-list-item-avatar> |
1121 | 1141 | <v-list-item-content> |
@@ -1848,6 +1868,9 @@ function printHtml(data, curapp = null, curview = 'app') { |
1848 | 1868 | _v2 = v2.split('.'), |
1849 | 1869 | _r = _v1[0] - _v2[0] |
1850 | 1870 | return _r == 0 && v1 != v2 ? compareVersion(_v1.splice(1).join('.'), _v2.splice(1).join('.')) : _r |
| 1871 | + }, |
| 1872 | + onGoToRepo(url) { |
| 1873 | + window.open(url) |
1851 | 1874 | } |
1852 | 1875 | }, |
1853 | 1876 | mounted: function () { |
|
0 commit comments