feat: add playlist to global search and change endpoint namespace (#81)

This commit is contained in:
paranarimasu
2023-03-14 22:37:17 -05:00
committed by Maniload
parent 0e878fba06
commit ee46f6b16b
5 changed files with 33 additions and 29 deletions
+7 -7
View File
@@ -90,6 +90,13 @@ export default {
{ text: 'Playlist Track', link: '/list/playlist/track/' }
]
},
{
text: 'Search',
collapsed: true,
items: [
{ text: 'Search', link: '/search/' }
]
},
{
text: 'Wiki',
items: [
@@ -493,13 +500,6 @@ export default {
{ text: 'Update', link: '/wiki/audio/update/' }
]
},
{
text: 'Global Search',
collapsed: true,
items: [
{ text: 'Search', link: '/wiki/search/' }
]
},
{
text: 'Image',
collapsed: true,
@@ -4,7 +4,7 @@ title: Global Search
# Global Search Endpoint
The global search endpoint returns a listing of wiki resources that match a given search term.
The global search endpoint returns a listing of resources that match a given search term.
## URL
@@ -67,6 +67,16 @@ None
deleted_at: "deleted_at"
}
],
playlists: [
{
id: id,
name: "name",
visibility: "visibility",
created_at: "created_at",
updated_at: "updated_at",
deleted_at: "deleted_at"
}
],
series: [
{
id: id,
+1 -7
View File
@@ -104,10 +104,4 @@ A video API resource represents a WebM of an anime theme.
**[Video Script](/wiki/videoscript/)**
A video script API resource represents an encoding script used to produce a video.
### Other Endpoints
**[Global Search](/wiki/search/)**
The global search endpoint returns a listing of wiki resources that match a given search term.
A video script API resource represents an encoding script used to produce a video.
+13 -13
View File
@@ -10,7 +10,7 @@
"license": "MIT",
"dependencies": {
"dotenv": "^16.0.3",
"vitepress": "^1.0.0-alpha.49"
"vitepress": "^1.0.0-alpha.59"
}
},
"node_modules/@algolia/autocomplete-core": {
@@ -154,9 +154,9 @@
}
},
"node_modules/@babel/parser": {
"version": "7.21.2",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.2.tgz",
"integrity": "sha512-URpaIJQwEkEC2T9Kn+Ai6Xe/02iNaVCuT/PtoRz3GPVJVDpPd7mLo+VddTbhCRU9TXqW5mSrQfXZyi8kDKOVpQ==",
"version": "7.21.3",
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.21.3.tgz",
"integrity": "sha512-lobG0d7aOfQRXh8AyklEAgZGvA4FShxo6xQbUrrT/cNBPUdIDojlokwJsQyCC/eKia7ifqM0yP+2DRZ4WKw2RQ==",
"bin": {
"parser": "bin/babel-parser.js"
},
@@ -925,9 +925,9 @@
}
},
"node_modules/preact": {
"version": "10.13.0",
"resolved": "https://registry.npmjs.org/preact/-/preact-10.13.0.tgz",
"integrity": "sha512-ERdIdUpR6doqdaSIh80hvzebHB7O6JxycOhyzAeLEchqOq/4yueslQbfnPwXaNhAYacFTyCclhwkEbOumT0tHw==",
"version": "10.13.1",
"resolved": "https://registry.npmjs.org/preact/-/preact-10.13.1.tgz",
"integrity": "sha512-KyoXVDU5OqTpG9LXlB3+y639JAGzl8JSBXLn1J9HTSB3gbKcuInga7bZnXLlxmK94ntTs1EFeZp0lrja2AuBYQ==",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/preact"
@@ -950,9 +950,9 @@
}
},
"node_modules/rollup": {
"version": "3.18.0",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-3.18.0.tgz",
"integrity": "sha512-J8C6VfEBjkvYPESMQYxKHxNOh4A5a3FlP+0BETGo34HEcE4eTlgCrO2+eWzlu2a/sHs2QUkZco+wscH7jhhgWg==",
"version": "3.19.1",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-3.19.1.tgz",
"integrity": "sha512-lAbrdN7neYCg/8WaoWn/ckzCtz+jr70GFfYdlf50OF7387HTg+wiuiqJRFYawwSPpqfqDNYqK7smY/ks2iAudg==",
"bin": {
"rollup": "dist/bin/rollup"
},
@@ -1057,9 +1057,9 @@
}
},
"node_modules/vitepress": {
"version": "1.0.0-alpha.49",
"resolved": "https://registry.npmjs.org/vitepress/-/vitepress-1.0.0-alpha.49.tgz",
"integrity": "sha512-3nUZJow4qL8NHRWYatqqVj45AJDxWst/TuOj+IbQRhxesEswa+Fpwayj9/FxzRzBl665fuiG5y+QeVhOeUm0OA==",
"version": "1.0.0-alpha.59",
"resolved": "https://registry.npmjs.org/vitepress/-/vitepress-1.0.0-alpha.59.tgz",
"integrity": "sha512-kKs/srBf4n4uWalhD3jvMkyXbszq4sDW5rx2RdWwhUZJE9Fm9dmL6BRf0IfLnPpEJWIiM5loQf/8ndspm5g7tQ==",
"dependencies": {
"@docsearch/css": "^3.3.3",
"@docsearch/js": "^3.3.3",
+1 -1
View File
@@ -16,6 +16,6 @@
"license": "MIT",
"dependencies": {
"dotenv": "^16.0.3",
"vitepress": "^1.0.0-alpha.49"
"vitepress": "^1.0.0-alpha.59"
}
}