Skip to content

Commit

Permalink
feat(style): add UI styles and integrate them into the main application
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianjnuwu committed Dec 24, 2024
1 parent 31fd2cc commit 21e16e7
Show file tree
Hide file tree
Showing 20 changed files with 399 additions and 421 deletions.
30 changes: 15 additions & 15 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "usage",
"corejs": 3,
"targets": "> 0.25%, not dead"
}
]
],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-syntax-dynamic-import",
["babel-plugin-transform-remove-console", { "exclude": ["error", "warn"] }]
]
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "usage",
"corejs": 3,
"targets": "> 0.25%, not dead"
}
]
],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-syntax-dynamic-import",
["babel-plugin-transform-remove-console", { "exclude": ["error", "warn"] }]
]
}
26 changes: 13 additions & 13 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"assignees": ["sebastianjnuwu"],
"schedule": ["on the last day of the month"],
"dependencyDashboard": false,
"fetchReleaseNotes": true,
"packageRules": [
{
"matchPackagePatterns": ["*"],
"labels": ["dependencies"],
"automerge": true
}
]
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"assignees": ["sebastianjnuwu"],
"schedule": ["on the last day of the month"],
"dependencyDashboard": false,
"fetchReleaseNotes": true,
"packageRules": [
{
"matchPackagePatterns": ["*"],
"labels": ["dependencies"],
"automerge": true
}
]
}
18 changes: 9 additions & 9 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"recommendations": [
"bracketpaircolordlw.bracket-pair-color-dlw",
"dracula-theme.theme-dracula",
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint",
"github.vscode-github-actions",
"pkief.material-icon-theme",
"biomejs.biome"
]
"recommendations": [
"bracketpaircolordlw.bracket-pair-color-dlw",
"dracula-theme.theme-dracula",
"editorconfig.editorconfig",
"dbaeumer.vscode-eslint",
"github.vscode-github-actions",
"pkief.material-icon-theme",
"biomejs.biome"
]
}
20 changes: 10 additions & 10 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"editor.tabSize": 4,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
},
"java.configuration.updateBuildConfiguration": "disabled"
"editor.tabSize": 4,
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
},
"java.configuration.updateBuildConfiguration": "disabled"
}
4 changes: 2 additions & 2 deletions .vscode/workspace.code-workspace
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"folders": [],
"settings": {}
"folders": [],
"settings": {}
}
48 changes: 19 additions & 29 deletions biome.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,21 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": false,
"complexity": {
"noStaticOnlyClass": "error",
"noUselessSwitchCase": "error",
"useFlatMap": "error"
},
"style": {
"noNegationElse": "off",
"useForOf": "error",
"useNodejsImportProtocol": "error",
"useNumberNamespace": "error"
},
"suspicious": {
"noDoubleEquals": "error",
"noThenProperty": "error",
"useIsArray": "error"
}
}
},
"files": {
"ignore": ["node_modules", "build", "android"]
}
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"organizeImports": {
"enabled": true
},
"files": {
"ignore": ["node_modules", "build", "dist", "android", "ios", "*.log"]
}
}
24 changes: 12 additions & 12 deletions capacitor.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { CapacitorConfig } from "@capacitor/cli";
import type { CapacitorConfig } from "@capacitor/cli";

// https://capacitorjs.com/docs/config
const config: CapacitorConfig = {
appId: "uwu.cookie.app",
appName: "Cookie",
webDir: "build",
plugins: {
AdMob: {
androidAppId: "ca-app-pub-6690516270288705~6535066913",
maxAdContentRating: "G",
tagForChildDirectedTreatment: false,
tagForUnderAgeOfConsent: false,
},
},
appId: "uwu.cookie.app",
appName: "Cookie",
webDir: "build",
plugins: {
AdMob: {
androidAppId: "ca-app-pub-6690516270288705~6535066913",
maxAdContentRating: "G",
tagForChildDirectedTreatment: false,
tagForUnderAgeOfConsent: false,
},
},
};

export default config;
103 changes: 53 additions & 50 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,55 @@
{
"name": "cookie-app",
"private": true,
"version": "1.0.0",
"type": "module",
"description": "Cookie...",
"author": "Sebastian Jn <[email protected]>",
"scripts": {
"test": "echo \"Test: yes that was a test!\" && exit 1",
"start": "vite",
"build": "vite build",
"lint": "npx @biomejs/biome lint --write",
"format": "npx @biomejs/biome format --write",
"preview": "vite preview",
"copy": "npx cap copy",
"update": "npx cap update",
"sync": "npx cap sync",
"prepare": "husky",
"pre-commit": "cz"
},
"hooks": {
"prepare-commit-msg": "npx --no -- commitlint --edit $1; exec < /dev/tty && npx cz --hook || true"
},
"dependencies": {
"@capacitor-community/admob": "^6.1.0",
"@capacitor/android": "^6.2.0",
"@capacitor/core": "^6.2.0",
"@capacitor/push-notifications": "^6.0.3",
"@capacitor/splash-screen": "^6.0.3"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@biomejs/biome": "1.9.4",
"@capacitor/cli": "^6.2.0",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"core-js": "^3.39.0",
"cz-conventional-changelog": "^3.3.0",
"husky": "^9.1.7",
"typescript": "^5.7.2",
"vite": "^5.4.2",
"vite-plugin-babel": "^1.3.0"
},
"engines": {
"npm": ">=8",
"node": ">=18"
}
"name": "cookie-app",
"private": true,
"version": "1.0.0",
"type": "module",
"description": "Cookie...",
"author": "Sebastian Jn <[email protected]>",
"scripts": {
"test": "echo \"Test: yes that was a test!\" && exit 1",
"start": "vite",
"build": "vite build",
"preview": "vite preview",
"lint": "npx @biomejs/biome lint --write",
"format": "npx @biomejs/biome format --write",
"copy": "npx cap copy",
"update": "npx cap update",
"sync": "npx cap sync",
"prepare": "husky",
"pre-commit": "cz"
},
"hooks": {
"prepare-commit-msg": "npx --no -- commitlint --edit $1; exec < /dev/tty && npx cz --hook || true"
},
"dependencies": {
"@capacitor-community/admob": "^6.1.0",
"@capacitor/android": "^6.2.0",
"@capacitor/core": "^6.2.0",
"@capacitor/push-notifications": "^6.0.3",
"@capacitor/splash-screen": "^6.0.3",
"jquery": "^3.7.1"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.25.9",
"@babel/preset-env": "^7.26.0",
"@biomejs/biome": "1.9.4",
"@capacitor/cli": "^6.2.0",
"@commitlint/cli": "^19.6.1",
"@commitlint/config-conventional": "^19.6.0",
"@types/jquery": "^3.5.32",
"babel-plugin-transform-remove-console": "^6.9.4",
"core-js": "^3.39.0",
"cz-conventional-changelog": "^3.3.0",
"husky": "^9.1.7",
"sass-embedded": "^1.83.0",
"typescript": "^5.7.2",
"vite": "^5.4.2",
"vite-plugin-babel": "^1.3.0"
},
"engines": {
"npm": ">=8",
"node": ">=18"
}
}
34 changes: 17 additions & 17 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"compilerOptions": {
"target": "ESNext",
"outDir": "build",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Node",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true
}
"compilerOptions": {
"target": "ESNext",
"outDir": "build",
"useDefineForClassFields": true,
"module": "ESNext",
"lib": ["ESNext", "DOM"],
"moduleResolution": "Node",
"strict": true,
"resolveJsonModule": true,
"isolatedModules": true,
"esModuleInterop": true,
"noEmit": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"skipLibCheck": true
}
}
29 changes: 16 additions & 13 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@ import { defineConfig } from "vite";
import babel from "vite-plugin-babel";

export default defineConfig({
root: "./www",
build: {
outDir: "../build",
minify: false,
emptyOutDir: false,
},
plugins: [
babel({
babelConfig: {
presets: ["@babel/preset-env"],
},
}),
],
root: "./www",
build: {
outDir: "../build",
minify: false,
emptyOutDir: false,
},
plugins: [
babel({
babelConfig: {
presets: ["@babel/preset-env"],
},
}),
],
server: {
port: 8080,
},
});
Loading

0 comments on commit 21e16e7

Please sign in to comment.