-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into darkThemeReports
- Loading branch information
Showing
304 changed files
with
6,726 additions
and
5,692 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Funding policies: https://actualbudget.org/docs/contributing/leadership/funding | ||
open_collective: actual |
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,16 @@ | ||
name: 'Close stale PRs' | ||
on: | ||
schedule: | ||
- cron: '30 1 * * *' | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
stale-pr-message: 'This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.' | ||
close-pr-message: 'This PR was closed because it has been stalled for 5 days with no activity.' | ||
days-before-stale: 30 | ||
days-before-close: 5 | ||
days-before-issue-stale: -1 |
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
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,4 +1,6 @@ | ||
module.exports = { | ||
preset: 'ts-jest/presets/js-with-ts-esm', | ||
testEnvironment: 'node', | ||
transform: { | ||
'^.+\\.(t|j)sx?$': '@swc/jest', | ||
}, | ||
}; |
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,16 @@ | ||
{ | ||
"jsc": { | ||
"target": "es2022", | ||
"transform": { | ||
"react": { | ||
"runtime": "automatic" | ||
} | ||
}, | ||
"externalHelpers": true, | ||
"parser": { | ||
"syntax": "typescript", | ||
"tsx": true | ||
} | ||
}, | ||
"sourceMaps": true | ||
} |
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,116 @@ | ||
const path = require('path'); | ||
|
||
const { | ||
loaderByName, | ||
removeLoaders, | ||
addAfterLoader, | ||
addPlugins, | ||
} = require('@craco/craco'); | ||
const chokidar = require('chokidar'); | ||
const TerserPlugin = require('terser-webpack-plugin'); | ||
const { IgnorePlugin } = require('webpack'); | ||
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer'); | ||
|
||
if (process.env.CI) { | ||
process.env.DISABLE_ESLINT_PLUGIN = 'true'; | ||
} | ||
|
||
// Forward Netlify env variables | ||
if (process.env.REVIEW_ID) { | ||
process.env.REACT_APP_REVIEW_ID = process.env.REVIEW_ID; | ||
} | ||
|
||
module.exports = { | ||
webpack: { | ||
configure: (webpackConfig, { env, paths }) => { | ||
webpackConfig.mode = | ||
process.env.NODE_ENV === 'development' ? 'development' : 'production'; | ||
|
||
// swc-loader | ||
addAfterLoader(webpackConfig, loaderByName('babel-loader'), { | ||
test: /\.m?[tj]sx?$/, | ||
exclude: /node_modules/, | ||
loader: require.resolve('swc-loader'), | ||
}); | ||
|
||
// remove the babel loaders | ||
removeLoaders(webpackConfig, loaderByName('babel-loader')); | ||
|
||
addPlugins(webpackConfig, [ | ||
new BundleAnalyzerPlugin({ | ||
analyzerMode: 'disabled', | ||
generateStatsFile: true, | ||
}), | ||
// Pikaday throws a warning if Moment.js is not installed however it doesn't | ||
// actually require it to be installed. As we don't use Moment.js ourselves | ||
// then we can just silence this warning. | ||
new IgnorePlugin({ | ||
contextRegExp: /pikaday$/, | ||
resourceRegExp: /moment$/, | ||
}), | ||
]); | ||
|
||
webpackConfig.resolve.extensions = [ | ||
'.web.js', | ||
'.web.jsx', | ||
'.web.ts', | ||
'.web.tsx', | ||
'.js', | ||
'.jsx', | ||
'.ts', | ||
'.tsx', | ||
...webpackConfig.resolve.extensions, | ||
]; | ||
|
||
if (process.env.IS_GENERIC_BROWSER) { | ||
webpackConfig.resolve.extensions = [ | ||
'.browser.js', | ||
'.browser.jsx', | ||
'.browser.ts', | ||
'.browser.tsx', | ||
...webpackConfig.resolve.extensions, | ||
]; | ||
} | ||
|
||
webpackConfig.optimization = { | ||
...webpackConfig.optimization, | ||
minimize: | ||
process.env.CI === 'true' || process.env.NODE_ENV !== 'development', | ||
minimizer: [ | ||
new TerserPlugin({ | ||
minify: TerserPlugin.swcMinify, | ||
// `terserOptions` options will be passed to `swc` (`@swc/core`) | ||
// Link to options - https://swc.rs/docs/config-js-minify | ||
terserOptions: { | ||
compress: false, | ||
mangle: true, | ||
}, | ||
}), | ||
], | ||
}; | ||
|
||
return webpackConfig; | ||
}, | ||
}, | ||
devServer: (devServerConfig, { env, paths, proxy, allowedHost }) => { | ||
devServerConfig.onBeforeSetupMiddleware = server => { | ||
chokidar | ||
.watch([ | ||
path.resolve('../loot-core/lib-dist/*.js'), | ||
path.resolve('../loot-core/lib-dist/browser/*.js'), | ||
]) | ||
.on('all', function () { | ||
for (const ws of server.webSocketServer.clients) { | ||
ws.send(JSON.stringify({ type: 'static-changed' })); | ||
} | ||
}); | ||
}; | ||
devServerConfig.headers = { | ||
...devServerConfig.headers, | ||
'Cross-Origin-Opener-Policy': 'same-origin', | ||
'Cross-Origin-Embedder-Policy': 'require-corp', | ||
}; | ||
|
||
return devServerConfig; | ||
}, | ||
}; |
Binary file modified
BIN
+12.8 KB
(110%)
.../e2e/accounts.test.js-snapshots/Accounts-closes-an-account-1-chromium-linux.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 modified
BIN
+11.9 KB
(110%)
.../e2e/accounts.test.js-snapshots/Accounts-closes-an-account-2-chromium-linux.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 modified
BIN
+1.14 KB
(100%)
...es-a-new-account-and-views-the-initial-balance-transaction-1-chromium-linux.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 modified
BIN
+7.42 KB
(110%)
...tion-available-funds-overspent-budgeted-and-for-next-month-1-chromium-linux.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 modified
BIN
+7.44 KB
(110%)
...est.js-snapshots/Budget-transfer-funds-to-another-category-1-chromium-linux.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 modified
BIN
+1 Byte
(100%)
...s-snapshots/Mobile-checks-that-settings-page-can-be-opened-2-chromium-linux.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 modified
BIN
+1.07 KB
(110%)
...apshots/Mobile-creates-a-transaction-from-accounts-id-page-1-chromium-linux.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 modified
BIN
+1.08 KB
(110%)
...s-snapshots/Mobile-creates-a-transaction-via-footer-button-1-chromium-linux.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 modified
BIN
+1.05 KB
(110%)
...s-snapshots/Mobile-creates-a-transaction-via-footer-button-2-chromium-linux.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 modified
BIN
+5.86 KB
(120%)
...s-snapshots/Mobile-creates-a-transaction-via-footer-button-3-chromium-linux.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 modified
BIN
+1.25 KB
(110%)
...apshots/Mobile-loads-the-budget-page-with-budgeted-amounts-1-chromium-linux.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 modified
BIN
+2.9 KB
(110%)
...dividual-account-page-and-checks-that-filtering-is-working-1-chromium-linux.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 modified
BIN
+2.91 KB
(110%)
...dividual-account-page-and-checks-that-filtering-is-working-3-chromium-linux.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 modified
BIN
+295 Bytes
(100%)
...ots/Mobile-opens-the-accounts-page-and-asserts-on-balances-1-chromium-linux.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 modified
BIN
+3.16 KB
(100%)
...rding.test.js-snapshots/Onboarding-checks-the-page-visuals-1-chromium-linux.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 modified
BIN
+2.67 KB
(100%)
...rding.test.js-snapshots/Onboarding-checks-the-page-visuals-2-chromium-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.