Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 29, 2023
1 parent 88ecf95 commit 1d450c6
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 21 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ See the [open issues](https://github.com/baseplate-admin/CoreProject/issues) and
<p align="right">(<a href="#top">back to top</a>)</p>

## Contributing

Read [CONTRIBUTING.md](https://github.com/baseplate-admin/CoreProject/blob/master/CONTRIBUTING.md) for more details.

- If you have a suggestion/idea that would make this project better, please create a pull request. All pull requests will be reviewed by us, and adjusted.

- You can also [open a new issue](https://github.com/baseplate-admin/CoreProject/issues/new/choose) or [help us with an existing one](https://github.com/baseplate-admin/CoreProject/issues).
Expand Down
2 changes: 1 addition & 1 deletion frontend/AnimeCore/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ node_modules
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
.vercel
.vercel
2 changes: 1 addition & 1 deletion frontend/AnimeCore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<a href="https://results.pre-commit.ci/latest/github/tokitou-san/CoreProject-V3-UI/v3"><img src="https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=for-the-badge" alt="pre-commit.ci status"></a>
<a href='https://discord.gg/7AraSmKqnN'><img alt="Discord" src="https://img.shields.io/discord/1039894823626362931?style=for-the-badge"></a>
</p>

## Screenshots

<p float="left">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@
{/each}
</ScrollArea>
{/if}
</div>
</div>
2 changes: 1 addition & 1 deletion frontend/AnimeCore/src/lib/icons/add.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
type $$Props = SVGAttributes<SVGElement>;
</script>

<svg {...$$props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path fill="currentColor" d="M6.5 1.75a.75.75 0 0 0-1.5 0V5H1.75a.75.75 0 0 0 0 1.5H5v3.25a.75.75 0 0 0 1.5 0V6.5h3.25a.75.75 0 0 0 0-1.5H6.5V1.75Z"/></svg>
<svg {...$$props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path fill="currentColor" d="M6.5 1.75a.75.75 0 0 0-1.5 0V5H1.75a.75.75 0 0 0 0 1.5H5v3.25a.75.75 0 0 0 1.5 0V6.5h3.25a.75.75 0 0 0 0-1.5H6.5V1.75Z"/></svg>
2 changes: 1 addition & 1 deletion frontend/AnimeCore/src/lib/icons/caption.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
type $$Props = SVGAttributes<SVGElement>;
</script>

<svg {...$$props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M18 11h-1.5v-.5h-2v3h2V13H18v1a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1m-7 1H9.5v-.5h-2v3h2V13H11v1a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1m8-6H5c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Z"/></svg>
<svg {...$$props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M18 11h-1.5v-.5h-2v3h2V13H18v1a1 1 0 0 1-1 1h-3a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1m-7 1H9.5v-.5h-2v3h2V13H11v1a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-4a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1m8-6H5c-1.11 0-2 .89-2 2v12a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2Z"/></svg>
2 changes: 1 addition & 1 deletion frontend/AnimeCore/src/lib/icons/mic.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
type $$Props = SVGAttributes<SVGElement>;
</script>

<svg {...$$props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 24"><path fill="currentColor" d="M8.4 16.8a4.805 4.805 0 0 0 4.8-4.8V4.8a4.8 4.8 0 1 0-9.6 0V12a4.805 4.805 0 0 0 4.8 4.8z"/><path fill="currentColor" d="M16.8 12V9.6a1.2 1.2 0 1 0-2.4 0V12a6 6 0 1 1-12 0V9.6a1.2 1.2 0 1 0-2.4 0V12a8.406 8.406 0 0 0 7.154 8.298l.046.006V21.6H3.6a1.2 1.2 0 1 0 0 2.4h9.6a1.2 1.2 0 1 0 0-2.4H9.6v-1.296c4.09-.609 7.193-4.093 7.2-8.303z"/></svg>
<svg {...$$props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17 24"><path fill="currentColor" d="M8.4 16.8a4.805 4.805 0 0 0 4.8-4.8V4.8a4.8 4.8 0 1 0-9.6 0V12a4.805 4.805 0 0 0 4.8 4.8z"/><path fill="currentColor" d="M16.8 12V9.6a1.2 1.2 0 1 0-2.4 0V12a6 6 0 1 1-12 0V9.6a1.2 1.2 0 1 0-2.4 0V12a8.406 8.406 0 0 0 7.154 8.298l.046.006V21.6H3.6a1.2 1.2 0 1 0 0 2.4h9.6a1.2 1.2 0 1 0 0-2.4H9.6v-1.296c4.09-.609 7.193-4.093 7.2-8.303z"/></svg>
2 changes: 1 addition & 1 deletion frontend/AnimeCore/src/lib/icons/six_grids.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
type $$Props = SVGAttributes<SVGElement>;
</script>

<svg {...$$props} xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="currentColor" d="M1 2a1 1 0 0 1 1-1h2a1 1 0 0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h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V7zM1 12a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-2zm5 0a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-2zm5 0a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-2z"/></svg>
4 changes: 2 additions & 2 deletions frontend/AnimeCore/src/nprogress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ $nprogress-height: 0.2rem;
width: 100px;
height: 100%;
box-shadow:
0 0 10px $nprogress-bar-color,
0 0 5px $nprogress-bar-color;
0 0 10px $nprogress-bar-color,
0 0 5px $nprogress-bar-color;
opacity: 1;

-webkit-transform: rotate(3deg) translate(0px, -4px);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
</svelte:head>

{#if anime}
<!--
TopRounded is due to how skeleton works with it's AppRail.
<!--
TopRounded is due to how skeleton works with it's AppRail.
We are essentially monkeypatching border-top-left-radius
-->
<TopRounded class="fixed z-10 hidden w-[1.5vw] text-surface-900 md:flex" />
Expand Down
4 changes: 2 additions & 2 deletions frontend/AnimeCore/src/routes/upload/upload_page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,10 @@
{@const file = data.file}
{@const name = file.name}
{@const last_modified = new FormatDate(
/*
/*
Somehow things got fked up.
dayjs expects `time` to be in seconds and we have the file.lastModified as milliseconds.
So here we go with our logic.
So here we go with our logic.
*/
dayjs.unix(file.lastModified / 1000).toString()
).format_to_human_readable_form}
Expand Down
2 changes: 1 addition & 1 deletion frontend/AnimeCore/static/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions frontend/AnimeCore/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ const config = {
// See https://kit.svelte.dev/docs/adapters for more information about adapters.
adapter: is_static
? static_adapter({
fallback: "app.html",
fallback: "app.html",
// precompress: true,
strict: true
})
strict: true
})
: is_node
? node_adapter({
precompress: false
})
precompress: false
})
: vercel({
// an array of dependencies that esbuild should treat
// as external when bundling functions
external: []
}),
external: []
}),
alias: {
$store: path.resolve("./src/lib/store"),
$hooks: path.resolve("./src/hooks"),
Expand Down

0 comments on commit 1d450c6

Please sign in to comment.