{"id":21525835,"url":"https://github.com/bkwld/cloak-customer","last_synced_at":"2026-05-18T15:37:37.691Z","repository":{"id":42367281,"uuid":"476850392","full_name":"BKWLD/cloak-customer","owner":"BKWLD","description":"Nuxt pages and components for Shopify customer account management.","archived":false,"fork":false,"pushed_at":"2022-09-15T22:11:42.000Z","size":561,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-12T04:42:23.933Z","etag":null,"topics":["cloak-package","nuxt","shopify"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BKWLD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-01T19:49:47.000Z","updated_at":"2022-10-18T23:43:59.000Z","dependencies_parsed_at":"2023-01-18T09:30:38.479Z","dependency_job_id":null,"html_url":"https://github.com/BKWLD/cloak-customer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BKWLD/cloak-customer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BKWLD%2Fcloak-customer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BKWLD%2Fcloak-customer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BKWLD%2Fcloak-customer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BKWLD%2Fcloak-customer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BKWLD","download_url":"https://codeload.github.com/BKWLD/cloak-customer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BKWLD%2Fcloak-customer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33183275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cloak-package","nuxt","shopify"],"created_at":"2024-11-24T01:38:38.883Z","updated_at":"2026-05-18T15:37:37.673Z","avatar_url":"https://github.com/BKWLD.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @cloak-app/customer\n\nCloak components for rendering Customer components.\n\n- [View demo](https://cloak-customer.netlify.app)\n- [Edit CodeSandbox](https://githubbox.com/BKWLD/cloak-customer)\n\n## Install\n\n1. Install with `yarn add @cloak-app/customer`\n2. Add to `nuxt.config` with `buildModules: ['@cloak-app/customer']`\n3. Make sure components is set to true in the project's nuxt.config so the components can be auto-loaded\n4. Set Shopify admin api permissions\n  - create a private 'develop' app\n  - allow admin api access \u0026 allow permission to\n  - write_customers\n  - read_customers\n5. Make sure accounts are at least set to optional on the shop (/admin/settings/checkout)\n6. Redirect account pages to the nuxt site (this will need to be placed either in `shopify-theme/main.coffee` or `shopify-theme/plugins/routing.coffee`)\n```\n# Redirect account pages to www site\nif match = location.pathname.match /^\\/(account)/\nthen location.href = makeNuxtUrl location.pathname\n```\n\n### Options\n\n- `cloak.customer:`\n  - `authenticatedRoute` - The route to redirect users who aren't authenticated. Defaults to `/account`\n  - `unauthenticatedRoute` - The route to redirect users who aren't authenticated. Defaults to `/account/login`\n  - `layout` - The Nuxt layout to use within the customer pages. Defaults to `default`.\n\n## Expected project components\n- `\u003cbtn\u003e`\n\n### Expected Styus vars\n- radius\n- spacing (xs - xxl)\n- ui-grey\n- primary-color\n- ui-error\n- tablet-up() and tablet-down() breakpoint helpers\n\n### Expected ENV vars\n- SHOPIFY_URL\n- APP_ENV\n- SHOPIFY_STOREFRONT_TOKEN\n\n### Module Options\n\n\u003c!-- - `cloak.copy:`\n  - `maxWidthClass` - The max width class to use to `max-w-medium` --\u003e\n\n## Components\n\n\u003c!-- ### `cloak-copy`\n\nThis is a generic copy renderer that can be used by other Cloak components so they can stay ignorant of the CMS.  For instance, a FAQ component with a CMS-specific adapater.  In this case, the FAQ component can just pass along the `content` content it was provided to `cloak-copy` and never know whether it is rendering markup from Redactor or rich text from Contentful.\n\n- props:\n  - `content` - Either an HTML string or a Contentful rich text JSON document\n  - `balanceText` - Boolean, enables [vue-balance-text](https://github.com/BKWLD/vue-balance-text)\n  - `unorphan` - Boolean, enables [vue-unorphan](https://github.com/BKWLD/vue-unorphan)\n --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkwld%2Fcloak-customer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbkwld%2Fcloak-customer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkwld%2Fcloak-customer/lists"}