Commit 00863b8d79d0f5b38c2f52365009c7f5ada46f4b
1 parent
5390ddc3
Calvin flavor
Showing
51 changed files
with
89 additions
and
89 deletions
.all-contributorsrc
.github/CONTRIBUTING.md
| 1 | -# Contributing to @vuestorefront/__replace_me__ | |
| 1 | +# Contributing to @vuestorefront/calvin | |
| 2 | 2 | We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's: |
| 3 | 3 | |
| 4 | 4 | - Reporting a bug |
| ... | ... | @@ -13,8 +13,8 @@ We use github to host code, to track issues and feature requests, as well as acc |
| 13 | 13 | ## Any contributions you make will be under the MIT Software License |
| 14 | 14 | In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern. |
| 15 | 15 | |
| 16 | -## Report bugs using Github's [issues](https://github.com/vuestorefront/__replace_me__/issues) | |
| 17 | -We use GitHub issues to track public bugs. Report a bug by [opening a new issue](https://github.com/vuestorefront/__replace_me__/issues/new); it's that easy! | |
| 16 | +## Report bugs using Github's [issues](https://github.com/vuestorefront/calvin/issues) | |
| 17 | +We use GitHub issues to track public bugs. Report a bug by [opening a new issue](https://github.com/vuestorefront/calvin/issues/new); it's that easy! | |
| 18 | 18 | |
| 19 | 19 | ## Write bug reports with detail, background, and sample code |
| 20 | 20 | **Great Bug Reports** tend to have: | ... | ... |
.github/ISSUE_TEMPLATE/1.bug-report.yml
| ... | ... | @@ -41,7 +41,7 @@ body: |
| 41 | 41 | required: false |
| 42 | 42 | - type: input |
| 43 | 43 | attributes: |
| 44 | - label: What version of __replace_me__ integration are you using? | |
| 44 | + label: What version of calvin integration are you using? | |
| 45 | 45 | description: 'For example: 1.0.0' |
| 46 | 46 | validations: |
| 47 | 47 | required: true | ... | ... |
.github/ISSUE_TEMPLATE/2.documentation-issue.yml
| ... | ... | @@ -25,7 +25,7 @@ body: |
| 25 | 25 | id: terms |
| 26 | 26 | attributes: |
| 27 | 27 | label: Code of Conduct |
| 28 | - description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/vuestorefront/__replace_me__/blob/master/CODE_OF_CONDUCT.md) | |
| 28 | + description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/vuestorefront/calvin/blob/master/CODE_OF_CONDUCT.md) | |
| 29 | 29 | options: |
| 30 | 30 | - label: I agree to follow this project's Code of Conduct |
| 31 | 31 | required: true | ... | ... |
.github/ISSUE_TEMPLATE/3.feature-request.yml
| ... | ... | @@ -34,7 +34,7 @@ body: |
| 34 | 34 | id: terms |
| 35 | 35 | attributes: |
| 36 | 36 | label: Code of Conduct |
| 37 | - description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/vuestorefront/__replace_me__/blob/master/CODE_OF_CONDUCT.md) | |
| 37 | + description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/vuestorefront/calvin/blob/master/CODE_OF_CONDUCT.md) | |
| 38 | 38 | options: |
| 39 | 39 | - label: I agree to follow this project's Code of Conduct |
| 40 | 40 | required: true | ... | ... |
.github/ISSUE_TEMPLATE/4.question.yml
| ... | ... | @@ -14,7 +14,7 @@ body: |
| 14 | 14 | required: true |
| 15 | 15 | - type: input |
| 16 | 16 | attributes: |
| 17 | - label: What version of __replace_me__ integration are you using? | |
| 17 | + label: What version of calvin integration are you using? | |
| 18 | 18 | description: 'For example: 1.0.0' |
| 19 | 19 | validations: |
| 20 | 20 | required: true | ... | ... |
.github/workflows/docs-deployment.yaml
| ... | ... | @@ -22,7 +22,7 @@ jobs: |
| 22 | 22 | - name: Build and publish docker image |
| 23 | 23 | uses: elgohr/Publish-Docker-Github-Action@master |
| 24 | 24 | with: |
| 25 | - name: docs-storefrontcloud-io/v2-__replace_me__:${{ steps.get_version.outputs.VERSION }} | |
| 25 | + name: docs-storefrontcloud-io/v2-calvin:${{ steps.get_version.outputs.VERSION }} | |
| 26 | 26 | registry: registry.storefrontcloud.io |
| 27 | 27 | username: ${{ secrets.DOCS_CLOUD_USERNAME }} |
| 28 | 28 | password: ${{ secrets.DOCS_CLOUD_PASSWORD }} |
| ... | ... | @@ -46,12 +46,12 @@ jobs: |
| 46 | 46 | id: deployment |
| 47 | 47 | with: |
| 48 | 48 | token: "${{ github.token }}" |
| 49 | - target_url: https://docs.europe-west1.gcp.storefrontcloud.io/__replace_me__ | |
| 49 | + target_url: https://docs.europe-west1.gcp.storefrontcloud.io/calvin | |
| 50 | 50 | environment: production |
| 51 | 51 | initial_status: in_progress |
| 52 | - - name: Deploy on docs.europe-west1.gcp.storefrontcloud.io/__replace_me__ | |
| 52 | + - name: Deploy on docs.europe-west1.gcp.storefrontcloud.io/calvin | |
| 53 | 53 | run: | |
| 54 | - if curl -s -H 'X-User-Id: ${{ secrets.DOCS_CLOUD_USERNAME }}' -H 'X-Api-Key: ${{ secrets.DOCS_CLOUD_PASSWORD }}' -H 'Content-Type: application/json' -X POST -d '{"code":"docs","region":"europe-west1.gcp","additionalApps":{"apps":[{"name":"docs-v2-__replace_me__","tag":"${{ steps.get_version.outputs.VERSION }}","image":"registry.storefrontcloud.io/docs-storefrontcloud-io/v2-__replace_me__","path":"/__replace_me__","port":"80"}]}}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then | |
| 54 | + if curl -s -H 'X-User-Id: ${{ secrets.DOCS_CLOUD_USERNAME }}' -H 'X-Api-Key: ${{ secrets.DOCS_CLOUD_PASSWORD }}' -H 'Content-Type: application/json' -X POST -d '{"code":"docs","region":"europe-west1.gcp","additionalApps":{"apps":[{"name":"docs-v2-calvin","tag":"${{ steps.get_version.outputs.VERSION }}","image":"registry.storefrontcloud.io/docs-storefrontcloud-io/v2-calvin","path":"/calvin","port":"80"}]}}' https://farmer.storefrontcloud.io/instances | grep -q '{"code":200,"result":"Instance updated!"}'; then | |
| 55 | 55 | echo "Instance updated" |
| 56 | 56 | else |
| 57 | 57 | echo "Something went wrong during the update process..." |
| ... | ... | @@ -62,7 +62,7 @@ jobs: |
| 62 | 62 | uses: chrnorm/deployment-status@releases/v1 |
| 63 | 63 | with: |
| 64 | 64 | token: "${{ github.token }}" |
| 65 | - target_url: https://docs.europe-west1.gcp.storefrontcloud.io/__replace_me__ | |
| 65 | + target_url: https://docs.europe-west1.gcp.storefrontcloud.io/calvin | |
| 66 | 66 | state: "success" |
| 67 | 67 | description: Congratulations! The deploy is done. |
| 68 | 68 | deployment_id: ${{ steps.deployment.outputs.deployment_id }} |
| ... | ... | @@ -71,7 +71,7 @@ jobs: |
| 71 | 71 | uses: chrnorm/deployment-status@releases/v1 |
| 72 | 72 | with: |
| 73 | 73 | token: "${{ github.token }}" |
| 74 | - target_url: https://docs.europe-west1.gcp.storefrontcloud.io/__replace_me__ | |
| 74 | + target_url: https://docs.europe-west1.gcp.storefrontcloud.io/calvin | |
| 75 | 75 | description: Unfortunately, the instance hasn't been updated. |
| 76 | 76 | state: "failure" |
| 77 | 77 | deployment_id: ${{ steps.deployment.outputs.deployment_id }} | ... | ... |
.vuestorefrontcloud/docker/docs/Dockerfile
| ... | ... | @@ -10,10 +10,10 @@ RUN cd packages/composables && yarn build && yarn cache clean --all |
| 10 | 10 | |
| 11 | 11 | RUN cd docs \ |
| 12 | 12 | && npm install \ |
| 13 | - && sed -i "s/base: '\/',/base: '\/__replace_me__\/',/g" ./.vuepress/config.js \ | |
| 13 | + && sed -i "s/base: '\/',/base: '\/calvin\/',/g" ./.vuepress/config.js \ | |
| 14 | 14 | && cat ./.vuepress/config.js \ |
| 15 | 15 | && npm run build |
| 16 | 16 | |
| 17 | 17 | FROM nginx |
| 18 | 18 | |
| 19 | -COPY --from=build /var/www/docs/.vuepress/dist /usr/share/nginx/html/__replace_me__ | |
| 19 | +COPY --from=build /var/www/docs/.vuepress/dist /usr/share/nginx/html/calvin | ... | ... |
.vuestorefrontcloud/docker/docs/build-docker.sh
| 1 | 1 | TAG=`git rev-parse HEAD` |
| 2 | -docker build --progress plain -t registry.storefrontcloud.io/docs-storefrontcloud-io/v2-__replace_me__:${TAG:0:8} -f Dockerfile ../../../ | |
| 3 | -# docker push registry.storefrontcloud.io/docs-storefrontcloud-io/v2-__replace_me__:${TAG:0:8} | |
| 2 | +docker build --progress plain -t registry.storefrontcloud.io/docs-storefrontcloud-io/v2-calvin:${TAG:0:8} -f Dockerfile ../../../ | |
| 3 | +# docker push registry.storefrontcloud.io/docs-storefrontcloud-io/v2-calvin:${TAG:0:8} | ... | ... |
CONTRIBUTING.md
| 1 | 1 | # Contributing |
| 2 | 2 | |
| 3 | -Yeay! You want to contribute to @vuestorefront/__replace_me__. That's amazing! To smoothen everyone's experience involved with the project please take note of the following guidelines and rules. | |
| 3 | +Yeay! You want to contribute to @vuestorefront/calvin. That's amazing! To smoothen everyone's experience involved with the project please take note of the following guidelines and rules. | |
| 4 | 4 | |
| 5 | 5 | |
| 6 | 6 | ## Found an Issue? |
| 7 | 7 | |
| 8 | -Thank you for reporting any issues you find. We do our best to test and make @vuestorefront/__replace_me__ as solid as possible, but any reported issue is a real help. | |
| 8 | +Thank you for reporting any issues you find. We do our best to test and make @vuestorefront/calvin as solid as possible, but any reported issue is a real help. | |
| 9 | 9 | |
| 10 | 10 | Please follow these guidelines when reporting issues: |
| 11 | 11 | |
| ... | ... | @@ -13,14 +13,14 @@ Please follow these guidelines when reporting issues: |
| 13 | 13 | - Tag your issue with the tag `bug` |
| 14 | 14 | - Provide a short summary of what you are trying to do |
| 15 | 15 | - Provide the log of the encountered error if applicable |
| 16 | -- Provide the exact version of @vuestorefront/__replace_me__. | |
| 16 | +- Provide the exact version of @vuestorefront/calvin. | |
| 17 | 17 | - Be awesome and consider contributing a [pull request](#want-to-contribute) |
| 18 | 18 | |
| 19 | 19 | ## Want to contribute? |
| 20 | 20 | |
| 21 | 21 | Please consider these guidelines when filing a pull request: |
| 22 | 22 | |
| 23 | -> @vuestorefront/__replace_me__ pull requests | |
| 23 | +> @vuestorefront/calvin pull requests | |
| 24 | 24 | |
| 25 | 25 | - Follow the [Coding Rules](#coding-rules) |
| 26 | 26 | - Follow the [Commit Rules](#commit-rules) |
| ... | ... | @@ -35,7 +35,7 @@ Please consider these guidelines when filing a pull request: |
| 35 | 35 | |
| 36 | 36 | ## Coding Rules |
| 37 | 37 | |
| 38 | -To keep the code base of @vuestorefront/__replace_me__ neat and tidy the following rules apply to every change | |
| 38 | +To keep the code base of @vuestorefront/calvin neat and tidy the following rules apply to every change | |
| 39 | 39 | |
| 40 | 40 | > Coding standards |
| 41 | 41 | |
| ... | ... | @@ -46,7 +46,7 @@ To keep the code base of @vuestorefront/__replace_me__ neat and tidy the followi |
| 46 | 46 | ## Commit Rules |
| 47 | 47 | |
| 48 | 48 | To help everyone with understanding the commit history of commitlint the following commit rules are enforced. |
| 49 | -To make your life easier @vuestorefront/__replace_me__ is commitizen-friendly and provides the npm run-script `commit`. | |
| 49 | +To make your life easier @vuestorefront/calvin is commitizen-friendly and provides the npm run-script `commit`. | |
| 50 | 50 | |
| 51 | 51 | > Commit standards |
| 52 | 52 | ... | ... |
README.md
| ... | ... | @@ -3,7 +3,7 @@ |
| 3 | 3 | This is a template, to use it you must rename the project changing the `{YOUR INTEGRATION NAME}` to the name of the integration you are developing. The name must be in lowercase and without any special characters. |
| 4 | 4 | |
| 5 | 5 | ```sh |
| 6 | -grep -rl '__replace_me__' ./ | xargs sed -i '' 's/__replace_me__/{YOUR INTEGRATION NAME}/g' | |
| 6 | +grep -rl '__replace_me__' ./ | xargs sed -i -e 's/__replace_me__/calvin/g' | |
| 7 | 7 | ``` |
| 8 | 8 | |
| 9 | 9 | ------ |
| ... | ... | @@ -12,7 +12,7 @@ grep -rl '__replace_me__' ./ | xargs sed -i '' 's/__replace_me__/{YOUR INTEGRATI |
| 12 | 12 | <img src="https://user-images.githubusercontent.com/1626923/137092657-fb398d20-b592-4661-a1f9-4135db0b61d5.png" alt="Vue Storefront" height="80px" /> |
| 13 | 13 | </div> |
| 14 | 14 | |
| 15 | -## Vue Storefront 2 integration with __replace_me__ | |
| 15 | +## Vue Storefront 2 integration with calvin | |
| 16 | 16 | |
| 17 | 17 | ### Stay connected |
| 18 | 18 | |
| ... | ... | @@ -39,7 +39,7 @@ vsf init <project_name> && cd <project_name> && yarn && yarn dev |
| 39 | 39 | |
| 40 | 40 | ## How to start if you want to contribute? |
| 41 | 41 | |
| 42 | -Want to contribute? Ping us on `__replace_me__` channel on [our Discord](https://discord.vuestorefront.io)! | |
| 42 | +Want to contribute? Ping us on `calvin` channel on [our Discord](https://discord.vuestorefront.io)! | |
| 43 | 43 | |
| 44 | 44 | ### Requirements: |
| 45 | 45 | - NodeJS v14 or later |
| ... | ... | @@ -49,8 +49,8 @@ Want to contribute? Ping us on `__replace_me__` channel on [our Discord](https:/ |
| 49 | 49 | 2. Clone your fork of the repo |
| 50 | 50 | ``` |
| 51 | 51 | example: |
| 52 | - git clone https://github.com/vuestorefront/__replace_me__.git | |
| 53 | - cd __replace_me__ | |
| 52 | + git clone https://github.com/vuestorefront/calvin.git | |
| 53 | + cd calvin | |
| 54 | 54 | ``` |
| 55 | 55 | 3. Run `yarn` to install dependencies |
| 56 | 56 | 4. Build dependencies `yarn build:api-client && yarn build:composables` |
| ... | ... | @@ -61,12 +61,12 @@ Want to contribute? Ping us on `__replace_me__` channel on [our Discord](https:/ |
| 61 | 61 | ## Resources |
| 62 | 62 | |
| 63 | 63 | - [Vue Storefront Documentation](https://docs.vuestorefront.io/v2/) |
| 64 | -- [__replace_me__ integration Documentation](https://docs.vuestorefront.io/__replace_me__) | |
| 64 | +- [calvin integration Documentation](https://docs.vuestorefront.io/calvin) | |
| 65 | 65 | - [Community Chat](https://discord.vuestorefront.io) |
| 66 | 66 | |
| 67 | 67 | ## Support |
| 68 | 68 | |
| 69 | -If you have any questions about this integration we will be happy to answer them on `__replace_me__` channel on [our Discord](discord.vuestorefront.io). | |
| 69 | +If you have any questions about this integration we will be happy to answer them on `calvin` channel on [our Discord](discord.vuestorefront.io). | |
| 70 | 70 | |
| 71 | 71 | ## Contributors โจ |
| 72 | 72 | ... | ... |
docs/.vuepress/config.js
| 1 | 1 | module.exports = { |
| 2 | - title: 'Vue Storefront 2 for __replace_me__', | |
| 2 | + title: 'Vue Storefront 2 for calvin', | |
| 3 | 3 | base: '/', |
| 4 | - description: 'Documentation for the __replace_me__ connector for Vue Storefront 2', | |
| 4 | + description: 'Documentation for the calvin connector for Vue Storefront 2', | |
| 5 | 5 | head: [ |
| 6 | 6 | ['link', { rel: 'icon', href: '/favicon.png' }] |
| 7 | 7 | ], |
| ... | ... | @@ -33,7 +33,7 @@ module.exports = { |
| 33 | 33 | '@vuepress/search' |
| 34 | 34 | ], |
| 35 | 35 | themeConfig: { |
| 36 | - repo: 'https://github.com/vuestorefront/__replace_me__', | |
| 36 | + repo: 'https://github.com/vuestorefront/calvin', | |
| 37 | 37 | editLinks: true, |
| 38 | 38 | docsDir: 'docs', |
| 39 | 39 | docsBranch: 'develop', |
| ... | ... | @@ -43,8 +43,8 @@ module.exports = { |
| 43 | 43 | { text: 'Vue Storefront', link: 'https://vuestorefront.io/' }, |
| 44 | 44 | { text: 'Core Documentation', link: 'https://docs.vuestorefront.io/v2/' }, |
| 45 | 45 | // { text: 'Demo', link: '' }, |
| 46 | - { text: 'GitHub', link: 'https://github.com/vuestorefront/__replace_me__'}, | |
| 47 | - { text: 'Roadmap', link: 'https://github.com/vuestorefront/__replace_me__'} | |
| 46 | + { text: 'GitHub', link: 'https://github.com/vuestorefront/calvin'}, | |
| 47 | + { text: 'Roadmap', link: 'https://github.com/vuestorefront/calvin'} | |
| 48 | 48 | ], |
| 49 | 49 | sidebar: [ |
| 50 | 50 | { | ... | ... |
docs/guide/about.md
| ... | ... | @@ -7,4 +7,4 @@ |
| 7 | 7 | |
| 8 | 8 | ## Support |
| 9 | 9 | |
| 10 | -If you have any questions about this integration we will be happy to answer them on `__replace_me__` channel on [our Discord](discord.vuestorefront.io). | |
| 10 | +If you have any questions about this integration we will be happy to answer them on `calvin` channel on [our Discord](discord.vuestorefront.io). | ... | ... |
docs/guide/getting-started.md
| ... | ... | @@ -11,5 +11,5 @@ vsf init <project_name> && cd <project_name> && yarn && yarn dev |
| 11 | 11 | |
| 12 | 12 | ## How to start if you want to contribute? |
| 13 | 13 | |
| 14 | -Want to contribute? Ping us on `__replace_me__` channel on [our Discord](https://discord.vuestorefront.io)! | |
| 14 | +Want to contribute? Ping us on `calvin` channel on [our Discord](https://discord.vuestorefront.io)! | |
| 15 | 15 | ... | ... |
docs/index.md
| 1 | 1 | <img src="https://blog.vuestorefront.io/wp-content/uploads/2020/01/1QU9F6hQlFyHsJIbsdmt6FA.png" height="100px" /> |
| 2 | 2 | |
| 3 | -# Vue Storefront 2 integration with __replace_me__ | |
| 3 | +# Vue Storefront 2 integration with calvin | |
| 4 | 4 | |
| 5 | -This project is a __replace_me__ integration for Vue Storefront 2. | |
| 5 | +This project is a calvin integration for Vue Storefront 2. | |
| 6 | 6 | |
| 7 | -This integration is currently a **Beta** and not ready for production usage. You can help us to make the integration production-ready faster by reporting bugs and contributing to the code at the [repository issues page](https://github.com/vuestorefront/__replace_me__/issues). | |
| 7 | +This integration is currently a **Beta** and not ready for production usage. You can help us to make the integration production-ready faster by reporting bugs and contributing to the code at the [repository issues page](https://github.com/vuestorefront/calvin/issues). | ... | ... |
docs/package.json
| 1 | 1 | { |
| 2 | 2 | "name": "vsf-integration-docs", |
| 3 | 3 | "version": "0.0.1", |
| 4 | - "description": "Documentation for __replace_me__ integration for Vue Storefront", | |
| 4 | + "description": "Documentation for calvin integration for Vue Storefront", | |
| 5 | 5 | "main": "index.js", |
| 6 | 6 | "license": "MIT", |
| 7 | - "repository": "https://github.com/vuestorefront/__replace_me__/docs", | |
| 7 | + "repository": "https://github.com/vuestorefront/calvin/docs", | |
| 8 | 8 | "scripts": { |
| 9 | 9 | "dev": "vuepress dev", |
| 10 | 10 | "build": "vuepress build", | ... | ... |
package.json
packages/api-client/README.md
| ... | ... | @@ -2,7 +2,7 @@ |
| 2 | 2 | <img src="https://blog.vuestorefront.io/wp-content/uploads/2020/01/1QU9F6hQlFyHsJIbsdmt6FA.png" height="80px"/>โโ |
| 3 | 3 | </div> |
| 4 | 4 | |
| 5 | -## Vue Storefront 2 integration with __replace_me__ | |
| 5 | +## Vue Storefront 2 integration with calvin | |
| 6 | 6 | |
| 7 | 7 | ------ |
| 8 | 8 | |
| ... | ... | @@ -21,12 +21,12 @@ vsf init <project_name> && cd <project_name> && yarn && yarn dev |
| 21 | 21 | ## Resources |
| 22 | 22 | |
| 23 | 23 | - [Vue Storefront Documentation](https://docs.vuestorefront.io/v2/) |
| 24 | -- [__replace_me__ integration Documentation](https://docs.vuestorefront.io/__replace_me__) | |
| 24 | +- [calvin integration Documentation](https://docs.vuestorefront.io/calvin) | |
| 25 | 25 | - [Community Chat](https://discord.vuestorefront.io) |
| 26 | 26 | |
| 27 | 27 | ## Support |
| 28 | 28 | |
| 29 | -If you have any questions about this integration we will be happy to answer them on `__replace_me__` channel on [our Discord](discord.vuestorefront.io). | |
| 29 | +If you have any questions about this integration we will be happy to answer them on `calvin` channel on [our Discord](discord.vuestorefront.io). | |
| 30 | 30 | |
| 31 | 31 | ## Contributors โจ |
| 32 | 32 | ... | ... |
packages/api-client/package.json
packages/composables/README.md
| ... | ... | @@ -2,7 +2,7 @@ |
| 2 | 2 | <img src="https://blog.vuestorefront.io/wp-content/uploads/2020/01/1QU9F6hQlFyHsJIbsdmt6FA.png" height="80px"/>โโ |
| 3 | 3 | </div> |
| 4 | 4 | |
| 5 | -## Vue Storefront 2 integration with __replace_me__ | |
| 5 | +## Vue Storefront 2 integration with calvin | |
| 6 | 6 | |
| 7 | 7 | ------ |
| 8 | 8 | |
| ... | ... | @@ -22,12 +22,12 @@ vsf init <project_name> && cd <project_name> && yarn && yarn dev |
| 22 | 22 | ## Resources |
| 23 | 23 | |
| 24 | 24 | - [Vue Storefront Documentation](https://docs.vuestorefront.io/v2/) |
| 25 | -- [__replace_me__ integration Documentation](https://docs.vuestorefront.io/__replace_me__) | |
| 25 | +- [calvin integration Documentation](https://docs.vuestorefront.io/calvin) | |
| 26 | 26 | - [Community Chat](https://discord.vuestorefront.io) |
| 27 | 27 | |
| 28 | 28 | ## Support |
| 29 | 29 | |
| 30 | -If you have any questions about this integration we will be happy to answer them on `__replace_me__` channel on [our Discord](discord.vuestorefront.io). | |
| 30 | +If you have any questions about this integration we will be happy to answer them on `calvin` channel on [our Discord](discord.vuestorefront.io). | |
| 31 | 31 | |
| 32 | 32 | ## Contributors โจ |
| 33 | 33 | ... | ... |
packages/composables/nuxt/plugin.js
| ... | ... | @@ -3,7 +3,7 @@ import { integrationPlugin } from '@vue-storefront/core'; |
| 3 | 3 | const moduleOptions = <%= serialize(options) %>; |
| 4 | 4 | |
| 5 | 5 | export default integrationPlugin(({ integration }) => { |
| 6 | - integration.configure('__replace_me__', { | |
| 6 | + integration.configure('calvin', { | |
| 7 | 7 | ...moduleOptions |
| 8 | 8 | // other options |
| 9 | 9 | }); | ... | ... |
packages/composables/package.json
| 1 | 1 | { |
| 2 | - "name": "@vue-storefront/__replace_me__", | |
| 2 | + "name": "@vue-storefront/calvin", | |
| 3 | 3 | "version": "0.0.1", |
| 4 | 4 | "private": true, |
| 5 | 5 | "sideEffects": false, |
| ... | ... | @@ -23,7 +23,7 @@ |
| 23 | 23 | "update:update": "ncu -u" |
| 24 | 24 | }, |
| 25 | 25 | "dependencies": { |
| 26 | - "@vue-storefront/__replace_me__-api": "0.0.1", | |
| 26 | + "@vue-storefront/calvin-api": "0.0.1", | |
| 27 | 27 | "@vue-storefront/core": "~2.5.4" |
| 28 | 28 | }, |
| 29 | 29 | "devDependencies": { | ... | ... |
packages/composables/src/getters/cartGetters.ts
| ... | ... | @@ -6,7 +6,7 @@ import { |
| 6 | 6 | AgnosticDiscount, |
| 7 | 7 | AgnosticAttribute |
| 8 | 8 | } from '@vue-storefront/core'; |
| 9 | -import type { Cart, CartItem } from '@vue-storefront/__replace_me__-api'; | |
| 9 | +import type { Cart, CartItem } from '@vue-storefront/calvin-api'; | |
| 10 | 10 | |
| 11 | 11 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 12 | 12 | function getItems(cart: Cart): CartItem[] { | ... | ... |
packages/composables/src/getters/categoryGetters.ts
| 1 | 1 | import { CategoryGetters, AgnosticCategoryTree } from '@vue-storefront/core'; |
| 2 | -import type { Category } from '@vue-storefront/__replace_me__-api'; | |
| 2 | +import type { Category } from '@vue-storefront/calvin-api'; | |
| 3 | 3 | |
| 4 | 4 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 5 | 5 | function getTree(category: Category): AgnosticCategoryTree { | ... | ... |
packages/composables/src/getters/facetGetters.ts
| ... | ... | @@ -8,7 +8,7 @@ import { |
| 8 | 8 | AgnosticBreadcrumb, |
| 9 | 9 | AgnosticFacet |
| 10 | 10 | } from '@vue-storefront/core'; |
| 11 | -import type { Facet, FacetSearchCriteria } from '@vue-storefront/__replace_me__-api'; | |
| 11 | +import type { Facet, FacetSearchCriteria } from '@vue-storefront/calvin-api'; | |
| 12 | 12 | |
| 13 | 13 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 14 | 14 | function getAll(params: FacetSearchResult<Facet>, criteria?: FacetSearchCriteria): AgnosticFacet[] { | ... | ... |
packages/composables/src/getters/forgotPasswordGetters.ts
| 1 | 1 | import { ForgotPasswordGetters } from '@vue-storefront/core'; |
| 2 | -import type { PasswordResetResult } from '@vue-storefront/__replace_me__-api'; | |
| 2 | +import type { PasswordResetResult } from '@vue-storefront/calvin-api'; | |
| 3 | 3 | |
| 4 | 4 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 5 | 5 | function getResetPasswordToken(result: PasswordResetResult): string { | ... | ... |
packages/composables/src/getters/orderGetters.ts
| 1 | 1 | import { UserOrderGetters } from '@vue-storefront/core'; |
| 2 | -import type { Order, OrderItem } from '@vue-storefront/__replace_me__-api'; | |
| 2 | +import type { Order, OrderItem } from '@vue-storefront/calvin-api'; | |
| 3 | 3 | |
| 4 | 4 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 5 | 5 | function getDate(order: Order): string { | ... | ... |
packages/composables/src/getters/productGetters.ts
| ... | ... | @@ -4,7 +4,7 @@ import { |
| 4 | 4 | AgnosticPrice, |
| 5 | 5 | ProductGetters |
| 6 | 6 | } from '@vue-storefront/core'; |
| 7 | -import type { Product, ProductFilter } from '@vue-storefront/__replace_me__-api'; | |
| 7 | +import type { Product, ProductFilter } from '@vue-storefront/calvin-api'; | |
| 8 | 8 | |
| 9 | 9 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 10 | 10 | function getName(product: Product): string { | ... | ... |
packages/composables/src/getters/reviewGetters.ts
| 1 | 1 | import { ReviewGetters, AgnosticRateCount } from '@vue-storefront/core'; |
| 2 | -import type { Review, ReviewItem } from '@vue-storefront/__replace_me__-api'; | |
| 2 | +import type { Review, ReviewItem } from '@vue-storefront/calvin-api'; | |
| 3 | 3 | |
| 4 | 4 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 5 | 5 | function getItems(review: Review): ReviewItem[] { | ... | ... |
packages/composables/src/getters/storeGetters.ts
packages/composables/src/getters/userBillingGetters.ts
| ... | ... | @@ -3,7 +3,7 @@ import type { |
| 3 | 3 | UserBillingAddress as Address, |
| 4 | 4 | UserBillingAddressItem as AddressItem, |
| 5 | 5 | UserBillingAddressSearchCriteria |
| 6 | -} from '@vue-storefront/__replace_me__-api'; | |
| 6 | +} from '@vue-storefront/calvin-api'; | |
| 7 | 7 | |
| 8 | 8 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 9 | 9 | function getAddresses(billing: Address, criteria?: UserBillingAddressSearchCriteria): AddressItem[] { | ... | ... |
packages/composables/src/getters/userGetters.ts
| 1 | 1 | import { UserGetters } from '@vue-storefront/core'; |
| 2 | -import type { User } from '@vue-storefront/__replace_me__-api'; | |
| 2 | +import type { User } from '@vue-storefront/calvin-api'; | |
| 3 | 3 | |
| 4 | 4 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 5 | 5 | function getFirstName(user: User): string { | ... | ... |
packages/composables/src/getters/userShippingGetters.ts
| ... | ... | @@ -3,7 +3,7 @@ import type { |
| 3 | 3 | UserShippingAddress as Address, |
| 4 | 4 | UserShippingAddressItem as AddressItem, |
| 5 | 5 | UserShippingAddressSearchCriteria |
| 6 | -} from '@vue-storefront/__replace_me__-api'; | |
| 6 | +} from '@vue-storefront/calvin-api'; | |
| 7 | 7 | |
| 8 | 8 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 9 | 9 | function getAddresses(shipping: Address, criteria?: UserShippingAddressSearchCriteria): AddressItem[] { | ... | ... |
packages/composables/src/getters/wishlistGetters.ts
| ... | ... | @@ -4,7 +4,7 @@ import { |
| 4 | 4 | AgnosticPrice, |
| 5 | 5 | AgnosticTotals |
| 6 | 6 | } from '@vue-storefront/core'; |
| 7 | -import type { Wishlist, WishlistItem } from '@vue-storefront/__replace_me__-api'; | |
| 7 | +import type { Wishlist, WishlistItem } from '@vue-storefront/calvin-api'; | |
| 8 | 8 | |
| 9 | 9 | // eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 10 | 10 | function getItems(wishlist: Wishlist): WishlistItem[] { | ... | ... |
packages/composables/src/useBilling/index.ts
| ... | ... | @@ -3,7 +3,7 @@ import { |
| 3 | 3 | useBillingFactory, |
| 4 | 4 | UseBillingParams |
| 5 | 5 | } from '@vue-storefront/core'; |
| 6 | -import type { BillingAddress } from '@vue-storefront/__replace_me__-api'; | |
| 6 | +import type { BillingAddress } from '@vue-storefront/calvin-api'; | |
| 7 | 7 | import type { |
| 8 | 8 | UseBillingAddParams as AddParams |
| 9 | 9 | } from '../types'; | ... | ... |
packages/composables/src/useCart/index.ts
| ... | ... | @@ -7,7 +7,7 @@ import type { |
| 7 | 7 | Cart, |
| 8 | 8 | CartItem, |
| 9 | 9 | Product |
| 10 | -} from '@vue-storefront/__replace_me__-api'; | |
| 10 | +} from '@vue-storefront/calvin-api'; | |
| 11 | 11 | |
| 12 | 12 | const params: UseCartFactoryParams<Cart, CartItem, Product> = { |
| 13 | 13 | // eslint-disable-next-line @typescript-eslint/no-unused-vars | ... | ... |
packages/composables/src/useCategory/index.ts
| ... | ... | @@ -3,7 +3,7 @@ import { |
| 3 | 3 | useCategoryFactory, |
| 4 | 4 | UseCategoryFactoryParams |
| 5 | 5 | } from '@vue-storefront/core'; |
| 6 | -import type { Category } from '@vue-storefront/__replace_me__-api'; | |
| 6 | +import type { Category } from '@vue-storefront/calvin-api'; | |
| 7 | 7 | import type { |
| 8 | 8 | UseCategorySearchParams as SearchParams |
| 9 | 9 | } from '../types'; | ... | ... |
packages/composables/src/useMakeOrder/index.ts
| ... | ... | @@ -3,7 +3,7 @@ import { |
| 3 | 3 | useMakeOrderFactory, |
| 4 | 4 | UseMakeOrderFactoryParams |
| 5 | 5 | } from '@vue-storefront/core'; |
| 6 | -import type { Order } from '@vue-storefront/__replace_me__-api'; | |
| 6 | +import type { Order } from '@vue-storefront/calvin-api'; | |
| 7 | 7 | |
| 8 | 8 | const factoryParams: UseMakeOrderFactoryParams<Order> = { |
| 9 | 9 | // eslint-disable-next-line @typescript-eslint/no-unused-vars | ... | ... |
packages/composables/src/useProduct/index.ts
| ... | ... | @@ -3,7 +3,7 @@ import { |
| 3 | 3 | useProductFactory, |
| 4 | 4 | UseProductFactoryParams |
| 5 | 5 | } from '@vue-storefront/core'; |
| 6 | -import type { Product } from '@vue-storefront/__replace_me__-api'; | |
| 6 | +import type { Product } from '@vue-storefront/calvin-api'; | |
| 7 | 7 | import type { |
| 8 | 8 | UseProductSearchParams as SearchParams |
| 9 | 9 | } from '../types'; | ... | ... |
packages/composables/src/useReview/index.ts
| ... | ... | @@ -3,7 +3,7 @@ import { |
| 3 | 3 | useReviewFactory, |
| 4 | 4 | UseReviewFactoryParams |
| 5 | 5 | } from '@vue-storefront/core'; |
| 6 | -import type { Review } from '@vue-storefront/__replace_me__-api'; | |
| 6 | +import type { Review } from '@vue-storefront/calvin-api'; | |
| 7 | 7 | import type { |
| 8 | 8 | UseReviewSearchParams as SearchParams, |
| 9 | 9 | UseReviewAddParams as AddParams | ... | ... |
packages/composables/src/useShipping/index.ts
| ... | ... | @@ -3,7 +3,7 @@ import { |
| 3 | 3 | useShippingFactory, |
| 4 | 4 | UseShippingParams |
| 5 | 5 | } from '@vue-storefront/core'; |
| 6 | -import type { ShippingAddress } from '@vue-storefront/__replace_me__-api'; | |
| 6 | +import type { ShippingAddress } from '@vue-storefront/calvin-api'; | |
| 7 | 7 | import type { |
| 8 | 8 | UseShippingAddParams as AddParams |
| 9 | 9 | } from '../types'; | ... | ... |
packages/composables/src/useShippingProvider/index.ts
| 1 | 1 | import { useShippingProviderFactory, UseShippingProviderParams, Context } from '@vue-storefront/core'; |
| 2 | -import type { ShippingProvider, ShippingMethod } from '@vue-storefront/__replace_me__-api'; | |
| 2 | +import type { ShippingProvider, ShippingMethod } from '@vue-storefront/calvin-api'; | |
| 3 | 3 | |
| 4 | 4 | const params: UseShippingProviderParams<ShippingProvider, ShippingMethod> = { |
| 5 | 5 | // eslint-disable-next-line @typescript-eslint/no-unused-vars | ... | ... |
packages/composables/src/useStore/index.ts
packages/composables/src/useUser/index.ts
| ... | ... | @@ -3,7 +3,7 @@ import { |
| 3 | 3 | useUserFactory, |
| 4 | 4 | UseUserFactoryParams |
| 5 | 5 | } from '@vue-storefront/core'; |
| 6 | -import type { User } from '@vue-storefront/__replace_me__-api'; | |
| 6 | +import type { User } from '@vue-storefront/calvin-api'; | |
| 7 | 7 | import type { |
| 8 | 8 | UseUserUpdateParams as UpdateParams, |
| 9 | 9 | UseUserRegisterParams as RegisterParams | ... | ... |
packages/composables/src/useUserBilling/index.ts
| ... | ... | @@ -6,7 +6,7 @@ import { |
| 6 | 6 | import type { |
| 7 | 7 | UserBillingAddress as Address, |
| 8 | 8 | UserBillingAddressItem as AddressItem |
| 9 | -} from '@vue-storefront/__replace_me__-api'; | |
| 9 | +} from '@vue-storefront/calvin-api'; | |
| 10 | 10 | |
| 11 | 11 | const params: UseUserBillingFactoryParams<Address, AddressItem> = { |
| 12 | 12 | // eslint-disable-next-line @typescript-eslint/no-unused-vars | ... | ... |
packages/composables/src/useUserOrder/index.ts
| ... | ... | @@ -3,7 +3,7 @@ import { |
| 3 | 3 | useUserOrderFactory, |
| 4 | 4 | UseUserOrderFactoryParams |
| 5 | 5 | } from '@vue-storefront/core'; |
| 6 | -import type { Order } from '@vue-storefront/__replace_me__-api'; | |
| 6 | +import type { Order } from '@vue-storefront/calvin-api'; | |
| 7 | 7 | import type { |
| 8 | 8 | useUserOrderSearchParams as SearchParams |
| 9 | 9 | } from '../types'; | ... | ... |
packages/composables/src/useUserShipping/index.ts
| ... | ... | @@ -6,7 +6,7 @@ import { |
| 6 | 6 | import type { |
| 7 | 7 | UserShippingAddress as Address, |
| 8 | 8 | UserShippingAddressItem as AddressItem |
| 9 | -} from '@vue-storefront/__replace_me__-api'; | |
| 9 | +} from '@vue-storefront/calvin-api'; | |
| 10 | 10 | |
| 11 | 11 | const params: UseUserShippingFactoryParams<Address, AddressItem> = { |
| 12 | 12 | // eslint-disable-next-line @typescript-eslint/no-unused-vars | ... | ... |
packages/composables/src/useWishlist/index.ts
| ... | ... | @@ -4,7 +4,7 @@ import { |
| 4 | 4 | useWishlistFactory, |
| 5 | 5 | UseWishlistFactoryParams |
| 6 | 6 | } from '@vue-storefront/core'; |
| 7 | -import type { Wishlist, WishlistItem, Product } from '@vue-storefront/__replace_me__-api'; | |
| 7 | +import type { Wishlist, WishlistItem, Product } from '@vue-storefront/calvin-api'; | |
| 8 | 8 | |
| 9 | 9 | const params: UseWishlistFactoryParams<Wishlist, WishlistItem, Product> = { |
| 10 | 10 | // eslint-disable-next-line @typescript-eslint/no-unused-vars | ... | ... |
packages/theme/middleware.config.js
packages/theme/nuxt.config.js
| ... | ... | @@ -50,11 +50,11 @@ export default { |
| 50 | 50 | // @core-development-only-end |
| 51 | 51 | useRawSource: { |
| 52 | 52 | dev: [ |
| 53 | - '@vue-storefront/__replace_me__', | |
| 53 | + '@vue-storefront/calvin', | |
| 54 | 54 | '@vue-storefront/core' |
| 55 | 55 | ], |
| 56 | 56 | prod: [ |
| 57 | - '@vue-storefront/__replace_me__', | |
| 57 | + '@vue-storefront/calvin', | |
| 58 | 58 | '@vue-storefront/core' |
| 59 | 59 | ] |
| 60 | 60 | } |
| ... | ... | @@ -63,8 +63,8 @@ export default { |
| 63 | 63 | ['@vue-storefront/nuxt-theme', { |
| 64 | 64 | generate: { |
| 65 | 65 | replace: { |
| 66 | - apiClient: '@vue-storefront/__replace_me__-api', | |
| 67 | - composables: '@vue-storefront/__replace_me__' | |
| 66 | + apiClient: '@vue-storefront/calvin-api', | |
| 67 | + composables: '@vue-storefront/calvin' | |
| 68 | 68 | } |
| 69 | 69 | } |
| 70 | 70 | }], |
| ... | ... | @@ -72,7 +72,7 @@ export default { |
| 72 | 72 | /* project-only-start |
| 73 | 73 | ['@vue-storefront/nuxt-theme'], |
| 74 | 74 | project-only-end */ |
| 75 | - ['@vue-storefront/__replace_me__/nuxt', {}] | |
| 75 | + ['@vue-storefront/calvin/nuxt', {}] | |
| 76 | 76 | ], |
| 77 | 77 | |
| 78 | 78 | // Modules: https://go.nuxtjs.dev/config-modules | ... | ... |
packages/theme/package.json
| 1 | 1 | { |
| 2 | - "name": "@vue-storefront/__replace_me__-theme", | |
| 2 | + "name": "@vue-storefront/calvin-theme", | |
| 3 | 3 | "version": "0.0.1", |
| 4 | 4 | "private": true, |
| 5 | 5 | "engines": { |
| ... | ... | @@ -23,7 +23,7 @@ |
| 23 | 23 | }, |
| 24 | 24 | "dependencies": { |
| 25 | 25 | "@storefront-ui/vue": "0.11.4", |
| 26 | - "@vue-storefront/__replace_me__": "0.0.1", | |
| 26 | + "@vue-storefront/calvin": "0.0.1", | |
| 27 | 27 | "@vue-storefront/middleware": "~2.5.4", |
| 28 | 28 | "@vue-storefront/nuxt": "~2.5.4", |
| 29 | 29 | "@vue-storefront/nuxt-theme": "~2.5.4", | ... | ... |