Skip to content

Commit

Permalink
Merge pull request #2234 from umami-software/dev
Browse files Browse the repository at this point in the history
v2.6.0
  • Loading branch information
mikecao authored Aug 29, 2023
2 parents 503fedd + 8ebd529 commit e97fffb
Show file tree
Hide file tree
Showing 502 changed files with 2,890 additions and 1,691 deletions.
20 changes: 10 additions & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,21 @@
"plugin:@typescript-eslint/recommended",
"next"
],

"plugins": ["@typescript-eslint", "prettier"],
"settings": {
"import/resolver": {
"alias": {
"map": [
["assets", "./assets"],
["components", "./components"],
["assets", "./src/assets"],
["components", "./src/components"],
["db", "./db"],
["hooks", "./hooks"],
["lang", "./lang"],
["lib", "./lib"],
["hooks", "./src/components/hooks"],
["lang", "./src/lang"],
["lib", "./src/lib"],
["public", "./public"],
["queries", "./queries"],
["store", "./store"],
["styles", "./styles"]
["queries", "./src/queries"],
["store", "./src/store"],
["styles", "./src/styles"]
],
"extensions": [".ts", ".tsx", ".js", ".jsx", ".json"]
}
Expand All @@ -51,7 +50,8 @@
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-interface": "off"
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-unused-vars": ["error", { "ignoreRestSiblings": true }]
},
"globals": {
"React": "writable"
Expand Down
23 changes: 0 additions & 23 deletions components/input/WebsiteDateFilter.js

This file was deleted.

3 changes: 0 additions & 3 deletions components/input/WebsiteDateFilter.module.css

This file was deleted.

32 changes: 0 additions & 32 deletions components/metrics/CitiesTable.js

This file was deleted.

26 changes: 0 additions & 26 deletions components/pages/settings/users/UserWebsites.js

This file was deleted.

4 changes: 2 additions & 2 deletions jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"compilerOptions": {
"baseUrl": "."
"baseUrl": "./src"
}
}
}
211 changes: 0 additions & 211 deletions lang/ja-JP.json

This file was deleted.

10 changes: 9 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* eslint-disable @typescript-eslint/no-var-requires */
require('dotenv').config();
const path = require('path');
const pkg = require('./package.json');

const contentSecurityPolicy = `
Expand Down Expand Up @@ -58,7 +59,9 @@ if (process.env.TRACKER_SCRIPT_NAME) {
const redirects = [
{
source: '/settings',
destination: process.env.CLOUD_MODE ? '/settings/profile' : '/settings/websites',
destination: process.env.CLOUD_MODE
? `${process.env.CLOUD_URL}/settings/websites`
: '/settings/websites',
permanent: true,
},
];
Expand All @@ -73,6 +76,9 @@ if (process.env.CLOUD_MODE && process.env.CLOUD_URL && process.env.DISABLE_LOGIN

const config = {
env: {
cloudMode: process.env.CLOUD_MODE,
cloudUrl: process.env.CLOUD_URL,
configUrl: '/config',
currentVersion: pkg.version,
defaultLocale: process.env.DEFAULT_LOCALE,
isProduction: process.env.NODE_ENV === 'production',
Expand All @@ -92,6 +98,8 @@ const config = {
use: ['@svgr/webpack'],
});

config.resolve.alias['public'] = path.resolve('./public');

return config;
},
async headers() {
Expand Down
Loading

1 comment on commit e97fffb

@vercel
Copy link

@vercel vercel bot commented on e97fffb Aug 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

umami – ./

umami-umami-software.vercel.app
umami-git-master-umami-software.vercel.app
umami-app.vercel.app

Please sign in to comment.