Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
349 commits
Select commit Hold shift + click to select a range
f342eb5
fix(theme): fix dompurify arguments injection (#573)
bartoszherba Feb 8, 2022
e3bc8e6
feat: mobile menu (#569)
AlexanderDevitsky Feb 8, 2022
2b1d8ad
chore: fixed some error reported by eslint (#562)
Feb 8, 2022
3e82d8f
fix: small fixes for mobile (#580)
KevinGorjan Feb 9, 2022
b94fc70
build(dockerfile): binded MAGENTO_BASE_URL to the env variable (#597)
Feb 14, 2022
0010c9a
fix(build): changed image provider to ipx (#599)
Feb 14, 2022
c08bc28
refactor(general): refactor how and where the cart is loaded
bartoszherba Feb 15, 2022
05f53d0
feat(theme): add conditional rendering for a store switcher and curre…
bartoszherba Feb 15, 2022
ed89288
build(tsconfig): changed target in tdconfig files from es5 to es2019
Feb 15, 2022
8e60f7f
build(github actions): updated draft release and merge release GH act…
Feb 15, 2022
4d51e65
refactor(theme): moved loadStores and loadCurrencies to separate com…
Feb 14, 2022
c38f128
refactor(theme): refactored store switcher
Feb 14, 2022
f513425
refactor(theme): refactored currency swithcer
Feb 15, 2022
1aaed3d
feat(theme): added useApi composable, refactored topBar
Feb 16, 2022
5855c30
chore(composables): made useCustomQuery composables deprecated
Feb 16, 2022
4c2dbcc
feat(theme): - add wishlist lazyload and totalItems shared field
bartoszherba Feb 16, 2022
ac62c4a
perf(theme): lazy load loginModal
bartoszherba Feb 17, 2022
1a00a39
feat(theme): add LoadWhenVisible component and lazyload footer
bartoszherba Feb 17, 2022
ef3f092
refactor(theme): changed VSF logo and favicon
Feb 18, 2022
c93573c
refactor(theme): fixed cms pages layout
Feb 18, 2022
223f667
build: added redis
Feb 18, 2022
e39a1a0
build: fixed redis cache invalidation
Feb 18, 2022
5e5c0f5
build(build): fixed merge-release GH action
Feb 18, 2022
e21beef
fix(theme): clear login modal reset password data when modal is closed
bartoszherba Feb 21, 2022
b014d3d
refactor(theme): add homepage missing german translations
bartoszherba Feb 21, 2022
9f3447d
perf(theme): appHeader navigation improvement
bartoszherba Feb 17, 2022
cc06536
build(deployment): changed URL of Magento backend
Feb 21, 2022
c84bb79
fix(redis): added missing redis config
Feb 22, 2022
659db4e
refactor(theme): refactor SearchBar component
bartoszherba Feb 21, 2022
22f8bf0
fix(config): fixed redis__enabled varaible binding
Feb 22, 2022
e629ffb
build(cache): enabled varnish
Feb 23, 2022
35ebca2
fix(api): fix cart_id graphql error
bartoszherba Feb 22, 2022
b57824f
fix: centered empty cart text and image
Feb 22, 2022
8434082
feat(theme): add sorting select in the navbar on the mobile category …
bartoszherba Feb 23, 2022
fec7331
fix(theme): [Category] Save for later button should be hidden for gue…
Feb 22, 2022
503f05c
fix(theme): [My Account] Aligned State/Province input
Feb 22, 2022
9a86559
chore(theme): Product removal confirmation out of viewport
Diegoalbag Feb 22, 2022
3daf7af
fix(theme): added radio-button filter for mobile
KevinGorjan Feb 17, 2022
259f653
fix(theme): refactored how the selected filters values are set
KevinGorjan Feb 23, 2022
488e7a3
feat: asset Optimization
Feb 18, 2022
b3f11c9
feat(theme): add pagination on the category mobile view
bartoszherba Feb 23, 2022
e1a5653
fix(theme): [Product] Fixed Additional information tab
Feb 23, 2022
8d08941
refactor: optimized build, fixed small bugs
Feb 24, 2022
b003b94
fix(myaccount): fix few bugs on my account
bartoszherba Feb 22, 2022
8a4b1d5
refactor(theme): made TopBar component lazy loaded
Feb 18, 2022
a08324b
refactor(theme): fixed cache issues
Feb 25, 2022
d879b75
fix(theme): refactored when clicking outside the search-results
KevinGorjan Feb 25, 2022
fe43e74
fix(theme): better aligned search input icon
KevinGorjan Feb 25, 2022
32d8ad8
fix(theme): refactored watcher
KevinGorjan Feb 25, 2022
cf9518f
chore: updated readme
Feb 28, 2022
4c3de2d
refactor(theme): category page refactoring step-1
bartoszherba Feb 23, 2022
52afd57
chore(theme): Customer cannot change their email on mobile
Diegoalbag Feb 25, 2022
ecb2c7c
Update package.json
filipsobol Mar 1, 2022
ac63f62
fix(theme): center wishlist `<SvgImage>` vertically
sethidden Mar 2, 2022
aac1472
fix(theme): add products from list view with correct quantity
sethidden Mar 2, 2022
867cc84
feat(theme): add basic skeleton loader component
bartoszherba Mar 2, 2022
fca9096
build: refactored precommit hooks execution
Mar 2, 2022
0a7a2ec
fix(theme): better looking default shipping/billing address badges
sethidden Mar 3, 2022
3f1cbe4
fix(M2-146): Correct desktop order history column alignment
youanden Mar 7, 2022
b2077de
fix(theme): fix error when adding single quantity product
sethidden Mar 8, 2022
29a41a5
feat: migrate to ESM and esbuild
filipsobol Mar 1, 2022
b75abc6
chore: revert few changes
filipsobol Mar 1, 2022
f9d32b1
chore: restore yarn.lock in docs
filipsobol Mar 1, 2022
f07a478
docs: update TypeScript and yarn.lock
filipsobol Mar 1, 2022
788f04d
chore: revert changes that require Node 16
filipsobol Mar 1, 2022
30a5d8a
chore: revert changes
filipsobol Mar 1, 2022
9f43e6f
chore: improve dev command in api-client
filipsobol Mar 4, 2022
fd223b3
fix(theme): fix cart's product url resolving for a configurable products
bartoszherba Mar 8, 2022
30810ff
chore: allign main to develop after 1.0.0-rc.6 release (#697)
Mar 8, 2022
bd961f0
refactor(category.sidebar): refactor category tree
bartoszherba Mar 4, 2022
3cb3652
feat(theme): add our own styles for the default Magento Luma theme CM…
sethidden Mar 4, 2022
59347a6
fix(theme): remove redundant console logs
bartoszherba Mar 8, 2022
a06b224
fix(M2-105): Clear localStorage on logout
youanden Mar 8, 2022
d807ee0
refactor(composables): align refactor perf improvements branch to cur…
bartoszherba Mar 10, 2022
125b039
fix(theme): fix broken cms page load (new composables break that part…
bartoszherba Mar 11, 2022
3b08bd4
fix(theme): improve skeleton for the category sidebar (#716)
bartoszherba Mar 11, 2022
ba012fd
refactor(composable): refactor useNewslettter composable (#719)
bartoszherba Mar 11, 2022
896a415
refactor(composables): refactor useProduct composable (#721)
bartoszherba Mar 14, 2022
ffaa427
Remove duplicate environment variables (#724)
aapokiiso Mar 14, 2022
1b11e9c
feat(theme): support navigating to nested categories in mobile side m…
sethidden Mar 15, 2022
b783852
feat(M2-292): optimize google fonts (#714)
Mar 15, 2022
1a56aaa
refactor(composables): refactor shipping related composables (#733)
bartoszherba Mar 15, 2022
dd38e2c
fix: fixed 404 page issues and my-account redirects for non-logged us…
Mar 15, 2022
85f06a3
refactor: refactored usedRelatedProducts composable (#732)
Mar 15, 2022
67fcc26
chore(M2-261): refactor getters from composables to theme (#730)
youanden Mar 15, 2022
eefb70a
fix(homepage): fixed new products carousel ssr rendering issues (#736)
Mar 16, 2022
cae48a7
fix(composables): revert getters (#739)
bartoszherba Mar 16, 2022
34431dd
chore: update @vue-storefront packages to 2.5.6 (#740)
sethidden Mar 16, 2022
b242f79
refactor(theme): copy composable helpers to theme (#734)
sethidden Mar 17, 2022
f2ffd38
feat(api-client): improve performance of node HTTP calls (#737)
marc-arnoult Mar 17, 2022
0f57da4
refactor(composable): refactor useReview (#729)
sethidden Mar 17, 2022
d4b77e2
refactor(composable): refactor useBilling (#744)
bartoszherba Mar 17, 2022
1716ae8
refactor(composables): refactor usePaymentProvider (#745)
bartoszherba Mar 17, 2022
ed1daa1
refactor: refactored useAddresses (#743)
Mar 17, 2022
17aac12
refactor(composables): refactor useMakeOrder composable
bartoszherba Mar 17, 2022
64aa552
refactor(theme): refactored useUpsellProducts composable (#738)
Mar 18, 2022
9f5fee9
refactor: refactored useUrlResolver (#747)
Mar 18, 2022
f860a6e
refactor(theme): refactored HeaderLogo component to use the new useCo…
Mar 18, 2022
c138001
refactor: refactored useUserOrder composable (#748)
Mar 18, 2022
c2f0cce
refactor(theme): refactored SearchBar component to use new composable…
Mar 18, 2022
d9c8202
refactor(composable): refactor useUserShipping (#751)
bartoszherba Mar 18, 2022
1f3268e
refactor(theme): disable @vue-storefront/core $vsf context plugin (#741)
sethidden Mar 18, 2022
52e07c9
chore: add concurrency control to GitHub actions (#754)
bloodf Mar 21, 2022
d87675b
refactor: refactores types and composables to new ones from theme (#752)
Mar 21, 2022
55cce48
refactor(composables): refactor useUserBilling (#756)
bartoszherba Mar 21, 2022
30f783b
chore: auto-assign team members to pull requests
sethidden Mar 21, 2022
cc7d50e
refactor: refactored useCOuntrySearch composable (#757)
Mar 21, 2022
a95a6b8
refactor(theme): @vue-storefront types dependency refactoring (#758)
bartoszherba Mar 22, 2022
eb8f8e1
fix(checkout): fix issue with blocked payment method step (#764)
bartoszherba Mar 22, 2022
21f254d
refactor: move magento nuxt integration plugin to theme (#755)
sethidden Mar 22, 2022
077493f
refactor(composable): add missing depercated annotations (#767)
bartoszherba Mar 23, 2022
5759dfc
chore: remove @vue-storefront/magento dependency from theme
sethidden Mar 22, 2022
e2214bd
fix(notification): remove notification cookie once the message is dis…
bartoszherba Mar 23, 2022
d15e140
fix(myaccount): fix error handling for customer data and email update…
bartoszherba Mar 23, 2022
97cb251
refactor: removed links from order's product (#778)
Mar 23, 2022
797f8a9
chore: fix pre-commit hook warning for {.vue}
sethidden Mar 23, 2022
cf45c73
fix: fixed adding/removing address funcionality (#776)
Mar 23, 2022
2a3b8b8
refactor(theme): update Storefront-UI to 0.13.0 (#781)
bloodf Mar 24, 2022
462693e
build: disabled nuxt modern mode (#762)
Mar 24, 2022
18e0855
chore: add more GitHub environments for more detailed Jira deployment…
sethidden Mar 24, 2022
cb11323
fix: remove prepare-commit-msg hook
sethidden Mar 23, 2022
3397037
fix(theme): remove placeholder for a sorting mechanism in the categor…
bartoszherba Mar 24, 2022
7887cf9
fix(theme): billing address is cleared while returning to billing ste…
bartoszherba Mar 24, 2022
b5f6fa4
refactor(theme): refactored bundle and grouped products (#784)
Mar 24, 2022
1e0791a
chore: hide yarn-specific output in precommit hook (#788)
sethidden Mar 25, 2022
ec19778
chore: run eslint only 1 time instead of 3 times (#787)
sethidden Mar 25, 2022
1459af8
refactor: disabled sfui core plugin (#785)
Mar 25, 2022
f0d7175
chore: lint-staged should be run only once (#789)
sethidden Mar 25, 2022
26b1074
fix: M2-298. fixed broken my account pages, removed onSSR hooks (#790)
Mar 25, 2022
c7f698e
refactor: replace @vue-storefront/core logger plugin
sethidden Mar 25, 2022
2ea5962
chore: remove context shim (#791)
sethidden Mar 25, 2022
adcabff
refactor: remove dependencies on @vue-storefront/core types
sethidden Mar 25, 2022
0f7db01
fix: add missing magentoConfig property
sethidden Mar 25, 2022
b9d4775
fix: setCurrency can take customQuery
sethidden Mar 25, 2022
f4817e5
refactor: refactored i18n plugins (#794)
Mar 30, 2022
bcf83a8
fix: M2-222. fixed my account issues (#795)
Mar 30, 2022
ba8b7f9
fix: fixed my account buttons (#799)
Mar 31, 2022
01cf409
ci: add commit sha as redis prefix
sethidden Mar 31, 2022
9f0e833
fix(category): move products loading to onMount hook to avoid caching…
bartoszherba Apr 1, 2022
38ea843
refactor: unify cookie retrieval (#797)
sethidden Apr 4, 2022
460a25f
ci!: simplify env config (#813)
sethidden Apr 5, 2022
fe3f793
chore: add PWA icon
sethidden Apr 5, 2022
53da861
chore: fix staging .yml crashing precommit hook
sethidden Apr 5, 2022
b1bcbe4
docs: M2-371. generate composables doc from jsdoc comments (#800)
filipsobol Apr 6, 2022
6305a34
fix: fix useContent jsdoc examples (#820)
VitorLuizC Apr 7, 2022
2ae3ce0
fix: vsf has no redis on localhost
sethidden Apr 7, 2022
15bddd7
ci: invalidate cache after 1 day
sethidden Apr 7, 2022
f9b0df0
fix(checkout): accept one-digit house numbers (#824)
sethidden Apr 8, 2022
6c7afd2
chore: fix some "yarn install" peer dependency warnings (#818)
sethidden Apr 8, 2022
999be75
refactor(filter): rework filters (#815)
bartoszherba Apr 8, 2022
b4a2c46
refactor: refactored useCategory for better dx experience (#829)
Apr 8, 2022
95cba63
feat(catalog): breadcrumbs (#819)
sethidden Apr 8, 2022
878c917
docs: add JSDoc comments to useAddress composable, its types and the …
VitorLuizC Apr 11, 2022
c7f0296
docs: document useCategory composable, its types and related API meth…
VitorLuizC Apr 11, 2022
3716c3e
docs: update Environments document (#832)
filipsobol Apr 11, 2022
aab6a62
refactor(filters): add information about selected filters in filters …
bartoszherba Apr 11, 2022
64a586b
docs: update Supported features document (#833)
filipsobol Apr 11, 2022
b88d4ca
fix: image provider options (#838)
bartoszherba Apr 12, 2022
fd0749e
feat!: make `error`, `loading`, and `result` properties readonly on `…
VitorLuizC Apr 13, 2022
e8ea5ab
refactor: removed size guide (#840)
Apr 13, 2022
0482f1c
fix: fixed review submittion on PDP (#841)
Apr 13, 2022
ef3411a
fix: fixed useCategorySearch issues (#849)
Apr 13, 2022
c43f004
refactor: move graphql client to context (#839)
sethidden Apr 13, 2022
dc296b1
feat!: define a type for billingDetails and make refs readonly in the…
VitorLuizC Apr 13, 2022
d339d4d
feat: add more support for cloudinary images (#850)
bartoszherba Apr 13, 2022
0b33726
fix: tags resolving on pdp
bartoszherba Apr 13, 2022
6b38fe0
feat!: make `loading` and `error` properties readonly in the `useUser…
filipsobol Apr 13, 2022
f30b201
chore: pinia `this.` shouldn't be `any`
sethidden Apr 13, 2022
d806afb
chore: display types for pinia's nuxt context plugin
sethidden Apr 13, 2022
fe85798
refactor: pull out api client from pinia's nuxt context
sethidden Apr 13, 2022
39046a0
feat!: make `loading` and `error` properties readonly in the `useCart…
roziscoding Apr 14, 2022
607c457
chore: removed cache-control settings from product and category page …
Apr 14, 2022
38bb44d
feat!: make `loading` and `error` properties readonly in the `useWish…
filipsobol Apr 14, 2022
d8777a0
feat!: make `loading` property readonly in the `useConfig` composable…
roziscoding Apr 14, 2022
5bb4b7f
feat!: make `error` and `loading` properties readonly on `useCountryS…
roziscoding Apr 14, 2022
83439dc
feat!: make `loading` and `error` readonly in useExternalCheckout com…
roziscoding Apr 14, 2022
1ca3938
refactor: refactored useCurrency `load` and `change` methods (#857)
Apr 14, 2022
b4ea0e5
feat!: make `useForgotPassword` properties readonly (#860)
roziscoding Apr 15, 2022
b2f26c3
refactor: remove category getters call from app header (#853)
bartoszherba Apr 15, 2022
f76df49
feat!: make `error` and `loading` properties readonly on `useCurrency…
VitorLuizC Apr 15, 2022
2be793b
refactor: search results (#867)
bartoszherba Apr 15, 2022
2275f07
chore: include e2e tsconfig for ts-eslint (#869)
sethidden Apr 15, 2022
38aa223
refactor: store config query (#862)
bartoszherba Apr 15, 2022
e89a816
perf!: load whole user object only when necessary (#859)
sethidden Apr 15, 2022
f5ccf16
perf: run speedcurve tests after deployment
sethidden Apr 15, 2022
613c41a
fix: fix wrong ref path and use speedcurve action 1.2.2
sethidden Apr 15, 2022
1f62552
ci: github tokens don't launch deployment_status events
sethidden Apr 15, 2022
caabadf
ci: fix speedcurve workflow condition false negative
sethidden Apr 19, 2022
e2b9bf9
ci: fix empty speedcurve note
sethidden Apr 19, 2022
b107ce8
feat!: make `error` and `loading` properties readonly on `useUserAddr…
filipsobol Apr 19, 2022
3148fb3
feat!: make `error` and `loading` properties readonly in the `useGetS…
roziscoding Apr 20, 2022
ee78753
feat!: make `error` and `loading` properties readonly in `useGuestUse…
roziscoding Apr 20, 2022
e085a5d
refactor: remove category getters (#886)
bartoszherba Apr 20, 2022
ade286a
docs: add `useImage` composable JSDoc (#876)
roziscoding Apr 20, 2022
101b257
feat!: make `error` and `loading` properties readonly on `useFacet` c…
VitorLuizC Apr 20, 2022
b403e6e
ci: improve speedcurve note readability
sethidden Apr 20, 2022
4ba11de
feat!: make `error` and `loading` properties readonly on `useUser` co…
filipsobol Apr 20, 2022
e1d11c5
feat!: make `error` and `loading` properties readonly on `useUpsellPr…
filipsobol Apr 20, 2022
1657629
refactor: make everything in catalog module use TypeScript (#872)
sethidden Apr 20, 2022
19a3653
refactor: move desktop category filters from SfSidebar to the main la…
bartoszherba Apr 20, 2022
b841691
feat!: make `error` and `loading` properties readonly on `useMakeOrde…
VitorLuizC Apr 21, 2022
38bc2ca
feat: show category title below breadcrumbs (#892)
sethidden Apr 21, 2022
6ea5285
refactor: helpers in catalog module
bartoszherba Apr 20, 2022
3574d85
feat!: make `error` and `loading` properties readonly on `usePaymentP…
VitorLuizC Apr 21, 2022
36a6957
feat!: make `error` and `loading` properties readonly on `useNewslett…
VitorLuizC Apr 21, 2022
4c41bca
docs: `useUpsellProducts` composable (M2-398) (#902)
filipsobol Apr 21, 2022
9024d1f
docs: `useUiNotification` composable (M2-397) (#904)
filipsobol Apr 22, 2022
bfd0018
feat!: make `error` and `loading` properties readonly on `useStore` c…
filipsobol Apr 22, 2022
4db5468
fix: password reset issue (#909)
bartoszherba Apr 22, 2022
9130b2b
docs: remove API methods from sidebar (#919)
filipsobol Apr 25, 2022
089c312
feat!: make `error` and `loading` properties readonly on `useReview` …
filipsobol Apr 25, 2022
51e1b2a
fix: wishlist sidebar (#918)
bartoszherba Apr 25, 2022
f9dd219
feat!: refactor `useProduct` composable `error` and make its refs rea…
VitorLuizC Apr 25, 2022
05e05be
feat: Home Page - Changed products carousel to products section (#914)
AlexanderDevitsky Apr 25, 2022
4b659b9
build: fixed build errors and warnings (#920)
Apr 25, 2022
c48b468
feat!: make `error` and `loading` properties readonly on `useRelatedP…
VitorLuizC Apr 26, 2022
2e19887
feat!: make `error` and `loading` properties readonly on `useShipping…
VitorLuizC Apr 26, 2022
3ea6d4b
feat!: make `error` and `loading` properties readonly on `useShipping…
VitorLuizC Apr 26, 2022
a94a755
feat: define types and write docs for `useUiHelpers` composable (#923)
VitorLuizC Apr 26, 2022
6dc0d83
feat!: standardize `useMagentoConfiguration` composable (#924)
VitorLuizC Apr 26, 2022
a8f100d
feat!: standardize `useUrlResolver` composable and make its propertie…
VitorLuizC Apr 26, 2022
29326c9
refactor: components for product list/grid
sethidden Apr 21, 2022
808cefe
test: add global vue/nuxt mocks for unit tests
sethidden Apr 25, 2022
7dcf281
feat: Homepage - Lazy load offscreen components (#915)
AlexanderDevitsky Apr 26, 2022
0a56673
fix: make color swatch visible on mobile (#926)
sethidden Apr 26, 2022
1666c06
fix: product wrong swipe icon direction (#927)
sethidden Apr 26, 2022
a1133fb
feat: homepage - changed slider to hero section (#928)
AlexanderDevitsky Apr 27, 2022
f3237a7
feat: Added preconnect link to site head for cloudinary (#929)
AlexanderDevitsky Apr 27, 2022
495fb69
fix: product tab click should scroll to tab content (#931)
sethidden Apr 27, 2022
871b9b3
fix: various categoryTree bugs (#932)
sethidden Apr 27, 2022
f802996
feat: header categories (#903)
bartoszherba Apr 28, 2022
3d0bc07
fix: prevent content jump when variant is selected on PDP
bartoszherba Apr 27, 2022
20f2212
fix: resolve CR issues
bartoszherba Apr 27, 2022
a5fe924
feat: write docs and export useApi and its type from ~/composables (#…
VitorLuizC Apr 28, 2022
4637adc
refactor: move products related code to the module spaces
bartoszherba Apr 28, 2022
80283d1
refactor: customer module (#937)
sethidden Apr 29, 2022
9d711c0
refactor: move remaining composables to the category module
bartoszherba Apr 29, 2022
f18a19b
refactor: use localeroute instead of string path (#940)
sethidden Apr 29, 2022
97dbb13
test: CategoryEmptyResults component (#934)
Diegoalbag Apr 29, 2022
2643ce1
refactor: create wishlist module
bartoszherba May 4, 2022
3db022b
feat: add skeleton loaders in category navbar
bartoszherba Apr 28, 2022
5cd6221
chore: release 1.0.0-rc.7
web-flow May 4, 2022
498e4ed
Merge branch 'main' into release/1.0.0-rc.7
May 4, 2022
5f65511
docs: update vuepress and fix error during a build (#954)
filipsobol May 6, 2022
fda0145
chore: fixed conflicts in getters/types
May 10, 2022
b20d4f6
docs: fixed docs issues
filipsobol May 11, 2022
49a7290
docs: added migration guide for rc.7
May 23, 2022
e0a6220
Merge branch 'main' into release/1.0.0-rc.7
May 24, 2022
cc53cc1
docs: removed depracated composables guides
May 24, 2022
86b4c7f
build: added api extraction to docs build command
May 24, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 12 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ module.exports = {
parserOptions: {
parser: '@typescript-eslint/parser',
project: [
resolve(__dirname, './tsconfig.base.json'),
resolve(__dirname, './tsconfig.json'),
resolve(__dirname, './packages/api-client/tsconfig.json'),
resolve(__dirname, './packages/composables/tsconfig.json'),
resolve(__dirname, './packages/theme/tsconfig.json')
resolve(__dirname, './packages/theme/tsconfig.json'),
resolve(__dirname, './packages/theme/tests/e2e/tsconfig.json'),
],
tsconfigRootDir: __dirname,
extraFileExtensions: ['.vue'],
Expand All @@ -30,6 +31,14 @@ module.exports = {
'@vue-storefront/eslint-config-jest',
],
rules: {
"@typescript-eslint/no-floating-promises": "off"
"@typescript-eslint/no-floating-promises": "off",
"jest/expect-expect": [
"error",
{
"assertFunctionNames": ["expect", "getByRole", "getByTestId"],
}
],
"no-plusplus": "off",
}
}

1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @Frodigo @bartoszherba @sethidden
4 changes: 4 additions & 0 deletions .github/workflows/assing-pr-to-author.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
pull_request:
types: [opened, ready_for_review, edited, synchronize]

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
assignAuthor:
name: Assing
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/conventional-pr-name.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
lint:
name: Validate PR Title (conventional-commit)
Expand Down
184 changes: 85 additions & 99 deletions .github/workflows/deploy-vue-storefront-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- main
- develop
- enterprise
- release/*

jobs:
Expand All @@ -25,108 +26,93 @@ jobs:
password: ${{ secrets.CLOUD_PASSWORD }}
dockerfile: .vuestorefrontcloud/docker/Dockerfile
buildoptions: --compress
buildargs: NPM_EMAIL,NPM_PASS,NPM_USER,NPM_REGISTRY,STORE_URL,MAGENTO_GRAPHQL,MAGENTO_EXTERNAL_CHECKOUT,MAGENTO_EXTERNAL_CHECKOUT_URL,MAGENTO_EXTERNAL_CHECKOUT_SYNC_PATH,IMAGE_PROVIDER,IMAGE_PROVIDER_BASE_URL,REDIS__HOST,REDIS__PORT,REDIS__CACHE_INVALIDATE_KEY,REDIS__CACHE_INVALIDATE_URL,REDIS__KEY_PREFIX,REDIS__ENABLED,SENTRY_DSN,RECAPTCHA_SITE_KEY,RECAPTCHA_SECRET_KEY
buildargs: NPM_EMAIL,NPM_PASS,NPM_USER,NPM_REGISTRY,LAST_COMMIT,VSF_STORE_URL,VSF_MAGENTO_BASE_URL,VSF_MAGENTO_GRAPHQL_URL,VSF_MAGENTO_EXTERNAL_CHECKOUT_ENABLED,VSF_MAGENTO_EXTERNAL_CHECKOUT_URL,VSF_MAGENTO_EXTERNAL_CHECKOUT_SYNC_PATH,VSF_IMAGE_PROVIDER,VSF_IMAGE_PROVIDER_BASE_URL,VSF_IMAGE_PROVIDER_DOMAIN,VSF_REDIS_HOST,VSF_REDIS_PORT,VSF_REDIS_CACHE_INVALIDATE_KEY,VSF_REDIS_CACHE_INVALIDATE_URL,VSF_REDIS_KEY_PREFIX,VSF_REDIS_ENABLED,VSF_RECAPTCHA_ENABLED,VSF_RECAPTCHA_HIDE_BADGE,VSF_RECAPTCHA_VERSION,VSF_RECAPTCHA_SIZE,VSF_RECAPTCHA_MIN_SCORE,VSF_RECAPTCHA_SITE_KEY,VSF_RECAPTCHA_SECRET_KEY,VSF_SENTRY_DSN,

env:
NPM_EMAIL: ${{ secrets.NPM_EMAIL }}
NPM_PASS: ${{ secrets.CLOUD_PASSWORD }}
NPM_USER: ${{ secrets.CLOUD_USERNAME }}
NPM_PASS: ${{ secrets.CLOUD_PASSWORD }}
NPM_REGISTRY: https://registrynpm.storefrontcloud.io
STORE_URL: ${{ secrets.STORE_URL }}
MAGENTO_GRAPHQL: ${{ secrets.MAGENTO_GRAPHQL }}
MAGENTO_EXTERNAL_CHECKOUT: false
MAGENTO_EXTERNAL_CHECKOUT_URL: ${{ secrets.MAGENTO_EXTERNAL_CHECKOUT_URL }}
MAGENTO_EXTERNAL_CHECKOUT_SYNC_PATH: ${{ secrets.MAGENTO_EXTERNAL_CHECKOUT_SYNC_PATH }}
IMAGE_PROVIDER: ${{ secrets.IMAGE_PROVIDER }}
IMAGE_PROVIDER_BASE_URL: ${{ secrets.IMAGE_PROVIDER_BASE_URL }}
REDIS__HOST: ${{ secrets.REDIS__HOST }}
REDIS__PORT: ${{ secrets.REDIS__PORT }}
REDIS__KEY_PREFIX: ${{ secrets.REDIS__KEY_PREFIX }}
REDIS__CACHE_INVALIDATE_KEY: ${{ secrets.REDIS__CACHE_INVALIDATE_KEY }}
REDIS__CACHE_INVALIDATE_URL: ${{ secrets.REDIS__CACHE_INVALIDATE_URL }}
REDIS__ENABLED: ${{ secrets.REDIS__ENABLED }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
RECAPTCHA_SITE_KEY: ${{ secrets.RECAPTCHA_SITE_KEY }}
RECAPTCHA_SECRET_KEY: ${{ secrets.RECAPTCHA_SECRET_KEY }}
deploy:
runs-on: ubuntu-latest

VSF_STORE_URL: '' # TODO

VSF_MAGENTO_BASE_URL: https://magento2-instance.vuestorefront.io/
VSF_MAGENTO_GRAPHQL_URL: https://magento2-instance.vuestorefront.io/graphql
VSF_MAGENTO_EXTERNAL_CHECKOUT_ENABLED: false
VSF_MAGENTO_EXTERNAL_CHECKOUT_URL: ''
VSF_MAGENTO_EXTERNAL_CHECKOUT_SYNC_PATH: ''

VSF_IMAGE_PROVIDER: cloudinary
VSF_IMAGE_PROVIDER_BASE_URL: https://res-4.cloudinary.com/dnozky7on/image/upload/
VSF_IMAGE_PROVIDER_DOMAIN: https://res-4.cloudinary.com

VSF_REDIS_ENABLED: true
VSF_REDIS_HOST: redis # VSF cloud specific
VSF_REDIS_PORT: 6379
VSF_REDIS_KEY_PREFIX: ${{ github.sha }}
VSF_REDIS_CACHE_INVALIDATE_KEY: magento2vsf2
VSF_REDIS_CACHE_INVALIDATE_URL: /cache-invalidate

VSF_RECAPTCHA_ENABLED: false
VSF_RECAPTCHA_HIDE_BADGE: false
VSF_RECAPTCHA_VERSION: 3
VSF_RECAPTCHA_SIZE: invisible
VSF_RECAPTCHA_MIN_SCORE: 0.5
VSF_RECAPTCHA_SITE_KEY: 6Ldce0EeAAAAAAGGtGWG-e-SygXiFub6PXHT5fKd
VSF_RECAPTCHA_SECRET_KEY: ${{ secrets.RECAPTCHA_SECRET_KEY }}

VSF_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}

LAST_COMMIT: ${{ github.sha }}

deploy-main:
uses: ./.github/workflows/deployment-template.yml
needs: build
steps:
- uses: chrnorm/deployment-action@releases/v1
name: Create GitHub deployment
id: deployment
with:
token: ${{ github.token }}
target_url: https://demo-magento2.europe-west1.gcp.storefrontcloud.io
environment: production
initial_status: in_progress
- name: Deploy on demo-magento2.europe-west1.gcp.storefrontcloud.io
if: startsWith(github.ref, 'refs/heads/main')
run: |
if curl -s -H 'X-User-Id: ${{ secrets.CLOUD_USERNAME }}' -H 'X-Api-Key: ${{ secrets.CLOUD_PASSWORD }}' -H 'Content-Type: application/json' -X POST -d '{
"code":"demo-magento2",
"region":"europe-west1.gcp",
"frontContainerVersion":"${{ github.sha }}"
}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then
echo "Instance updated"
else
echo "Something went wrong during the update process..."
exit 1
fi
- name: Deploy on demo-magento2-dev.europe-west1.gcp.storefrontcloud.io/
if: startsWith(github.ref, 'refs/heads/develop')
run: |
if curl -s -H 'X-User-Id: ${{ secrets.CLOUD_USERNAME }}' -H 'X-Api-Key: ${{ secrets.CLOUD_PASSWORD }}' -H 'Content-Type: application/json' -X POST -d '{
"code":"demo-magento2-dev",
"region":"europe-west1.gcp",
"frontContainerVersion":"${{ github.sha }}"
}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then
echo "Instance updated"
else
echo "Something went wrong during the update process..."
exit 1
fi
- name: Deploy on demo-magento2-canary.europe-west1.gcp.storefrontcloud.io
if: startsWith(github.ref, 'refs/heads/release')
run: |
if curl -s -H 'X-User-Id: ${{ secrets.CLOUD_USERNAME }}' -H 'X-Api-Key: ${{ secrets.CLOUD_PASSWORD }}' -H 'Content-Type: application/json' -X POST -d '{
"code":"demo-magento2-canary",
"region":"europe-west1.gcp",
"frontContainerVersion":"${{ github.sha }}"
}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then
echo "Instance updated"
else
echo "Something went wrong during the update process..."
exit 1
fi
- name: Deploy on demo-magento2-enterprise.europe-west1.gcp.storefrontcloud.io
if: startsWith(github.ref, 'refs/heads/enterprise')
run: |
if curl -s -H 'X-User-Id: ${{ secrets.CLOUD_USERNAME }}' -H 'X-Api-Key: ${{ secrets.CLOUD_PASSWORD }}' -H 'Content-Type: application/json' -X POST -d '{
"code":"demo-magento2-enterprise",
"region":"europe-west1.gcp",
"frontContainerVersion":"${{ github.sha }}"
}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then
echo "Instance updated"
else
echo "Something went wrong during the update process..."
exit 1
fi
if: github.ref == 'refs/heads/main'
with:
github_environment_name: production
environment_code: demo-magento2
target_url: https://demo-magento2.europe-west1.gcp.storefrontcloud.io
secrets:
cloud_username: ${{ secrets.CLOUD_USERNAME }}
cloud_password: ${{ secrets.CLOUD_PASSWORD }}
deployment_status_token: ${{ secrets.DEPLOYMENT_PERSONAL_ACCESS_TOKEN }}

- name: Update deployment status (success)
if: success()
uses: chrnorm/deployment-status@releases/v1
with:
token: ${{ github.token }}
target_url: https://demo-magento2.europe-west1.gcp.storefrontcloud.io
state: success
description: Congratulations! The deploy is done.
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
- name: Update deployment status (failure)
if: failure()
uses: chrnorm/deployment-status@releases/v1
with:
token: ${{ github.token }}
target_url: https://demo-magento2.europe-west1.gcp.storefrontcloud.io
description: Unfortunately, the instance hasn't been updated.
state: failure
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
deploy-develop:
uses: ./.github/workflows/deployment-template.yml
needs: build
if: github.ref == 'refs/heads/develop'
with:
github_environment_name: dev
environment_code: demo-magento2-dev
target_url: https://demo-magento2-dev.europe-west1.gcp.storefrontcloud.io
secrets:
cloud_username: ${{ secrets.CLOUD_USERNAME }}
cloud_password: ${{ secrets.CLOUD_PASSWORD }}
deployment_status_token: ${{ secrets.DEPLOYMENT_PERSONAL_ACCESS_TOKEN }}

deploy-release:
uses: ./.github/workflows/deployment-template.yml
needs: build
if: startsWith(github.ref, 'refs/heads/release')
with:
github_environment_name: canary
environment_code: demo-magento2-canary
target_url: https://demo-magento2-canary.europe-west1.gcp.storefrontcloud.io
secrets:
cloud_username: ${{ secrets.CLOUD_USERNAME }}
cloud_password: ${{ secrets.CLOUD_PASSWORD }}
deployment_status_token: ${{ secrets.DEPLOYMENT_PERSONAL_ACCESS_TOKEN }}

deploy-enterprise:
uses: ./.github/workflows/deployment-template.yml
needs: build
if: github.ref == 'refs/heads/enterprise'
with:
github_environment_name: enterprise
environment_code: demo-magento2-enterprise
target_url: https://demo-magento2-enterprise.europe-west1.gcp.storefrontcloud.io
secrets:
cloud_username: ${{ secrets.CLOUD_USERNAME }}
cloud_password: ${{ secrets.CLOUD_PASSWORD }}
deployment_status_token: ${{ secrets.DEPLOYMENT_PERSONAL_ACCESS_TOKEN }}
69 changes: 69 additions & 0 deletions .github/workflows/deployment-template.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# https://docs.github.com/en/actions/using-workflows/reusing-workflows#creating-a-reusable-workflow
on:
workflow_call:
inputs:
github_environment_name:
required: true
type: string

environment_code:
required: true
type: string

target_url:
required: true
type: string
secrets:
cloud_username:
required: true
cloud_password:
required: true
deployment_status_token: # can be ${{ github.token }}
required: true


jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: chrnorm/deployment-action@releases/v1
name: Create GitHub deployment
id: deployment
with:
token: ${{ secrets.deployment_status_token }}
environment: ${{ inputs.github_environment_name }}
initial_status: in_progress
target_url: ${{ inputs.target_url }}
- name: Deploy on ${{ inputs.target_url }}
run: |
if curl -s -H 'X-User-Id: ${{ secrets.cloud_username }}' -H 'X-Api-Key: ${{ secrets.cloud_password }}' -H 'Content-Type: application/json' -X POST -d '{
"code":"${{ inputs.environment_code }}",
"region":"europe-west1.gcp",
"frontContainerVersion":"${{ github.sha }}"
}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then
echo "Instance updated"
else
echo "Something went wrong during the update process..."
exit 1
fi

- name: Update deployment status (success)
if: success()
uses: chrnorm/deployment-status@releases/v1
with:
token: ${{ secrets.deployment_status_token }}
target_url: ${{ inputs.target_url }}
state: success
description: Congratulations! The deploy is done.
deployment_id: ${{ steps.deployment.outputs.deployment_id }}

- name: Update deployment status (failure)
if: failure()
uses: chrnorm/deployment-status@releases/v1
with:
token: ${{ secrets.deployment_status_token }}
target_url: ${{ inputs.target_url }}
description: Unfortunately, the instance hasn't been updated.
state: failure
deployment_id: ${{ steps.deployment.outputs.deployment_id }}

25 changes: 25 additions & 0 deletions .github/workflows/speedcurve.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Run SpeedCurve test"

on:
deployment_status

jobs:
speedcurve:
if: github.event.deployment_status.state == 'success' && github.event.deployment.ref == 'refs/heads/develop'
runs-on: ubuntu-latest
steps:
- name: 'Wait for container deployed on VSF Cloud to come online'
run: 'sleep 300'
shell: 'bash'

- name: Shorten deployment commit SHA
id: vars
shell: bash
run: echo "::set-output name=sha_short::$(echo ${{ github.event.deployment.sha }} | cut -c1-8)"

- name: 'Ask SpeedCurve to run performance tests'
uses: SpeedCurve-Metrics/[email protected]
with:
api_key: ${{ secrets.SPEEDCURVE_API_KEY }}
site_id: 744017
note: commit ${{ steps.vars.outputs.sha_short }}
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
- develop
- release-**

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test_repository:
name: Build and test
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,4 @@ dist
.history/
.graphqlconfig
.idea
docs.sh
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lerna run --parallel precommit
yarn run --silent lint-staged
4 changes: 0 additions & 4 deletions .husky/prepare-commit-msg

This file was deleted.

3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.{js,jsx,ts,tsx,vue}": "eslint --fix",
}
Loading