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

Feature/n8n 2853 templates fe all pages ready #2720

Merged
merged 381 commits into from
Feb 28, 2022
Merged
Show file tree
Hide file tree
Changes from 90 commits
Commits
Show all changes
381 commits
Select commit Hold shift + click to select a range
79dbd38
Merge pull request #2823 from n8n-io/n8n-2954-use-env-variables-on-fe…
mutdmour Feb 16, 2022
7652f4b
Templates Bugs / Fixed Various Bugs / Multiply Api Request, Carousel …
SchnapsterDog Feb 17, 2022
588604c
Updated MainSidebar Paddings
SchnapsterDog Feb 17, 2022
314aa35
N8N-Templates Bugfixing - Remove Unnecesairy Icon (Shape), Refatctor …
SchnapsterDog Feb 17, 2022
aceec0c
N8N-2853 Fixed Carousel Arrows Bug after Cleaning the SearchBar
SchnapsterDog Feb 18, 2022
a2977c5
fix telemetry init
mutdmour Feb 18, 2022
897fd7c
fix search tracking issues
mutdmour Feb 18, 2022
eef2591
N8N-2853 Created FilterTemplateNode Constant Array, Filter PlayButton…
SchnapsterDog Feb 18, 2022
b056056
N8N-2853 Removed Placeholder if Workflows Or Collections are not foun…
SchnapsterDog Feb 18, 2022
09bf9f9
fix telemetry events
mutdmour Feb 18, 2022
1e79d92
clean up session id
mutdmour Feb 18, 2022
121b7b8
update user inserted event
mutdmour Feb 18, 2022
891c33f
N8N-2853 Fixed Categories to Moving if the names are long
SchnapsterDog Feb 18, 2022
e6a3ac6
Add todos
mutdmour Feb 18, 2022
629c89d
Update Routes on loading
SchnapsterDog Feb 18, 2022
4698fb2
fix spacing
mutdmour Feb 18, 2022
a553a37
Update Border Color
SchnapsterDog Feb 18, 2022
57612a5
Update Border Readius
SchnapsterDog Feb 18, 2022
0584f64
fix filter fn
mutdmour Feb 18, 2022
87243c6
fix constant, console error
mutdmour Feb 18, 2022
9d4a7dc
Merge branch 'templates/bugfixing' of github.com:n8n-io/n8n into temp…
mutdmour Feb 18, 2022
a35b3b4
Merge pull request #2832 from n8n-io/templates/bugfixing
mutdmour Feb 18, 2022
5839a76
N8N-2853 Fixing conflicts
SchnapsterDog Feb 18, 2022
5ec06dd
N8N-2853 PR Fixes, Refactoring, Removing unnecesairy code ..
SchnapsterDog Feb 19, 2022
83ad5a9
N8N-2853 PR Fixes - Editor-ui Fixes, Refactoring, Removing Dead Code ...
SchnapsterDog Feb 19, 2022
dd9b233
N8N-2853 Refactor Card to LongCard
SchnapsterDog Feb 19, 2022
eb178f7
clean up spacing, replace css var
mutdmour Feb 19, 2022
9ae8f97
clean up spacing
mutdmour Feb 19, 2022
52bc0cd
set categories as optional in node
mutdmour Feb 19, 2022
42de8b0
replace vars
mutdmour Feb 19, 2022
45e8939
Merge pull request #2846 from n8n-io/n8n-2853-pr-fixes
mutdmour Feb 19, 2022
cda9562
merge latest
mutdmour Feb 19, 2022
e5d59d1
refactor store
mutdmour Feb 19, 2022
16dafac
remove unnesssary import
mutdmour Feb 19, 2022
11602b9
fix error
mutdmour Feb 19, 2022
940f3cf
fix templates view to start
mutdmour Feb 19, 2022
f4c0073
add to cache
mutdmour Feb 19, 2022
29e1c4c
fix coll view data
mutdmour Feb 19, 2022
5e1a4e3
fix categories
mutdmour Feb 19, 2022
372a5f6
fix category event
mutdmour Feb 19, 2022
1b98eb1
fix collections carousel
mutdmour Feb 19, 2022
b288e85
fix initial load and search
mutdmour Feb 19, 2022
39df9ff
fix infinite load
mutdmour Feb 19, 2022
f313bf0
fix query param
mutdmour Feb 19, 2022
de15c2b
fix scrolling issues
mutdmour Feb 19, 2022
af708fa
fix scroll to top
mutdmour Feb 19, 2022
e7e1a21
fix search
mutdmour Feb 19, 2022
2f318bb
fix collections search
mutdmour Feb 19, 2022
31db08a
fix navigation bug
mutdmour Feb 19, 2022
b0b075b
rename view
mutdmour Feb 19, 2022
4bb8241
update package lock
mutdmour Feb 19, 2022
0c0e2bc
rename workflow view
mutdmour Feb 19, 2022
5d761bc
rename coll view
mutdmour Feb 19, 2022
8c2f09c
update routes
mutdmour Feb 19, 2022
2237f7b
add wrapper component
mutdmour Feb 19, 2022
914c735
set session id
mutdmour Feb 19, 2022
deebcc8
fix search tracking
mutdmour Feb 19, 2022
2ce5350
fix session tracking
mutdmour Feb 19, 2022
67a88ef
remove deleted mutation
mutdmour Feb 20, 2022
3058ee4
remove check for unsupported nodes
mutdmour Feb 20, 2022
3e1caa5
refactor filters
mutdmour Feb 20, 2022
82aeeef
lazy load template
mutdmour Feb 20, 2022
fb61695
clean up types
mutdmour Feb 20, 2022
64b0f0b
refactor infinte scroll
mutdmour Feb 20, 2022
e2ba217
fix end of search
mutdmour Feb 20, 2022
49d09e7
Fix spacing
mutdmour Feb 20, 2022
af16fd9
fix coll loading
mutdmour Feb 20, 2022
a8b5816
fix types
mutdmour Feb 20, 2022
a69f29c
fix coll view list
mutdmour Feb 20, 2022
b7114b6
fix navigation
mutdmour Feb 20, 2022
cbabfef
rename types
mutdmour Feb 21, 2022
0671e45
rename state
mutdmour Feb 21, 2022
d5dc944
fix search responsiveness
mutdmour Feb 21, 2022
c4886e0
fix coll view spacing
mutdmour Feb 21, 2022
3f96865
fix search view spacing
mutdmour Feb 21, 2022
1221f5b
clean up views
mutdmour Feb 21, 2022
c40cdd3
set background color
mutdmour Feb 21, 2022
9f90560
center page not vert
mutdmour Feb 21, 2022
086d33f
fix workflow view
mutdmour Feb 21, 2022
c6dc6c0
remove import
mutdmour Feb 21, 2022
53d0918
fix background color
mutdmour Feb 21, 2022
24325ae
fix background
mutdmour Feb 21, 2022
186929a
clean props
mutdmour Feb 21, 2022
dbd2302
clean up imports
mutdmour Feb 21, 2022
a96a90d
refactor button
mutdmour Feb 21, 2022
8758f69
update background color
mutdmour Feb 21, 2022
d163dca
fix spacing issue
mutdmour Feb 21, 2022
488ee80
rename event
mutdmour Feb 21, 2022
27b658d
update telemetry event
mutdmour Feb 21, 2022
96d644b
Merge pull request #2851 from n8n-io/templates/telemetry
mutdmour Feb 21, 2022
b185d8c
update endpoints, add loading view, check for endpoint health
mutdmour Feb 21, 2022
2890037
remove conolse log
mutdmour Feb 21, 2022
15e5557
N8N-2853 Fixed Menu Items Padding
SchnapsterDog Feb 21, 2022
3c8eb84
replace endpoints
mutdmour Feb 21, 2022
c4bcab5
fix type issues
mutdmour Feb 21, 2022
cedcb48
Merge pull request #2854 from n8n-io/templates/update-endpoints
mutdmour Feb 21, 2022
7e9a2e3
fix categories
mutdmour Feb 21, 2022
d288d93
N8N-2853 Fixed ParameterInput Placeholder after ElementUI Upgrade
SchnapsterDog Feb 21, 2022
2adc62a
update createdAt
mutdmour Feb 21, 2022
d0c5417
:zap: Fix placeholder in creds config modal
ivov Feb 21, 2022
dab96e5
:pencil2: Adjust docstring to `credText` placeholder version
ivov Feb 21, 2022
4b37f3c
N8N-2853 Optimized
SchnapsterDog Feb 21, 2022
523eb23
N8N-2853 Optimized code
SchnapsterDog Feb 21, 2022
0373bd7
:zap: Add deployment type to FE settings
ivov Feb 21, 2022
a8442e6
:zap: Add deployment type to interfaces
ivov Feb 21, 2022
ae9b6eb
N8N-2853 Removed Animated prop from components
SchnapsterDog Feb 21, 2022
17787d1
:zap: Add deployment type to store module
ivov Feb 21, 2022
f681186
:sparkles: Create hiring banner
ivov Feb 21, 2022
8f05163
:zap: Display hiring banner
ivov Feb 21, 2022
3c75ada
:rewind: Undo unrelated change
ivov Feb 21, 2022
7c58cf1
N8N-2853 Refactor TemplateFilters
SchnapsterDog Feb 21, 2022
d49e729
:zap: Fix indentation
ivov Feb 21, 2022
c33fdb2
N8N-2853 Reorder items / TemplateList
SchnapsterDog Feb 21, 2022
09379ad
:shirt: Fix lint
ivov Feb 21, 2022
33910a2
N8N-2853 Refactor TemplateFilters Component
SchnapsterDog Feb 21, 2022
beaa7fd
N8N-2853 Reorder TemplateList
SchnapsterDog Feb 21, 2022
ffb585b
refactor template card
mutdmour Feb 21, 2022
ff48ee7
update timeout
mutdmour Feb 21, 2022
377b584
fix removelistener
mutdmour Feb 21, 2022
49a8c56
fix spacing
mutdmour Feb 21, 2022
acdd9ad
split enabled from offline
mutdmour Feb 22, 2022
b8f14bc
add spacing to go back
mutdmour Feb 22, 2022
4302905
N8N-2853 Fixed Screens for Tablet & Mobile
SchnapsterDog Feb 22, 2022
bcc3854
N8N-2853 Update Stores Order
SchnapsterDog Feb 22, 2022
15b154e
remove image componet
mutdmour Feb 22, 2022
2e75184
remove placeholder changes
mutdmour Feb 22, 2022
181fb18
fix conflict
mutdmour Feb 22, 2022
783b228
Merge pull request #2860 from n8n-io/feature/n8n-2853-bugfix2
mutdmour Feb 22, 2022
06ed8db
fix merge conflicts
mutdmour Feb 22, 2022
032080d
Merge pull request #2863 from n8n-io/templates/fix-integration
mutdmour Feb 22, 2022
022217b
N8N-2853 Fixed Chinnese Placeholders for El Select Component that com…
SchnapsterDog Feb 22, 2022
343dcab
N8N-2853 Fixed Vue Agile Console Warnings
SchnapsterDog Feb 22, 2022
ffc2577
N8N-2853 Update Collection Route
SchnapsterDog Feb 22, 2022
cc94310
Merge pull request #2864 from n8n-io/feature/n8n-2853-bugfix3
mutdmour Feb 22, 2022
99f79a3
:pencil2: Update jobs URL
ivov Feb 23, 2022
c0938ed
:truck: Move logging to root component
ivov Feb 23, 2022
fd0cd1c
:zap: Refactor `deploymentType` to `isInternalUser`
ivov Feb 23, 2022
406b319
:zap: Improve syntax
ivov Feb 23, 2022
245589e
:twisted_rightwards_arrows: Merge new parent
ivov Feb 23, 2022
9931363
fix cut bug in readonly view
mutdmour Feb 23, 2022
6b734bd
Merge branch 'master' of github.com:n8n-io/n8n into feature/n8n-2853-…
mutdmour Feb 23, 2022
7ff4918
:twisted_rightwards_arrows: Merge new parent
ivov Feb 23, 2022
8f07886
N8N-3012 Fixed Details section in templates with lots of description,…
SchnapsterDog Feb 23, 2022
dfbe239
Merge pull request #2859 from n8n-io/n8n-2993-hiring-banner-in-browse…
mutdmour Feb 23, 2022
c954a62
N8N-3012 Increased Font-size, Spacing and Line-height of the Categori…
SchnapsterDog Feb 23, 2022
19ad711
N8N-3012 Fixed Vue-agile client width error on resize
SchnapsterDog Feb 23, 2022
010f0dc
Merge branch 'feature/n8n-2853-templates-fe-all-pages-ready' of githu…
mutdmour Feb 23, 2022
89648d2
only delay redirect for root path
mutdmour Feb 23, 2022
38d4540
N8N-3012 Fixed Carousel Arrows that Disappear
SchnapsterDog Feb 23, 2022
f502b38
N8N-3012 Make Loading Screen same color as Templates
SchnapsterDog Feb 23, 2022
42e6cce
N8N-3012 Markdown renders inline block as block code
SchnapsterDog Feb 23, 2022
edf5b41
add offline warning
mutdmour Feb 23, 2022
2deec5d
hide log from workflow iframe
mutdmour Feb 23, 2022
59491bb
update text
mutdmour Feb 23, 2022
5c9b1df
make search button larger
mutdmour Feb 23, 2022
31429ac
N8N-3012 Categories / Tags extended all the way in details section
SchnapsterDog Feb 23, 2022
c7064ea
load data in cred modals
mutdmour Feb 23, 2022
9de1ff9
remove deleted message
mutdmour Feb 23, 2022
aa2a470
add external hook
mutdmour Feb 23, 2022
34f7895
remove import
mutdmour Feb 23, 2022
be9835e
update env variable description
mutdmour Feb 23, 2022
512cd5f
fix markdown width issue
mutdmour Feb 23, 2022
8374c46
Merge pull request #2873 from n8n-io/n8n-3012-bug-bash-fe-fixes-round1
mutdmour Feb 23, 2022
52de99f
Merge pull request #2875 from n8n-io/templates/fe-bugs
mutdmour Feb 23, 2022
f9594e2
disable telemetry for demo, add session id to template pages
mutdmour Feb 24, 2022
9408da5
Merge pull request #2878 from n8n-io/templates/telemetry-2
mutdmour Feb 24, 2022
a56aec0
fix telemetery bugs
mutdmour Feb 24, 2022
c8747f5
N8N-3012 Not found Collections/Wokrkflow
SchnapsterDog Feb 24, 2022
68d49f3
N8N-3012 Checkboxes change order when categories are changed
SchnapsterDog Feb 24, 2022
be4e0e3
N8N-3012 Refactor SortedCategories inside TemplateFilters component
SchnapsterDog Feb 24, 2022
82c1c9c
fix firefox bug
mutdmour Feb 24, 2022
b2529fc
add telemetry requirements
mutdmour Feb 24, 2022
7c33f97
add error check
mutdmour Feb 24, 2022
5fa9bd1
Merge pull request #2887 from n8n-io/templates/telemetry-3
mutdmour Feb 24, 2022
aeeeed1
N8N-3012 Update GoBackButton to check if Route History is present
SchnapsterDog Feb 24, 2022
a327539
N8N-3012 Fixed WF Nodes Icons
SchnapsterDog Feb 25, 2022
efe54d4
Merge branch 'master' of github.com:n8n-io/n8n into feature/n8n-2853-…
mutdmour Feb 25, 2022
5f02fbc
hide workflow screenshots
mutdmour Feb 25, 2022
9ad4cea
Merge branch 'feature/n8n-2853-templates-fe-all-pages-ready' of githu…
mutdmour Feb 25, 2022
62b82e5
remove unnessary mixins
mutdmour Feb 25, 2022
e211624
rename prop
mutdmour Feb 25, 2022
89a318a
fix design a bit
mutdmour Feb 25, 2022
1abf9cb
rename data
mutdmour Feb 25, 2022
356dab6
Merge pull request #2880 from n8n-io/n8n-3012-bug-bash-fe-fixes-round2
mutdmour Feb 25, 2022
03b999e
clear workspace on destroy
mutdmour Feb 25, 2022
9e47880
fix copy paste bug
mutdmour Feb 25, 2022
35677c3
Merge pull request #2890 from n8n-io/templates/bugs-4
mutdmour Feb 25, 2022
1dda4f5
fix disabled state
mutdmour Feb 25, 2022
c731539
N8N-3012 Fixed Saving/Leave without saving Modal
SchnapsterDog Feb 25, 2022
d3bb110
Merge pull request #2891 from n8n-io/templates/bugs-4
mutdmour Feb 25, 2022
e4f2689
Merge pull request #2892 from n8n-io/n8n-3012-bug-bash-fe-fixes-round3
mutdmour Feb 25, 2022
36311fa
fix telemetry issue
mutdmour Feb 25, 2022
093124d
fix telemetry issues, error bug
mutdmour Feb 25, 2022
ee6ef66
fix error notification
mutdmour Feb 25, 2022
dbf487c
disable workflow menu items on templates
mutdmour Feb 25, 2022
be83838
fix i18n elementui issue
mutdmour Feb 25, 2022
21cb23e
Remove Emit - NodeType from HoverableNodeIcon component
SchnapsterDog Feb 25, 2022
e7f6bdc
TechnicalFixes: NavigateTo passed down as function should be helper
SchnapsterDog Feb 25, 2022
544778d
TechnicalFixes: Update NavigateTo function
SchnapsterDog Feb 25, 2022
32eb5a5
TechnicalFixes: Add FilterCoreNodes directly as function
SchnapsterDog Feb 25, 2022
d43e7ec
check for empty connecitions
mutdmour Feb 25, 2022
e925bd3
fix titles
mutdmour Feb 25, 2022
4b28cdf
respect new lines
mutdmour Feb 25, 2022
c5bea4e
increase categories to be sliced
mutdmour Feb 26, 2022
fe7daf0
rename prop
mutdmour Feb 26, 2022
df00d46
Merge branch 'feature/n8n-2853-templates-fe-all-pages-ready' of githu…
mutdmour Feb 26, 2022
7082074
onUseWorkflow
mutdmour Feb 26, 2022
527c28a
refactor click event
mutdmour Feb 26, 2022
fc95e30
fix bug, refactor
mutdmour Feb 26, 2022
40cf4e9
Merge pull request #2893 from n8n-io/templates/technical-fixes
mutdmour Feb 26, 2022
2d6cdc8
fix loading story
mutdmour Feb 26, 2022
7916a8b
Merge branch 'feature/n8n-2853-templates-fe-all-pages-ready' of githu…
mutdmour Feb 26, 2022
2238289
add default
mutdmour Feb 26, 2022
d148280
fix styles at right level of abstraction
mutdmour Feb 26, 2022
0cc8f98
add wrapper with width
mutdmour Feb 26, 2022
29a96df
remove loading blocks component
mutdmour Feb 26, 2022
24fc831
add story
mutdmour Feb 26, 2022
d03fc24
rename prop
mutdmour Feb 26, 2022
153d1af
fix spacing
mutdmour Feb 26, 2022
32d6cd4
refactor tag, add story
mutdmour Feb 26, 2022
131a3ca
move margin to container
mutdmour Feb 26, 2022
137a1d0
fix tag redirect, remove unnessary check
mutdmour Feb 26, 2022
07f592e
make version optional
mutdmour Feb 26, 2022
7dd2838
rename view
mutdmour Feb 26, 2022
7dd6682
move from workflows to templates store
mutdmour Feb 26, 2022
2ce6dec
remove unnessary change
mutdmour Feb 26, 2022
b590232
remove unnessary css
mutdmour Feb 26, 2022
ceda32a
rename component
mutdmour Feb 26, 2022
deb3008
refactor collection card
mutdmour Feb 26, 2022
af2ba5f
add boolean to prevent shrink
mutdmour Feb 26, 2022
03eaada
clean up carousel
mutdmour Feb 26, 2022
e3e6052
fix redirection bug on save
mutdmour Feb 26, 2022
8769f82
remove listeners to fix multiple listeners bug
mutdmour Feb 26, 2022
4df0b3d
remove unnessary types
mutdmour Feb 26, 2022
9de5725
clean up boolean set
mutdmour Feb 26, 2022
9bed5a8
fix node select bug
mutdmour Feb 26, 2022
9f5123f
rename component
mutdmour Feb 26, 2022
ad12956
remove unnessary class
mutdmour Feb 26, 2022
d2ab66c
fix redirection bug
mutdmour Feb 26, 2022
b4bd15c
remove unnessary error
mutdmour Feb 26, 2022
bfb01e3
fix typo
mutdmour Feb 26, 2022
cd809e5
fix blockquotes, pre
mutdmour Feb 26, 2022
5bdf3b0
refactor markdown rendering
mutdmour Feb 26, 2022
1f93108
remove console log
mutdmour Feb 26, 2022
d6b8edf
escape markdown
mutdmour Feb 26, 2022
bfedf52
fix safari bug
mutdmour Feb 26, 2022
7225620
load active workflows to fix modal bug
mutdmour Feb 27, 2022
9a0192c
:twisted_rightwards_arrows: Merge branch 'master' into feature/n8n-28…
janober Feb 28, 2022
c34e54c
:arrow_up: Update package-lock.json file
janober Feb 28, 2022
03b6fa5
:zap: Add n8n version as header
janober Feb 28, 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
104 changes: 101 additions & 3 deletions package-lock.json

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

