From 7de3c05602117621d2d14b2606e27efbf262e466 Mon Sep 17 00:00:00 2001 From: Gal Havivi Date: Mon, 2 Nov 2020 08:47:46 +0200 Subject: [PATCH] update public url --- CODE-OF-CONDUCT.md | 2 +- CONTRIBUTING.md | 2 +- README.md | 2 +- package.json | 2 +- .../documentation/docs/advances-form-persistency.md | 2 +- packages/documentation/docs/advances-grid-usage.md | 2 +- .../docs/contribute-contributing-guide.md | 2 +- packages/documentation/docs/more-packages.md | 10 +++++----- packages/documentation/docs/react-components.md | 2 +- packages/documentation/docs/react-demos.md | 8 ++++---- packages/documentation/docs/tools-dev.md | 2 +- packages/documentation/docs/tools-editor.md | 2 +- packages/documentation/package.json | 2 +- packages/documentation/website/siteConfig.js | 10 +++++----- packages/form/src/errors.js | 2 +- packages/form/test/log.spec.js | 2 +- packages/react-components/package.json | 2 +- packages/react-editor/.env | 2 +- packages/react-editor/package.json | 2 +- .../website/pages/Form/Edit/resources/components.js | 2 +- .../website/pages/Form/Edit/resources/conversions.js | 2 +- .../src/website/pages/Form/Edit/resources/terms.js | 2 +- .../website/pages/Form/Edit/resources/validators.js | 2 +- packages/react-editor/src/website/pages/Home/Home.jsx | 6 +++--- packages/react-form/.env | 2 +- packages/react-form/package.json | 2 +- packages/react-layout/.env | 2 +- packages/react-layout/package.json | 2 +- 28 files changed, 41 insertions(+), 41 deletions(-) diff --git a/CODE-OF-CONDUCT.md b/CODE-OF-CONDUCT.md index 7f73b60..3d3e9a8 100644 --- a/CODE-OF-CONDUCT.md +++ b/CODE-OF-CONDUCT.md @@ -1,3 +1,3 @@ # Verizon Media Open Source Code of Conduct -Please refer to the [Code of Conduct](https://galhavivi.github.com/cofi/docs/code-of-conduct) doc for information about behavior expectation. \ No newline at end of file +Please refer to the [Code of Conduct](https://galhavivi.github.io/cofi/docs/code-of-conduct) doc for information about behavior expectation. \ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 376e99f..8ad4141 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,3 @@ # How to Contribute -Please refer to the [Contributing Guide](https://galhavivi.github.com/cofi/docs/contributing-guide) doc for information about how to contribute. \ No newline at end of file +Please refer to the [Contributing Guide](https://galhavivi.github.io/cofi/docs/contributing-guide) doc for information about how to contribute. \ No newline at end of file diff --git a/README.md b/README.md index 4b2f526..9e12abf 100644 --- a/README.md +++ b/README.md @@ -200,7 +200,7 @@ const resources = { /*...*/ }; ## Docs and Demos -Cofi's full docs and demos are [available here](https://galhavivi.github.com/cofi). +Cofi's full docs and demos are [available here](https://galhavivi.github.io/cofi). ## Run Docs and Demos Locally diff --git a/package.json b/package.json index 97d999f..3636f03 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "type": "git", "url": "https://github.com/galhavivi/cofi.git" }, - "homepage": "https://galhavivi.github.com/cofi/index.html", + "homepage": "https://galhavivi.github.io/cofi/index.html", "scripts": { "bootstrap": "rm -rf ./node_modules && npx lerna exec -- rm -rf ./node_modules && npx lerna bootstrap --force-local --hoist --no-ci -- --production=false && npx lerna run build-package" }, diff --git a/packages/documentation/docs/advances-form-persistency.md b/packages/documentation/docs/advances-form-persistency.md index 1dc542b..0bb5c2b 100644 --- a/packages/documentation/docs/advances-form-persistency.md +++ b/packages/documentation/docs/advances-form-persistency.md @@ -44,4 +44,4 @@ const model = getModel();
``` -See advanced demo in [Form Persistency Demo](https://galhavivi.github.com/cofi/demo-react-form.html#/others/persistency/html). \ No newline at end of file +See advanced demo in [Form Persistency Demo](https://galhavivi.github.io/cofi/demo-react-form.html#/others/persistency/html). \ No newline at end of file diff --git a/packages/documentation/docs/advances-grid-usage.md b/packages/documentation/docs/advances-grid-usage.md index ae1ffab..20aec1e 100644 --- a/packages/documentation/docs/advances-grid-usage.md +++ b/packages/documentation/docs/advances-grid-usage.md @@ -68,4 +68,4 @@ return ( ); ``` -See advanced demo in [Grid Demo](https://galhavivi.github.com/cofi/demo-react-form.html#/others/grid-usage/html). \ No newline at end of file +See advanced demo in [Grid Demo](https://galhavivi.github.io/cofi/demo-react-form.html#/others/grid-usage/html). \ No newline at end of file diff --git a/packages/documentation/docs/contribute-contributing-guide.md b/packages/documentation/docs/contribute-contributing-guide.md index ebe9741..09778b6 100644 --- a/packages/documentation/docs/contribute-contributing-guide.md +++ b/packages/documentation/docs/contribute-contributing-guide.md @@ -42,7 +42,7 @@ Some packages include a demo website, run `npm start` under the specific package ### Update Code -Change the code in order to fullfil an issue needs. Keep in mind that Cofi is a `monorepo` - meaning a change in a specific package might affect other packages, or require other packages updates. For example - changing `@cofi/form` package, might affect or require additional change in `@cofi/react-form` package. See Cofi's [packages](https://galhavivi.github.com/cofi/docs/packages.html) structure for more info. +Change the code in order to fullfil an issue needs. Keep in mind that Cofi is a `monorepo` - meaning a change in a specific package might affect other packages, or require other packages updates. For example - changing `@cofi/form` package, might affect or require additional change in `@cofi/react-form` package. See Cofi's [packages](https://galhavivi.github.io/cofi/docs/packages.html) structure for more info. - To use or test a change in one package on another package, one can: - Run `npm run build-package` from the updated package directory to re-build the `dist` folder which is linked to other local packages. diff --git a/packages/documentation/docs/more-packages.md b/packages/documentation/docs/more-packages.md index f6f5fe3..5940100 100644 --- a/packages/documentation/docs/more-packages.md +++ b/packages/documentation/docs/more-packages.md @@ -42,7 +42,7 @@ it('should update the form data on change field value ', async () => { ``` ### @cofi/react-form -[@cofi/react-form](https://github.com/galhavivi/cofi/tree/master/packages/react-form) - contains React [Form and Field](https://galhavivi.github.com/cofi/demo-react-form.html) components. Based on `@cofi/form`. +[@cofi/react-form](https://github.com/galhavivi/cofi/tree/master/packages/react-form) - contains React [Form and Field](https://galhavivi.github.io/cofi/demo-react-form.html) components. Based on `@cofi/form`. Usage Example: @@ -59,7 +59,7 @@ const model = {...}; ``` ### @cofi/react-components -[@cofi/react-components](https://github.com/galhavivi/cofi/tree/master/packages/react-components) - contains common [unified api components](https://galhavivi.github.com/cofi/demo-react-components.html) for form usage. Exports common components that can be added to forms. +[@cofi/react-components](https://github.com/galhavivi/cofi/tree/master/packages/react-components) - contains common [unified api components](https://galhavivi.github.io/cofi/demo-react-components.html) for form usage. Exports common components that can be added to forms. Usage Example: ```javascript @@ -86,7 +86,7 @@ const resources = { ### @cofi/react-layout [@cofi/react-layout](https://github.com/galhavivi/cofi/tree/master/packages/react-layout) - contains React Layout components -such as [Item and List](https://galhavivi.github.com/cofi/demo-react-layout.html). +such as [Item and List](https://galhavivi.github.io/cofi/demo-react-layout.html). Usage Example: @@ -104,7 +104,7 @@ const item = { ``` ### @cofi/react-editor -[@cofi/react-editor](https://github.com/galhavivi/cofi/tree/master/packages/react-editor) - contains form and layout configurations [editor](https://galhavivi.github.com/cofi/demo-react-editor.html). +[@cofi/react-editor](https://github.com/galhavivi/cofi/tree/master/packages/react-editor) - contains form and layout configurations [editor](https://galhavivi.github.io/cofi/demo-react-editor.html). ### @cofi/documentation -[@cofi/documentation](https://github.com/galhavivi/cofi/tree/master/packages/documentation) - contains [this documentation site](https://galhavivi.github.com/cofi/). \ No newline at end of file +[@cofi/documentation](https://github.com/galhavivi/cofi/tree/master/packages/documentation) - contains [this documentation site](https://galhavivi.github.io/cofi/). \ No newline at end of file diff --git a/packages/documentation/docs/react-components.md b/packages/documentation/docs/react-components.md index 293cb9c..d92d9f0 100644 --- a/packages/documentation/docs/react-components.md +++ b/packages/documentation/docs/react-components.md @@ -134,7 +134,7 @@ Using the above HOC saves the `react` import as well as simplify tests ([More in ## Our Common Components We have a collection of common components with unified api that can be used, documented here: -[common components](https://galhavivi.github.com/cofi/react-components/index.html) +[common components](https://galhavivi.github.io/cofi/react-components/index.html) For instance: ``` diff --git a/packages/documentation/docs/react-demos.md b/packages/documentation/docs/react-demos.md index 2c1a233..be634db 100644 --- a/packages/documentation/docs/react-demos.md +++ b/packages/documentation/docs/react-demos.md @@ -6,16 +6,16 @@ sidebar_label: Demos ## React Form -For form demonstrations please visit [react form demos](https://galhavivi.github.com/cofi/demo-react-form.html). +For form demonstrations please visit [react form demos](https://galhavivi.github.io/cofi/demo-react-form.html). ## React Components -For common components demonstrations to use with react form please visit [react components demos](https://galhavivi.github.com/cofi/demo-react-components.html). +For common components demonstrations to use with react form please visit [react components demos](https://galhavivi.github.io/cofi/demo-react-components.html). ## React Layout -For layout demonstrations please visit [react layout demos](https://galhavivi.github.com/cofi/demo-react-layout.html). +For layout demonstrations please visit [react layout demos](https://galhavivi.github.io/cofi/demo-react-layout.html). ## React Editor -For a simple online form editor please visit [react editor](https://galhavivi.github.com/cofi/demo-react-editor.html). +For a simple online form editor please visit [react editor](https://galhavivi.github.io/cofi/demo-react-editor.html). diff --git a/packages/documentation/docs/tools-dev.md b/packages/documentation/docs/tools-dev.md index 992c8e1..63c9ee3 100644 --- a/packages/documentation/docs/tools-dev.md +++ b/packages/documentation/docs/tools-dev.md @@ -9,7 +9,7 @@ sidebar_label: DevTools In addition to Cofi's console logs of `error`, `info` and `debug` messages - Cofi chrome extension lets developers see Cofi's log messages and understand form's lifecycle process in a more convenient way. -Similar layout to the `Log` component which appears on [React Form Demos](https://galhavivi.github.com/cofi/demo-react-form.html). +Similar layout to the `Log` component which appears on [React Form Demos](https://galhavivi.github.io/cofi/demo-react-form.html). > **Note:** Another way to see logs without Chrome extension, is to import `LogProvider` and `Log` components, and render them in your App. diff --git a/packages/documentation/docs/tools-editor.md b/packages/documentation/docs/tools-editor.md index 18a6f27..deca297 100644 --- a/packages/documentation/docs/tools-editor.md +++ b/packages/documentation/docs/tools-editor.md @@ -6,7 +6,7 @@ sidebar_label: Editor Online form editor let developers create, edit, preview, persist in a local storage and download - forms and layouts configurations. -Visit [Editor](https://galhavivi.github.com/cofi/demo-react-editor.html) to try it out. +Visit [Editor](https://galhavivi.github.io/cofi/demo-react-editor.html) to try it out. ## Configurations diff --git a/packages/documentation/package.json b/packages/documentation/package.json index 2a46889..599323e 100644 --- a/packages/documentation/package.json +++ b/packages/documentation/package.json @@ -17,7 +17,7 @@ "e2e": "echo e2e not needed", "lint": "echo no lint yet", "lint-fix": "npm run lint -- --fix", - "deploy-website": "PUBLIC_URL=https://galhavivi.github.com/cofi npm run build-website && gh-pages --dist build --add", + "deploy-website": "PUBLIC_URL=https://galhavivi.github.io/cofi npm run build-website && gh-pages --dist build --add", "pre-push": "lint-staged" }, "devDependencies": { diff --git a/packages/documentation/website/siteConfig.js b/packages/documentation/website/siteConfig.js index 2bde195..cdfc683 100644 --- a/packages/documentation/website/siteConfig.js +++ b/packages/documentation/website/siteConfig.js @@ -10,15 +10,15 @@ const baseUrl = `${process.env.PUBLIC_URL || ''}/`; // List of projects/orgs using your project for the users page. const users = require('./users.js'); -const FORM_DEMO_URL = `https://galhavivi.github.com/cofi/react-form/index.html`; -const COMPONENTS_DEMO_URL = `https://galhavivi.github.com/cofi/react-components/index.html`; -const LAYOUT_DEMO_URL = `https://galhavivi.github.com/cofi/react-layout/index.html`; -const EDITOR_DEMO_URL = `https://galhavivi.github.com/cofi/react-editor/index.html`; +const FORM_DEMO_URL = `https://galhavivi.github.io/cofi/react-form/index.html`; +const COMPONENTS_DEMO_URL = `https://galhavivi.github.io/cofi/react-components/index.html`; +const LAYOUT_DEMO_URL = `https://galhavivi.github.io/cofi/react-layout/index.html`; +const EDITOR_DEMO_URL = `https://galhavivi.github.io/cofi/react-editor/index.html`; const siteConfig = { title: 'cofi', tagline: 'JavaScript Form Solutions', - url: 'https://galhavivi.github.com/cofi', + url: 'https://galhavivi.github.io/cofi', baseUrl, headerLinks: [ { label: 'Docs', doc: 'introduction' }, diff --git a/packages/form/src/errors.js b/packages/form/src/errors.js index 586ba73..21aba4b 100644 --- a/packages/form/src/errors.js +++ b/packages/form/src/errors.js @@ -3,7 +3,7 @@ * Licensed under the terms of the MIT license. See LICENSE file in project root for terms. */ -const COFI_DOCS_ERROR_CODES = 'https://galhavivi.github.com/cofi/docs/error-codes'; +const COFI_DOCS_ERROR_CODES = 'https://galhavivi.github.io/cofi/docs/error-codes'; function CofiError(code, message, form, data, reference, subError) { this.code = code; diff --git a/packages/form/test/log.spec.js b/packages/form/test/log.spec.js index 4c8ae3a..0110753 100644 --- a/packages/form/test/log.spec.js +++ b/packages/form/test/log.spec.js @@ -407,7 +407,7 @@ describe('Logger', () => { global.console.error = jest.fn(); log.error(createError(prefix, error, form, data, args, subError)); expect(global.console.error).toHaveBeenCalledWith( - 'Cofi error - "MISSING_ID": Cofi model.id is missing. More info: https://galhavivi.github.com/cofi/docs/error-codes#missing-id.', + 'Cofi error - "MISSING_ID": Cofi model.id is missing. More info: https://galhavivi.github.io/cofi/docs/error-codes#missing-id.', '\nform: ', form, '\ndata: ', diff --git a/packages/react-components/package.json b/packages/react-components/package.json index 389ca9a..3f0019c 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -23,7 +23,7 @@ "lint-fix": "npm run lint -- --fix", "pre-push": "lint-staged", "publish-package": "npm publish dist --access public || echo publish failed", - "deploy-website": "PUBLIC_URL=https://galhavivi.github.com/cofi/react-components npm run build-website && gh-pages --dist build --dest react-components", + "deploy-website": "PUBLIC_URL=https://galhavivi.github.io/cofi/react-components npm run build-website && gh-pages --dist build --dest react-components", "watch-package": "npm-watch build-package" }, "watch": { diff --git a/packages/react-editor/.env b/packages/react-editor/.env index be816d7..36f0698 100644 --- a/packages/react-editor/.env +++ b/packages/react-editor/.env @@ -1,3 +1,3 @@ SKIP_PREFLIGHT_CHECK=true REACT_APP_COFI_GIT=https://github.com/galhavivi/cofi -REACT_APP_COFI_DOCS=https://galhavivi.github.com/cofi \ No newline at end of file +REACT_APP_COFI_DOCS=https://galhavivi.github.io/cofi \ No newline at end of file diff --git a/packages/react-editor/package.json b/packages/react-editor/package.json index d84f3c8..1cfe1a1 100644 --- a/packages/react-editor/package.json +++ b/packages/react-editor/package.json @@ -24,7 +24,7 @@ "lint-fix": "npm run lint -- --fix", "e2e": "node node_modules/@cofi/react-kit/scripts/e2e.js", "ci-e2e": "PUBLIC_URL=http://localhost:3000 npm run build-website && ../../node_modules/start-server-and-test/src/bin/start.js 'serve -l 3000 -s build' http://localhost:3000/ e2e", - "deploy-website": "PUBLIC_URL=https://galhavivi.github.com/cofi/react-editor npm run build-website && gh-pages --dist build --dest react-editor", + "deploy-website": "PUBLIC_URL=https://galhavivi.github.io/cofi/react-editor npm run build-website && gh-pages --dist build --dest react-editor", "watch-package": "npm-watch build-package", "pre-push": "lint-staged" }, diff --git a/packages/react-editor/src/website/pages/Form/Edit/resources/components.js b/packages/react-editor/src/website/pages/Form/Edit/resources/components.js index 49053d1..49767d6 100644 --- a/packages/react-editor/src/website/pages/Form/Edit/resources/components.js +++ b/packages/react-editor/src/website/pages/Form/Edit/resources/components.js @@ -53,7 +53,7 @@ const _components = { Number, }; -const URL_PREFIX = 'https://galhavivi.github.com/cofi/demo-react-components.html#'; +const URL_PREFIX = 'https://galhavivi.github.io/cofi/demo-react-components.html#'; const components = {}; diff --git a/packages/react-editor/src/website/pages/Form/Edit/resources/conversions.js b/packages/react-editor/src/website/pages/Form/Edit/resources/conversions.js index b031d76..608b096 100644 --- a/packages/react-editor/src/website/pages/Form/Edit/resources/conversions.js +++ b/packages/react-editor/src/website/pages/Form/Edit/resources/conversions.js @@ -5,7 +5,7 @@ import conversions from '@cofi/form/conversions'; -const URL_PREFIX = 'https://galhavivi.github.com/cofi/docs/formatter-parser#'; +const URL_PREFIX = 'https://galhavivi.github.io/cofi/docs/formatter-parser#'; Object.keys(conversions).forEach(name => conversions[name].detailsUrl = `${URL_PREFIX}${(name).toLowerCase()}`); diff --git a/packages/react-editor/src/website/pages/Form/Edit/resources/terms.js b/packages/react-editor/src/website/pages/Form/Edit/resources/terms.js index a79be6e..95e4369 100644 --- a/packages/react-editor/src/website/pages/Form/Edit/resources/terms.js +++ b/packages/react-editor/src/website/pages/Form/Edit/resources/terms.js @@ -5,7 +5,7 @@ import terms from '@cofi/form/terms'; -const URL_PREFIX = 'https://galhavivi.github.com/cofi/docs/term#'; +const URL_PREFIX = 'https://galhavivi.github.io/cofi/docs/term#'; Object.keys(terms).forEach(name => terms[name].detailsUrl = `${URL_PREFIX}${(name).toLowerCase()}`); diff --git a/packages/react-editor/src/website/pages/Form/Edit/resources/validators.js b/packages/react-editor/src/website/pages/Form/Edit/resources/validators.js index c41f7fa..d3735ba 100644 --- a/packages/react-editor/src/website/pages/Form/Edit/resources/validators.js +++ b/packages/react-editor/src/website/pages/Form/Edit/resources/validators.js @@ -5,7 +5,7 @@ import validators from '@cofi/form/validators'; -const URL_PREFIX = 'https://galhavivi.github.com/cofi/docs/validators#'; +const URL_PREFIX = 'https://galhavivi.github.io/cofi/docs/validators#'; Object.keys(validators).forEach(name => validators[name].detailsUrl = `${URL_PREFIX}${(name).toLowerCase()}`); diff --git a/packages/react-editor/src/website/pages/Home/Home.jsx b/packages/react-editor/src/website/pages/Home/Home.jsx index 79fd4e5..6420735 100644 --- a/packages/react-editor/src/website/pages/Home/Home.jsx +++ b/packages/react-editor/src/website/pages/Home/Home.jsx @@ -45,15 +45,15 @@ export default withRouter(({ history }) => {

Editor

A simple UI form editor - which you can use to create the form's model and layout configurations, to help you get started. + href="https://galhavivi.github.io/cofi/docs/arguments.html#model">model and layout configurations, to help you get started. These form configurations are saved on your local storage.

Features