From 536fd9d79d426b911161c1e0eb9339dddb2d973e Mon Sep 17 00:00:00 2001 From: 7Wate Date: Thu, 17 Nov 2022 16:41:56 +0800 Subject: [PATCH] Project: init --- apps.json | 28 ++++++++----------------- assets/css/styles.css | 17 ++++++++-------- assets/js/search.js | 46 ++++++++++-------------------------------- favicon.ico | Bin 0 -> 9662 bytes index.html | 13 ++++++------ providers.json | 18 +++++++---------- 6 files changed, 41 insertions(+), 81 deletions(-) create mode 100644 favicon.ico diff --git a/apps.json b/apps.json index 8958e0e..a370d2d 100644 --- a/apps.json +++ b/apps.json @@ -1,24 +1,12 @@ { "apps" : [ - {"name":"Bazarr","url":"subs.example.com","icon":"message-video", "target": "_blank"}, - {"name":"CloudCMD","url":"files.example.com","icon":"folder-multiple-outline"}, - {"name":"Cockpit","url":"cp.example.com","icon":"airplane"}, - {"name":"Feedbin","url":"rss.example.com","icon":"rss"}, - {"name":"Filestash","url":"cloud.example.com","icon":"package"}, - {"name":"Jackett","url":"jackett.example.com","icon":"tshirt-crew-outline"}, - {"name":"Lidarr","url":"music.example.com","icon":"music"}, - {"name":"Minio","url":"minio.example.com","icon":"server"}, - {"name":"Mylar","url":"comics.example.com","icon":"book-open-variant"}, - {"name":"Nextcloud","url":"cloud.example.com","icon":"weather-cloudy"}, - {"name":"Ombi","url":"request.example.com","icon":"file-find-outline"}, - {"name":"Pi-hole","url":"pihole.example.com","icon":"do-not-disturb"}, - {"name":"Plex","url":"play.example.com","icon":"plex"}, - {"name":"Portainer","url":"port1.example.com","icon":"docker"}, - {"name":"Radarr","url":"movies.example.com","icon":"filmstrip"}, - {"name":"Sonarr","url":"tv.example.com","icon":"television-box"}, - {"name":"Stackedit","url":"md.example.com","icon":"markdown"}, - {"name":"Transmission","url":"dl.example.com","icon":"progress-download"}, - {"name":"Ubooquity","url":"opds.example.com","icon":"library-shelves"}, - {"name":"Youtube-DL","url":"yt.example.com","icon":"youtube"} + {"name":"博客","url":"blog.7wate.com","icon":"post"}, + {"name":"维基","url":"wiki.7wate.org","icon":"chart-line"}, + {"name":"网盘","url":"file.7wate.org","icon":"file-cabinet"}, + {"name":"Github","url":"github.1qi777.com","icon":"github"}, + {"name":"谷歌学术","url":"so.hiqq.com.cn","icon":"text-box-search-outline"}, + {"name":"维基百科","url":"zh.wikipedia.wmmirror.live/wiki/","icon":"wikipedia"}, + {"name":"在线 IDE","url":"lightly.teamcode.com/login","icon":"microsoft-visual-studio-code"}, + {"name":"开发手册","url":"devdocs.io","icon":"dev-to"} ] } \ No newline at end of file diff --git a/assets/css/styles.css b/assets/css/styles.css index 338fc5f..8c94267 100644 --- a/assets/css/styles.css +++ b/assets/css/styles.css @@ -10,14 +10,13 @@ body{ background-color: var(--color-background); color: var(--color-text-pri); font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, Roboto, sans-serif; - font-size: 14px; + font-size: 16px; font-weight: 400; height: auto; letter-spacing: -.012em; margin: 0; padding: 0; webkit-font-smoothing: antialiased; - width: 100vw; } *, @@ -76,9 +75,10 @@ a{ } a:hover{ - text-decoration: underline; + text-decoration: none; webkit-text-decoration-color: var(--color-text-acc); webkit-text-decoration-skip: true; + opacity: 0.7; } .icon{ @@ -93,8 +93,8 @@ input{ border: 0; border-bottom: thin solid var(--color-text-acc); color: var(--color-text-pri); - font-size: 0.8em; - height: 3.5em; + font-size: 1.2em; + height: 2.4em; transition: all 0.4s ease; width: 100%; } @@ -182,8 +182,8 @@ table a{ justify-items: stretch; margin-left: auto; margin-right: auto; - margin-top: 5vh; - width: 60%; + margin-top: 12vh; + width: 67.8%; } @@ -230,6 +230,7 @@ table a{ justify-content: center; flex: 1; overflow: hidden; + font-size: 1.25rem; } .apps_text a{ @@ -354,7 +355,7 @@ table a{ #modal_init a{ bottom: 1vh; color: var(--color-text-acc); - left: 1vw; + right: 1vw; position: fixed; } diff --git a/assets/js/search.js b/assets/js/search.js index bd3fc2a..aa9d7c1 100644 --- a/assets/js/search.js +++ b/assets/js/search.js @@ -1,6 +1,6 @@ var sindex = 0; var cycle = false; -var sengine = "https://www.google.com/?q="; // Default search engine +var sengine = "https://www.google.com/search?q="; // Default search engine function start() { var query = getParameterByName('q'); @@ -57,38 +57,14 @@ function search(text) { if (text[0] === '/') { if (text.indexOf(' ') > -1) { switch (option) { - case "am": - window.location = "https://www.allmusic.com/search/all/" + subtext; - break; case "d": window.location = "https://duckduckgo.com/?q=" + subtext; break; - case "di": - window.location = "https://www.discogs.com/search/?q=" + subtext; + case "b": + window.location = "https://www.baidu.com/s?wd=" + subtext; break; - case "i": - window.location = "https://www.imdb.com/find?q=" + subtext; - break; - case "m": - window.location = "https://www.themoviedb.org/search?query=" + subtext; - break; - case "r": - window.location = "https://www.reddit.com/search?q=" + subtext; - break; - case "q": - window.location = "https://www.qwant.com/?q=" + subtext; - break; - case "so": - window.location = "https://soundcloud.com/search?q=" + subtext; - break; - case "s": - window.location = "https://open.spotify.com/search/results/" + subtext; - break; - case "t": - window.location = "https://trakt.tv/search?query=" + subtext; - break; - case "tv": - window.location = "https://www.thetvdb.com/search?query=" + subtext; + case "bk": + window.location = "https://kaifa.baidu.com/searchPage?wd=" + subtext; break; case "y": window.location = "https://www.youtube.com/results?search_query=" + subtext; @@ -96,6 +72,12 @@ function search(text) { case "g": window.location = "https://www.google.com/?q=" + subtext; break; + case "gh": + window.location = "https://github.com/search?q=" + subtext; + break; + case "s": + window.location = "https://stackoverflow.com/search?q=" + subtext; + break; } } else { var option = text.substr(1); @@ -106,12 +88,6 @@ function search(text) { case "y": window.location = "https://www.youtube.com"; break; - case "r": - window.location = "https://reddit.com"; - break; - case "s": - window.location = "https://open.spotify.com"; - break; } } } else if (validURL(text)) { diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..3d2d6fef868e2ce5ffd07b21bad2ba91c5a9636c GIT binary patch literal 9662 zcmeI2eQ1?c9LLX^I#cI%@7%;N)JW~kTK0k%rT&q!W z?xj%}Wm$;*kx>vhsZb(HCEa#kwoB?XwY1VQGjE^od7g9k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)*45vRyuZt& z_o;NrgIk~p_JOlOQnAqaV%hO9nAYlZw}*RUo7PkZ-`z4|nqvBmPy@RmXou3;3k$%s z@{KziuC|7JldLaE`(NqizXO$$ehm_!ahLyn7Ycx926y~3$4=il0`FsXeKR-mm($@v zxEG3C%+EIcojqDl$*OL9Jm|MbbIv%A{?qBzSD7mJ{syA=ppHiTjXk4k&u7QF@2fpS z&kv2j&JDKC>J$X`XLZ&=sOc~`A zTbbm4Da|3@?8|bKg965sn_MTG3v9l?mu1O3o1f&%yu-O(eJc+e^NjK*j2W4O @@ -97,7 +96,7 @@ diff --git a/providers.json b/providers.json index a7cdc68..32c3c7b 100644 --- a/providers.json +++ b/providers.json @@ -1,15 +1,11 @@ { "providers" : [ - {"name":"Allmusic","url":"https://www.allmusic.com/search/all/","prefix":"/a"}, - {"name":"Discogs","url":"https://www.discogs.com/search/?q=","prefix":"/di"}, - {"name":"Duck Duck Go","url":"https://duckduckgo.com/?q=","prefix":"/d"}, - {"name":"iMDB","url":"https://www.imdb.com/find?q=","prefix":"/i"}, - {"name":"TheMovieDB","url":"https://www.themoviedb.org/search?query=","prefix":"/m"}, - {"name":"Reddit","url":"https://www.reddit.com/search?q=","prefix":"/r"}, - {"name":"Qwant","url":"https://www.qwant.com/?q=","prefix":"/q"}, - {"name":"Soundcloud","url":"https://soundcloud.com/search?q=","prefix":"/so"}, - {"name":"Spotify","url":"https://open.spotify.com/search/results/","prefix":"/s"}, - {"name":"TheTVDB","url":"https://www.thetvdb.com/search?query=","prefix":"/tv"}, - {"name":"Trakt","url":"https://trakt.tv/search?query=","prefix":"/t"} + {"name":"Duck Duck Go","url":"https://duckduckgo.com/","prefix":"/d"}, + {"name":"Baidu","url":"https://www.baidu.com/","prefix":"/b"}, + {"name":"Baidu 开发者","url":"https://kaifa.baidu.com/","prefix":"/bk"}, + {"name":"Youtube","url":"https://www.youtube.com/","prefix":"/y"}, + {"name":"Google","url":"https://www.google.com/","prefix":"/g"}, + {"name":"Github","url":"https://github.com/","prefix":"/gh"}, + {"name":"StackOverflow","url":"https://stackoverflow.com/","prefix":"/s"} ] }