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>
|
</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;
|
||||||
|
|
|
@ -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;
|
||||||
---
|
---
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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");
|
||||||
|
|
|
@ -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/*"]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue