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 0000000..3d2d6fe Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html index 10760b9..b7c831f 100644 --- a/index.html +++ b/index.html @@ -78,18 +78,17 @@
@@ -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"} ] }