Skip to content

Commit

Permalink
update public url
Browse files Browse the repository at this point in the history
  • Loading branch information
Gal Havivi committed Nov 2, 2020
1 parent b28abb3 commit 7de3c05
Show file tree
Hide file tree
Showing 28 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion CODE-OF-CONDUCT.md
Original file line number Diff line number Diff line change
@@ -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.
Please refer to the [Code of Conduct](https://galhavivi.github.io/cofi/docs/code-of-conduct) doc for information about behavior expectation.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -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.
Please refer to the [Contributing Guide](https://galhavivi.github.io/cofi/docs/contributing-guide) doc for information about how to contribute.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/docs/advances-form-persistency.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ const model = getModel();
<Form model={model} resource={form.resources}>
```

See advanced demo in [Form Persistency Demo](https://galhavivi.github.com/cofi/demo-react-form.html#/others/persistency/html).
See advanced demo in [Form Persistency Demo](https://galhavivi.github.io/cofi/demo-react-form.html#/others/persistency/html).
2 changes: 1 addition & 1 deletion packages/documentation/docs/advances-grid-usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ return (
</Grid>);
```

See advanced demo in [Grid Demo](https://galhavivi.github.com/cofi/demo-react-form.html#/others/grid-usage/html).
See advanced demo in [Grid Demo](https://galhavivi.github.io/cofi/demo-react-form.html#/others/grid-usage/html).
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 5 additions & 5 deletions packages/documentation/docs/more-packages.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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
Expand All @@ -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:

Expand All @@ -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/).
[@cofi/documentation](https://github.com/galhavivi/cofi/tree/master/packages/documentation) - contains [this documentation site](https://galhavivi.github.io/cofi/).
2 changes: 1 addition & 1 deletion packages/documentation/docs/react-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
```
Expand Down
8 changes: 4 additions & 4 deletions packages/documentation/docs/react-demos.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
2 changes: 1 addition & 1 deletion packages/documentation/docs/tools-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/docs/tools-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion packages/documentation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
10 changes: 5 additions & 5 deletions packages/documentation/website/siteConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
Expand Down
2 changes: 1 addition & 1 deletion packages/form/src/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/form/test/log.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: ',
Expand Down
2 changes: 1 addition & 1 deletion packages/react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-editor/.env
Original file line number Diff line number Diff line change
@@ -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
REACT_APP_COFI_DOCS=https://galhavivi.github.io/cofi
2 changes: 1 addition & 1 deletion packages/react-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`);
Expand Down
6 changes: 3 additions & 3 deletions packages/react-editor/src/website/pages/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@ export default withRouter(({ history }) => {
<h1>Editor</h1>
<p>
A simple UI form editor - which you can use to create the form's <Link
href="https://galhavivi.github.com/cofi/docs/arguments.html#model">model</Link> and <Link
href="https://galhavivi.github.com/cofi/docs/react-layout.html">layout</Link> configurations, to help you get started.
href="https://galhavivi.github.io/cofi/docs/arguments.html#model">model</Link> and <Link
href="https://galhavivi.github.io/cofi/docs/react-layout.html">layout</Link> configurations, to help you get started.
These form configurations are saved on your local storage.
</p>
<h3>Features</h3>
<ul>
<li>Create form configuration</li>
<li>Download form configuration as jsons and as files (you might need to supply custom <Link
href="https://galhavivi.github.com/cofi/docs/arguments.html#resources">resources</Link> such as actual components,
href="https://galhavivi.github.io/cofi/docs/arguments.html#resources">resources</Link> such as actual components,
custom validators and more - if defined in the form model, prior to passing it to the Form class / component)</li>
<li>Create common fields in 'Fields Library'</li>
<li>Add common fields to a form using a reference (i.e when a library field is updated - all referenced fields are
Expand Down
2 changes: 1 addition & 1 deletion packages/react-form/.env
Original file line number Diff line number Diff line change
@@ -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
REACT_APP_COFI_DOCS=https://galhavivi.github.io/cofi
2 changes: 1 addition & 1 deletion packages/react-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"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",
"publish-package": "npm publish dist --access public || echo publish failed",
"deploy-website": "PUBLIC_URL=https://galhavivi.github.com/cofi/react-form npm run build-website && gh-pages --dist build --dest react-form",
"deploy-website": "PUBLIC_URL=https://galhavivi.github.io/cofi/react-form npm run build-website && gh-pages --dist build --dest react-form",
"watch-package": "npm-watch build-package",
"pre-push": "lint-staged"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/react-layout/.env
Original file line number Diff line number Diff line change
@@ -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
REACT_APP_COFI_DOCS=https://galhavivi.github.io/cofi
2 changes: 1 addition & 1 deletion packages/react-layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"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",
"publish-package": "npm publish dist --access public || echo publish failed",
"deploy-website": "PUBLIC_URL=https://galhavivi.github.com/cofi/react-layout npm run build-website && gh-pages --dist build --dest react-layout",
"deploy-website": "PUBLIC_URL=https://galhavivi.github.io/cofi/react-layout npm run build-website && gh-pages --dist build --dest react-layout",
"watch-package": "npm-watch build-package",
"pre-push": "lint-staged"
},
Expand Down

0 comments on commit 7de3c05

Please sign in to comment.