Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Um/fe review 3 #2946

Merged
merged 28 commits into from
Mar 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
c45ab96
:whale: Update Node.js versions of Docker images to 16
janober Mar 4, 2022
3513aa1
:bug: Fix that some keyboard shortcuts did no longer work
SchnapsterDog Mar 4, 2022
c3f3e98
:bug: Fix issue with tooltips getting displayed behind node details view
mutdmour Mar 4, 2022
3bc06ee
:bug: Fix credentials list load issue (#2931)
mutdmour Mar 4, 2022
2ec711a
:zap: Allow to disable hiring banner (#2902)
ivov Mar 4, 2022
f4e3255
:bug: Fix issue that ctrl + o did behave wrong on workflow templates …
SchnapsterDog Mar 4, 2022
2e7dcd3
:arrow_up: Update package-lock.json file
janober Mar 4, 2022
cb5b98a
:bug: Fix sorting by field in Baserow Node (#2942)
that-one-tom Mar 5, 2022
f04e6ac
:bug: Fix some i18n line break issues
janober Mar 5, 2022
fbdb5eb
:sparkles: Add Odoo Node (#2601)
michael-radency Mar 5, 2022
f350b9e
:bug: Handle Wise SCA requests (#2734)
pemontto Mar 6, 2022
af09bf8
:zap: Improve Wise error message after previous change
janober Mar 6, 2022
77c8d12
merge in master and resolve conflicts
mutdmour Mar 7, 2022
56d1a8c
fix duplicate import
mutdmour Mar 7, 2022
ae72dfe
add package lock
mutdmour Mar 7, 2022
a595e04
fix export
mutdmour Mar 7, 2022
ba30698
change opacity
mutdmour Mar 7, 2022
31f1e3d
fix text issue
mutdmour Mar 7, 2022
67eb85a
update action box
mutdmour Mar 7, 2022
e4cdd37
update error title
mutdmour Mar 7, 2022
c61c189
update forgot password
mutdmour Mar 7, 2022
b04e24c
update survey
mutdmour Mar 7, 2022
b6fbf3d
update product text
mutdmour Mar 7, 2022
83ed616
remove unset fields
mutdmour Mar 7, 2022
5852d81
add category to page events
mutdmour Mar 7, 2022
a02aca7
remove duplicate import
mutdmour Mar 7, 2022
438ffac
update key
mutdmour Mar 7, 2022
2bb1daa
update key
mutdmour Mar 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions docker/images/n8n-custom/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# 1. Create an image to build n8n
FROM node:14.15-alpine as builder
FROM node:16-alpine as builder

# Update everything and install needed dependencies
USER root

# Install all needed dependencies
RUN apk --update add --virtual build-dependencies python build-base ca-certificates && \
RUN apk --update add --virtual build-dependencies python3 build-base ca-certificates && \
npm_config_user=root npm install -g lerna

WORKDIR /data
Expand All @@ -20,13 +20,14 @@ COPY packages/nodes-base/ ./packages/nodes-base/
COPY packages/workflow/ ./packages/workflow/
RUN rm -rf node_modules packages/*/node_modules packages/*/dist

RUN npm config set legacy-peer-deps true
RUN npm install --production --loglevel notice
RUN lerna bootstrap --hoist -- --production
RUN npm run build


# 2. Start with a new clean image with just the code that is needed to run n8n
FROM node:14.15-alpine
FROM node:16-alpine

USER root

Expand Down
2 changes: 1 addition & 1 deletion docker/images/n8n-debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14.15
FROM node:16

ARG N8N_VERSION

Expand Down
4 changes: 2 additions & 2 deletions docker/images/n8n/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14.15-alpine
FROM node:16-alpine

ARG N8N_VERSION

Expand All @@ -12,7 +12,7 @@ USER root

# Install n8n and the also temporary all the packages
# it needs to build it correctly.
RUN apk --update add --virtual build-dependencies python build-base ca-certificates && \
RUN apk --update add --virtual build-dependencies python3 build-base ca-certificates && \
npm_config_user=root npm install -g full-icu n8n@${N8N_VERSION} && \
apk del build-dependencies \
&& rm -rf /root /tmp/* /var/cache/apk/* && mkdir /root;
Expand Down
88 changes: 44 additions & 44 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions packages/cli/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,15 @@ const config = convict({
},
},

hiringBanner: {
enabled: {
doc: 'Whether hiring banner in browser console is enabled.',
format: Boolean,
default: true,
env: 'N8N_HIRING_BANNER_ENABLED',
},
},

personalization: {
enabled: {
doc: 'Whether personalization is enabled.',
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ export interface IN8nUISettings {
userManagement: IUserManagementSettings;
workflowTagsDisabled: boolean;
logLevel: 'info' | 'debug' | 'warn' | 'error' | 'verbose';
deploymentType: string;
hiringBannerEnabled: boolean;
templates: {
enabled: boolean;
host: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class App {
},
workflowTagsDisabled: config.get('workflowTagsDisabled'),
logLevel: config.get('logs.level'),
deploymentType: config.get('deployment.type'),
hiringBannerEnabled: config.get('hiringBanner.enabled'),
templates: {
enabled: config.get('templates.enabled'),
host: config.get('templates.host'),
Expand Down
4 changes: 4 additions & 0 deletions packages/core/src/NodeExecuteFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,10 @@ function convertN8nRequestToAxios(n8nRequest: IHttpRequestOptions): AxiosRequest
axiosRequest.headers['User-Agent'] = 'n8n';
}

if (n8nRequest.ignoreHttpStatusErrors) {
axiosRequest.validateStatus = () => true;
}

return axiosRequest;
}

Expand Down
5 changes: 2 additions & 3 deletions packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,15 @@
"@fortawesome/fontawesome-svg-core": "1.x",
"@fortawesome/free-solid-svg-icons": "5.x",
"@fortawesome/vue-fontawesome": "2.x",
"core-js": "3.x",
"element-ui": "2.15.x"
"core-js": "3.x"
},
"devDependencies": {
"@babel/core": "^7.14.6",
"@fortawesome/fontawesome-svg-core": "^1.2.35",
"@fortawesome/free-solid-svg-icons": "^5.15.3",
"@fortawesome/vue-fontawesome": "^2.0.2",
"core-js": "^3.6.5",
"element-ui": "2.15.x",
"element-ui": "~2.15.7",
"@storybook/addon-actions": "^6.3.6",
"@storybook/addon-essentials": "^6.3.6",
"@storybook/addon-links": "^6.3.6",
Expand Down
12 changes: 2 additions & 10 deletions packages/design-system/src/components/N8nActionBox/ActionBox.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<template functional>
<div :class="$style.container">
<span :class="$style.emoji">{{props.emoji}}</span>
<div :class="$style.description">
<component :is="$options.components.N8nHeading" size="xlarge">{{ props.heading }}</component>
<component :is="$options.components.N8nText" color="text-base">{{ props.description }}</component>
<component :is="$options.components.N8nHeading" size="xlarge" align="center">{{ props.heading }}</component>
<slot></slot>
</div>
<component :is="$options.components.N8nButton" :label="props.buttonText" size="large"
@click="(e) => listeners.click && listeners.click(e)"
Expand All @@ -19,15 +18,9 @@ import N8nText from '../N8nText';
export default {
name: 'n8n-action-box',
props: {
emoji: {
type: String,
},
heading: {
type: String,
},
description: {
type: String,
},
buttonText: {
type: String,
},
Expand Down Expand Up @@ -61,7 +54,6 @@ export default {
.description {
display: flex;
flex-direction: column;
text-align: center;

> *:first-child {
margin-bottom: var(--spacing-2xs);
Expand Down
2 changes: 1 addition & 1 deletion packages/design-system/src/components/N8nAvatar/Avatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ export default {
.empty {
border-radius: 50%;
background-color: var(--color-foreground-dark);
opacity: .7;
opacity: .3;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ export default Vue.extend({
onSubmit() {
this.showValidationWarnings = true;
if (this.isReadyToSubmit) {
this.$emit('submit', this.values);
const toSubmit = this.filteredInputs.reduce((accu, input: IFormInput) => {
accu[input.name] = this.values[input.name];
return accu;
}, {});
this.$emit('submit', toSubmit);
}
},
},
Expand Down
7 changes: 7 additions & 0 deletions packages/design-system/src/components/N8nHeading/Heading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export default {
type: String,
validator: (value: string): boolean => ['primary', 'text-dark', 'text-base', 'text-light', 'text-xlight'].includes(value),
},
align: {
type: String,
validator: (value: string): boolean => ['right', 'left', 'center'].includes(value),
},
},
methods: {
getClass(props: {size: string, bold: boolean}) {
Expand All @@ -35,6 +39,9 @@ export default {
if (props.color) {
styles.color = `var(--color-${props.color})`;
}
if (props.align) {
styles['text-align'] = props.align;
}
return styles;
},
},
Expand Down
Loading