Rearrange files
This commit is contained in:
parent
343fcd7bc9
commit
f0df611c16
8 changed files with 18 additions and 10 deletions
|
@ -65,7 +65,7 @@ const { prefilledInstance } = Astro.props;
|
|||
</style>
|
||||
|
||||
<script>
|
||||
import { extractHost, normalizeURL } from "../util";
|
||||
import { extractHost, normalizeURL } from "@scripts/util";
|
||||
|
||||
const LOCAL_STORAGE_KEY = "recentInstances";
|
||||
const RECENT_INSTANCES_SIZE = 5;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* © 2023 Nikita Karamov
|
||||
* Licensed under AGPL v3 or later
|
||||
*/
|
||||
import "../styles/main.scss";
|
||||
import "@styles/main.scss";
|
||||
|
||||
const { title } = Astro.props;
|
||||
---
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
*/
|
||||
|
||||
import type { APIRoute } from "astro";
|
||||
import { FediverseProject } from "../../../constants";
|
||||
import { normalizeURL } from "../../../util";
|
||||
import { FediverseProject } from "@scripts/constants";
|
||||
import { normalizeURL } from "@scripts/util";
|
||||
|
||||
interface FediverseProjectData {
|
||||
publishEndpoint: string;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*/
|
||||
|
||||
import type { APIRoute } from "astro";
|
||||
import { FediverseProject } from "../../constants";
|
||||
import { FediverseProject } from "@scripts/constants";
|
||||
|
||||
interface ProjectInstance {
|
||||
domain: string;
|
||||
|
|
|
@ -3,10 +3,10 @@
|
|||
* © 2023 Nikita Karamov
|
||||
* Licensed under AGPL v3 or later
|
||||
*/
|
||||
import Layout from "../layouts/layout.astro";
|
||||
import InstanceSelect from "../components/instance-select.astro";
|
||||
import { Content as PrivacyNotice } from "./_privacy.md";
|
||||
import { Content as Licence } from "./_licence.md";
|
||||
import Layout from "@layouts/layout.astro";
|
||||
import InstanceSelect from "@components/instance-select.astro";
|
||||
import { Content as PrivacyNotice } from "@pages/_privacy.md";
|
||||
import { Content as Licence } from "@pages/_licence.md";
|
||||
|
||||
const searchParameters = new URL(Astro.request.url).searchParams;
|
||||
const prefilledText = searchParameters.get("text");
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
{
|
||||
"extends": "astro/tsconfigs/strictest",
|
||||
"compilerOptions": {
|
||||
"ignoreDeprecations": "5.0"
|
||||
"ignoreDeprecations": "5.0",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@components/*": ["src/components/*"],
|
||||
"@layouts/*": ["src/layouts/*"],
|
||||
"@pages/*": ["src/pages/*"],
|
||||
"@scripts/*": ["src/scripts/*"],
|
||||
"@styles/*": ["src/styles/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue