Skip to content

Commit

Permalink
Update domains
Browse files Browse the repository at this point in the history
  • Loading branch information
thien-do authored Jun 23, 2024
1 parent ee35c6f commit 8c10d24
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ representative at an online or offline event.

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at email:
<[email protected]>.
<[email protected]>.
All complaints will be reviewed and investigated promptly and fairly.

All community leaders are obligated to respect the privacy and security of the
Expand Down
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Thank you for your interest in contributing to Moai! There are many ways to cont

## Before you start

To understand the principles that drive the design and development of Moai, see the [Principles](https://docs.moaijs.com/?path=/docs/intro-principles--page) guide.
To understand the principles that drive the design and development of Moai, see the [Principles](https://moai.thien.do/?path=/docs/intro-principles--page) guide.

To get in touch with us, see the [Get in touch](../README.md#get-in-touch) section in the README. Whether you are stuck, or unsure about something, or just want to ask questions, we're more than happy to hear and help you.

Expand Down Expand Up @@ -45,7 +45,7 @@ Documentation improvements are very welcome. We appreciate everything: a quick e

Moai's documentation are just code in this repository. Documentation pull requests therefore follow the same process as other pull requests.

The source of [docs.moaijs.com](https://docs.moaijs.com) is largely under the "lib/docs" folder. You can find all guides and examples (i.e. "Story") here. The API references (i.e. "All Props" tables) are automatically generated from the component's source code (e.g. [button.ts](https://github.com/moaijs/moai/blob/main/lib/core/src/button/button.tsx)).
The source of [moai.thien.do](https://moai.thien.do) is largely under the "lib/docs" folder. You can find all guides and examples (i.e. "Story") here. The API references (i.e. "All Props" tables) are automatically generated from the component's source code (e.g. [button.ts](https://github.com/moaijs/moai/blob/main/lib/core/src/button/button.tsx)).

To test your documentation changes, you will need to setup Moai's local development. To get started, see the [DEVELOP](./DEVELOP.md) guide.

Expand Down
10 changes: 5 additions & 5 deletions .github/DEVELOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ This guide describes how to setup a local development to work on Moai.

This guide is mainly for contributing code to Moai. For other types of contribution, see the [CONTRIBUTING](./CONTRIBUTING.md) guide.

This is a guide to develop Moai itself. For guides to use Moai, e.g. to create your web apps with it, see [docs.moaijs.com](https://docs.moaijs.com).
This is a guide to develop Moai itself. For guides to use Moai, e.g. to create your web apps with it, see [moai.thien.do](https://moai.thien.do).

To understand the principles that drive the design and development of Moai, see the [Principles](https://docs.moaijs.com/?path=/docs/intro-principles--page) guide.
To understand the principles that drive the design and development of Moai, see the [Principles](https://moai.thien.do/?path=/docs/intro-principles--page) guide.

## Codebase overview

Expand All @@ -18,7 +18,7 @@ Moai is a [monorepo](https://classic.yarnpkg.com/en/docs/workspaces/) powered by
| ------- | ----------------- | ----------- |
| core | [@moai/core] | [Rollup] |
| gallery | [@moai/gallery] | [Rollup] |
| docs | [docs.moaijs.com] | [Storybook] |
| docs | [moai.thien.do] | [Storybook] |
| test | Test suits | [Jest] |

The "test" and "docs" projects depend on "core" and "gallery" via symlinks. This means to run tests or start the docs site locally, you will need to build "core" and "gallery" first. Also, the "gallery" depends on the "core" project:
Expand All @@ -36,7 +36,7 @@ The "test" and "docs" projects depend on "core" and "gallery" via symlinks. This

[@moai/core]: https://www.npmjs.com/package/@moai/core
[@moai/gallery]: https://www.npmjs.com/package/@moai/gallery
[docs.moaijs.com]: https://docs.moaijs.com
[moai.thien.do]: https://moai.thien.do
[storybook]: https://storybook.js.org
[jest]: https://jestjs.io
[next.js]: https://nextjs.org
Expand All @@ -46,7 +46,7 @@ The "test" and "docs" projects depend on "core" and "gallery" via symlinks. This

- `yarn start-core`: watch and build @moai/core
- `yarn start-gallery`: watch and build @moai/gallery
- `yarn start-docs`: start docs.moaijs.com locally
- `yarn start-docs`: start moai.thien.do locally
- `yarn test`: run the test suites

The typical workflow is to have 4 terminal tabs, one for each command above. However, depend on your use cases, you may not need to "watch" some projects, but only "build" them once.
Expand Down
17 changes: 2 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,13 @@ A React Component Library, Where Buttons Look Like Buttons.

![Moai preview](https://user-images.githubusercontent.com/5953369/123528873-5b3de480-d715-11eb-8c02-50a04f2d83f9.png)

- Website: [moaijs.com](https://moaijs.com)
- Documentation: [docs.moaijs.com](https://docs.moaijs.com)
- Docs: [moai.thien.do](https://moai.thien.do)
- NPM: [@moai/core](http://npmjs.com/package/@moai/core)
- License: [MIT](./LICENSE)

### Contributing

- [Contributing Overview](./.github/CONTRIBUTING.md): Report bugs, request features, write code and improve documentation.
- [Design Principles](https://docs.moaijs.com/?path=/docs/intro-principles--page): The unique traits that lead Moai's design and development.
- [Design Principles](https://moai.thien.do/?path=/docs/intro-principles--page): The unique traits that lead Moai's design and development.
- [Development](./.github/DEVELOP.md): Codebase overview and local development setup.
- [Code of Conduct](./.github/CODE_OF_CONDUCT.md): How we treat each other.

### Get in touch

- Email: [[email protected]](mailto:[email protected])
- For 1-1 support, security reports, business, etc.
- Chat: [we-build-vn.slack.com](https://chat.webuild.community/)
- For community support, QAs, discussions, etc.
- Look for "webuild-oss" channel
- We speak English and Vietnamese
- Repository: [moaijs/moai](https://github.com/moaijs/moai/issues)
- For bug reports, feature requests, code contribution, etc.
- See also: [Contributing Overview](./.github/CONTRIBUTING.md)
4 changes: 2 additions & 2 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"bugs": {
"url": "https://github.com/moaijs/moai/issues"
},
"homepage": "https://moaijs.com",
"email": "[email protected]",
"homepage": "https://moai.thien.do",
"email": "[email protected]",
"peerDependencies": {
"react": ">=16",
"react-dom": ">=16"
Expand Down
2 changes: 1 addition & 1 deletion docs/.storybook/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const common = {
fontBase: '"Inter var", sans-serif',
// Branding
brandTitle: "Moai UI kit",
brandUrl: "https://moaijs.com",
brandUrl: "https://moai.thien.do",
};

export const lightTheme = create({
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"url": "git+https://github.com/moaijs/moai.git"
},
"license": "MIT",
"homepage": "https://moaijs.com",
"email": "[email protected]",
"homepage": "https://moai.thien.do",
"email": "[email protected]",
"dependencies": {
"@babel/core": "^7.14.8",
"@storybook/addon-docs": "^6.3.6",
Expand Down
4 changes: 2 additions & 2 deletions docs/src/components/button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ suffix, like \`Button.sizes.mediumIcon\`.
export const Link = (): JSX.Element => (
<Button
highlight
href="https://moaijs.com"
href="https://moai.thien.do"
target="_blank"
children="Go to Moaijs.com"
children="Go to moai.thien.do"
/>
);

Expand Down
4 changes: 2 additions & 2 deletions gallery/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"bugs": {
"url": "https://github.com/moaijs/moai/issues"
},
"homepage": "https://moaijs.com",
"email": "[email protected]",
"homepage": "https://moai.thien.do",
"email": "[email protected]",
"dependencies": {
"@moai/core": "*"
},
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/button-2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Row2 = (): JSX.Element => (
<Busy />
<Button
target="_blank"
href="https://moaijs.com"
href="https://moai.thien.do"
children="Link"
minWidth
/>
Expand Down
2 changes: 1 addition & 1 deletion gallery/src/popover.tsx.backup
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const Customization = (): JSX.Element => {
/>
TypeScript
<DivPx size={16} />
moaijs.com
moai.thien.do
</div>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions test/src/button.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe("Button", () => {
test("Renders correctly", () => {
render(
<Test
button={{ href: "https://moaijs.com/", rel: "noopener" }}
button={{ href: "https://moai.thien.do/", rel: "noopener" }}
/>
);

Expand All @@ -72,7 +72,7 @@ describe("Button", () => {
render(
<Test
button={{
href: "https://moaijs.com/",
href: "https://moai.thien.do/",
rel: "noopener",
onClick: onClickMockFn,
}}
Expand Down

0 comments on commit 8c10d24

Please sign in to comment.