Rearrange files

This commit is contained in:
Nikita Karamov 2023-03-27 19:22:41 +02:00
parent 343fcd7bc9
commit f0df611c16
No known key found for this signature in database
GPG key ID: 41D6F71EE78E77CD
8 changed files with 18 additions and 10 deletions

View file

@ -65,7 +65,7 @@ const { prefilledInstance } = Astro.props;
</style> </style>
<script> <script>
import { extractHost, normalizeURL } from "../util"; import { extractHost, normalizeURL } from "@scripts/util";
const LOCAL_STORAGE_KEY = "recentInstances"; const LOCAL_STORAGE_KEY = "recentInstances";
const RECENT_INSTANCES_SIZE = 5; const RECENT_INSTANCES_SIZE = 5;

View file

@ -3,7 +3,7 @@
* © 2023 Nikita Karamov * © 2023 Nikita Karamov
* Licensed under AGPL v3 or later * Licensed under AGPL v3 or later
*/ */
import "../styles/main.scss"; import "@styles/main.scss";
const { title } = Astro.props; const { title } = Astro.props;
--- ---

View file

@ -4,8 +4,8 @@
*/ */
import type { APIRoute } from "astro"; import type { APIRoute } from "astro";
import { FediverseProject } from "../../../constants"; import { FediverseProject } from "@scripts/constants";
import { normalizeURL } from "../../../util"; import { normalizeURL } from "@scripts/util";
interface FediverseProjectData { interface FediverseProjectData {
publishEndpoint: string; publishEndpoint: string;

View file

@ -4,7 +4,7 @@
*/ */
import type { APIRoute } from "astro"; import type { APIRoute } from "astro";
import { FediverseProject } from "../../constants"; import { FediverseProject } from "@scripts/constants";
interface ProjectInstance { interface ProjectInstance {
domain: string; domain: string;

View file

@ -3,10 +3,10 @@
* © 2023 Nikita Karamov * © 2023 Nikita Karamov
* Licensed under AGPL v3 or later * Licensed under AGPL v3 or later
*/ */
import Layout from "../layouts/layout.astro"; import Layout from "@layouts/layout.astro";
import InstanceSelect from "../components/instance-select.astro"; import InstanceSelect from "@components/instance-select.astro";
import { Content as PrivacyNotice } from "./_privacy.md"; import { Content as PrivacyNotice } from "@pages/_privacy.md";
import { Content as Licence } from "./_licence.md"; import { Content as Licence } from "@pages/_licence.md";
const searchParameters = new URL(Astro.request.url).searchParams; const searchParameters = new URL(Astro.request.url).searchParams;
const prefilledText = searchParameters.get("text"); const prefilledText = searchParameters.get("text");

View file

@ -1,6 +1,14 @@
{ {
"extends": "astro/tsconfigs/strictest", "extends": "astro/tsconfigs/strictest",
"compilerOptions": { "compilerOptions": {
"ignoreDeprecations": "5.0" "ignoreDeprecations": "5.0",
"baseUrl": ".",
"paths": {
"@components/*": ["src/components/*"],
"@layouts/*": ["src/layouts/*"],
"@pages/*": ["src/pages/*"],
"@scripts/*": ["src/scripts/*"],
"@styles/*": ["src/styles/*"]
}
} }
} }