-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1267 from grid-js/functional
Grid.js v6 - Functional Components
- Loading branch information
Showing
85 changed files
with
8,582 additions
and
10,389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
name: Code Coverage | ||
|
||
name: 'coverage' | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
- main | ||
jobs: | ||
coverage: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI_JOB_NUMBER: 1 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: npm install | ||
- run: npm run install:plugins | ||
- uses: artiomtr/jest-coverage-report-action@v1.3 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
test_script: npm run test:jest | ||
coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: npm install | ||
- run: npm run install:plugins | ||
- uses: ArtiomTr/jest-coverage-report-action@v2 | ||
id: coverage | ||
with: | ||
output: report-markdown | ||
test-script: npm run test:jest | ||
- uses: marocchino/sticky-pull-request-comment@v2 | ||
with: | ||
message: ${{ steps.coverage.outputs.report }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,34 @@ | ||
import Grid from './src/grid'; | ||
|
||
import { html } from './src/util/html'; | ||
import { h, createElement, Component, createRef } from 'preact'; | ||
import { useEffect, useRef } from 'preact/hooks'; | ||
import { UserConfig, Config } from './src/config'; | ||
import { BaseComponent, BaseProps } from './src/view/base'; | ||
import { | ||
PluginPosition, | ||
PluginBaseComponent, | ||
PluginBaseProps, | ||
} from './src/plugin'; | ||
import { BaseActions } from './src/view/base/actions'; | ||
import { useEffect, useRef, useState } from 'preact/hooks'; | ||
import { Config } from './src/config'; | ||
import { PluginPosition } from './src/plugin'; | ||
import { ID } from './src/util/id'; | ||
import { className } from './src/util/className'; | ||
import Row from './src/row'; | ||
import Cell from './src/cell'; | ||
import BaseStore from './src/view/base/store'; | ||
import Dispatcher from './src/util/dispatcher'; | ||
import { useConfig } from './src/hooks/useConfig'; | ||
import { useStore } from './src/hooks/useStore'; | ||
import useSelector from './src/hooks/useSelector'; | ||
|
||
export { | ||
Grid, | ||
ID, | ||
Dispatcher, | ||
Row, | ||
Cell, | ||
BaseActions, | ||
BaseStore, | ||
className, | ||
html, | ||
UserConfig, | ||
Config, | ||
BaseComponent, | ||
BaseProps, | ||
PluginPosition, | ||
PluginBaseComponent, | ||
PluginBaseProps, | ||
h, | ||
createElement, | ||
Component, | ||
createRef, | ||
useEffect, | ||
useRef | ||
useRef, | ||
useStore, | ||
useConfig, | ||
useState, | ||
useSelector, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
export default { | ||
search: { | ||
placeholder: 'Napište klíčové slovo...', | ||
}, | ||
sort: { | ||
sortAsc: 'Seřadit sloupec vzestupně', | ||
sortDesc: 'Seřadit sloupec sestupně', | ||
}, | ||
pagination: { | ||
firstPage: 'První stránka', | ||
previous: 'Předchozí', | ||
next: 'Další', | ||
navigate: (page, pages) => `Stránka ${page} z ${pages}`, | ||
page: (page) => `Stránka ${page}`, | ||
showing: 'Zobrazeno', | ||
of: 'z', | ||
to: 'až', | ||
results: 'výsledků', | ||
}, | ||
loading: 'Načítám...', | ||
noRecordsFound: 'Nebyly nalezeny žádné odpovídající záznamy', | ||
error: 'Při načítání dat došlo k chybě', | ||
search: { | ||
placeholder: 'Napište klíčové slovo...', | ||
}, | ||
sort: { | ||
sortAsc: 'Seřadit sloupec vzestupně', | ||
sortDesc: 'Seřadit sloupec sestupně', | ||
}, | ||
pagination: { | ||
previous: 'Předchozí', | ||
next: 'Další', | ||
navigate: (page, pages) => `Stránka ${page} z ${pages}`, | ||
page: (page) => `Stránka ${page}`, | ||
showing: 'Zobrazeno', | ||
of: 'z', | ||
to: 'až', | ||
results: 'výsledků', | ||
}, | ||
loading: 'Načítám...', | ||
noRecordsFound: 'Nebyly nalezeny žádné odpovídající záznamy', | ||
error: 'Při načítání dat došlo k chybě', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": ".", | ||
"removeComments": true | ||
}, | ||
"include": [ | ||
"index.ts", | ||
"src/**/*", | ||
"tests/**/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"rootDir": ".", | ||
"removeComments": true | ||
}, | ||
"include": [ | ||
"index.ts" | ||
"index.ts", | ||
"src/**/*" | ||
], | ||
"exclude": [ | ||
"tests/**/*", | ||
"src/**/*" | ||
"tests/**/*" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"types": ["jest"], | ||
"esModuleInterop": true | ||
} | ||
} |
Oops, something went wrong.