Skip to content

Commit

Permalink
Merge pull request #2 from yeecord/dev
Browse files Browse the repository at this point in the history
feat: fetch address data using worker runtime
  • Loading branch information
kane50613 authored Oct 9, 2024
2 parents 54db283 + 077dbe7 commit ec2e913
Show file tree
Hide file tree
Showing 11 changed files with 3,230 additions and 3,173 deletions.
56 changes: 0 additions & 56 deletions .eslintrc.cjs

This file was deleted.

13 changes: 11 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@ import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import compress from "@playform/compress";
import robotsTxt from "astro-robots-txt";
import { defineConfig, sharpImageService } from "astro/config";
import { defineConfig, passthroughImageService } from "astro/config";

import cloudflare from "@astrojs/cloudflare";

// https://astro.build/config
export default defineConfig({
site: "https://tools.yeecord.com",
trailingSlash: "never",

build: {
format: "file",
},

integrations: [
tailwind({
applyBaseStyles: false,
Expand All @@ -25,12 +29,17 @@ export default defineConfig({
}),
mdx(),
],

image: {
service: sharpImageService(),
service: passthroughImageService(),
},

vite: {
ssr: {
noExternal: ["@radix-ui/*"],
},
},

output: "hybrid",
adapter: cloudflare(),
});
54 changes: 54 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import tsParser from "@typescript-eslint/parser";
import parser from "astro-eslint-parser";
import astro from "eslint-plugin-astro";
import globals from "globals";

export default [
{
languageOptions: {
parser: tsParser,
ecmaVersion: "latest",
sourceType: "module",
},
},
{
files: ["**/*.astro"],

plugins: {
astro,
},

languageOptions: {
globals: {
...globals.node,
...astro.environments.astro.globals,
},

parser: parser,
ecmaVersion: 5,
sourceType: "commonjs",

parserOptions: {
extraFileExtensions: [".astro"],
},
},

rules: {
"astro/no-conflict-set-directives": "error",
"astro/no-unused-define-vars-in-style": "error",
},
},
{
files: ["**/*.astro/*.js", "*.astro/*.js"],

languageOptions: {
globals: {
...globals.browser,
},
},

rules: {
"prettier/prettier": "off",
},
},
];
80 changes: 42 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,54 @@
"test": "vitest"
},
"dependencies": {
"@astrojs/mdx": "^2.2.4",
"@astrojs/react": "^3.1.1",
"@astrojs/sitemap": "^3.1.2",
"@astrojs/tailwind": "^5.1.0",
"@playform/compress": "^0.0.2",
"@playform/inline": "^0.0.2",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-navigation-menu": "^1.1.4",
"@radix-ui/react-select": "^2.0.0",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"astro": "^4.5.16",
"@astrojs/cloudflare": "^11.1.0",
"@astrojs/mdx": "^3.1.7",
"@astrojs/react": "^3.6.2",
"@astrojs/sitemap": "^3.2.0",
"@astrojs/tailwind": "^5.1.1",
"@playform/compress": "^0.1.4",
"@playform/inline": "^0.1.0",
"@radix-ui/react-dropdown-menu": "^2.1.2",
"@radix-ui/react-label": "^2.1.0",
"@radix-ui/react-navigation-menu": "^1.2.1",
"@radix-ui/react-select": "^2.1.2",
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"astro": "^4.15.12",
"astro-robots-txt": "^1.0.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"lucide-react": "^0.364.0",
"clsx": "^2.1.1",
"lucide-react": "^0.451.0",
"next-themes": "^0.3.0",
"node-xlsx": "^0.24.0",
"nzh": "^1.0.12",
"qrcode": "^1.5.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sharp": "^0.33.3",
"sonner": "^1.4.41",
"nzh": "^1.0.13",
"qrcode": "^1.5.4",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sharp": "^0.33.5",
"sonner": "^1.5.0",
"swr": "^2.2.5",
"tailwind-merge": "^2.2.2",
"tailwindcss": "^3.4.3",
"tailwindcss-animate": "^1.0.7"
"tailwind-merge": "^2.5.3",
"tailwindcss": "^3.4.13",
"tailwindcss-animate": "^1.0.7",
"tiny-invariant": "^1.3.3",
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
},
"devDependencies": {
"@tailwindcss/typography": "^0.5.12",
"@tailwindcss/typography": "^0.5.15",
"@types/qrcode": "^1.5.5",
"@types/react": "^18.2.74",
"@typescript-eslint/parser": "^7.5.0",
"eslint": "^8.57.0",
"eslint-plugin-astro": "^0.33.1",
"eslint-plugin-jsx-a11y": "^6.8.0",
"prettier": "^3.2.5",
"prettier-plugin-astro": "^0.13.0",
"prettier-plugin-organize-imports": "^3.2.4",
"vite": "^5.2.10",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.5.2",
"workbox-window": "^7.0.0"
"@types/react": "^18.3.11",
"@typescript-eslint/parser": "^8.8.1",
"astro-eslint-parser": "^1.0.3",
"eslint": "^9.12.0",
"eslint-plugin-astro": "^1.2.4",
"eslint-plugin-jsx-a11y": "^6.10.0",
"globals": "^15.10.0",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-organize-imports": "^4.1.0",
"vite": "^5.4.8",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.1.2",
"workbox-window": "^7.1.0"
}
}
Loading

0 comments on commit ec2e913

Please sign in to comment.