4 changes: 4 additions & 0 deletions packages/design-system/.storybook/font-awesome-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import {
faCheck,
faChevronDown,
faChevronUp,
faChevronLeft,
faChevronRight,
faCode,
faCodeBranch,
faCog,
Expand Down Expand Up @@ -100,6 +102,8 @@ library.add(faCalendar);
library.add(faCheck);
library.add(faChevronDown);
library.add(faChevronUp);
library.add(faChevronLeft);
library.add(faChevronRight);
library.add(faCode);
library.add(faCodeBranch);
library.add(faCog);
Expand Down
12 changes: 9 additions & 3 deletions packages/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
"@fortawesome/free-solid-svg-icons": "5.x",
"@fortawesome/vue-fontawesome": "2.x",
"core-js": "3.x",
"element-ui": "2.13.x"
"element-ui": "2.15.x"
},
"devDependencies": {
"@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.13.0",
"element-ui": "2.15.x",
"storybook-addon-themes": "^6.1.0",
"vue": "^2.6.11",
"vue-class-component": "^7.2.3",
Expand All @@ -48,6 +48,7 @@
"@storybook/addon-links": "^6.3.6",
"@storybook/vue": "^6.3.6",
"@types/jest": "^26.0.13",
"@types/markdown-it": "^12.2.3",
"@typescript-eslint/eslint-plugin": "^4.29.0",
"@typescript-eslint/parser": "^4.29.0",
"@vue/cli-plugin-babel": "~4.5.0",
Expand All @@ -63,6 +64,10 @@
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-vue": "^7.16.0",
"gulp": "^4.0.0",
"markdown-it": "^12.3.2",
"markdown-it-emoji": "^2.0.0",
"markdown-it-link-attributes": "^4.0.0",
"markdown-it-task-lists": "^2.1.1",
"prettier": "^2.3.2",
"sass": "^1.26.5",
"sass-loader": "^8.0.2",
Expand All @@ -74,6 +79,7 @@
"gulp-clean-css": "^4.3.0",
"gulp-dart-sass": "^1.0.2",
"node-notifier": ">=8.0.1",
"trim": ">=0.0.3"
"trim": ">=0.0.3",
"xss": "^1.0.10"
}
}
23 changes: 23 additions & 0 deletions packages/design-system/src/components/N8nCard/Card.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import N8nCard from './Card.vue';

