-
Notifications
You must be signed in to change notification settings - Fork 10
Add Entry Tags #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
selectdev
wants to merge
34
commits into
v3
Choose a base branch
from
add-entry-tags
base: v3
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add Entry Tags #202
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
3a2350b
Added baseplate, will require much more changes
selectdev af5f4c8
Formatted code because ugly
selectdev 298e0dc
Made some mini design changes
selectdev 92a94b7
db search for tags now supported, also in api
stjet 9bf26a6
api accepts query param, added search bar
stjet 6d9a650
Fixed some mini bugs
selectdev a3efbfc
Added space into CONTRIBUTING.md to trigger Vercel
selectdev f98fe33
uhh, fixed search and broke database
selectdev 81f9e34
bug fix
stjet 07c595c
another fix?
stjet e894c4c
bug fix for reals
stjet 081969b
add basic api docs
stjet 62c5017
Made .replit automatically format files before starting
selectdev 39d03f6
you can now add tags to entries
stjet 413c4f9
Made it so the register-commands actually ends rather than stays runn…
selectdev 95e4672
clicking on tags search - does not work completely (onclicks overlap)
stjet 1fe6935
Merge branch 'v3' into add-entry-tags
selectdev d555303
fixed tag search with extensive help of select, fixed the actual db s…
stjet 242f601
Replaced div with a
selectdev d9ed894
Update src/routes/edit/[slug].svelte
selectdev 4d6505e
Update src/lib/EntryPreview.svelte
selectdev 12dfe1c
Update src/lib/database/entries.ts
selectdev e5e63de
Update src/lib/discord/scripts/registerCommands.ts
selectdev a1dd1b5
Update src/routes/entry/[slug].svelte
selectdev 1759533
Update src/routes/index.svelte
stjet 360e4bb
updates
stjet dfe3fcf
Merge branch 'v3' into add-entry-tags
stjet 5189b5d
Formatted
selectdev dcd088f
mat review compliance thing
stjet d3c90e2
Update src/lib/discord/scripts/registerCommands.ts
selectdev 1ffc71d
Update src/routes/edit/[slug].svelte
selectdev 54e5f5e
Update src/routes/api/entries.json.ts
selectdev 271549f
Formatted
selectdev 558ebed
Merge branch 'v3' into add-entry-tags
stjet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| run = "npm run dev:host" | ||
| run = "npm run format && npm run dev:host" | ||
| onBoot = "npm install" | ||
|
|
||
| [packager] | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # API Documentation | ||
|
|
||
| ## GET /api/entries.json | ||
|
|
||
| Search for entries | ||
|
|
||
| ### Params | ||
|
|
||
| All parameters should of course be encoded in the request url as URL query string parameters. | ||
|
|
||
| Note: If there are no parameters, it will fetch all entries. | ||
|
|
||
| - **`tags`**: CSV (comma seperated values) of tags to search for. Eg: "web,programming language,discord user" | ||
| - **`query`**: String to search for in article titles and content. | ||
| - **`visible`**: Boolean (true/false) of whether to show regular (non unlisted or hidden), 'visible' entries. Defaults to true. | ||
| - **`unlisted`**: Boolean (true/false) of whether to show unlisted entries. Some users may not have the proper permissions to view these entries. Defaults to false. | ||
| - **`hidden`**: Boolean (true/false) of whether to show hidden entries. Some users may not have the proper permissions to view these entries. Defaults to false. | ||
| - **`limit`**: Integer of how many entries it should return. Defaults to all. | ||
| - **`skip`**: Integer of how many entries should be skipped (useful for pagination). Defaults to 0 (skip none). | ||
|
|
||
| ## POST /api/entries.json | ||
|
|
||
| Creates entry. Probably should not try and do this programatically. | ||
|
|
||
| ## GET /api/random.json | ||
|
|
||
| Get random entry. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.