mirror of
https://github.com/NickKaramoff/toot
synced 2025-02-11 17:20:48 +01:00
Update dependencies (#76)
Co-authored-by: dependabot[bot] <support@github.com>
This commit is contained in:
commit
c9d892fc79
9
.gitignore
vendored
9
.gitignore
vendored
@ -7,6 +7,15 @@
|
||||
# Outputs
|
||||
/dist/
|
||||
|
||||
# generated types
|
||||
.astro/
|
||||
|
||||
# logs
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
|
||||
# Cache/state
|
||||
node_modules/
|
||||
|
||||
|
@ -8,18 +8,13 @@
|
||||
*/
|
||||
import { defineConfig } from "astro/config";
|
||||
|
||||
import cloudflare from "@astrojs/cloudflare";
|
||||
import deno from "@astrojs/deno";
|
||||
import netlify from "@astrojs/netlify";
|
||||
import node from "@astrojs/node";
|
||||
import vercel from "@astrojs/vercel/serverless";
|
||||
|
||||
import browserslist from "browserslist";
|
||||
import { browserslistToTargets, transform } from "lightningcss";
|
||||
|
||||
let adapterConfig = {};
|
||||
if (process.env.VERCEL) {
|
||||
console.info("Using Vercel (serverless) adapter...");
|
||||
const { default: vercel } = await import("@astrojs/vercel/serverless");
|
||||
adapterConfig = {
|
||||
adapter: vercel({
|
||||
functionPerRoute: true,
|
||||
@ -27,22 +22,26 @@ if (process.env.VERCEL) {
|
||||
};
|
||||
} else if (process.env.CF_PAGES) {
|
||||
console.info("Using Cloudflare (Pages) adapter...");
|
||||
const { default: cloudflare } = await import("@astrojs/cloudflare");
|
||||
adapterConfig = {
|
||||
adapter: cloudflare(),
|
||||
};
|
||||
} else if (process.env.NETLIFY) {
|
||||
console.info("Using Netlify (Functions) adapter...");
|
||||
const { default: netlify } = await import("@astrojs/netlify");
|
||||
adapterConfig = {
|
||||
adapter: netlify(),
|
||||
};
|
||||
} else if (process.argv.includes("--s2f-use-deno")) {
|
||||
console.info("Using Deno adapter...");
|
||||
const { default: deno } = await import("@astrojs/deno");
|
||||
adapterConfig = {
|
||||
adapter: deno(),
|
||||
};
|
||||
} else {
|
||||
console.info("Using Node.js adapter...");
|
||||
console.info("Run with '--s2f-use-deno' flag to use Deno");
|
||||
const { default: node } = await import("@astrojs/node");
|
||||
adapterConfig = {
|
||||
adapter: node({
|
||||
mode: "standalone",
|
||||
|
48
package.json
48
package.json
@ -32,36 +32,36 @@
|
||||
},
|
||||
"browserslist": "cover 95%, last 2 versions, Firefox ESR, not dead",
|
||||
"dependencies": {
|
||||
"@astrojs/cloudflare": "^9.2.1",
|
||||
"@astrojs/cloudflare": "^11.0.4",
|
||||
"@astrojs/deno": "^5.0.1",
|
||||
"@astrojs/netlify": "^5.2.0",
|
||||
"@astrojs/node": "^8.2.5",
|
||||
"@astrojs/vercel": "^7.5.2",
|
||||
"@nanostores/persistent": "^0.9.1",
|
||||
"astro": "^4.5.16",
|
||||
"nanostores": "^0.9.5"
|
||||
"@astrojs/netlify": "^5.5.2",
|
||||
"@astrojs/node": "^8.3.3",
|
||||
"@astrojs/vercel": "^7.8.1",
|
||||
"@nanostores/persistent": "^0.10.2",
|
||||
"astro": "^4.15.4",
|
||||
"nanostores": "^0.11.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@astrojs/check": "^0.5.10",
|
||||
"@types/node": "^18.19.29",
|
||||
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
||||
"@typescript-eslint/parser": "^6.21.0",
|
||||
"browserslist": "^4.23.0",
|
||||
"@astrojs/check": "^0.9.3",
|
||||
"@types/node": "^18.19.50",
|
||||
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
||||
"@typescript-eslint/parser": "^7.18.0",
|
||||
"browserslist": "^4.23.3",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-astro": "^0.31.4",
|
||||
"eslint-plugin-unicorn": "^51.0.1",
|
||||
"husky": "^9.0.11",
|
||||
"lightningcss": "^1.24.1",
|
||||
"lint-staged": "^15.2.2",
|
||||
"prettier": "^3.2.5",
|
||||
"prettier-plugin-astro": "^0.13.0",
|
||||
"sass": "^1.74.1",
|
||||
"sharp": "^0.33.3",
|
||||
"stylelint": "^16.3.1",
|
||||
"eslint-plugin-astro": "^1.2.4",
|
||||
"eslint-plugin-unicorn": "^55.0.0",
|
||||
"husky": "^9.1.6",
|
||||
"lightningcss": "^1.27.0",
|
||||
"lint-staged": "^15.2.10",
|
||||
"prettier": "^3.3.3",
|
||||
"prettier-plugin-astro": "^0.14.1",
|
||||
"sass": "^1.78.0",
|
||||
"sharp": "^0.33.5",
|
||||
"stylelint": "^16.9.0",
|
||||
"stylelint-config-standard-scss": "^13.1.0",
|
||||
"svgo": "^3.2.0",
|
||||
"typescript": "^5.4.3"
|
||||
"svgo": "^3.3.2",
|
||||
"typescript": "^5.6.2"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*": "pnpm run fix:prettier",
|
||||
|
10206
pnpm-lock.yaml
generated
10206
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
3
src/env.d.ts
vendored
3
src/env.d.ts
vendored
@ -6,4 +6,5 @@
|
||||
* SPDX-FileCopyrightText: © 2023 Nikita Karamov <me@kytta.dev>
|
||||
* SPDX-License-Identifier: CC0-1.0
|
||||
*/
|
||||
/// <reference types="astro/client" />
|
||||
/* eslint-disable @typescript-eslint/triple-slash-reference */
|
||||
/// <reference path="../.astro/types.d.ts" />
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
import { persistentAtom } from "@nanostores/persistent";
|
||||
import { getUrlDomain } from "@lib/url";
|
||||
import { action, onMount } from "nanostores";
|
||||
import { onMount } from "nanostores";
|
||||
|
||||
const OLD_LOCAL_STORAGE_KEY = "recentInstances";
|
||||
const LOCAL_STORAGE_KEY = "savedInstances";
|
||||
@ -41,8 +41,10 @@ onMount($savedInstances, () => {
|
||||
localStorage.removeItem(OLD_LOCAL_STORAGE_KEY);
|
||||
});
|
||||
|
||||
export const save = action($savedInstances, "save", (store, instance) => {
|
||||
store.set(
|
||||
new Set([getUrlDomain(instance), ...store.get()].slice(0, CAPACITY)),
|
||||
export const save = (instance: string) => {
|
||||
$savedInstances.set(
|
||||
new Set(
|
||||
[getUrlDomain(instance), ...$savedInstances.get()].slice(0, CAPACITY),
|
||||
),
|
||||
);
|
||||
});
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user