From ee46f6b16be56433a4f024a23d43ac13286e79c0 Mon Sep 17 00:00:00 2001 From: paranarimasu <33796518+paranarimasu@users.noreply.github.com> Date: Tue, 14 Mar 2023 22:37:17 -0500 Subject: [PATCH] feat: add playlist to global search and change endpoint namespace (#81) --- docs/.vitepress/config.js | 14 +++++++------- docs/{wiki => }/search/index.md | 12 +++++++++++- docs/wiki/index.md | 8 +------- package-lock.json | 26 +++++++++++++------------- package.json | 2 +- 5 files changed, 33 insertions(+), 29 deletions(-) rename docs/{wiki => }/search/index.md (89%) diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 5370d6e..d018a2f 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -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, diff --git a/docs/wiki/search/index.md b/docs/search/index.md similarity index 89% rename from docs/wiki/search/index.md rename to docs/search/index.md index 13f5d1a..940961f 100644 --- a/docs/wiki/search/index.md +++ b/docs/search/index.md @@ -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, diff --git a/docs/wiki/index.md b/docs/wiki/index.md index b82a2a0..a647010 100644 --- a/docs/wiki/index.md +++ b/docs/wiki/index.md @@ -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. \ No newline at end of file +A video script API resource represents an encoding script used to produce a video. \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 7977fd5..0bab09c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 440a620..73b62db 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,6 @@ "license": "MIT", "dependencies": { "dotenv": "^16.0.3", - "vitepress": "^1.0.0-alpha.49" + "vitepress": "^1.0.0-alpha.59" } }