Remove spreadsheet because no longer needed 🎉 (#621)

Also included some lint 🧹
This commit is contained in:
Andreas 2021-05-02 22:06:51 +02:00 committed by GitHub
parent 8a5d47719e
commit f80c6d0bfd
6 changed files with 8 additions and 327 deletions

123
package-lock.json generated
View File

@ -5,6 +5,7 @@
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "tachiyomi-website",
"version": "1.0.0", "version": "1.0.0",
"license": "MPL-2.0", "license": "MPL-2.0",
"dependencies": { "dependencies": {
@ -19,8 +20,6 @@
"material-design-icons-iconfont": "^6.1.0", "material-design-icons-iconfont": "^6.1.0",
"vue": "^2.6.12", "vue": "^2.6.12",
"vue-agile": "^1.1.3", "vue-agile": "^1.1.3",
"vue-good-table": "^2.21.10",
"vue-gsheets": "^4.0.3",
"vue-material-design-icons": "^4.11.0", "vue-material-design-icons": "^4.11.0",
"vue-moment": "^4.1.0", "vue-moment": "^4.1.0",
"vue-sweetalert2": "^4.3.1", "vue-sweetalert2": "^4.3.1",
@ -6315,14 +6314,6 @@
"node": ">=0.10" "node": ">=0.10"
} }
}, },
"node_modules/date-fns": {
"version": "2.19.0",
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.19.0.tgz",
"integrity": "sha512-X3bf2iTPgCAQp9wvjOQytnf5vO5rESYRXlPIVcgSbtT5OTScPcsf9eZU+B/YIkKAtYr5WeCii58BgATrNitlWg==",
"engines": {
"node": ">=0.11"
}
},
"node_modules/de-indent": { "node_modules/de-indent": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
@ -10328,11 +10319,6 @@
"resolved": "https://registry.npmjs.org/lodash.groupby/-/lodash.groupby-4.6.0.tgz", "resolved": "https://registry.npmjs.org/lodash.groupby/-/lodash.groupby-4.6.0.tgz",
"integrity": "sha1-Cwih3PaDl8OXhVwyOXg4Mt90A9E=" "integrity": "sha1-Cwih3PaDl8OXhVwyOXg4Mt90A9E="
}, },
"node_modules/lodash.isequal": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",
"integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA="
},
"node_modules/lodash.kebabcase": { "node_modules/lodash.kebabcase": {
"version": "4.1.1", "version": "4.1.1",
"resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz",
@ -15869,55 +15855,6 @@
"node": ">=6.0.0" "node": ">=6.0.0"
} }
}, },
"node_modules/vue-good-table": {
"version": "2.21.10",
"resolved": "https://registry.npmjs.org/vue-good-table/-/vue-good-table-2.21.10.tgz",
"integrity": "sha512-K7yD8LwW5ouJmMTjNyjnXK1qwm6/FPt4jt+xk+dYAlVPTikW5QWnY8WZHgsiAWWWq58l5oOzRw9wS1tAAWaj6g==",
"dependencies": {
"date-fns": "^2.17.0",
"lodash.isequal": "^4.5.0"
}
},
"node_modules/vue-gsheets": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/vue-gsheets/-/vue-gsheets-4.0.3.tgz",
"integrity": "sha512-6sms/EYF50oKIcJ8lg7LsVnZ1nx2fN7lpDku3j7e0aNt02BYl+TV+E5BHgouo6aCjwV+RgICgN2oceAojeDoIA==",
"dependencies": {
"axios": "^0.19.2"
}
},
"node_modules/vue-gsheets/node_modules/axios": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz",
"integrity": "sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==",
"dependencies": {
"follow-redirects": "1.5.10"
}
},
"node_modules/vue-gsheets/node_modules/debug": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
"integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"dependencies": {
"ms": "2.0.0"
}
},
"node_modules/vue-gsheets/node_modules/follow-redirects": {
"version": "1.5.10",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz",
"integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==",
"dependencies": {
"debug": "=3.1.0"
},
"engines": {
"node": ">=4.0"
}
},
"node_modules/vue-gsheets/node_modules/ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
},
"node_modules/vue-hot-reload-api": { "node_modules/vue-hot-reload-api": {
"version": "2.3.4", "version": "2.3.4",
"resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz", "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",
@ -22771,11 +22708,6 @@
"assert-plus": "^1.0.0" "assert-plus": "^1.0.0"
} }
}, },
"date-fns": {
"version": "2.19.0",
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.19.0.tgz",
"integrity": "sha512-X3bf2iTPgCAQp9wvjOQytnf5vO5rESYRXlPIVcgSbtT5OTScPcsf9eZU+B/YIkKAtYr5WeCii58BgATrNitlWg=="
},
"de-indent": { "de-indent": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz", "resolved": "https://registry.npmjs.org/de-indent/-/de-indent-1.0.2.tgz",
@ -25998,11 +25930,6 @@
"resolved": "https://registry.npmjs.org/lodash.groupby/-/lodash.groupby-4.6.0.tgz", "resolved": "https://registry.npmjs.org/lodash.groupby/-/lodash.groupby-4.6.0.tgz",
"integrity": "sha1-Cwih3PaDl8OXhVwyOXg4Mt90A9E=" "integrity": "sha1-Cwih3PaDl8OXhVwyOXg4Mt90A9E="
}, },
"lodash.isequal": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/lodash.isequal/-/lodash.isequal-4.5.0.tgz",
"integrity": "sha1-QVxEePK8wwEgwizhDtMib30+GOA="
},
"lodash.kebabcase": { "lodash.kebabcase": {
"version": "4.1.1", "version": "4.1.1",
"resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz", "resolved": "https://registry.npmjs.org/lodash.kebabcase/-/lodash.kebabcase-4.1.1.tgz",
@ -30605,54 +30532,6 @@
} }
} }
}, },
"vue-good-table": {
"version": "2.21.10",
"resolved": "https://registry.npmjs.org/vue-good-table/-/vue-good-table-2.21.10.tgz",
"integrity": "sha512-K7yD8LwW5ouJmMTjNyjnXK1qwm6/FPt4jt+xk+dYAlVPTikW5QWnY8WZHgsiAWWWq58l5oOzRw9wS1tAAWaj6g==",
"requires": {
"date-fns": "^2.17.0",
"lodash.isequal": "^4.5.0"
}
},
"vue-gsheets": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/vue-gsheets/-/vue-gsheets-4.0.3.tgz",
"integrity": "sha512-6sms/EYF50oKIcJ8lg7LsVnZ1nx2fN7lpDku3j7e0aNt02BYl+TV+E5BHgouo6aCjwV+RgICgN2oceAojeDoIA==",
"requires": {
"axios": "^0.19.2"
},
"dependencies": {
"axios": {
"version": "0.19.2",
"resolved": "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz",
"integrity": "sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==",
"requires": {
"follow-redirects": "1.5.10"
}
},
"debug": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
"integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"requires": {
"ms": "2.0.0"
}
},
"follow-redirects": {
"version": "1.5.10",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz",
"integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==",
"requires": {
"debug": "=3.1.0"
}
},
"ms": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",
"integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g="
}
}
},
"vue-hot-reload-api": { "vue-hot-reload-api": {
"version": "2.3.4", "version": "2.3.4",
"resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz", "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz",

View File

@ -52,8 +52,6 @@
"material-design-icons-iconfont": "^6.1.0", "material-design-icons-iconfont": "^6.1.0",
"vue": "^2.6.12", "vue": "^2.6.12",
"vue-agile": "^1.1.3", "vue-agile": "^1.1.3",
"vue-good-table": "^2.21.10",
"vue-gsheets": "^4.0.3",
"vue-material-design-icons": "^4.11.0", "vue-material-design-icons": "^4.11.0",
"vue-moment": "^4.1.0", "vue-moment": "^4.1.0",
"vue-sweetalert2": "^4.3.1", "vue-sweetalert2": "^4.3.1",

View File

@ -2,7 +2,11 @@
<div class="extension-list"> <div class="extension-list">
<div v-for="extensionGroup in extensions" :key="extensionGroup[0].lang"> <div v-for="extensionGroup in extensions" :key="extensionGroup[0].lang">
<h3> <h3>
{{ extensionGroup[0].lang === "en" ? simpleLangName(extensionGroup[0].lang) : langName(extensionGroup[0].lang) }} {{
extensionGroup[0].lang === "en"
? simpleLangName(extensionGroup[0].lang)
: langName(extensionGroup[0].lang)
}}
<span class="extensions-total"> <span class="extensions-total">
Total: Total:
<span class="extensions-total-sum"> <span class="extensions-total-sum">

View File

@ -1,186 +0,0 @@
<template>
<div id="SourceSheet">
<VueGoodTable
:columns="columns"
:rows="items"
:sort-options="{ enabled: true }"
:search-options="{
enabled: true,
skipDiacritics: true,
placeholder: 'Search for extensions or sources',
}"
>
<template #table-row="props">
<div v-if="props.column.field == 'Extension Name'" class="container">
<img :src="props.row['Extension Icon']" width="42" height="42" />
<div class="extension-text">
<div class="upper">
<span class="bold">{{ props.row["Extension Name"] }}</span>
</div>
<div class="down">
{{ props.row["Extension ID"] }}
</div>
</div>
</div>
<span v-else-if="props.column.field == 'Source Name'">
<a :href="props.row['Source Website'].replace('N/A', 'javascript:void(0);')">
{{ props.row["Source Name"] }}
</a>
</span>
<template v-else-if="props.column.field == 'Notes'">
<span v-if="props.row.Notes == 'N/A'"></span>
<strong v-else-if="props.row.Notes.startsWith('w-')" style="color: red">
{{ props.row.Notes.replace("w-", "") }}
</strong>
<span v-else>{{ props.row.Notes }}</span>
</template>
<span v-else>
{{ props.formattedRow[props.column.field] }}
</span>
</template>
</VueGoodTable>
</div>
</template>
<script>
import { vueGsheets } from "vue-gsheets";
export default {
mixins: [vueGsheets],
data: () => ({
COLUMNS: 9,
sheetPageNumber: 1,
SHEETID: "1Kh_O8VyPKTdrcIsso0zz5gD3A9aw_9v2Ygnmr13RuOU",
columns: [
{
label: "ID",
field: "ID",
type: "number",
hidden: true,
globalSearchDisabled: true,
},
{
label: "Extension ID",
field: "Extension ID",
hidden: true,
},
{
label: "Extension",
field: "Extension Name",
tdClass: "extension",
},
{
label: "Icon",
field: "Extension Icon",
sortable: false,
hidden: true,
globalSearchDisabled: true,
},
{
label: "Source",
field: "Source Name",
},
{
label: "Website",
field: "Source Website",
sortable: false,
hidden: true,
globalSearchDisabled: true,
},
{
label: "Languages",
field: "Languages",
width: "4rem",
sortable: false,
},
{
label: "Notes",
field: "Notes",
width: "6rem",
tdClass: "notes",
sortable: false,
},
],
}),
};
</script>
<style lang="stylus">
#SourceSheet
.vgt-global-search
padding-top 2rem
background transparent
border none
.magnifying-glass
border-color #adb5bf
&::before
background #adb5bf
.vgt-input
border 1px solid #cfd4db
&:focus
border-color $accentColor
&::placeholder
opacity 0.75
.vgt-table
background-color transparent
border-collapse separate
border-spacing 0px
border none
thead
tr
border none
th
background transparent !important
border none
color $textColor
&.sortable:hover
color $accentColor
tbody
tr
background-color $backgroundColorSecondary
td
border none
border-bottom 1px solid $borderColor !important
&:first-child
border-left 1px solid $borderColor !important
&:last-child
border-right 1px solid $borderColor !important
&.extension
.container
align-items center
display flex
img
margin-right 0.5em
.extension-text
flex 1
.upper
.bold
color $textColor
.down
color #6c757d
font-family monospace
font-size 0.8rem
&:target
.extension
background #f1f8ff
@media (max-width: 767px)
.extension-text .down
display none
&.notes
color $textColor
.vgt-text-disabled
color $textColor
&:first-child
td
border-top 1px solid $borderColor !important
&:first-child
border-top-left-radius 0.6rem
&:last-child
border-top-right-radius 0.6rem
&:last-child
td
&:first-child
border-bottom-left-radius 0.6rem
&:last-child
border-bottom-right-radius 0.6rem
</style>

View File

@ -1,10 +1,7 @@
import "./styles/animate.css"; import "./styles/animate.css";
import "./styles/sweetalert2.css"; import "./styles/sweetalert2.css";
import "vue-material-design-icons/styles.css"; import "vue-material-design-icons/styles.css";
import "vue-good-table/dist/vue-good-table.css";
import { VueAgile } from "vue-agile"; import { VueAgile } from "vue-agile";
import { VueGoodTable } from "vue-good-table";
import VueSweetalert2 from "vue-sweetalert2"; import VueSweetalert2 from "vue-sweetalert2";
import VueMoment from "vue-moment"; import VueMoment from "vue-moment";
import Element from "element-ui"; import Element from "element-ui";
@ -23,8 +20,8 @@ const redirectList = [
{ {
path: "/help/guides/creating-backups/", path: "/help/guides/creating-backups/",
redirect: "/help/guides/backups/", redirect: "/help/guides/backups/",
} },
] ];
export default ({ export default ({
Vue, // the version of Vue being used in the VuePress app Vue, // the version of Vue being used in the VuePress app
@ -34,8 +31,6 @@ export default ({
}) => { }) => {
// eslint-disable-next-line vue/match-component-file-name // eslint-disable-next-line vue/match-component-file-name
Vue.component("Agile", VueAgile); Vue.component("Agile", VueAgile);
// eslint-disable-next-line vue/match-component-file-name
Vue.component("VueGoodTable", VueGoodTable);
Vue.use(VueSweetalert2); Vue.use(VueSweetalert2);
Vue.use(VueMoment); Vue.use(VueMoment);
Vue.use(Element); Vue.use(Element);

View File

@ -6,14 +6,5 @@ lang: en-US
# Extensions # Extensions
:::: el-tabs
::: el-tab-pane label="Available extensions"
List of available extensions to use with Tachiyomi, you can download them from here or from the app. List of available extensions to use with Tachiyomi, you can download them from here or from the app.
<ExtensionList/> <ExtensionList/>
:::
::: el-tab-pane label="Spreadsheet"
Spreadsheet to help you find sources bundled in multi-source extensions, courtesy of [SnakeDoc83](https://github.com/snakedoc83).
Now maintained by [Riztard](https://github.com/Riztard) and other volunteers.
<SourceSheet/>
:::
::::