Skip to content

Commit e5bb0cd

Browse files
authored
Merge pull request #283 from kit-data-manager/indexedDB-integration
Integration of Indexed DB
2 parents c5fb41d + d97c0f4 commit e5bb0cd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+6575
-4396
lines changed

.github/workflows/deploy-storybook.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,28 @@ on:
66

77
jobs:
88
build-component:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- name: Checkout
12-
uses: actions/[email protected]
13-
14-
- name: Build
15-
run: npm ci
16-
17-
deploy-storybook:
189
runs-on: ubuntu-latest
1910
permissions:
2011
contents: read
2112
pages: write
2213
id-token: write
23-
2414
steps:
25-
- name: Checkout
26-
uses: actions/[email protected]
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 20
19+
- name: npm ci
20+
run: npm ci
21+
- name: Build component
22+
run: npm run build
23+
- name: Build Storybook
24+
run: npm run build-storybook
25+
- name: Upload Storybook to GitHub Pages
26+
uses: actions/upload-pages-artifact@v3
27+
with:
28+
path: "storybook-static"
2729

28-
- name: Deploy Storybook to GitHub Pages
29-
uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3
30+
- name: Deploy to GitHub Pages
31+
uses: actions/deploy-pages@v4
3032
with:
31-
path: storybook-static
32-
build_command: |
33-
npm run build
34-
npm run build-storybook
33+
token: ${{ github.token }}

.github/workflows/github-npm-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4.1.7
14+
- uses: actions/checkout@v4
1515
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 16
17+
node-version: 20
1818
- run: npm ci
1919

2020
publish-gpr:
@@ -24,10 +24,10 @@ jobs:
2424
contents: read
2525
packages: write
2626
steps:
27-
- uses: actions/checkout@v4.1.7
27+
- uses: actions/checkout@v4
2828
- uses: actions/setup-node@v4
2929
with:
30-
node-version: 16
30+
node-version: 20
3131
registry-url: https://npm.pkg.github.com/
3232
- run: npm ci
3333
- run: npm publish

.github/workflows/real-npm-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
publish-npm:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4.1.7
11+
- uses: actions/checkout@v4
1212
- uses: actions/setup-node@v4
1313
with:
14-
node-version: 19
14+
node-version: 20
1515
registry-url: https://registry.npmjs.org/
1616
- run: npm clean-install
1717
- run: npm run build

.prettierignore

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# Ignore artifacts:
2-
.stencil
3-
.storybook
4-
dist
5-
loader
6-
node_modules
7-
www
2+
/src/index.html
3+
/www/
4+
/node_modules/
5+
/dist/
6+
/loader/
7+
/.storybook/
8+
/.stencil/
9+
/storybook-static/

