mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Make code default for React things.
This commit is contained in:
parent
1c2206cb9f
commit
577f024310
10
package.json
10
package.json
@ -12,21 +12,17 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/preset-react": "^7.0.0",
|
"@babel/preset-react": "^7.0.0",
|
||||||
"axios": "^0.18",
|
"axios": "^0.18",
|
||||||
"babel-preset-react": "^6.24.1",
|
"babel-preset-react": "^6.23.0",
|
||||||
"bootstrap": "^4.0.0",
|
"bootstrap": "^4.0.0",
|
||||||
"cross-env": "^5.1",
|
"cross-env": "^5.1",
|
||||||
"jquery": "^3.2",
|
"jquery": "^3.2",
|
||||||
"laravel-mix": "^4.0.7",
|
"laravel-mix": "^4.0.7",
|
||||||
"lodash": "^4.17.5",
|
"lodash": "^4.17.5",
|
||||||
"popper.js": "^1.12",
|
"popper.js": "^1.12",
|
||||||
"react": "^16.7.0",
|
"react": "^16.2.0",
|
||||||
"react-dom": "^16.7.0",
|
"react-dom": "^16.2.0",
|
||||||
"resolve-url-loader": "^2.3.1",
|
"resolve-url-loader": "^2.3.1",
|
||||||
"sass": "^1.15.2",
|
"sass": "^1.15.2",
|
||||||
"sass-loader": "^7.1.0"
|
"sass-loader": "^7.1.0"
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"tabler-react": "^1.27.0",
|
|
||||||
"font-awesome": "4.7.0"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
34
public/v2/assets/js/dashboard.js
vendored
34
public/v2/assets/js/dashboard.js
vendored
@ -1,24 +1,24 @@
|
|||||||
require.config({
|
require.config({
|
||||||
shim: {
|
shim: {
|
||||||
'bootstrap': ['jquery'],
|
'bootstrap': ['jquery'],
|
||||||
'sparkline': ['jquery'],
|
// 'sparkline': ['jquery'],
|
||||||
'tablesorter': ['jquery'],
|
// 'tablesorter': ['jquery'],
|
||||||
'vector-map': ['jquery'],
|
// 'vector-map': ['jquery'],
|
||||||
'vector-map-de': ['vector-map', 'jquery'],
|
// 'vector-map-de': ['vector-map', 'jquery'],
|
||||||
'vector-map-world': ['vector-map', 'jquery'],
|
// 'vector-map-world': ['vector-map', 'jquery'],
|
||||||
'core': ['bootstrap', 'jquery'],
|
'core': ['bootstrap', 'jquery'],
|
||||||
},
|
},
|
||||||
paths: {
|
paths: {
|
||||||
'core': 'v2/assets/js/core',
|
'core': 'v2/assets/js/core',
|
||||||
'jquery': 'v2/assets/js/vendors/jquery-3.2.1.min',
|
'jquery': 'v2/assets/js/vendors/jquery-3.2.1.min',
|
||||||
'bootstrap': 'v2/assets/js/vendors/bootstrap.bundle.min',
|
'bootstrap': 'v2/assets/js/vendors/bootstrap.bundle.min',
|
||||||
'sparkline': 'v2/assets/js/vendors/jquery.sparkline.min',
|
// 'sparkline': 'v2/assets/js/vendors/jquery.sparkline.min',
|
||||||
'selectize': 'v2/assets/js/vendors/selectize.min',
|
// 'selectize': 'v2/assets/js/vendors/selectize.min',
|
||||||
'tablesorter': 'v2/assets/js/vendors/jquery.tablesorter.min',
|
// 'tablesorter': 'v2/assets/js/vendors/jquery.tablesorter.min',
|
||||||
'vector-map': 'v2/assets/js/vendors/jquery-jvectormap-2.0.3.min',
|
// 'vector-map': 'v2/assets/js/vendors/jquery-jvectormap-2.0.3.min',
|
||||||
'vector-map-de': 'v2/assets/js/vendors/jquery-jvectormap-de-merc',
|
// 'vector-map-de': 'v2/assets/js/vendors/jquery-jvectormap-de-merc',
|
||||||
'vector-map-world': 'v2/assets/js/vendors/jquery-jvectormap-world-mill',
|
// 'vector-map-world': 'v2/assets/js/vendors/jquery-jvectormap-world-mill',
|
||||||
'circle-progress': 'v2/assets/js/vendors/circle-progress.min',
|
// 'circle-progress': 'v2/assets/js/vendors/circle-progress.min',
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
window.tabler = {
|
window.tabler = {
|
||||||
|
5
resources/js/app.js
vendored
5
resources/js/app.js
vendored
@ -33,7 +33,4 @@ require('./bootstrap');
|
|||||||
* or customize the JavaScript scaffolding to fit your unique needs.
|
* or customize the JavaScript scaffolding to fit your unique needs.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require('./components/Main');
|
//require('./app');
|
||||||
require('./components/TopMenu');
|
|
||||||
|
|
||||||
|
|
||||||
|
11
resources/js/bootstrap.js
vendored
11
resources/js/bootstrap.js
vendored
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* bootstrap.js
|
* bootstrap.js
|
||||||
* Copyright (c) 2018 thegrumpydictator@gmail.com
|
* Copyright (c) 2018 thegrumpydictator@gmail.com
|
||||||
@ -26,13 +25,13 @@ window._ = require('lodash');
|
|||||||
* for JavaScript based Bootstrap features such as modals and tabs. This
|
* for JavaScript based Bootstrap features such as modals and tabs. This
|
||||||
* code may be modified to fit the specific needs of your application.
|
* code may be modified to fit the specific needs of your application.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
try {
|
try {
|
||||||
window.Popper = require('popper.js').default;
|
window.Popper = require('popper.js').default;
|
||||||
window.$ = window.jQuery = require('jquery');
|
window.$ = window.jQuery = require('jquery');
|
||||||
|
require('bootstrap/dist/js/bootstrap.bundle.js');
|
||||||
require('bootstrap');
|
} catch (e) {
|
||||||
} catch (e) {}
|
console.error('No bootstrap?');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* We'll load the axios HTTP library which allows us to easily issue requests
|
* We'll load the axios HTTP library which allows us to easily issue requests
|
||||||
@ -58,6 +57,8 @@ if (token) {
|
|||||||
console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
|
console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Echo exposes an expressive API for subscribing to channels and listening
|
* Echo exposes an expressive API for subscribing to channels and listening
|
||||||
* for events that are broadcast by Laravel. Echo and event broadcasting
|
* for events that are broadcast by Laravel. Echo and event broadcasting
|
||||||
|
3
webpack.mix.js
vendored
3
webpack.mix.js
vendored
@ -13,3 +13,6 @@ const mix = require('laravel-mix');
|
|||||||
|
|
||||||
mix.react('resources/js/app.js', 'public/v2/assets/js')
|
mix.react('resources/js/app.js', 'public/v2/assets/js')
|
||||||
.sass('resources/sass/app.scss', 'public/v2/assets/css');
|
.sass('resources/sass/app.scss', 'public/v2/assets/css');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user