mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-02 03:51:18 +00:00
Better account index in v2.
This commit is contained in:
@@ -70,6 +70,9 @@ let index = function () {
|
||||
},
|
||||
totalPages: 1,
|
||||
page: 1,
|
||||
filters: {
|
||||
active: 'both',
|
||||
},
|
||||
|
||||
// available columns:
|
||||
// visible is hard coded, enabled is user-configurable.
|
||||
@@ -87,7 +90,7 @@ let index = function () {
|
||||
enabled: true,
|
||||
},
|
||||
type: {
|
||||
visible: true,
|
||||
visible: type === 'asset',
|
||||
enabled: true,
|
||||
},
|
||||
liability_type: {
|
||||
@@ -291,6 +294,14 @@ function loadPage() {
|
||||
let data = comps[comp]();
|
||||
Alpine.data(comp, () => data);
|
||||
});
|
||||
|
||||
|
||||
Alpine.magic("t", (el) => {
|
||||
return (name, vars) => {
|
||||
return i18next.t(name, vars);
|
||||
};
|
||||
});
|
||||
|
||||
Alpine.start();
|
||||
}
|
||||
|
||||
|
||||
@@ -31,58 +31,65 @@ function manualChunks(id) {
|
||||
}
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
base: './',
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks,
|
||||
},
|
||||
}
|
||||
},
|
||||
plugins: [
|
||||
laravel({
|
||||
input: [
|
||||
// css
|
||||
'src/sass/app.scss',
|
||||
export default defineConfig(({command, mode, isSsrBuild, isPreview}) => {
|
||||
|
||||
// dashboard
|
||||
'src/pages/dashboard/dashboard.js',
|
||||
let https = null;
|
||||
if (command === 'serve') {
|
||||
https = {
|
||||
key: fs.readFileSync(`/sites/vm/tls-certificates/wildcard.sd.internal.key`),
|
||||
cert: fs.readFileSync(`/sites/vm/tls-certificates/wildcard.sd.internal.crt`),
|
||||
};
|
||||
}
|
||||
|
||||
// accounts
|
||||
'src/pages/accounts/index.js',
|
||||
|
||||
// administrations
|
||||
'src/pages/administrations/index.js',
|
||||
'src/pages/administrations/create.js',
|
||||
'src/pages/administrations/edit.js',
|
||||
|
||||
// transactions
|
||||
'src/pages/transactions/create.js',
|
||||
'src/pages/transactions/edit.js',
|
||||
'src/pages/transactions/show.js',
|
||||
'src/pages/transactions/index.js',
|
||||
],
|
||||
publicDirectory: '../../../public',
|
||||
refresh: true,
|
||||
}),
|
||||
manifestSRI(),
|
||||
|
||||
],
|
||||
|
||||
|
||||
server: {
|
||||
usePolling: true,
|
||||
watch: {
|
||||
usePolling: true,
|
||||
return {
|
||||
base: './',
|
||||
build: {
|
||||
rollupOptions: {
|
||||
output: {
|
||||
manualChunks,
|
||||
},
|
||||
}
|
||||
},
|
||||
host: '10.0.0.15',
|
||||
// hmr: {
|
||||
// protocol: 'wss',
|
||||
// },
|
||||
// https: {
|
||||
// key: fs.readFileSync(`/sites/vm/tls-certificates/wildcard.sd.internal.key`),
|
||||
// cert: fs.readFileSync(`/sites/vm/tls-certificates/wildcard.sd.internal.crt`),
|
||||
// },
|
||||
},
|
||||
plugins: [
|
||||
laravel({
|
||||
input: [
|
||||
// css
|
||||
'src/sass/app.scss',
|
||||
|
||||
// dashboard
|
||||
'src/pages/dashboard/dashboard.js',
|
||||
|
||||
// accounts
|
||||
'src/pages/accounts/index.js',
|
||||
|
||||
// administrations
|
||||
'src/pages/administrations/index.js',
|
||||
'src/pages/administrations/create.js',
|
||||
'src/pages/administrations/edit.js',
|
||||
|
||||
// transactions
|
||||
'src/pages/transactions/create.js',
|
||||
'src/pages/transactions/edit.js',
|
||||
'src/pages/transactions/show.js',
|
||||
'src/pages/transactions/index.js',
|
||||
],
|
||||
publicDirectory: '../../../public',
|
||||
refresh: true,
|
||||
}),
|
||||
//manifestSRI(),
|
||||
|
||||
],
|
||||
|
||||
|
||||
server: {
|
||||
watch: {
|
||||
usePolling: true,
|
||||
},
|
||||
host: '10.0.0.15',
|
||||
// hmr: {
|
||||
// protocol: 'wss',
|
||||
// },
|
||||
https: https,
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user