.storybook/main.ts

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
const config = {
1+
export default {
22
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
3-
addons: ['@storybook/addon-links', '@storybook/addon-essentials'],
4-
staticDirs: [{from: '../dist', to: '/assets'}, {from: '../loader', to: '/assets'}],
5-
framework: {
6-
name: '@storybook/web-components-vite',
7-
options: {},
3+
addons: [
4+
'@storybook/addon-links',
5+
'@storybook/addon-essentials'
6+
],
7+
staticDirs: [{ from: '../dist', to: '/assets' }, { from: '../loader', to: '/assets' }],
8+
framework: '@storybook/web-components-vite',
9+
docs: {
10+
source: {
11+
type: 'code',
12+
}
813
},
9-
docs: {},
1014
core: {
1115
disableTelemetry: true,
12-
}
16+
},
1317
};
14-
export default config;

.storybook/preview-head.html

Lines changed: 0 additions & 12 deletions
This file was deleted.

.storybook/preview.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { defineCustomElements } from '../loader';
33

44
defineCustomElements();
55

6-
const preview = {
6+
export default {
77
parameters: {
88
controls: {
99
matchers: {
@@ -12,6 +12,6 @@ const preview = {
1212
},
1313
},
1414
},
15-
};
1615

17-
export default preview;
16+
tags: ['autodocs']
17+
};

CODE_OF_CONDUCT.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Our Pledge
44

55
In the interest of fostering an open and welcoming environment, we as
6-
contributors and maintainers pledge to making participation in our project and
6+
contributors and maintainers pledge to make participation in our project and
77
our community a harassment-free experience for everyone, regardless of age, body
88
size, disability, ethnicity, gender identity and expression, level of experience,
99
education, socio-economic status, nationality, personal appearance, race,
@@ -14,21 +14,21 @@ religion, or sexual identity and orientation.
1414
Examples of behavior that contributes to creating a positive environment
1515
include:
1616

17-
* Using welcoming and inclusive language
18-
* Being respectful of differing viewpoints and experiences
19-
* Gracefully accepting constructive criticism
20-
* Focusing on what is best for the community
21-
* Showing empathy towards other community members
17+
- Using welcoming and inclusive language
18+
- Being respectful of differing viewpoints and experiences
19+
- Gracefully accepting constructive criticism
20+
- Focusing on what is best for the community
21+
- Showing empathy towards other community members
2222

2323
Examples of unacceptable behavior by participants include:
2424

25-
* The use of sexualized language or imagery and unwelcome sexual attention or
25+
- The use of sexualized language or imagery and unwelcome sexual attention or
2626
advances
27-
* Trolling, insulting/derogatory comments, and personal or political attacks
28-
* Public or private harassment
29-
* Publishing others' private information, such as a physical or electronic
27+
- Trolling, insulting/derogatory comments, and personal or political attacks
28+
- Public or private harassment
29+
- Publishing others' private information, such as a physical or electronic
3030
address, without explicit permission
31-
* Other conduct which could reasonably be considered inappropriate in a
31+
- Other conduct which could reasonably be considered inappropriate in a
3232
professional setting
3333

3434
## Our Responsibilities
@@ -56,8 +56,8 @@ further defined and clarified by project maintainers.
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behavior may be
5858
reported by contacting the project team at {{ email }}. All
59-
complaints will be reviewed and investigated and will result in a response that
60-
is deemed necessary and appropriate to the circumstances. The project team is
59+
complaints will be reviewed and investigated and will result in a response deemed necessary and appropriate to the
60+
circumstances. The project team is
6161
obligated to maintain confidentiality with regard to the reporter of an incident.
6262
Further details of specific enforcement policies may be posted separately.
6363

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Please note we have a code of conduct, please follow it in all your interactions
88
## Pull Request Process
99

1010
1. Ensure any install or build dependencies are removed before the end of the layer when doing a build.
11-
2. State in the Pull Request details of changes to the interface, this includes new environment variables, exposed ports, useful file locations and container parameters.
11+
2. State in the Pull Request details of changes to the interface, this includes new environment variables, exposed
12+
ports, useful file locations and container parameters.
1213
3. Pull Requests are merged after successful review of at least one of the project owners.
1314

1415
## Code of Conduct
@@ -81,4 +82,5 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage], versi
8182
available at [http://contributor-covenant.org/version/1/4][version]
8283

8384
[homepage]: http://contributor-covenant.org
85+
8486
[version]: http://contributor-covenant.org/version/1/4/

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ By default, it is set to 1, which means that it will only render the first level
1414
You can prohibit unfolding of the component by setting the `current-level-of-subcomponents` to the same value as
1515
the `level-of-subcomponents` property.
1616

17-
To use the component, import the [npm-package](https://www.npmjs.com/package/@kit-data-manager/pid-component) via [unpkg](https://unpkg.com/):
17+
To use the component, import the [npm-package](https://www.npmjs.com/package/@kit-data-manager/pid-component)
18+
via [unpkg](https://unpkg.com/):
1819

1920
```html
20-
2121
<head>
22-
<script type='module' src='https://unpkg.com/@kit-data-manager/pid-component'></script>
22+
<script type="module" src="https://unpkg.com/@kit-data-manager/pid-component"></script>
2323
</head>
2424
```
2525

@@ -33,7 +33,7 @@ Then, you can use this component like this:
3333

3434
```html
3535

36-
<pid-component value='21.T11981/be908bd1-e049-4d35-975e-8e27d40117e6'></pid-component>
36+
<pid-component value="21.T11981/be908bd1-e049-4d35-975e-8e27d40117e6"></pid-component>
3737
```
3838

3939
You can try this web component in the [demo](https://kit-data-manager.github.io/pid-component).

0 commit comments

Comments
 (0)