mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Move more JS files
This commit is contained in:
161
resources/assets/v1/mix-manifest.json
Normal file
161
resources/assets/v1/mix-manifest.json
Normal file
@@ -0,0 +1,161 @@
|
||||
{
|
||||
"/build/app.js": "/build/app.js",
|
||||
"/build/app_vue.js": "/build/app_vue.js",
|
||||
"/build/create_transaction.js": "/build/create_transaction.js",
|
||||
"/build/edit_transaction.js": "/build/edit_transaction.js",
|
||||
"/build/profile.js": "/build/profile.js",
|
||||
"/build/index.js": "/build/index.js",
|
||||
"/build/create.js": "/build/create.js",
|
||||
"/build/edit.js": "/build/edit.js",
|
||||
"/build/show.js": "/build/show.js",
|
||||
"/public/v1/js/app.js": "/public/v1/js/app.js",
|
||||
"/public/v1/js/app.js.LICENSE.txt": "/public/v1/js/app.js.LICENSE.txt",
|
||||
"/public/v1/js/app_vue.js": "/public/v1/js/app_vue.js",
|
||||
"/public/v1/js/app_vue.js.LICENSE.txt": "/public/v1/js/app_vue.js.LICENSE.txt",
|
||||
"/public/v1/js/create.js": "/public/v1/js/create.js",
|
||||
"/public/v1/js/create.js.LICENSE.txt": "/public/v1/js/create.js.LICENSE.txt",
|
||||
"/public/v1/js/create_transaction.js": "/public/v1/js/create_transaction.js",
|
||||
"/public/v1/js/create_transaction.js.LICENSE.txt": "/public/v1/js/create_transaction.js.LICENSE.txt",
|
||||
"/public/v1/js/edit.js": "/public/v1/js/edit.js",
|
||||
"/public/v1/js/edit.js.LICENSE.txt": "/public/v1/js/edit.js.LICENSE.txt",
|
||||
"/public/v1/js/edit_transaction.js": "/public/v1/js/edit_transaction.js",
|
||||
"/public/v1/js/edit_transaction.js.LICENSE.txt": "/public/v1/js/edit_transaction.js.LICENSE.txt",
|
||||
"/public/v1/js/ff/accounts/create.js": "/public/v1/js/ff/accounts/create.js",
|
||||
"/public/v1/js/ff/accounts/edit-reconciliation.js": "/public/v1/js/ff/accounts/edit-reconciliation.js",
|
||||
"/public/v1/js/ff/accounts/edit.js": "/public/v1/js/ff/accounts/edit.js",
|
||||
"/public/v1/js/ff/accounts/index.js": "/public/v1/js/ff/accounts/index.js",
|
||||
"/public/v1/js/ff/accounts/reconcile.js": "/public/v1/js/ff/accounts/reconcile.js",
|
||||
"/public/v1/js/ff/accounts/show.js": "/public/v1/js/ff/accounts/show.js",
|
||||
"/public/v1/js/ff/admin/update/index.js": "/public/v1/js/ff/admin/update/index.js",
|
||||
"/public/v1/js/ff/admin/users.js": "/public/v1/js/ff/admin/users.js",
|
||||
"/public/v1/js/ff/bills/create.js": "/public/v1/js/ff/bills/create.js",
|
||||
"/public/v1/js/ff/bills/edit.js": "/public/v1/js/ff/bills/edit.js",
|
||||
"/public/v1/js/ff/bills/index.js": "/public/v1/js/ff/bills/index.js",
|
||||
"/public/v1/js/ff/bills/show.js": "/public/v1/js/ff/bills/show.js",
|
||||
"/public/v1/js/ff/budgets/create.js": "/public/v1/js/ff/budgets/create.js",
|
||||
"/public/v1/js/ff/budgets/edit.js": "/public/v1/js/ff/budgets/edit.js",
|
||||
"/public/v1/js/ff/budgets/index.js": "/public/v1/js/ff/budgets/index.js",
|
||||
"/public/v1/js/ff/budgets/show.js": "/public/v1/js/ff/budgets/show.js",
|
||||
"/public/v1/js/ff/categories/create.js": "/public/v1/js/ff/categories/create.js",
|
||||
"/public/v1/js/ff/categories/edit.js": "/public/v1/js/ff/categories/edit.js",
|
||||
"/public/v1/js/ff/categories/index.js": "/public/v1/js/ff/categories/index.js",
|
||||
"/public/v1/js/ff/categories/show-by-date.js": "/public/v1/js/ff/categories/show-by-date.js",
|
||||
"/public/v1/js/ff/categories/show.js": "/public/v1/js/ff/categories/show.js",
|
||||
"/public/v1/js/ff/charts.defaults.js": "/public/v1/js/ff/charts.defaults.js",
|
||||
"/public/v1/js/ff/charts.js": "/public/v1/js/ff/charts.js",
|
||||
"/public/v1/js/ff/common/autocomplete.js": "/public/v1/js/ff/common/autocomplete.js",
|
||||
"/public/v1/js/ff/currencies/index.js": "/public/v1/js/ff/currencies/index.js",
|
||||
"/public/v1/js/ff/export/index.js": "/public/v1/js/ff/export/index.js",
|
||||
"/public/v1/js/ff/firefly.js": "/public/v1/js/ff/firefly.js",
|
||||
"/public/v1/js/ff/guest.js": "/public/v1/js/ff/guest.js",
|
||||
"/public/v1/js/ff/help.js": "/public/v1/js/ff/help.js",
|
||||
"/public/v1/js/ff/index.js": "/public/v1/js/ff/index.js",
|
||||
"/public/v1/js/ff/install/index.js": "/public/v1/js/ff/install/index.js",
|
||||
"/public/v1/js/ff/intro/intro.js": "/public/v1/js/ff/intro/intro.js",
|
||||
"/public/v1/js/ff/list/groups.js": "/public/v1/js/ff/list/groups.js",
|
||||
"/public/v1/js/ff/object-groups/create-edit.js": "/public/v1/js/ff/object-groups/create-edit.js",
|
||||
"/public/v1/js/ff/object-groups/index.js": "/public/v1/js/ff/object-groups/index.js",
|
||||
"/public/v1/js/ff/piggy-banks/create.js": "/public/v1/js/ff/piggy-banks/create.js",
|
||||
"/public/v1/js/ff/piggy-banks/edit.js": "/public/v1/js/ff/piggy-banks/edit.js",
|
||||
"/public/v1/js/ff/piggy-banks/index.js": "/public/v1/js/ff/piggy-banks/index.js",
|
||||
"/public/v1/js/ff/piggy-banks/show.js": "/public/v1/js/ff/piggy-banks/show.js",
|
||||
"/public/v1/js/ff/preferences/index.js": "/public/v1/js/ff/preferences/index.js",
|
||||
"/public/v1/js/ff/recurring/create.js": "/public/v1/js/ff/recurring/create.js",
|
||||
"/public/v1/js/ff/recurring/edit.js": "/public/v1/js/ff/recurring/edit.js",
|
||||
"/public/v1/js/ff/reports/all.js": "/public/v1/js/ff/reports/all.js",
|
||||
"/public/v1/js/ff/reports/audit/all.js": "/public/v1/js/ff/reports/audit/all.js",
|
||||
"/public/v1/js/ff/reports/budget/month.js": "/public/v1/js/ff/reports/budget/month.js",
|
||||
"/public/v1/js/ff/reports/category/month.js": "/public/v1/js/ff/reports/category/month.js",
|
||||
"/public/v1/js/ff/reports/default/all.js": "/public/v1/js/ff/reports/default/all.js",
|
||||
"/public/v1/js/ff/reports/default/month.js": "/public/v1/js/ff/reports/default/month.js",
|
||||
"/public/v1/js/ff/reports/default/multi-year.js": "/public/v1/js/ff/reports/default/multi-year.js",
|
||||
"/public/v1/js/ff/reports/default/year.js": "/public/v1/js/ff/reports/default/year.js",
|
||||
"/public/v1/js/ff/reports/double/month.js": "/public/v1/js/ff/reports/double/month.js",
|
||||
"/public/v1/js/ff/reports/index.js": "/public/v1/js/ff/reports/index.js",
|
||||
"/public/v1/js/ff/reports/tag/month.js": "/public/v1/js/ff/reports/tag/month.js",
|
||||
"/public/v1/js/ff/rule-groups/create.js": "/public/v1/js/ff/rule-groups/create.js",
|
||||
"/public/v1/js/ff/rule-groups/edit.js": "/public/v1/js/ff/rule-groups/edit.js",
|
||||
"/public/v1/js/ff/rules/create-edit.js": "/public/v1/js/ff/rules/create-edit.js",
|
||||
"/public/v1/js/ff/rules/index.js": "/public/v1/js/ff/rules/index.js",
|
||||
"/public/v1/js/ff/rules/select-transactions.js": "/public/v1/js/ff/rules/select-transactions.js",
|
||||
"/public/v1/js/ff/search/index.js": "/public/v1/js/ff/search/index.js",
|
||||
"/public/v1/js/ff/tags/create-edit.js": "/public/v1/js/ff/tags/create-edit.js",
|
||||
"/public/v1/js/ff/tags/index.js": "/public/v1/js/ff/tags/index.js",
|
||||
"/public/v1/js/ff/tags/show.js": "/public/v1/js/ff/tags/show.js",
|
||||
"/public/v1/js/ff/transactions/convert.js": "/public/v1/js/ff/transactions/convert.js",
|
||||
"/public/v1/js/ff/transactions/index.js": "/public/v1/js/ff/transactions/index.js",
|
||||
"/public/v1/js/ff/transactions/list.js": "/public/v1/js/ff/transactions/list.js",
|
||||
"/public/v1/js/ff/transactions/mass/edit-bulk.js": "/public/v1/js/ff/transactions/mass/edit-bulk.js",
|
||||
"/public/v1/js/ff/transactions/mass/edit.js": "/public/v1/js/ff/transactions/mass/edit.js",
|
||||
"/public/v1/js/ff/transactions/show.js": "/public/v1/js/ff/transactions/show.js",
|
||||
"/public/v1/js/index.js": "/public/v1/js/index.js",
|
||||
"/public/v1/js/index.js.LICENSE.txt": "/public/v1/js/index.js.LICENSE.txt",
|
||||
"/public/v1/js/lib/Chart.bundle.min.js": "/public/v1/js/lib/Chart.bundle.min.js",
|
||||
"/public/v1/js/lib/accounting.min.js": "/public/v1/js/lib/accounting.min.js",
|
||||
"/public/v1/js/lib/bootstrap-multiselect.js": "/public/v1/js/lib/bootstrap-multiselect.js",
|
||||
"/public/v1/js/lib/bootstrap-sortable.js": "/public/v1/js/lib/bootstrap-sortable.js",
|
||||
"/public/v1/js/lib/bootstrap-tagsinput.min.js": "/public/v1/js/lib/bootstrap-tagsinput.min.js",
|
||||
"/public/v1/js/lib/bootstrap-tagsinput.min.js.map": "/public/v1/js/lib/bootstrap-tagsinput.min.js.map",
|
||||
"/public/v1/js/lib/bootstrap3-typeahead.min.js": "/public/v1/js/lib/bootstrap3-typeahead.min.js",
|
||||
"/public/v1/js/lib/chartjs-plugin-annotation.min.js": "/public/v1/js/lib/chartjs-plugin-annotation.min.js",
|
||||
"/public/v1/js/lib/daterangepicker.js": "/public/v1/js/lib/daterangepicker.js",
|
||||
"/public/v1/js/lib/html5shiv.min.js": "/public/v1/js/lib/html5shiv.min.js",
|
||||
"/public/v1/js/lib/jquery-ui.min.js": "/public/v1/js/lib/jquery-ui.min.js",
|
||||
"/public/v1/js/lib/jquery.autocomplete.min.js": "/public/v1/js/lib/jquery.autocomplete.min.js",
|
||||
"/public/v1/js/lib/jquery.color-2.1.2.min.js": "/public/v1/js/lib/jquery.color-2.1.2.min.js",
|
||||
"/public/v1/js/lib/modernizr-custom.js": "/public/v1/js/lib/modernizr-custom.js",
|
||||
"/public/v1/js/lib/moment/bg_BG.js": "/public/v1/js/lib/moment/bg_BG.js",
|
||||
"/public/v1/js/lib/moment/ca_ES.js": "/public/v1/js/lib/moment/ca_ES.js",
|
||||
"/public/v1/js/lib/moment/cs_CZ.js": "/public/v1/js/lib/moment/cs_CZ.js",
|
||||
"/public/v1/js/lib/moment/da_DK.js": "/public/v1/js/lib/moment/da_DK.js",
|
||||
"/public/v1/js/lib/moment/de_DE.js": "/public/v1/js/lib/moment/de_DE.js",
|
||||
"/public/v1/js/lib/moment/el_GR.js": "/public/v1/js/lib/moment/el_GR.js",
|
||||
"/public/v1/js/lib/moment/en_GB.js": "/public/v1/js/lib/moment/en_GB.js",
|
||||
"/public/v1/js/lib/moment/en_US.js": "/public/v1/js/lib/moment/en_US.js",
|
||||
"/public/v1/js/lib/moment/es_ES.js": "/public/v1/js/lib/moment/es_ES.js",
|
||||
"/public/v1/js/lib/moment/es_MX.js": "/public/v1/js/lib/moment/es_MX.js",
|
||||
"/public/v1/js/lib/moment/fi_FI.js": "/public/v1/js/lib/moment/fi_FI.js",
|
||||
"/public/v1/js/lib/moment/fr_FR.js": "/public/v1/js/lib/moment/fr_FR.js",
|
||||
"/public/v1/js/lib/moment/hu_HU.js": "/public/v1/js/lib/moment/hu_HU.js",
|
||||
"/public/v1/js/lib/moment/id_ID.js": "/public/v1/js/lib/moment/id_ID.js",
|
||||
"/public/v1/js/lib/moment/it_IT.js": "/public/v1/js/lib/moment/it_IT.js",
|
||||
"/public/v1/js/lib/moment/ja_JP.js": "/public/v1/js/lib/moment/ja_JP.js",
|
||||
"/public/v1/js/lib/moment/ko_KR.js": "/public/v1/js/lib/moment/ko_KR.js",
|
||||
"/public/v1/js/lib/moment/nb_NO.js": "/public/v1/js/lib/moment/nb_NO.js",
|
||||
"/public/v1/js/lib/moment/nl_NL.js": "/public/v1/js/lib/moment/nl_NL.js",
|
||||
"/public/v1/js/lib/moment/nn_NO.js": "/public/v1/js/lib/moment/nn_NO.js",
|
||||
"/public/v1/js/lib/moment/pl_PL.js": "/public/v1/js/lib/moment/pl_PL.js",
|
||||
"/public/v1/js/lib/moment/pt_BR.js": "/public/v1/js/lib/moment/pt_BR.js",
|
||||
"/public/v1/js/lib/moment/pt_PT.js": "/public/v1/js/lib/moment/pt_PT.js",
|
||||
"/public/v1/js/lib/moment/ro_RO.js": "/public/v1/js/lib/moment/ro_RO.js",
|
||||
"/public/v1/js/lib/moment/ru_RU.js": "/public/v1/js/lib/moment/ru_RU.js",
|
||||
"/public/v1/js/lib/moment/sk_SK.js": "/public/v1/js/lib/moment/sk_SK.js",
|
||||
"/public/v1/js/lib/moment/sl_SI.js": "/public/v1/js/lib/moment/sl_SI.js",
|
||||
"/public/v1/js/lib/moment/sv_SE.js": "/public/v1/js/lib/moment/sv_SE.js",
|
||||
"/public/v1/js/lib/moment/tr_TR.js": "/public/v1/js/lib/moment/tr_TR.js",
|
||||
"/public/v1/js/lib/moment/uk_UA.js": "/public/v1/js/lib/moment/uk_UA.js",
|
||||
"/public/v1/js/lib/moment/vi_VN.js": "/public/v1/js/lib/moment/vi_VN.js",
|
||||
"/public/v1/js/lib/moment/zh_CN.js": "/public/v1/js/lib/moment/zh_CN.js",
|
||||
"/public/v1/js/lib/moment/zh_TW.js": "/public/v1/js/lib/moment/zh_TW.js",
|
||||
"/public/v1/js/lib/moment.min.js": "/public/v1/js/lib/moment.min.js",
|
||||
"/public/v1/js/lib/respond.min.js": "/public/v1/js/lib/respond.min.js",
|
||||
"/public/v1/js/lib/typeahead/bloodhound.js": "/public/v1/js/lib/typeahead/bloodhound.js",
|
||||
"/public/v1/js/lib/typeahead/bloodhound.min.js": "/public/v1/js/lib/typeahead/bloodhound.min.js",
|
||||
"/public/v1/js/lib/typeahead/typeahead.bundle.js": "/public/v1/js/lib/typeahead/typeahead.bundle.js",
|
||||
"/public/v1/js/lib/typeahead/typeahead.bundle.min.js": "/public/v1/js/lib/typeahead/typeahead.bundle.min.js",
|
||||
"/public/v1/js/lib/typeahead/typeahead.jquery.js": "/public/v1/js/lib/typeahead/typeahead.jquery.js",
|
||||
"/public/v1/js/lib/typeahead/typeahead.jquery.min.js": "/public/v1/js/lib/typeahead/typeahead.jquery.min.js",
|
||||
"/public/v1/js/lib/vue.js": "/public/v1/js/lib/vue.js",
|
||||
"/public/v1/js/profile.js": "/public/v1/js/profile.js",
|
||||
"/public/v1/js/profile.js.LICENSE.txt": "/public/v1/js/profile.js.LICENSE.txt",
|
||||
"/public/v1/js/show.js": "/public/v1/js/show.js",
|
||||
"/public/v1/js/show.js.LICENSE.txt": "/public/v1/js/show.js.LICENSE.txt",
|
||||
"/public/v1/js/webhooks/create.js": "/public/v1/js/webhooks/create.js",
|
||||
"/public/v1/js/webhooks/create.js.LICENSE.txt": "/public/v1/js/webhooks/create.js.LICENSE.txt",
|
||||
"/public/v1/js/webhooks/edit.js": "/public/v1/js/webhooks/edit.js",
|
||||
"/public/v1/js/webhooks/edit.js.LICENSE.txt": "/public/v1/js/webhooks/edit.js.LICENSE.txt",
|
||||
"/public/v1/js/webhooks/index.js": "/public/v1/js/webhooks/index.js",
|
||||
"/public/v1/js/webhooks/index.js.LICENSE.txt": "/public/v1/js/webhooks/index.js.LICENSE.txt",
|
||||
"/public/v1/js/webhooks/show.js": "/public/v1/js/webhooks/show.js",
|
||||
"/public/v1/js/webhooks/show.js.LICENSE.txt": "/public/v1/js/webhooks/show.js.LICENSE.txt"
|
||||
}
|
||||
32
resources/assets/v1/package.json
Normal file
32
resources/assets/v1/package.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "v1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"development": "mix",
|
||||
"watch": "mix watch",
|
||||
"watch-poll": "mix watch -- --watch-options-poll=1000",
|
||||
"hot": "mix watch --hot",
|
||||
"production": "mix --production",
|
||||
"prod": "mix --production"
|
||||
},
|
||||
"dependencies": {
|
||||
"date-fns": "^2.30.0",
|
||||
"stream-browserify": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@johmun/vue-tags-input": "^2",
|
||||
"@vue/compiler-sfc": "^3.3.4",
|
||||
"axios": "^1.3",
|
||||
"bootstrap-sass": "^3",
|
||||
"cross-env": "^7.0",
|
||||
"font-awesome": "^4.7.0",
|
||||
"jquery": "^3",
|
||||
"laravel-mix": "^6.0",
|
||||
"postcss": "^8.4",
|
||||
"uiv": "^1.4",
|
||||
"vue": "^2.7",
|
||||
"vue-i18n": "^8",
|
||||
"vue-loader": "^15",
|
||||
"vue-template-compiler": "^2.7"
|
||||
}
|
||||
}
|
||||
47
resources/assets/v1/webpack.mix.js
Executable file
47
resources/assets/v1/webpack.mix.js
Executable file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* webpack.mix.js
|
||||
* Copyright (c) 2024 james@firefly-iii.org.
|
||||
*
|
||||
* This file is part of Firefly III (https://github.com/firefly-iii).
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see https://www.gnu.org/licenses/.
|
||||
*/
|
||||
|
||||
let mix = require('laravel-mix');
|
||||
|
||||
mix.webpackConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
'vue$': 'vue/dist/vue.runtime.common.js'
|
||||
},
|
||||
fallback: {
|
||||
"stream": require.resolve("stream-browserify"),
|
||||
"zlib": false,
|
||||
"https": false,
|
||||
"http": false
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
mix.js('src/app.js', 'build');
|
||||
mix.js('src/app_vue.js', 'build').vue({version: 2});
|
||||
mix.js('src/create_transaction.js', 'build').vue({version: 2});
|
||||
mix.js('src/edit_transaction.js', 'build').vue({version: 2});
|
||||
mix.js('src/profile.js', 'build').vue({version: 2});
|
||||
//
|
||||
// // webhooks
|
||||
mix.js('src/webhooks/index.js', 'build').vue({version: 2});
|
||||
mix.js('src/webhooks/create.js', 'build').vue({version: 2});
|
||||
mix.js('src/webhooks/edit.js', 'build').vue({version: 2});
|
||||
mix.js('src/webhooks/show.js', 'build').vue({version: 2}).copy('build','../../../public/v1/js')
|
||||
41
resources/assets/v2/package.json
Normal file
41
resources/assets/v2/package.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "v2",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"postinstall": "patch-package"
|
||||
},
|
||||
"devDependencies": {
|
||||
"axios": "^1.6.8",
|
||||
"laravel-vite-plugin": "^0.8.1",
|
||||
"patch-package": "^8.0.0",
|
||||
"sass": "^1.72.0",
|
||||
"vite": "^4.5.3",
|
||||
"vite-plugin-manifest-sri": "^0.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ag-grid-community/client-side-row-model": "^31.0.3",
|
||||
"@ag-grid-community/core": "^31.0.3",
|
||||
"@ag-grid-community/infinite-row-model": "^31.0.3",
|
||||
"@ag-grid-community/styles": "^31.0.3",
|
||||
"@fortawesome/fontawesome-free": "^6.4.0",
|
||||
"@popperjs/core": "^2.11.8",
|
||||
"admin-lte": "^4.0.0-alpha3",
|
||||
"alpinejs": "^3.13.7",
|
||||
"bootstrap": "^5.3.0",
|
||||
"bootstrap5-autocomplete": "^1.1.22",
|
||||
"bootstrap5-tags": "^1.6.15",
|
||||
"chart.js": "^4.4.0",
|
||||
"chartjs-adapter-date-fns": "^3.0.0",
|
||||
"chartjs-chart-sankey": "^0.12.0",
|
||||
"date-fns": "^3.6.0",
|
||||
"i18next": "^23.10.1",
|
||||
"i18next-chained-backend": "^4.6.2",
|
||||
"i18next-http-backend": "^2.4.2",
|
||||
"i18next-localstorage-backend": "^4.2.0",
|
||||
"leaflet": "^1.9.4",
|
||||
"store": "^2.0.12"
|
||||
}
|
||||
}
|
||||
84
resources/assets/v2/vite.config.js
Normal file
84
resources/assets/v2/vite.config.js
Normal file
@@ -0,0 +1,84 @@
|
||||
/*
|
||||
* vite.config.js
|
||||
* Copyright (c) 2023 james@firefly-iii.org
|
||||
*
|
||||
* This file is part of Firefly III (https://github.com/firefly-iii).
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import {defineConfig} from 'vite';
|
||||
import laravel from 'laravel-vite-plugin';
|
||||
import manifestSRI from 'vite-plugin-manifest-sri';
|
||||
|
||||
const host = '127.0.0.1';
|
||||
|
||||
function manualChunks(id) {
|
||||
if (id.includes('node_modules')) {
|
||||
return 'vendor';
|
||||
}
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks,
|
||||
},
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
laravel({
|
||||
input: [
|
||||
// css
|
||||
'resources/assets/v2/sass/app.scss',
|
||||
|
||||
// dashboard
|
||||
'resources/assets/v2/pages/dashboard/dashboard.js',
|
||||
|
||||
// accounts
|
||||
'resources/assets/v2/pages/accounts/index.js',
|
||||
|
||||
// administrations
|
||||
'resources/assets/v2/pages/administrations/index.js',
|
||||
'resources/assets/v2/pages/administrations/create.js',
|
||||
'resources/assets/v2/pages/administrations/edit.js',
|
||||
|
||||
// transactions
|
||||
'resources/assets/v2/pages/transactions/create.js',
|
||||
'resources/assets/v2/pages/transactions/edit.js',
|
||||
'resources/assets/v2/pages/transactions/show.js',
|
||||
'resources/assets/v2/pages/transactions/index.js',
|
||||
|
||||
],
|
||||
refresh: true,
|
||||
}),
|
||||
//manifestSRI(),
|
||||
|
||||
],
|
||||
|
||||
|
||||
server: {
|
||||
usePolling: true,
|
||||
allowedHosts: '*.sd.internal',
|
||||
host: '0.0.0.0',
|
||||
hmr: {host},
|
||||
cors: true
|
||||
// https: {
|
||||
// key: fs.readFileSync(`/Users/sander/Sites/vm/tls-certificates/wildcard.sd.local.key`),
|
||||
// cert: fs.readFileSync(`/Users/sander/Sites/vm/tls-certificates/wildcard.sd.local.crt`),
|
||||
// },
|
||||
},
|
||||
});
|
||||
47
resources/assets/v2/webpack.mix.js
Normal file
47
resources/assets/v2/webpack.mix.js
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* webpack.mix.js
|
||||
* Copyright (c) 2020 james@firefly-iii.org
|
||||
*
|
||||
* This file is part of Firefly III (https://github.com/firefly-iii).
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
let mix = require('laravel-mix');
|
||||
|
||||
mix.webpackConfig({
|
||||
resolve: {
|
||||
alias: {
|
||||
'vue$': 'vue/dist/vue.runtime.common.js'
|
||||
},
|
||||
fallback: {
|
||||
"stream": require.resolve("stream-browserify"),
|
||||
"zlib": false,
|
||||
"https": false,
|
||||
"http": false
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
mix.js('resources/assets/js/app.js', 'public/v1/js');
|
||||
mix.js('resources/assets/js/app_vue.js', 'public/v1/js').vue({version: 2});
|
||||
mix.js('resources/assets/js/create_transaction.js', 'public/v1/js').vue({version: 2});
|
||||
mix.js('resources/assets/js/edit_transaction.js', 'public/v1/js').vue({version: 2});
|
||||
mix.js('resources/assets/js/profile.js', 'public/v1/js').vue({version: 2});
|
||||
|
||||
// webhooks
|
||||
mix.js('resources/assets/js/webhooks/index.js', 'public/v1/js/webhooks').vue({version: 2});
|
||||
mix.js('resources/assets/js/webhooks/create.js', 'public/v1/js/webhooks').vue({version: 2});
|
||||
mix.js('resources/assets/js/webhooks/edit.js', 'public/v1/js/webhooks').vue({version: 2});
|
||||
mix.js('resources/assets/js/webhooks/show.js', 'public/v1/js/webhooks').vue({version: 2});
|
||||
Reference in New Issue
Block a user