Skip to content

Commit

Permalink
Merge pull request #19 from sensasi-delight:4.x-dev
Browse files Browse the repository at this point in the history
Refactor file imports, update dependencies, and add new features
  • Loading branch information
sensasi-delight authored Oct 9, 2024
2 parents ab55fa4 + d31ab7a commit 72811a4
Show file tree
Hide file tree
Showing 82 changed files with 8,724 additions and 20,458 deletions.
15 changes: 0 additions & 15 deletions .env

This file was deleted.

44 changes: 23 additions & 21 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

# production
/build
node_modules
dist
dist-ssr
*.local

# misc
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

npm-debug.log*
yarn-debug.log*
yarn-error.log*
firebase-debug.log
.firebase
# Sentry Config File
.env.sentry-build-plugin
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"arrowParens": "avoid",
"bracketSameLine": true,
"semi": false,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "all"
}
38 changes: 0 additions & 38 deletions dev_assets/firebase-messaging-sw.js

This file was deleted.

37 changes: 37 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [
js.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
...tseslint.configs.stylisticTypeChecked,
eslintPluginPrettierRecommended,
],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
project: './tsconfig.app.json',
},
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
)
2 changes: 1 addition & 1 deletion firebase.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"hosting": {
"public": "build",
"public": "dist",
"ignore": [
"firebase.json",
"**/.*",
Expand Down
30 changes: 30 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!doctype html>
<html lang="id">

<head>
<meta charset="utf-8" />
<link rel="icon" href="/images/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#d50000" />
<meta name="description" content="Simulasi menghitung potongan pada proses grading kelapa sawit" />
<link rel="apple-touch-icon" href="/images/maskable192.png" />
<link rel="manifest" href="/manifest.webmanifest" />

<title>Simulasi Grading Sawit</title>

<meta property="og:title" content="Simulasi Grading Sawit">
<meta property="og:type" content="website" />
<meta property="og:image" content="/images/thumbnail.png">
<meta property="og:url" content="/">
<meta name="twitter:card" content="/images/thumbnail.png">

<meta property="og:description" content="Simulasi menghitung potongan pada proses grading kelapa sawit">
<meta property="og:site_name" content="Simulasi Grading Sawit">
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
Loading

0 comments on commit 72811a4

Please sign in to comment.