-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
110 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
dist/ | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
module.exports = { | ||
semi: false, | ||
trailingComma: "all", | ||
trailingComma: 'all', | ||
singleQuote: true, | ||
printWidth: 100, | ||
tabWidth: 2 | ||
}; | ||
tabWidth: 2, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<!-- | ||
* CoreUI Free React.js Admin Template | ||
* @version v5.0.0-rc.0 | ||
* @link https://coreui.io/product/free-react-admin-template/ | ||
* Copyright (c) 2024 creativeLabs Łukasz Holeczek | ||
* Licensed under MIT (https://github.com/coreui/coreui-free-react-admin-template/blob/main/LICENSE) | ||
--> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<meta name="description" content="CoreUI for React - Open Source Bootstrap Admin Template"> | ||
<meta name="author" content="Łukasz Holeczek"> | ||
<meta name="keyword" content="Bootstrap,Admin,Template,Open,Source,CSS,SCSS,HTML,RWD,Dashboard,React"> | ||
<title>CoreUI Free React.js Admin Template</title> | ||
<link rel="manifest" href="/manifest.json"> | ||
<link rel="shortcut icon" href="/favicon.ico"> | ||
</head> | ||
<body> | ||
<noscript> | ||
You need to enable JavaScript to run this app | ||
</noscript> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.js"></script> | ||
<!-- built files will be auto injected --> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
import 'react-app-polyfill/stable' | ||
import 'core-js' | ||
import React from 'react' | ||
import { createRoot } from 'react-dom/client' | ||
import App from './App' | ||
import reportWebVitals from './reportWebVitals' | ||
import { Provider } from 'react-redux' | ||
import 'core-js' | ||
|
||
import App from './App' | ||
import store from './store' | ||
|
||
createRoot(document.getElementById('root')).render( | ||
<Provider store={store}> | ||
<App /> | ||
</Provider>, | ||
) | ||
|
||
// If you want to start measuring performance in your app, pass a function | ||
// to log results (for example: reportWebVitals(console.log)) | ||
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals | ||
reportWebVitals() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { defineConfig, loadEnv } from 'vite' | ||
import react from '@vitejs/plugin-react' | ||
import path from 'node:path' | ||
import autoprefixer from 'autoprefixer' | ||
|
||
export default defineConfig(({ mode }) => { | ||
// Load .env | ||
const env = loadEnv(mode, process.cwd(), '') | ||
process.env = { ...process.env, ...env } | ||
|
||
return { | ||
base: './', | ||
build: { | ||
outDir: 'build', | ||
}, | ||
css: { | ||
postcss: { | ||
plugins: [ | ||
autoprefixer({}), // add options if needed | ||
], | ||
}, | ||
}, | ||
define: { | ||
// vitejs does not support process.env so we have to redefine it | ||
'process.env': process.env, | ||
}, | ||
esbuild: { | ||
loader: 'jsx', | ||
include: /src\/.*\.jsx?$/, | ||
exclude: [], | ||
}, | ||
optimizeDeps: { | ||
force: true, | ||
esbuildOptions: { | ||
loader: { | ||
'.js': 'jsx', | ||
}, | ||
}, | ||
}, | ||
plugins: [react()], | ||
resolve: { | ||
alias: [ | ||
{ | ||
find: 'src/', | ||
replacement: `${path.resolve(__dirname, 'src')}/`, | ||
}, | ||
], | ||
extensions: ['.mjs', '.js', '.ts', '.jsx', '.tsx', '.json', '.vue', '.scss'], | ||
}, | ||
server: { | ||
port: 3000, | ||
proxy: { | ||
// https://vitejs.dev/config/server-options.html | ||
}, | ||
}, | ||
} | ||
}) |