Skip to content

Commit

Permalink
💄 style: Reformat with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
honzabubenik committed Mar 17, 2024
1 parent 91d4c12 commit 8aa5725
Show file tree
Hide file tree
Showing 47 changed files with 286 additions and 369 deletions.
7 changes: 2 additions & 5 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,16 @@ module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'prettier',
'airbnb-base',
'airbnb-typescript/base',
'prettier',
],
parserOptions: {
project: ['tsconfig.json', 'tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
parser: '@typescript-eslint/parser',
plugins: [
'prettier',
'@typescript-eslint',
],
plugins: ['prettier', '@typescript-eslint'],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
lint:
name: Lint, Typecheck, Test and Build source files
runs-on: [ self-hosted, Linux ]
runs-on: [self-hosted, Linux]
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ permissions:
jobs:
ci:
name: CI Init
runs-on: [ self-hosted, Linux ]
runs-on: [self-hosted, Linux]
outputs:
action: ${{ steps.init.outputs.action }}
steps:
Expand All @@ -23,7 +23,7 @@ jobs:
name: Prepare Release PR
needs: ci
if: needs.ci.outputs.action == 'prepare'
runs-on: [ self-hosted, Linux ]
runs-on: [self-hosted, Linux]
steps:
- uses: localazy/release/prepare@v2
with:
Expand All @@ -35,7 +35,7 @@ jobs:
name: Publish Release
needs: ci
if: needs.ci.outputs.action == 'publish'
runs-on: [ self-hosted, Linux ]
runs-on: [self-hosted, Linux]
steps:
- uses: localazy/release/publish@v2
with:
Expand All @@ -47,7 +47,7 @@ jobs:
deploy-docs:
name: Deploy Docs
needs: publish
runs-on: [ self-hosted, Linux ]
runs-on: [self-hosted, Linux]
env:
NODE_OPTIONS: --max_old_space_size=8192
steps:
Expand Down
60 changes: 18 additions & 42 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,102 +1,78 @@
## 1.4.1 (2024-03-15)



### 🐛 Bug Fixes

* Fix external links style ([89ed1ac](https://github.com/localazy/cdn-client/commit/89ed1ac))
* Fix missing images ([5baa5a1](https://github.com/localazy/cdn-client/commit/5baa5a1))

- Fix external links style ([89ed1ac](https://github.com/localazy/cdn-client/commit/89ed1ac))
- Fix missing images ([5baa5a1](https://github.com/localazy/cdn-client/commit/5baa5a1))

### 📚 Documentation

* Update sandbox example, remove wrong options from reference ([f5f89d3](https://github.com/localazy/cdn-client/commit/f5f89d3))
- Update sandbox example, remove wrong options from reference ([f5f89d3](https://github.com/localazy/cdn-client/commit/f5f89d3))

# 1.4.0 (2024-03-15)



### ✨ Features

* Add live demo and update docs ([ef57bcf](https://github.com/localazy/cdn-client/commit/ef57bcf))

- Add live demo and update docs ([ef57bcf](https://github.com/localazy/cdn-client/commit/ef57bcf))

### 📚 Documentation

* Add i18next example ([59b43fa](https://github.com/localazy/cdn-client/commit/59b43fa))

- Add i18next example ([59b43fa](https://github.com/localazy/cdn-client/commit/59b43fa))

### 🧰 Other Commits

* Update CI ([ddd7478](https://github.com/localazy/cdn-client/commit/ddd7478))
- Update CI ([ddd7478](https://github.com/localazy/cdn-client/commit/ddd7478))

# 1.3.0 (2024-03-15)



### ✨ Features

* Add code sandbox support ([86da408](https://github.com/localazy/cdn-client/commit/86da408))
* Update package.json exports ([00a3cf0](https://github.com/localazy/cdn-client/commit/00a3cf0))

- Add code sandbox support ([86da408](https://github.com/localazy/cdn-client/commit/86da408))
- Update package.json exports ([00a3cf0](https://github.com/localazy/cdn-client/commit/00a3cf0))

### ⚡️ Performance

* Replace lodash with base functions to reduce bundle size ([da505ab](https://github.com/localazy/cdn-client/commit/da505ab))

- Replace lodash with base functions to reduce bundle size ([da505ab](https://github.com/localazy/cdn-client/commit/da505ab))

### 📚 Documentation

* Updated docs ([5fba451](https://github.com/localazy/cdn-client/commit/5fba451))

- Updated docs ([5fba451](https://github.com/localazy/cdn-client/commit/5fba451))

### 🧰 Other Commits

* Add bundle visualizer ([4a7dfc3](https://github.com/localazy/cdn-client/commit/4a7dfc3))
* Remove unused deps ([757f4ae](https://github.com/localazy/cdn-client/commit/757f4ae))
- Add bundle visualizer ([4a7dfc3](https://github.com/localazy/cdn-client/commit/4a7dfc3))
- Remove unused deps ([757f4ae](https://github.com/localazy/cdn-client/commit/757f4ae))

## 1.2.1 (2024-03-14)



### 🐛 Bug Fixes

* Use correct bundle name ([a2de035](https://github.com/localazy/cdn-client/commit/a2de035))
- Use correct bundle name ([a2de035](https://github.com/localazy/cdn-client/commit/a2de035))

# 1.2.0 (2024-03-14)



### ✨ Features

* Use fetch instead of axios ([ae5a473](https://github.com/localazy/cdn-client/commit/ae5a473))
- Use fetch instead of axios ([ae5a473](https://github.com/localazy/cdn-client/commit/ae5a473))

## 1.1.2 (2024-03-14)



### 🐛 Bug Fixes

* Update UMD and CJS bundles config ([447c4e0](https://github.com/localazy/cdn-client/commit/447c4e0))
- Update UMD and CJS bundles config ([447c4e0](https://github.com/localazy/cdn-client/commit/447c4e0))

## 1.1.1 (2024-03-13)



### 🧰 Other Commits

* Update CI ([dbe6994](https://github.com/localazy/cdn-client/commit/dbe6994))
- Update CI ([dbe6994](https://github.com/localazy/cdn-client/commit/dbe6994))

# 1.1.0 (2024-03-13)



### ✨ Features

* Initial version of Localazy CDN client ([e8b265e](https://github.com/localazy/cdn-client/commit/e8b265e))

- Initial version of Localazy CDN client ([e8b265e](https://github.com/localazy/cdn-client/commit/e8b265e))

### 🧰 Other Commits

* initial commit ([6c2ef96](https://github.com/localazy/cdn-client/commit/6c2ef96))

- initial commit ([6c2ef96](https://github.com/localazy/cdn-client/commit/6c2ef96))
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[**Live Demo**](https://localazy.github.io/cdn-client/sandbox/live-demo.html)  | 
[**API Reference**](https://localazy.github.io/cdn-client/reference/client-api.html)

[//]: # ([**Live Demo**]())
[//]: # '[**Live Demo**]()'

Node.js module that allows you to easily interact with the [Localazy CDN](https://localazy.com/docs/cdn/cdn-introduction).

Expand Down Expand Up @@ -40,7 +40,7 @@ For more information, visit the [installation guide](https://localazy.github.io/
Check out all npm packages from Localazy:

| Package | Description |
|--------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
| [@localazy/cli](https://www.npmjs.com/package/@localazy/cli) | Localazy CLI tool for app and software localization and translation. |
| [@localazy/api-client](https://www.npmjs.com/package/@localazy/api-client) | Node.js module that allows you to easily interact with the Localazy API. |
| [@localazy/cdn-client](https://www.npmjs.com/package/@localazy/cdn-client) | Node.js module that allows you to easily interact with the Localazy CDN. |
Expand Down
62 changes: 32 additions & 30 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,13 @@ export default defineConfig({
description: 'Localazy CDN Client Documentation',
head: [
['link', { rel: 'icon', href: '/cdn-client/favicon.ico' }],
['link', { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap' }]
[
'link',
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap',
},
],
],
base: '/cdn-client/',

Expand All @@ -22,14 +28,14 @@ export default defineConfig({
md.use(container, 'loc-sandbox', {
render(tokens, idx) {
return renderSandbox(tokens, idx, 'loc-sandbox');
}
},
});
},
// https://shiki.style
theme: {
light: 'github-light',
dark: 'github-dark'
}
dark: 'github-dark',
},
},

themeConfig: {
Expand All @@ -43,80 +49,76 @@ export default defineConfig({
items: [
{ text: 'Introduction', link: '/get-started/introduction' },
{ text: 'Install', link: '/get-started/install' },
{ text: 'Metafile', link: '/get-started/metafile' }
]
{ text: 'Metafile', link: '/get-started/metafile' },
],
},
{
text: 'Usage',
items: [
{
text: 'Get Locales',
link: '/usage/get-locales'
link: '/usage/get-locales',
},
{
text: 'Get Content',
link: '/usage/get-content',
items: [
{ text: 'Selecting Data', link: '/usage/get-content#selecting-data' },
{ text: 'Single File', link: '/usage/get-content#single-file' },
{ text: 'Multiple Files', link: '/usage/get-content#multiple-files' }
]
}
]
{ text: 'Multiple Files', link: '/usage/get-content#multiple-files' },
],
},
],
},
{
text: 'Sandbox',
items: [
{ text: 'Live Demo', link: '/sandbox/live-demo' }
]
items: [{ text: 'Live Demo', link: '/sandbox/live-demo' }],
},
{
text: 'Examples',
items: [
{ text: 'i18next', link: '/examples/i18next' }
]
items: [{ text: 'i18next', link: '/examples/i18next' }],
},
{
text: 'Reference',
items: [
{ text: 'Client API', link: '/reference/client-api' },
{ text: 'Types', link: '/reference/types' }
]
}
{ text: 'Types', link: '/reference/types' },
],
},
],

search: {
provider: 'local'
provider: 'local',
},

socialLinks: [
{ icon: 'npm', link: 'https://www.npmjs.com/package/@localazy/cdn-client' },
{ icon: 'github', link: 'https://github.com/localazy/cdn-client' }
{ icon: 'github', link: 'https://github.com/localazy/cdn-client' },
],

externalLinkIcon: true
}
externalLinkIcon: true,
},
});

function nav() {
return [
{
text: 'Get Started',
link: '/get-started/introduction',
activeMatch: '/get-started/'
activeMatch: '/get-started/',
},
{
text: version,
items: [
{
text: 'Releases',
link: 'https://github.com/localazy/cdn-client/releases'
link: 'https://github.com/localazy/cdn-client/releases',
},
{
text: 'Changelog',
link: 'https://github.com/localazy/cdn-client/blob/main/CHANGELOG.md'
}
]
}
link: 'https://github.com/localazy/cdn-client/blob/main/CHANGELOG.md',
},
],
},
];
}
Loading

0 comments on commit 8aa5725

Please sign in to comment.