diff --git a/.gitignore b/.gitignore index 0bb76dbf..1c0dba4f 100644 --- a/.gitignore +++ b/.gitignore @@ -49,4 +49,7 @@ bun.lockb id_* #Rust -target \ No newline at end of file +target + +tmp +.partykit \ No newline at end of file diff --git a/infra/RELAY.md b/apps/docs/RELAY.md similarity index 100% rename from infra/RELAY.md rename to apps/docs/RELAY.md diff --git a/apps/docs/sst-env.d.ts b/apps/docs/sst-env.d.ts new file mode 100644 index 00000000..f90ea1f4 --- /dev/null +++ b/apps/docs/sst-env.d.ts @@ -0,0 +1,42 @@ +/* This file is auto-generated by SST. Do not edit. */ +/* tslint:disable */ +/* eslint-disable */ +/* deno-fmt-ignore-file */ +import "sst" +export {} +declare module "sst" { + export interface Resource { + "Api": { + "type": "sst.cloudflare.Worker" + "url": string + } + "Auth": { + "type": "sst.cloudflare.Worker" + "url": string + } + "AuthFingerprintKey": { + "type": "random.index/randomString.RandomString" + "value": string + } + "CloudflareAuthKV": { + "type": "sst.cloudflare.Kv" + } + "InstantAdminToken": { + "type": "sst.sst.Secret" + "value": string + } + "InstantAppId": { + "type": "sst.sst.Secret" + "value": string + } + "LoopsApiKey": { + "type": "sst.sst.Secret" + "value": string + } + "Urls": { + "api": string + "auth": string + "type": "sst.sst.Linkable" + } + } +} diff --git a/apps/www/.eslintrc.cjs b/apps/www/.eslintrc.cjs index 878c3386..92f00457 100644 --- a/apps/www/.eslintrc.cjs +++ b/apps/www/.eslintrc.cjs @@ -1,7 +1,14 @@ module.exports = { root: true, + env: { + browser: true, + es2021: true, + node: true, + }, extends: [ - "@nestri/eslint-config/qwik.js", + "eslint:recommended", + "plugin:@typescript-eslint/recommended", + "plugin:qwik/recommended", ], parser: "@typescript-eslint/parser", parserOptions: { @@ -12,5 +19,24 @@ module.exports = { ecmaFeatures: { jsx: true, }, - } + }, + plugins: ["@typescript-eslint"], + rules: { + "@typescript-eslint/no-explicit-any": "off", + "@typescript-eslint/explicit-module-boundary-types": "off", + "@typescript-eslint/no-inferrable-types": "off", + "@typescript-eslint/no-non-null-assertion": "off", + "@typescript-eslint/no-empty-interface": "off", + "@typescript-eslint/no-namespace": "off", + "@typescript-eslint/no-empty-function": "off", + "@typescript-eslint/no-this-alias": "off", + "@typescript-eslint/ban-types": "off", + "@typescript-eslint/ban-ts-comment": "off", + "prefer-spread": "off", + "no-case-declarations": "off", + "no-console": "off", + "@typescript-eslint/no-unused-vars": ["error"], + "@typescript-eslint/consistent-type-imports": "warn", + "@typescript-eslint/no-unnecessary-condition": "warn", + }, }; \ No newline at end of file diff --git a/apps/www/package.json b/apps/www/package.json index 5ffec96c..b34c47b1 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -35,11 +35,10 @@ "@builder.io/qwik-city": "^1.8.0", "@builder.io/qwik-react": "0.5.0", "@modular-forms/qwik": "^0.27.0", - "@nestri/eslint-config": "*", "@nestri/input": "*", "@nestri/libmoq": "*", - "@nestri/typescript-config": "*", "@nestri/ui": "*", + "@openauthjs/openauth": "^0.2.6", "@types/eslint": "8.56.10", "@types/howler": "^2.2.12", "@types/node": "^22.5.1", diff --git a/apps/www/postcss.config.cjs b/apps/www/postcss.config.cjs index c1464c07..63889e76 100644 --- a/apps/www/postcss.config.cjs +++ b/apps/www/postcss.config.cjs @@ -1,4 +1,3 @@ -// module.exports = require("@nestri/ui/postcss.config"); module.exports = { plugins: { tailwindcss: {}, diff --git a/apps/www/src/routes/(auth)/device/index.tsx b/apps/www/src/routes/(auth)/device/index.tsx new file mode 100644 index 00000000..88c75a05 --- /dev/null +++ b/apps/www/src/routes/(auth)/device/index.tsx @@ -0,0 +1,9 @@ +import { component$ } from "@builder.io/qwik" + +export default component$(() => { + return ( +