Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "1.0.0",
"description": "Minimal project to generate a simple website.",
"main": "index.js",
"type": "module",
"scripts": {
"dev": "cross-env NODE_ENV=development node_modules/.bin/webpack --progress",
"watch": "cross-env NODE_ENV=development webpack --watch --mode development --progress",
"prod": "cross-env NODE_ENV=production node_modules/.bin/webpack --mode=production --progress"
"preview": "php -S 0.0.0.0:8080 -t public",
"build": "vite build --watch"
},
"repository": {
"type": "git",
Expand All @@ -23,41 +23,43 @@
},
"homepage": "https://github.com/dotkernel/light#readme",
"devDependencies": {
"@rollup/plugin-alias": "^5.1.1",
"autoprefixer": "^10.4.20",
"babel-core": "^7.0.0-bridge.0",
"babel-loader": "^9.1.3",
"babel-preset-env": "^1.7.0",
"bootstrap": "^5.3.3",
"bootstrap-fileinput": "^5.5.4",
"bootstrap-sass": "^3.4.3",
"clean-webpack-plugin": "^4.0.0",
"copy-webpack-plugin": "^12.0.2",
"cross-env": "^7.0.3",
"css-loader": "^7.1.2",
"file-loader": "^6.2.0",
"imports-loader": "^5.0.0",
"jquery": "^3.7.1",
"jquery-mousewheel": "^3.1.13",
"mini-css-extract-plugin": "^2.9.1",
"postcss-loader": "^8.1.1",
"pre-commit": "^1.2.2",
"resolve-url-loader": "^5.0.0",
"sass": "^1.86.3",
"sass-loader": "^16.0.1",
"style-loader": "^4.0.0",
"terser-webpack-plugin": "^5.3.10",
"tippy.js": "^6.3.7",
"toastr": "^2.1.4",
"ts-loader": "^9.5.1",
"typescript": "^5.5.4",
"webpack": "^5.94.0",
"webpack-cli": "^5.1.4"
"vite": "^6.3.1",
"vite-plugin-static-copy": "^2.3.1"
},
"dependencies": {
"@babel/core": "^7.26.9",
"@popperjs/core": "^2.11.8",
"bootstrap-slider": "^11.0.2",
"lightningcss": "^1.29.3",
"npm": "^10.8.3",
"pdfjs-dist": "^4.6.82",
"pdfobject": "^2.3.0",
"sass": "^1.77.8"
"npm-check": "^6.0.1",
"popper.js": "^1.16.1",
"vite-jsconfig-paths": "^2.0.1",
"vite-plugin-bundle-css": "^0.1.1",
"vite-plugin-commonjs": "^0.10.4",
"vite-plugin-css-injected-by-js": "^3.5.2",
"vite-plugin-minify": "^2.1.0"
}
}
Binary file added public/.DS_Store
Binary file not shown.
10 changes: 5 additions & 5 deletions public/css/app.css

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
Binary file added public/images/app/.DS_Store
Binary file not shown.
Binary file added public/images/app/icon/arrow_center.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/app/icon/close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/app/icon/dropdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/app/icon/open.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/app/icon/user.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/app/icon/white-plus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions public/images/app/icon/white-plus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/app/loading/rolling.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/images/app/loading/rolling.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 9 additions & 29 deletions public/js/app.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/App/assets/js/components/_main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import $ from 'jquery';

$(document).ready(function () {
$('[data-toggle="tooltip"]').tooltip();
});
15 changes: 6 additions & 9 deletions src/App/assets/js/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
// Load jQuery and Bootstrap
try {
window.$ = window.jQuery = require('jquery');
require('bootstrap');
require('bootstrap-fileinput');
require('bootstrap-slider');
require('jquery-mousewheel');
// Import our custom CSS
import '../scss/index.scss'
import './components/_main'
import 'bootstrap/dist/js/bootstrap.bundle';
window.$ = window.jQuery = require('jquery');

window.toastr = require('toastr');
} catch (e) {
}
// Import all of Bootstrap's JS
9 changes: 4 additions & 5 deletions src/App/assets/scss/index.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// Bootstrap
$navbar-height: 60px;
$grid-float-breakpoint: 767px;
$icon-font-path: "~bootstrap-sass/assets/fonts/bootstrap/";
@import "~bootstrap/scss/bootstrap";
@import "~toastr/toastr";
@import "~bootstrap-slider/src/sass/bootstrap-slider";

$icon-font-path: "../../../../node_modules/bootstrap-sass/assets/fonts/bootstrap/";
@import "../../../../node_modules/bootstrap/scss/bootstrap";
@import "../../../../node_modules/toastr/toastr";
@import "../../../../node_modules/bootstrap-slider/src/sass/bootstrap-slider";
// Base
@import "components/general";
@import "components/pages";
11 changes: 11 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@*": ["./src/*"]
}
},
"installConfig": {
"hoistingLimits": "none"
}
}
51 changes: 51 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
import {defineConfig} from 'vite';
import { ViteMinifyPlugin } from 'vite-plugin-minify'
import { viteStaticCopy } from 'vite-plugin-static-copy'
import alias from '@rollup/plugin-alias'
import path from 'path'
import commonjs from "vite-plugin-commonjs";
export default defineConfig({
plugins: [
alias(), commonjs(),
viteStaticCopy({
targets: [
{
src: 'App/assets/fonts/*',
dest: 'fonts'
},
{
src: 'App/assets/images/*',
dest: 'images/app/'
},
],
}),
ViteMinifyPlugin({}),
],
emptyOutDir: true,
root: path.resolve(__dirname, 'src'), //'src', // Set the root directory for Vite
build: {
commonjsOptions: { transformMixedEsModules: true }, // Change
outDir: '../public', // Output directory for compiled assets
rollupOptions: {
input: {
main: '/App/assets/js/index.js', // Main JavaScript entry point
style: '/App/assets/scss/index.scss', // Main CSS entry point
},
output: {
manualChunks: undefined,
entryFileNames: "js/app.js",
assetFileNames: "css/app.css",
},
},
},
optimizeDeps: { force: true, },
resolve: {
alias: [
{
// this is required for the SCSS modules
find: /^~(.*)$/,
replacement: '$1',
}
],
},
});
Loading
Loading