export default {
title: 'Atoms/Card',
component: N8nCard,
argTypes: {
title: {
control: {
type: 'text',
Copy link
Contributor

Choose a reason for hiding this comment

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

would be good to set a default value here

},
},
},
};

const Template = (args, { argTypes }) => ({
props: Object.keys(argTypes),
components: {
N8nCard,
},
template: '<n8n-card v-bind="$props"></n8n-card>',
Copy link
Contributor

Choose a reason for hiding this comment

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

can you flourish this example more? so fill in the slots so it's not empty and a useful demo of the component

});

export const Card = Template.bind({});
48 changes: 48 additions & 0 deletions packages/design-system/src/components/N8nCard/Card.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<template>
<div :class="$style.card">
Copy link
Contributor

Choose a reason for hiding this comment

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

why does not the card have a border?

<div :class="$style.body">
<n8n-heading :bold="true" size="small">{{ title }}</n8n-heading>
<div :class="$style.content">
<slot name="content"></slot>
</div>
</div>
<div>
<slot name="button"></slot>
</div>
</div>
</template>

<script lang="ts">
export default {
name: 'n8n-card',
props: {
title: {
type: String,
default: '',
},
},
methods: {
},
};
</script>

<style lang="scss" module>
.card {
width: 100%;
min-height: 68px;
Copy link
Contributor

Choose a reason for hiding this comment

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

let's give this card a specific height and width? that way if we need to add another size, we just it behind a prop.

margin-right: var(--spacing-2xs);
padding: var(--spacing-s);
background-color: var(--color-background-xlight);
border-bottom: 1px #dbdfe7 solid;
Copy link
Contributor

Choose a reason for hiding this comment

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

please use css variables for colors

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated

display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
}

.content {
display: flex;
flex-direction: column;
justify-content: space-around;
}
</style>
3 changes: 3 additions & 0 deletions packages/design-system/src/components/N8nCard/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import N8nCard from './Card.vue';

export default N8nCard;
24 changes: 24 additions & 0 deletions packages/design-system/src/components/N8nImage/Image.stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import N8nImage from './Image.vue';

export default {
title: 'Atoms/Image',
component: N8nImage,
argTypes: {
images: {
control: {
type: 'array',
},
},
},
};

const Template = (args, { argTypes }) => ({
props: Object.keys(argTypes),
components: {
N8nImage,
},
template:
'<n8n-image v-bind="$props"></n8n-image>',
});

export const Image = Template.bind({});
Loading