diff --git a/apps/d.d0rich.me/.env.example b/apps/d.d0rich.me/.env.example new file mode 100644 index 00000000..45e3d24c --- /dev/null +++ b/apps/d.d0rich.me/.env.example @@ -0,0 +1 @@ +VITE_TON_NETWORK=TESTNET diff --git a/apps/d.d0rich.me/env.d.ts b/apps/d.d0rich.me/env.d.ts index 11f02fe2..2c616017 100644 --- a/apps/d.d0rich.me/env.d.ts +++ b/apps/d.d0rich.me/env.d.ts @@ -1 +1,9 @@ -/// +/// interface ImportMetaEnv { + +interface ImportMetaEnv { + readonly VITE_APP_TITLE: 'TESTNET' | 'MAINNET' +} + +interface ImportMeta { + readonly env: ImportMetaEnv +} diff --git a/apps/d.d0rich.me/index.html b/apps/d.d0rich.me/index.html index 62a22ed0..1e43e4c8 100644 --- a/apps/d.d0rich.me/index.html +++ b/apps/d.d0rich.me/index.html @@ -2,10 +2,26 @@ + + + + + + - - Vite App + + + + + + D - Blogs on TON Blockchain
diff --git a/apps/d.d0rich.me/package.json b/apps/d.d0rich.me/package.json index b8b898cc..3f276d35 100644 --- a/apps/d.d0rich.me/package.json +++ b/apps/d.d0rich.me/package.json @@ -12,19 +12,24 @@ }, "dependencies": { "@d0rich/contracts": "*", + "@d0rich/esprit-design": "*", "pinia": "^2.1.7", "vue": "^3.3.4", "vue-router": "^4.2.5" }, "devDependencies": { + "@tailwindcss/typography": "^0.5.10", "@tsconfig/node18": "^18.2.2", "@types/jsdom": "^21.1.3", "@types/node": "^18.18.5", "@vitejs/plugin-vue": "^4.4.0", "@vue/test-utils": "^2.4.1", "@vue/tsconfig": "^0.4.0", + "autoprefixer": "^10.4.16", "jsdom": "^22.1.0", "npm-run-all2": "^6.1.1", + "postcss": "^8.4.31", + "tailwindcss": "^3.3.5", "typescript": "~5.2.0", "vite": "^4.4.11", "vitest": "^0.34.6", diff --git a/apps/d.d0rich.me/postcss.config.js b/apps/d.d0rich.me/postcss.config.js new file mode 100644 index 00000000..85f717cc --- /dev/null +++ b/apps/d.d0rich.me/postcss.config.js @@ -0,0 +1,6 @@ +module.exports = { + plugins: { + tailwindcss: {}, + autoprefixer: {} + } +} diff --git a/apps/d.d0rich.me/src/assets/tailwind.css b/apps/d.d0rich.me/src/assets/tailwind.css new file mode 100644 index 00000000..b5c61c95 --- /dev/null +++ b/apps/d.d0rich.me/src/assets/tailwind.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/apps/d.d0rich.me/src/main.ts b/apps/d.d0rich.me/src/main.ts index 5dcad83c..692a9599 100644 --- a/apps/d.d0rich.me/src/main.ts +++ b/apps/d.d0rich.me/src/main.ts @@ -1,3 +1,4 @@ +import './assets/tailwind.css' import './assets/main.css' import { createApp } from 'vue' diff --git a/apps/d.d0rich.me/tailwind.config.js b/apps/d.d0rich.me/tailwind.config.js new file mode 100644 index 00000000..f541c388 --- /dev/null +++ b/apps/d.d0rich.me/tailwind.config.js @@ -0,0 +1,6 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + presets: [require('@d0rich/esprit-design/tailwind.config')], + content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'], + plugins: [require('@tailwindcss/typography')] +} diff --git a/package-lock.json b/package-lock.json index 3bba52a9..f069fc97 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,19 +37,24 @@ "version": "0.0.0", "dependencies": { "@d0rich/contracts": "*", + "@d0rich/esprit-design": "*", "pinia": "^2.1.7", "vue": "^3.3.4", "vue-router": "^4.2.5" }, "devDependencies": { + "@tailwindcss/typography": "^0.5.10", "@tsconfig/node18": "^18.2.2", "@types/jsdom": "^21.1.3", "@types/node": "^18.18.5", "@vitejs/plugin-vue": "^4.4.0", "@vue/test-utils": "^2.4.1", "@vue/tsconfig": "^0.4.0", + "autoprefixer": "^10.4.16", "jsdom": "^22.1.0", "npm-run-all2": "^6.1.1", + "postcss": "^8.4.31", + "tailwindcss": "^3.3.5", "typescript": "~5.2.0", "vite": "^4.4.11", "vitest": "^0.34.6", @@ -35123,15 +35128,20 @@ "version": "file:apps/d.d0rich.me", "requires": { "@d0rich/contracts": "*", + "@d0rich/esprit-design": "*", + "@tailwindcss/typography": "*", "@tsconfig/node18": "^18.2.2", "@types/jsdom": "^21.1.3", "@types/node": "^18.18.5", "@vitejs/plugin-vue": "^4.4.0", "@vue/test-utils": "^2.4.1", "@vue/tsconfig": "^0.4.0", + "autoprefixer": "^10.4.16", "jsdom": "^22.1.0", "npm-run-all2": "^6.1.1", "pinia": "^2.1.7", + "postcss": "^8.4.31", + "tailwindcss": "^3.3.5", "typescript": "~5.2.0", "vite": "^4.4.11", "vitest": "^0.34.6", diff --git a/package.json b/package.json index b97f5aec..904a2607 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "generate": "turbo run generate", "build": "turbo run build", "dev:d0rich.me": "turbo run d0rich.me#dev", + "dev:d.d0rich.me": "turbo run d.d0rich.me#dev", "dev:design.d0rich.me": "turbo run design.d0rich.me#dev", "dev:d0xigen.d0rich.me": "turbo run d0xigen.d0rich.me#dev", "lint:js": "eslint --ext \".js,.ts,.vue\" --ignore-path .gitignore .", diff --git a/turbo.json b/turbo.json index 5cc9cdbf..3a6263a6 100644 --- a/turbo.json +++ b/turbo.json @@ -33,6 +33,9 @@ "persistent": true }, "d0rich.me#dev": {}, + "d.d0rich.me#dev": { + "dependsOn": ["@d0rich/contracts#build", "@d0rich/esprit-design#build"] + }, "d0xigen.d0rich.me#dev": {}, "design.d0rich.me#dev": {}, "nuxt-content-mermaid-playground#dev": {}