diff --git a/.pnpmfile.cjs b/.pnpmfile.cjs deleted file mode 100644 index 584a016d..00000000 --- a/.pnpmfile.cjs +++ /dev/null @@ -1,13 +0,0 @@ -function readPackage(pkg, context) { - if (pkg.dependencies["sort-package-json"]) { - pkg.dependencies["sort-package-json"] = "1.55.0" - } - - return pkg -} - -module.exports = { - hooks: { - readPackage, - }, -} diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 7fefcdd0..00000000 --- a/Dockerfile +++ /dev/null @@ -1,38 +0,0 @@ -### base -FROM node:16-bullseye-slim as base - -# Install openssl for Prisma -RUN apt-get update && apt-get install -y openssl - -### build -FROM base as build - -RUN mkdir /app -WORKDIR /app - -RUN npm i -g pnpm - -ADD . . -RUN pnpm install - -ENV NODE_ENV=production - -RUN pnpm prisma generate -RUN pnpm build -# keep production dependencies only -RUN pnpm prune --production - -# Finally, build the production image with minimal footprint -FROM base - -ENV NODE_ENV=production - -RUN mkdir /app -WORKDIR /app - -COPY --from=build /app/node_modules /app/node_modules -COPY --from=build /app/build /app/build -COPY --from=build /app/public /app/public -ADD . . - -CMD ["npm", "start"] diff --git a/fly.toml b/fly.toml deleted file mode 100644 index 8a72e987..00000000 --- a/fly.toml +++ /dev/null @@ -1,41 +0,0 @@ -# fly.toml file generated for proselog on 2022-05-05T00:44:42+08:00 - -app = "proselog" - -kill_signal = "SIGINT" -kill_timeout = 5 -processes = [] - -[env] - PORT = "8080" - -[experimental] - allowed_public_ports = [] - auto_rollback = true - -[[services]] - http_checks = [] - internal_port = 8080 - processes = ["app"] - protocol = "tcp" - script_checks = [] - - [services.concurrency] - hard_limit = 25 - soft_limit = 20 - type = "connections" - - [[services.ports]] - force_https = true - handlers = ["http"] - port = 80 - - [[services.ports]] - handlers = ["tls", "http"] - port = 443 - - [[services.tcp_checks]] - grace_period = "1s" - interval = "15s" - restart_limit = 0 - timeout = "2s" diff --git a/package.json b/package.json index 7f19bf3b..952e0f10 100644 --- a/package.json +++ b/package.json @@ -1,78 +1,8 @@ { - "name": "proselog", "private": true, - "description": "A publishing platform", - "license": "unlicensed", - "sideEffects": false, + "name": "proselog-workspace", "scripts": { - "build": "pnpm db-generate && next build", - "dev": "next", - "db-generate": "prisma generate" - }, - "dependencies": { - "@aws-sdk/client-s3": "^3.81.0", - "@codemirror/commands": "^0.20.0", - "@codemirror/lang-markdown": "^0.20.0", - "@codemirror/language": "^0.20.0", - "@codemirror/state": "^0.20.0", - "@codemirror/view": "^0.20.3", - "@hapi/iron": "^6.0.0", - "@headlessui/react": "^1.6.0", - "@prisma/client": "^3.14.0", - "@trpc/client": "^9.23.2", - "@trpc/next": "^9.23.2", - "@trpc/react": "^9.23.2", - "@trpc/server": "^9.23.2", - "@web-std/form-data": "^3.0.2", - "async-busboy": "^1.1.0", - "busboy": "^1.6.0", - "clsx": "^1.1.1", - "cookie": "^0.5.0", - "dayjs": "^1.11.1", - "dotenv": "^16.0.0", - "fast-deep-equal": "^3.1.3", - "form-data": "^4.0.0", - "mailgun.js": "^5.2.2", - "markdown-it": "^13.0.0", - "nanoid": "^3.3.3", - "next": "^12.1.6", - "pica": "^9.0.1", - "prismjs": "^1.28.0", - "react": "^18.1.0", - "react-avatar-editor": "^12.0.0", - "react-dom": "^18.1.0", - "react-hook-form": "^7.31.1", - "react-hot-toast": "^2.2.0", - "react-query": "^3.39.0", - "react-sortablejs": "^6.1.1", - "sortablejs": "^1.15.0", - "ua-parser-js": "^1.0.2", - "uuid": "^8.3.2", - "zod": "^3.15.1", - "zustand": "4.0.0-rc.1" - }, - "devDependencies": { - "@types/async-busboy": "^1.1.1", - "@types/busboy": "^1.5.0", - "@types/cookie": "^0.5.1", - "@types/markdown-it": "^12.2.3", - "@types/node": "^17.0.31", - "@types/pica": "^9.0.0", - "@types/prismjs": "^1.26.0", - "@types/react": "^18.0.9", - "@types/react-avatar-editor": "^12.0.0", - "@types/react-dom": "^18.0.3", - "@types/sortablejs": "^1.13.0", - "@types/ua-parser-js": "^0.7.36", - "@types/uuid": "^8.3.4", - "eslint": "^8.15.0", - "eslint-config-next": "^12.1.6", - "postcss-import": "^14.1.0", - "prisma": "^3.14.0", - "tailwindcss": "^3.0.24", - "typescript": "^4.5.5" - }, - "engines": { - "node": ">=14" + "dev": "pnpm --filter web dev", + "db-generate": "pnpm --filter web db-generate" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ec48d797..357c440f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,128 +1,132 @@ lockfileVersion: 5.4 -specifiers: - '@aws-sdk/client-s3': ^3.81.0 - '@codemirror/commands': ^0.20.0 - '@codemirror/lang-markdown': ^0.20.0 - '@codemirror/language': ^0.20.0 - '@codemirror/state': ^0.20.0 - '@codemirror/view': ^0.20.3 - '@hapi/iron': ^6.0.0 - '@headlessui/react': ^1.6.0 - '@prisma/client': ^3.14.0 - '@trpc/client': ^9.23.2 - '@trpc/next': ^9.23.2 - '@trpc/react': ^9.23.2 - '@trpc/server': ^9.23.2 - '@types/async-busboy': ^1.1.1 - '@types/busboy': ^1.5.0 - '@types/cookie': ^0.5.1 - '@types/markdown-it': ^12.2.3 - '@types/node': ^17.0.31 - '@types/pica': ^9.0.0 - '@types/prismjs': ^1.26.0 - '@types/react': ^18.0.9 - '@types/react-avatar-editor': ^12.0.0 - '@types/react-dom': ^18.0.3 - '@types/sortablejs': ^1.13.0 - '@types/ua-parser-js': ^0.7.36 - '@types/uuid': ^8.3.4 - '@web-std/form-data': ^3.0.2 - async-busboy: ^1.1.0 - busboy: ^1.6.0 - clsx: ^1.1.1 - cookie: ^0.5.0 - dayjs: ^1.11.1 - dotenv: ^16.0.0 - eslint: ^8.15.0 - eslint-config-next: ^12.1.6 - fast-deep-equal: ^3.1.3 - form-data: ^4.0.0 - mailgun.js: ^5.2.2 - markdown-it: ^13.0.0 - nanoid: ^3.3.3 - next: ^12.1.6 - pica: ^9.0.1 - postcss-import: ^14.1.0 - prisma: ^3.14.0 - prismjs: ^1.28.0 - react: ^18.1.0 - react-avatar-editor: ^12.0.0 - react-dom: ^18.1.0 - react-hook-form: ^7.31.1 - react-hot-toast: ^2.2.0 - react-query: ^3.39.0 - react-sortablejs: ^6.1.1 - sortablejs: ^1.15.0 - tailwindcss: ^3.0.24 - typescript: ^4.5.5 - ua-parser-js: ^1.0.2 - uuid: ^8.3.2 - zod: ^3.15.1 - zustand: 4.0.0-rc.1 +importers: -dependencies: - '@aws-sdk/client-s3': 3.86.0 - '@codemirror/commands': 0.20.0 - '@codemirror/lang-markdown': 0.20.0 - '@codemirror/language': 0.20.0 - '@codemirror/state': 0.20.0 - '@codemirror/view': 0.20.4 - '@hapi/iron': 6.0.0 - '@headlessui/react': 1.6.1_ef5jwxihqo6n7gxfmzogljlgcm - '@prisma/client': 3.14.0_prisma@3.14.0 - '@trpc/client': 9.23.2_@trpc+server@9.23.2 - '@trpc/next': 9.23.2_ekhln2aut74ytaacni4ejzffly - '@trpc/react': 9.23.2_ztktndqynogm35aelp247cafku - '@trpc/server': 9.23.2 - '@web-std/form-data': 3.0.2 - async-busboy: 1.1.0 - busboy: 1.6.0 - clsx: 1.1.1 - cookie: 0.5.0 - dayjs: 1.11.2 - dotenv: 16.0.0 - fast-deep-equal: 3.1.3 - form-data: 4.0.0 - mailgun.js: 5.2.2 - markdown-it: 13.0.1 - nanoid: 3.3.4 - next: 12.1.6_ef5jwxihqo6n7gxfmzogljlgcm - pica: 9.0.1 - prismjs: 1.28.0 - react: 18.1.0 - react-avatar-editor: 12.0.0_ef5jwxihqo6n7gxfmzogljlgcm - react-dom: 18.1.0_react@18.1.0 - react-hook-form: 7.31.1_react@18.1.0 - react-hot-toast: 2.2.0_ef5jwxihqo6n7gxfmzogljlgcm - react-query: 3.39.0_ef5jwxihqo6n7gxfmzogljlgcm - react-sortablejs: 6.1.1_kjz72dk5lh6hp4ogspefhm7r2u - sortablejs: 1.15.0 - ua-parser-js: 1.0.2 - uuid: 8.3.2 - zod: 3.15.1 - zustand: 4.0.0-rc.1_react@18.1.0 + .: + specifiers: {} -devDependencies: - '@types/async-busboy': 1.1.1 - '@types/busboy': 1.5.0 - '@types/cookie': 0.5.1 - '@types/markdown-it': 12.2.3 - '@types/node': 17.0.31 - '@types/pica': 9.0.0 - '@types/prismjs': 1.26.0 - '@types/react': 18.0.9 - '@types/react-avatar-editor': 12.0.0 - '@types/react-dom': 18.0.3 - '@types/sortablejs': 1.13.0 - '@types/ua-parser-js': 0.7.36 - '@types/uuid': 8.3.4 - eslint: 8.15.0 - eslint-config-next: 12.1.6_6vdljae35l7howjttefzzsim3e - postcss-import: 14.1.0 - prisma: 3.14.0 - tailwindcss: 3.0.24 - typescript: 4.6.4 + web: + specifiers: + '@aws-sdk/client-s3': ^3.81.0 + '@codemirror/commands': ^0.20.0 + '@codemirror/lang-markdown': ^0.20.0 + '@codemirror/language': ^0.20.0 + '@codemirror/state': ^0.20.0 + '@codemirror/view': ^0.20.3 + '@hapi/iron': ^6.0.0 + '@headlessui/react': ^1.6.0 + '@prisma/client': ^3.14.0 + '@trpc/client': ^9.23.2 + '@trpc/next': ^9.23.2 + '@trpc/react': ^9.23.2 + '@trpc/server': ^9.23.2 + '@types/async-busboy': ^1.1.1 + '@types/busboy': ^1.5.0 + '@types/cookie': ^0.5.1 + '@types/markdown-it': ^12.2.3 + '@types/node': ^17.0.31 + '@types/pica': ^9.0.0 + '@types/prismjs': ^1.26.0 + '@types/react': ^18.0.9 + '@types/react-avatar-editor': ^12.0.0 + '@types/react-dom': ^18.0.3 + '@types/sortablejs': ^1.13.0 + '@types/ua-parser-js': ^0.7.36 + '@types/uuid': ^8.3.4 + '@web-std/form-data': ^3.0.2 + async-busboy: ^1.1.0 + busboy: ^1.6.0 + clsx: ^1.1.1 + cookie: ^0.5.0 + dayjs: ^1.11.1 + dotenv: ^16.0.0 + eslint: ^8.15.0 + eslint-config-next: ^12.1.6 + fast-deep-equal: ^3.1.3 + form-data: ^4.0.0 + mailgun.js: ^5.2.2 + markdown-it: ^13.0.0 + nanoid: ^3.3.3 + next: ^12.1.6 + pica: ^9.0.1 + postcss-import: ^14.1.0 + prisma: ^3.14.0 + prismjs: ^1.28.0 + react: ^18.1.0 + react-avatar-editor: ^12.0.0 + react-dom: ^18.1.0 + react-hook-form: ^7.31.1 + react-hot-toast: ^2.2.0 + react-query: ^3.39.0 + react-sortablejs: ^6.1.1 + sortablejs: ^1.15.0 + tailwindcss: ^3.0.24 + typescript: ^4.5.5 + ua-parser-js: ^1.0.2 + uuid: ^8.3.2 + zod: ^3.15.1 + zustand: 4.0.0-rc.1 + dependencies: + '@aws-sdk/client-s3': 3.86.0 + '@codemirror/commands': 0.20.0 + '@codemirror/lang-markdown': 0.20.0 + '@codemirror/language': 0.20.0 + '@codemirror/state': 0.20.0 + '@codemirror/view': 0.20.4 + '@hapi/iron': 6.0.0 + '@headlessui/react': 1.6.1_ef5jwxihqo6n7gxfmzogljlgcm + '@prisma/client': 3.14.0_prisma@3.14.0 + '@trpc/client': 9.23.2_@trpc+server@9.23.2 + '@trpc/next': 9.23.2_ekhln2aut74ytaacni4ejzffly + '@trpc/react': 9.23.2_ztktndqynogm35aelp247cafku + '@trpc/server': 9.23.2 + '@web-std/form-data': 3.0.2 + async-busboy: 1.1.0 + busboy: 1.6.0 + clsx: 1.1.1 + cookie: 0.5.0 + dayjs: 1.11.2 + dotenv: 16.0.0 + fast-deep-equal: 3.1.3 + form-data: 4.0.0 + mailgun.js: 5.2.2 + markdown-it: 13.0.1 + nanoid: 3.3.4 + next: 12.1.6_ef5jwxihqo6n7gxfmzogljlgcm + pica: 9.0.1 + prismjs: 1.28.0 + react: 18.1.0 + react-avatar-editor: 12.0.0_ef5jwxihqo6n7gxfmzogljlgcm + react-dom: 18.1.0_react@18.1.0 + react-hook-form: 7.31.1_react@18.1.0 + react-hot-toast: 2.2.0_ef5jwxihqo6n7gxfmzogljlgcm + react-query: 3.39.0_ef5jwxihqo6n7gxfmzogljlgcm + react-sortablejs: 6.1.1_kjz72dk5lh6hp4ogspefhm7r2u + sortablejs: 1.15.0 + ua-parser-js: 1.0.2 + uuid: 8.3.2 + zod: 3.15.1 + zustand: 4.0.0-rc.1_react@18.1.0 + devDependencies: + '@types/async-busboy': 1.1.1 + '@types/busboy': 1.5.0 + '@types/cookie': 0.5.1 + '@types/markdown-it': 12.2.3 + '@types/node': 17.0.31 + '@types/pica': 9.0.0 + '@types/prismjs': 1.26.0 + '@types/react': 18.0.9 + '@types/react-avatar-editor': 12.0.0 + '@types/react-dom': 18.0.3 + '@types/sortablejs': 1.13.0 + '@types/ua-parser-js': 0.7.36 + '@types/uuid': 8.3.4 + eslint: 8.15.0 + eslint-config-next: 12.1.6_6vdljae35l7howjttefzzsim3e + postcss-import: 14.1.0 + prisma: 3.14.0 + tailwindcss: 3.0.24 + typescript: 4.6.4 packages: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 00000000..379220ea --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +packages: + - web \ No newline at end of file diff --git a/.env.example b/web/.env.example similarity index 100% rename from .env.example rename to web/.env.example diff --git a/.eslintrc.json b/web/.eslintrc.json similarity index 100% rename from .eslintrc.json rename to web/.eslintrc.json diff --git a/next-env.d.ts b/web/next-env.d.ts similarity index 100% rename from next-env.d.ts rename to web/next-env.d.ts diff --git a/next.config.js b/web/next.config.js similarity index 100% rename from next.config.js rename to web/next.config.js diff --git a/web/package.json b/web/package.json new file mode 100644 index 00000000..ea6a64d6 --- /dev/null +++ b/web/package.json @@ -0,0 +1,78 @@ +{ + "name": "web", + "private": true, + "description": "A publishing platform", + "license": "unlicensed", + "sideEffects": false, + "scripts": { + "build": "pnpm db-generate && next build", + "dev": "next", + "db-generate": "prisma generate" + }, + "dependencies": { + "@aws-sdk/client-s3": "^3.81.0", + "@codemirror/commands": "^0.20.0", + "@codemirror/lang-markdown": "^0.20.0", + "@codemirror/language": "^0.20.0", + "@codemirror/state": "^0.20.0", + "@codemirror/view": "^0.20.3", + "@hapi/iron": "^6.0.0", + "@headlessui/react": "^1.6.0", + "@prisma/client": "^3.14.0", + "@trpc/client": "^9.23.2", + "@trpc/next": "^9.23.2", + "@trpc/react": "^9.23.2", + "@trpc/server": "^9.23.2", + "@web-std/form-data": "^3.0.2", + "async-busboy": "^1.1.0", + "busboy": "^1.6.0", + "clsx": "^1.1.1", + "cookie": "^0.5.0", + "dayjs": "^1.11.1", + "dotenv": "^16.0.0", + "fast-deep-equal": "^3.1.3", + "form-data": "^4.0.0", + "mailgun.js": "^5.2.2", + "markdown-it": "^13.0.0", + "nanoid": "^3.3.3", + "next": "^12.1.6", + "pica": "^9.0.1", + "prismjs": "^1.28.0", + "react": "^18.1.0", + "react-avatar-editor": "^12.0.0", + "react-dom": "^18.1.0", + "react-hook-form": "^7.31.1", + "react-hot-toast": "^2.2.0", + "react-query": "^3.39.0", + "react-sortablejs": "^6.1.1", + "sortablejs": "^1.15.0", + "ua-parser-js": "^1.0.2", + "uuid": "^8.3.2", + "zod": "^3.15.1", + "zustand": "4.0.0-rc.1" + }, + "devDependencies": { + "@types/async-busboy": "^1.1.1", + "@types/busboy": "^1.5.0", + "@types/cookie": "^0.5.1", + "@types/markdown-it": "^12.2.3", + "@types/node": "^17.0.31", + "@types/pica": "^9.0.0", + "@types/prismjs": "^1.26.0", + "@types/react": "^18.0.9", + "@types/react-avatar-editor": "^12.0.0", + "@types/react-dom": "^18.0.3", + "@types/sortablejs": "^1.13.0", + "@types/ua-parser-js": "^0.7.36", + "@types/uuid": "^8.3.4", + "eslint": "^8.15.0", + "eslint-config-next": "^12.1.6", + "postcss-import": "^14.1.0", + "prisma": "^3.14.0", + "tailwindcss": "^3.0.24", + "typescript": "^4.5.5" + }, + "engines": { + "node": ">=14" + } +} diff --git a/postcss.config.js b/web/postcss.config.js similarity index 100% rename from postcss.config.js rename to web/postcss.config.js diff --git a/prisma/migrations/20220508145033_init/migration.sql b/web/prisma/migrations/20220508145033_init/migration.sql similarity index 100% rename from prisma/migrations/20220508145033_init/migration.sql rename to web/prisma/migrations/20220508145033_init/migration.sql diff --git a/prisma/migrations/20220511093602_subscribe_feature/migration.sql b/web/prisma/migrations/20220511093602_subscribe_feature/migration.sql similarity index 100% rename from prisma/migrations/20220511093602_subscribe_feature/migration.sql rename to web/prisma/migrations/20220511093602_subscribe_feature/migration.sql diff --git a/prisma/migrations/20220512161018_add_site_navigation/migration.sql b/web/prisma/migrations/20220512161018_add_site_navigation/migration.sql similarity index 100% rename from prisma/migrations/20220512161018_add_site_navigation/migration.sql rename to web/prisma/migrations/20220512161018_add_site_navigation/migration.sql diff --git a/prisma/migrations/20220513133748_auto_excerpt/migration.sql b/web/prisma/migrations/20220513133748_auto_excerpt/migration.sql similarity index 100% rename from prisma/migrations/20220513133748_auto_excerpt/migration.sql rename to web/prisma/migrations/20220513133748_auto_excerpt/migration.sql diff --git a/prisma/migrations/migration_lock.toml b/web/prisma/migrations/migration_lock.toml similarity index 100% rename from prisma/migrations/migration_lock.toml rename to web/prisma/migrations/migration_lock.toml diff --git a/prisma/schema.prisma b/web/prisma/schema.prisma similarity index 100% rename from prisma/schema.prisma rename to web/prisma/schema.prisma diff --git a/src/components/common/LoginModal.tsx b/web/src/components/common/LoginModal.tsx similarity index 100% rename from src/components/common/LoginModal.tsx rename to web/src/components/common/LoginModal.tsx diff --git a/src/components/common/SEOHead.tsx b/web/src/components/common/SEOHead.tsx similarity index 100% rename from src/components/common/SEOHead.tsx rename to web/src/components/common/SEOHead.tsx diff --git a/src/components/common/SubscribeModal.tsx b/web/src/components/common/SubscribeModal.tsx similarity index 100% rename from src/components/common/SubscribeModal.tsx rename to web/src/components/common/SubscribeModal.tsx diff --git a/src/components/dashboard/AvatarForm.tsx b/web/src/components/dashboard/AvatarForm.tsx similarity index 100% rename from src/components/dashboard/AvatarForm.tsx rename to web/src/components/dashboard/AvatarForm.tsx diff --git a/src/components/dashboard/DashboardLayout.tsx b/web/src/components/dashboard/DashboardLayout.tsx similarity index 100% rename from src/components/dashboard/DashboardLayout.tsx rename to web/src/components/dashboard/DashboardLayout.tsx diff --git a/src/components/dashboard/DashboardMain.tsx b/web/src/components/dashboard/DashboardMain.tsx similarity index 100% rename from src/components/dashboard/DashboardMain.tsx rename to web/src/components/dashboard/DashboardMain.tsx diff --git a/src/components/dashboard/DashboardSidebar.tsx b/web/src/components/dashboard/DashboardSidebar.tsx similarity index 100% rename from src/components/dashboard/DashboardSidebar.tsx rename to web/src/components/dashboard/DashboardSidebar.tsx diff --git a/src/components/dashboard/PagesManager.tsx b/web/src/components/dashboard/PagesManager.tsx similarity index 100% rename from src/components/dashboard/PagesManager.tsx rename to web/src/components/dashboard/PagesManager.tsx diff --git a/src/components/dashboard/SettingsLayout.tsx b/web/src/components/dashboard/SettingsLayout.tsx similarity index 100% rename from src/components/dashboard/SettingsLayout.tsx rename to web/src/components/dashboard/SettingsLayout.tsx diff --git a/src/components/dashboard/SiteSwitcher.tsx b/web/src/components/dashboard/SiteSwitcher.tsx similarity index 100% rename from src/components/dashboard/SiteSwitcher.tsx rename to web/src/components/dashboard/SiteSwitcher.tsx diff --git a/src/components/main/MainLayout.tsx b/web/src/components/main/MainLayout.tsx similarity index 100% rename from src/components/main/MainLayout.tsx rename to web/src/components/main/MainLayout.tsx diff --git a/src/components/site/SiteArchives.tsx b/web/src/components/site/SiteArchives.tsx similarity index 100% rename from src/components/site/SiteArchives.tsx rename to web/src/components/site/SiteArchives.tsx diff --git a/src/components/site/SiteHome.tsx b/web/src/components/site/SiteHome.tsx similarity index 100% rename from src/components/site/SiteHome.tsx rename to web/src/components/site/SiteHome.tsx diff --git a/src/components/site/SiteLayout.tsx b/web/src/components/site/SiteLayout.tsx similarity index 100% rename from src/components/site/SiteLayout.tsx rename to web/src/components/site/SiteLayout.tsx diff --git a/src/components/site/SitePage.tsx b/web/src/components/site/SitePage.tsx similarity index 100% rename from src/components/site/SitePage.tsx rename to web/src/components/site/SitePage.tsx diff --git a/src/components/ui/Avatar.tsx b/web/src/components/ui/Avatar.tsx similarity index 100% rename from src/components/ui/Avatar.tsx rename to web/src/components/ui/Avatar.tsx diff --git a/src/components/ui/Badge.tsx b/web/src/components/ui/Badge.tsx similarity index 100% rename from src/components/ui/Badge.tsx rename to web/src/components/ui/Badge.tsx diff --git a/src/components/ui/Button.tsx b/web/src/components/ui/Button.tsx similarity index 100% rename from src/components/ui/Button.tsx rename to web/src/components/ui/Button.tsx diff --git a/src/components/ui/Editor.tsx b/web/src/components/ui/Editor.tsx similarity index 100% rename from src/components/ui/Editor.tsx rename to web/src/components/ui/Editor.tsx diff --git a/src/components/ui/Input.tsx b/web/src/components/ui/Input.tsx similarity index 100% rename from src/components/ui/Input.tsx rename to web/src/components/ui/Input.tsx diff --git a/src/components/ui/Modal.tsx b/web/src/components/ui/Modal.tsx similarity index 100% rename from src/components/ui/Modal.tsx rename to web/src/components/ui/Modal.tsx diff --git a/src/components/ui/Tabs.tsx b/web/src/components/ui/Tabs.tsx similarity index 100% rename from src/components/ui/Tabs.tsx rename to web/src/components/ui/Tabs.tsx diff --git a/src/components/ui/UniLink.tsx b/web/src/components/ui/UniLink.tsx similarity index 100% rename from src/components/ui/UniLink.tsx rename to web/src/components/ui/UniLink.tsx diff --git a/src/css/code.css b/web/src/css/code.css similarity index 100% rename from src/css/code.css rename to web/src/css/code.css diff --git a/src/css/main.css b/web/src/css/main.css similarity index 100% rename from src/css/main.css rename to web/src/css/main.css diff --git a/src/css/prism-dark.css b/web/src/css/prism-dark.css similarity index 100% rename from src/css/prism-dark.css rename to web/src/css/prism-dark.css diff --git a/src/css/prose.css b/web/src/css/prose.css similarity index 100% rename from src/css/prose.css rename to web/src/css/prose.css diff --git a/src/css/tailwind.css b/web/src/css/tailwind.css similarity index 100% rename from src/css/tailwind.css rename to web/src/css/tailwind.css diff --git a/src/css/variables.css b/web/src/css/variables.css similarity index 100% rename from src/css/variables.css rename to web/src/css/variables.css diff --git a/src/lib/auth.client.ts b/web/src/lib/auth.client.ts similarity index 100% rename from src/lib/auth.client.ts rename to web/src/lib/auth.client.ts diff --git a/src/lib/auth.server.ts b/web/src/lib/auth.server.ts similarity index 100% rename from src/lib/auth.server.ts rename to web/src/lib/auth.server.ts diff --git a/src/lib/constants.ts b/web/src/lib/constants.ts similarity index 100% rename from src/lib/constants.ts rename to web/src/lib/constants.ts diff --git a/src/lib/date.ts b/web/src/lib/date.ts similarity index 100% rename from src/lib/date.ts rename to web/src/lib/date.ts diff --git a/src/lib/db.server.ts b/web/src/lib/db.server.ts similarity index 100% rename from src/lib/db.server.ts rename to web/src/lib/db.server.ts diff --git a/src/lib/env.server.ts b/web/src/lib/env.server.ts similarity index 100% rename from src/lib/env.server.ts rename to web/src/lib/env.server.ts diff --git a/src/lib/env.ts b/web/src/lib/env.ts similarity index 100% rename from src/lib/env.ts rename to web/src/lib/env.ts diff --git a/src/lib/gate.server.ts b/web/src/lib/gate.server.ts similarity index 100% rename from src/lib/gate.server.ts rename to web/src/lib/gate.server.ts diff --git a/src/lib/helpers.ts b/web/src/lib/helpers.ts similarity index 100% rename from src/lib/helpers.ts rename to web/src/lib/helpers.ts diff --git a/src/lib/mailgun.server.ts b/web/src/lib/mailgun.server.ts similarity index 100% rename from src/lib/mailgun.server.ts rename to web/src/lib/mailgun.server.ts diff --git a/src/lib/markdown.server.ts b/web/src/lib/markdown.server.ts similarity index 100% rename from src/lib/markdown.server.ts rename to web/src/lib/markdown.server.ts diff --git a/src/lib/page-helpers.ts b/web/src/lib/page-helpers.ts similarity index 100% rename from src/lib/page-helpers.ts rename to web/src/lib/page-helpers.ts diff --git a/src/lib/promise.ts b/web/src/lib/promise.ts similarity index 100% rename from src/lib/promise.ts rename to web/src/lib/promise.ts diff --git a/src/lib/s3.server.ts b/web/src/lib/s3.server.ts similarity index 100% rename from src/lib/s3.server.ts rename to web/src/lib/s3.server.ts diff --git a/src/lib/server-side-props.ts b/web/src/lib/server-side-props.ts similarity index 100% rename from src/lib/server-side-props.ts rename to web/src/lib/server-side-props.ts diff --git a/src/lib/singleton.server.ts b/web/src/lib/singleton.server.ts similarity index 100% rename from src/lib/singleton.server.ts rename to web/src/lib/singleton.server.ts diff --git a/src/lib/store.ts b/web/src/lib/store.ts similarity index 100% rename from src/lib/store.ts rename to web/src/lib/store.ts diff --git a/src/lib/tenant.server.ts b/web/src/lib/tenant.server.ts similarity index 100% rename from src/lib/tenant.server.ts rename to web/src/lib/tenant.server.ts diff --git a/src/lib/trpc.server.ts b/web/src/lib/trpc.server.ts similarity index 100% rename from src/lib/trpc.server.ts rename to web/src/lib/trpc.server.ts diff --git a/src/lib/trpc.ts b/web/src/lib/trpc.ts similarity index 100% rename from src/lib/trpc.ts rename to web/src/lib/trpc.ts diff --git a/src/lib/types.ts b/web/src/lib/types.ts similarity index 100% rename from src/lib/types.ts rename to web/src/lib/types.ts diff --git a/src/lib/upload.client.ts b/web/src/lib/upload.client.ts similarity index 100% rename from src/lib/upload.client.ts rename to web/src/lib/upload.client.ts diff --git a/src/lib/upload.server.ts b/web/src/lib/upload.server.ts similarity index 100% rename from src/lib/upload.server.ts rename to web/src/lib/upload.server.ts diff --git a/src/lib/user-contents.ts b/web/src/lib/user-contents.ts similarity index 100% rename from src/lib/user-contents.ts rename to web/src/lib/user-contents.ts diff --git a/src/lib/utils.ts b/web/src/lib/utils.ts similarity index 100% rename from src/lib/utils.ts rename to web/src/lib/utils.ts diff --git a/src/lib/uuid.ts b/web/src/lib/uuid.ts similarity index 100% rename from src/lib/uuid.ts rename to web/src/lib/uuid.ts diff --git a/src/models/page.model.ts b/web/src/models/page.model.ts similarity index 100% rename from src/models/page.model.ts rename to web/src/models/page.model.ts diff --git a/src/models/site.model.ts b/web/src/models/site.model.ts similarity index 100% rename from src/models/site.model.ts rename to web/src/models/site.model.ts diff --git a/src/models/user.model.ts b/web/src/models/user.model.ts similarity index 100% rename from src/models/user.model.ts rename to web/src/models/user.model.ts diff --git a/src/pages/_app.tsx b/web/src/pages/_app.tsx similarity index 100% rename from src/pages/_app.tsx rename to web/src/pages/_app.tsx diff --git a/src/pages/_middleware.ts b/web/src/pages/_middleware.ts similarity index 100% rename from src/pages/_middleware.ts rename to web/src/pages/_middleware.ts diff --git a/src/pages/_site/[site]/[page].tsx b/web/src/pages/_site/[site]/[page].tsx similarity index 100% rename from src/pages/_site/[site]/[page].tsx rename to web/src/pages/_site/[site]/[page].tsx diff --git a/src/pages/_site/[site]/archives.tsx b/web/src/pages/_site/[site]/archives.tsx similarity index 100% rename from src/pages/_site/[site]/archives.tsx rename to web/src/pages/_site/[site]/archives.tsx diff --git a/src/pages/_site/[site]/index.tsx b/web/src/pages/_site/[site]/index.tsx similarity index 100% rename from src/pages/_site/[site]/index.tsx rename to web/src/pages/_site/[site]/index.tsx diff --git a/src/pages/api/login-complete.ts b/web/src/pages/api/login-complete.ts similarity index 100% rename from src/pages/api/login-complete.ts rename to web/src/pages/api/login-complete.ts diff --git a/src/pages/api/login.ts b/web/src/pages/api/login.ts similarity index 100% rename from src/pages/api/login.ts rename to web/src/pages/api/login.ts diff --git a/src/pages/api/logout.ts b/web/src/pages/api/logout.ts similarity index 100% rename from src/pages/api/logout.ts rename to web/src/pages/api/logout.ts diff --git a/src/pages/api/save-avatar.ts b/web/src/pages/api/save-avatar.ts similarity index 100% rename from src/pages/api/save-avatar.ts rename to web/src/pages/api/save-avatar.ts diff --git a/src/pages/api/trpc/[trpc].ts b/web/src/pages/api/trpc/[trpc].ts similarity index 100% rename from src/pages/api/trpc/[trpc].ts rename to web/src/pages/api/trpc/[trpc].ts diff --git a/src/pages/api/unsubscribe.ts b/web/src/pages/api/unsubscribe.ts similarity index 100% rename from src/pages/api/unsubscribe.ts rename to web/src/pages/api/unsubscribe.ts diff --git a/src/pages/api/upload-image.ts b/web/src/pages/api/upload-image.ts similarity index 100% rename from src/pages/api/upload-image.ts rename to web/src/pages/api/upload-image.ts diff --git a/src/pages/dashboard/[subdomain]/account/profile.tsx b/web/src/pages/dashboard/[subdomain]/account/profile.tsx similarity index 100% rename from src/pages/dashboard/[subdomain]/account/profile.tsx rename to web/src/pages/dashboard/[subdomain]/account/profile.tsx diff --git a/src/pages/dashboard/[subdomain]/editor.tsx b/web/src/pages/dashboard/[subdomain]/editor.tsx similarity index 100% rename from src/pages/dashboard/[subdomain]/editor.tsx rename to web/src/pages/dashboard/[subdomain]/editor.tsx diff --git a/src/pages/dashboard/[subdomain]/index.tsx b/web/src/pages/dashboard/[subdomain]/index.tsx similarity index 100% rename from src/pages/dashboard/[subdomain]/index.tsx rename to web/src/pages/dashboard/[subdomain]/index.tsx diff --git a/src/pages/dashboard/[subdomain]/pages.tsx b/web/src/pages/dashboard/[subdomain]/pages.tsx similarity index 100% rename from src/pages/dashboard/[subdomain]/pages.tsx rename to web/src/pages/dashboard/[subdomain]/pages.tsx diff --git a/src/pages/dashboard/[subdomain]/posts.tsx b/web/src/pages/dashboard/[subdomain]/posts.tsx similarity index 100% rename from src/pages/dashboard/[subdomain]/posts.tsx rename to web/src/pages/dashboard/[subdomain]/posts.tsx diff --git a/src/pages/dashboard/[subdomain]/settings/domains.tsx b/web/src/pages/dashboard/[subdomain]/settings/domains.tsx similarity index 100% rename from src/pages/dashboard/[subdomain]/settings/domains.tsx rename to web/src/pages/dashboard/[subdomain]/settings/domains.tsx diff --git a/src/pages/dashboard/[subdomain]/settings/general.tsx b/web/src/pages/dashboard/[subdomain]/settings/general.tsx similarity index 100% rename from src/pages/dashboard/[subdomain]/settings/general.tsx rename to web/src/pages/dashboard/[subdomain]/settings/general.tsx diff --git a/src/pages/dashboard/[subdomain]/settings/navigation.tsx b/web/src/pages/dashboard/[subdomain]/settings/navigation.tsx similarity index 100% rename from src/pages/dashboard/[subdomain]/settings/navigation.tsx rename to web/src/pages/dashboard/[subdomain]/settings/navigation.tsx diff --git a/src/pages/dashboard/_middleware.ts b/web/src/pages/dashboard/_middleware.ts similarity index 100% rename from src/pages/dashboard/_middleware.ts rename to web/src/pages/dashboard/_middleware.ts diff --git a/src/pages/dashboard/index.tsx b/web/src/pages/dashboard/index.tsx similarity index 100% rename from src/pages/dashboard/index.tsx rename to web/src/pages/dashboard/index.tsx diff --git a/src/pages/dashboard/new-site.tsx b/web/src/pages/dashboard/new-site.tsx similarity index 100% rename from src/pages/dashboard/new-site.tsx rename to web/src/pages/dashboard/new-site.tsx diff --git a/src/pages/index.tsx b/web/src/pages/index.tsx similarity index 100% rename from src/pages/index.tsx rename to web/src/pages/index.tsx diff --git a/src/router/auth.ts b/web/src/router/auth.ts similarity index 100% rename from src/router/auth.ts rename to web/src/router/auth.ts diff --git a/src/router/dashboard.ts b/web/src/router/dashboard.ts similarity index 100% rename from src/router/dashboard.ts rename to web/src/router/dashboard.ts diff --git a/src/router/index.ts b/web/src/router/index.ts similarity index 100% rename from src/router/index.ts rename to web/src/router/index.ts diff --git a/src/router/site.ts b/web/src/router/site.ts similarity index 100% rename from src/router/site.ts rename to web/src/router/site.ts diff --git a/src/router/user.ts b/web/src/router/user.ts similarity index 100% rename from src/router/user.ts rename to web/src/router/user.ts diff --git a/tailwind.config.js b/web/tailwind.config.js similarity index 100% rename from tailwind.config.js rename to web/tailwind.config.js diff --git a/tsconfig.json b/web/tsconfig.json similarity index 100% rename from tsconfig.json rename to web/tsconfig.json diff --git a/types.d.ts b/web/types.d.ts similarity index 100% rename from types.d.ts rename to web/types.d.ts