Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: eManPrague/frui.ts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.17.0
Choose a base ref
...
head repository: eManPrague/frui.ts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: develop
Choose a head ref

Commits on Dec 9, 2020

  1. Dependencies updated

    gius committed Dec 9, 2020
    Copy the full SHA
    81c2b7e View commit details
  2. Storybook updated

    gius committed Dec 9, 2020
    Copy the full SHA
    6b787f2 View commit details
  3. Typescript updated. refs #19

    gius committed Dec 9, 2020
    Copy the full SHA
    4bbdfc2 View commit details

Commits on Dec 16, 2020

  1. Copy the full SHA
    b69204b View commit details

Commits on Dec 17, 2020

  1. CI configuration updated

    gius committed Dec 17, 2020
    Copy the full SHA
    d3fdb34 View commit details

Commits on Dec 19, 2020

  1. Dependencies updated

    gius committed Dec 19, 2020
    Copy the full SHA
    138f68c View commit details

Commits on Dec 22, 2020

  1. Merge branch 'develop' into feature/next

    # Conflicts:
    #	examples/complexdemo/yarn.lock
    #	packages/generator/src/generatorBase.ts
    #	packages/generator/src/openapi/index.ts
    #	packages/generator/src/openapi/writers/objectEntityWriter.ts
    #	packages/helpers/src/manualPromise.ts
    #	stories/yarn.lock
    #	yarn.lock
    gius committed Dec 22, 2020
    Copy the full SHA
    1e4d104 View commit details
  2. Lint script updated

    gius committed Dec 22, 2020
    Copy the full SHA
    b32f4eb View commit details

Commits on Dec 26, 2020

  1. CI scripts updated

    gius committed Dec 26, 2020
    Copy the full SHA
    fd6abd4 View commit details

Commits on Apr 27, 2021

  1. Merge branch 'develop' into feature/next

    # Conflicts:
    #	packages/validation/src/automaticEntityValidator.ts
    gius committed Apr 27, 2021
    Copy the full SHA
    92cd081 View commit details

Commits on May 2, 2021

  1. Added Validation2 PoC

    gius committed May 2, 2021
    Copy the full SHA
    013866b View commit details
  2. Copy the full SHA
    a6c711e View commit details

Commits on May 9, 2021

  1. Copy the full SHA
    562df5b View commit details

Commits on Jun 20, 2021

  1. Copy the full SHA
    ff81e6c View commit details
  2. Copy the full SHA
    2c269d1 View commit details

Commits on Jun 21, 2021

  1. Added new conductors PoC

    gius committed Jun 21, 2021
    Copy the full SHA
    debcc8b View commit details

Commits on Sep 19, 2021

  1. New conductors updated

    gius committed Sep 19, 2021
    Copy the full SHA
    d7169e7 View commit details

Commits on Oct 30, 2021

  1. Copy the full SHA
    8c4fe8f View commit details
  2. Dependencies updated

    gius committed Oct 30, 2021
    Copy the full SHA
    83fd69e View commit details

Commits on Oct 31, 2021

  1. Copy the full SHA
    9954636 View commit details

Commits on Nov 2, 2021

  1. New busy watcher

    Michal Kopecký committed Nov 2, 2021
    Copy the full SHA
    0f2e44b View commit details
  2. Merge pull request #55 from kopecmi8/feature/busyWatcher

    New busy watcher
    gius authored Nov 2, 2021
    Copy the full SHA
    f412ca8 View commit details
  3. Copy the full SHA
    e112a54 View commit details

Commits on Nov 5, 2021

  1. Copy the full SHA
    aac95f4 View commit details

Commits on Nov 8, 2021

  1. Copy the full SHA
    5a0130d View commit details
  2. Merge branch 'develop' into feature/next

    # Conflicts:
    #	.vscode/launch.json
    #	CHANGELOG.md
    #	package.json
    #	packages/generator/package.json
    #	packages/generator/src/index.ts
    #	packages/generator/src/openapi/fileGenerator.ts
    #	packages/generator/src/openapi/models/apiModel.ts
    #	packages/generator/src/openapi/models/typeReference.ts
    #	packages/generator/src/openapi/parsers/openApi3Parser.ts
    #	packages/generator/src/openapi/writers/enumWriter.ts
    #	packages/generator/src/openapi/writers/objectEntityWriter.ts
    #	packages/generator/src/openapi/writers/stringLiteralWriter.ts
    #	packages/generator/src/openapi/writers/unionEntityWriter.ts
    #	packages/screens/README.md
    #	packages/screens/src/index.ts
    #	packages/screens/src/navigation/hashNavigationAdapter.ts
    #	packages/screens/src/structure/busyWatcher.ts
    #	packages/screens/src/structure/types.ts
    #	packages/validation/src/automaticEntityValidator.ts
    #	packages/validation/src/index.ts
    #	packages/validation/src/types.ts
    #	packages/views/src/errorBoundary.tsx
    #	packages/views/src/view.tsx
    #	yarn.lock
    gius committed Nov 8, 2021
    Copy the full SHA
    50dd8c5 View commit details

Commits on Nov 9, 2021

  1. Copy the full SHA
    6ec9e7b View commit details

Commits on Nov 24, 2021

  1. Minor fixes

    gius committed Nov 24, 2021
    Copy the full SHA
    39d0e47 View commit details

Commits on Dec 14, 2021

  1. Minor refactoring in navigation

    gius committed Dec 14, 2021
    Copy the full SHA
    4e60be2 View commit details

Commits on Jan 12, 2022

  1. Minor changes

    gius committed Jan 12, 2022
    Copy the full SHA
    2bc1056 View commit details

Commits on Jan 20, 2022

  1. Copy the full SHA
    bb4530b View commit details

Commits on Jan 28, 2022

  1. Copy the full SHA
    b78f7d8 View commit details
  2. Copy the full SHA
    e774efd View commit details

Commits on Feb 5, 2022

  1. Copy the full SHA
    76f5c77 View commit details
  2. Validation results contain only properties with actual results

    Empty result collections are no longer returned
    gius committed Feb 5, 2022
    Copy the full SHA
    906ec39 View commit details
  3. Copy the full SHA
    0634ff5 View commit details
  4. Copy the full SHA
    2a40a67 View commit details
  5. Built output targets ES6

    gius committed Feb 5, 2022
    Copy the full SHA
    718298c View commit details

Commits on Feb 16, 2022

  1. Copy the full SHA
    b4dc07b View commit details

Commits on Feb 18, 2022

  1. Copy the full SHA
    f9f70e1 View commit details

Commits on Mar 12, 2022

  1. Copy the full SHA
    a2742c7 View commit details

Commits on Mar 13, 2022

  1. Added simple navigation example

    gius committed Mar 13, 2022
    Copy the full SHA
    e52f933 View commit details
  2. Added support for route params

    gius committed Mar 13, 2022
    Copy the full SHA
    f2aac68 View commit details

Commits on Mar 14, 2022

  1. Copy the full SHA
    c753867 View commit details
  2. Added view-model-first routes

    gius committed Mar 14, 2022
    Copy the full SHA
    daca661 View commit details

Commits on Mar 15, 2022

  1. Validators can display errors only for specified properties

    Useful when displaying errors only after "touch" on input fields
    gius committed Mar 15, 2022
    Copy the full SHA
    b762881 View commit details
  2. Copy the full SHA
    ed0e7d4 View commit details
  3. Copy the full SHA
    e1fecac View commit details
  4. Copy the full SHA
    aba7642 View commit details

Commits on Mar 16, 2022

  1. Copy the full SHA
    3ec8bc3 View commit details
Showing 547 changed files with 18,423 additions and 48,088 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
node_modules
*spec*
dist
serviceWorker.ts
vite.config.*

examples/**/di.registry.ts
39 changes: 35 additions & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,42 @@
module.exports = {
root: true,
extends: ["@emanprague/eslint-config/eslint-default"],
rules: {
"@typescript-eslint/no-use-before-define": [2, { functions: false }],
},
settings: {
react: {
version: "latest",
version: "detect",
},
},
parserOptions: {
project: "./tsconfig.eslint.json",
},
rules: {
"@typescript-eslint/unbound-method": "off", // we use @bound attribute
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/consistent-type-exports": "warn",
"@typescript-eslint/no-misused-promises": [
"error",
{
checksVoidReturn: {
attributes: false,
},
},
],
},
ignorePatterns: ["**/cra-template/template/**/*.ts", "**/cra-template/template/**/*.tsx"],
env: {
browser: true,
node: true,
},
overrides: [
{
files: ["**/*.test.ts"],
rules: {
"sonarjs/no-duplicate-string": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
},
},
],
};
20 changes: 15 additions & 5 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -9,20 +9,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1

- name: Cache
uses: actions/cache@v3.0.2
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 18.x
registry-url: https://registry.npmjs.org/

- uses: little-core-labs/get-git-tag@v3.0.1
id: tagName
with:
tagRegex: "v(.*)"
tagRegexGroup: 1

- run: yarn install
- run: yarn run lerna bootstrap
- run: yarn run lint
- run: yarn run build
- run: yarn test
- run: yarn run lerna publish ${{ steps.tagName.outputs.tag }} --yes --no-git-tag-version --no-push
- run: yarn run lint
- run: yarn run lerna publish ${{ steps.tagName.outputs.tag }} --yes --no-git-tag-version --no-push --no-verify-access
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
17 changes: 13 additions & 4 deletions .github/workflows/validatecommit.yml
Original file line number Diff line number Diff line change
@@ -13,12 +13,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1

- name: Cache
uses: actions/cache@v3.0.2
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-

- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 12
node-version: 18.x
registry-url: https://registry.npmjs.org/

- run: yarn install
- run: yarn run lerna bootstrap
- run: yarn run lint
- run: yarn run build
- run: yarn test
- run: yarn run lint
24 changes: 24 additions & 0 deletions .github/workflows/verifynpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Verify NPM

on:
push:
branches:
- ci-debug

jobs:
validate-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/

- run: npm config list -l
- run: printenv
- name: Ensure access
run: npm whoami
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ dist/
/out-tsc
demo/dist
packages/*/dist
stories/storybook-static

# Runtime data
pids
3 changes: 1 addition & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image: node:12
image: node:14

cache:
key: ${CI_COMMIT_REF_SLUG}
@@ -12,7 +12,6 @@ stages:

before_script:
- yarn install
- yarn run lerna bootstrap

test:
stage: test
89 changes: 15 additions & 74 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -5,92 +5,33 @@
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Debug generator",
"cwd": "C:\\_Projects\\test-project",
"runtimeArgs": ["-r", "${workspaceFolder}/packages/generator/node_modules/ts-node/register/transpile-only"],
"args": ["${workspaceFolder}/packages/generator/src/index.ts", "inversify", "-cgenerator.inversify.json"],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/packages/generator/tsconfig.json"
}
},
{
"type": "node",
"request": "launch",
"name": "Debug openapi generator - veralink admin",
"cwd": "C:\\_Projects\\veralink-admin-fe",
"runtimeArgs": ["-r", "${workspaceFolder}/packages/generator/node_modules/ts-node/register/transpile-only"],
"args": ["${workspaceFolder}/packages/generator/src/index.ts", "openapi", "-copenapi/generator.openapi-auth.json"],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/packages/generator/tsconfig.json"
}
},
{
"type": "node",
"request": "launch",
"name": "Debug openapi generator - ppas",
"cwd": "C:\\_Projects\\ppas-zp-app\\frontend\\portal",
"runtimeArgs": ["-r", "${workspaceFolder}/packages/generator/node_modules/ts-node/register/transpile-only"],
"args": ["${workspaceFolder}/packages/generator/src/index.ts", "openapi", "-cgenerator.openapi.json"],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/packages/generator/tsconfig.json"
}
},
{
"type": "node",
"request": "launch",
"name": "Debug openapi generator - myPPL",
"cwd": "C:\\_Projects\\myparcelshop-fe",
"runtimeArgs": ["-r", "${workspaceFolder}/packages/generator/node_modules/ts-node/register/transpile-only"],
"args": ["${workspaceFolder}/packages/generator/src/index.ts", "openapi", "-cgenerator.openapi.json"],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/packages/generator/tsconfig.json"
}
},
{
"type": "node",
"request": "launch",
"name": "Debug inversify generator - myPPL",
"cwd": "C:\\_Projects\\myparcelshop-fe",
"runtimeArgs": ["-r", "${workspaceFolder}/packages/generator/node_modules/ts-node/register/transpile-only"],
"args": ["${workspaceFolder}/packages/generator/src/index.ts", "inversify", "-cgenerator.inversify.json", "-d"],
"env": {
"TS_NODE_PROJECT": "${workspaceFolder}/packages/generator/tsconfig.json"
}
},
{
"type": "chrome",
"request": "attach",
"name": "Attach to Chrome",
"port": 9222,
"request": "attach",
"type": "chrome",
"webRoot": "${workspaceFolder}"
},
{
"type": "node",
"request": "launch",
"name": "Jest All",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["--runInBand"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
"name": "Debug generator",
"cwd": "C:\\_Projects\\tuito\\frontend",
"preLaunchTask": "npm: build - packages/generator",
"args": ["${workspaceFolder}/packages/generator/dist/generator.js", "openapi", "-cgenerator-openapi-propertyinsurance.json"],
"env": {
"DEBUG": "true"
}
},
{
"type": "node",
"request": "launch",
"name": "Jest Current File",
"program": "${workspaceFolder}/node_modules/.bin/jest",
"args": ["${relativeFile}"],
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"windows": {
"program": "${workspaceFolder}/node_modules/jest/bin/jest"
}
"name": "Debug Current Test File",
"autoAttachChildProcesses": true,
"skipFiles": ["<node_internals>/**", "**/node_modules/**"],
"program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
"args": ["run", "${relativeFile}"],
"smartStep": true,
"console": "integratedTerminal"
}
]
}
17 changes: 11 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -7,21 +7,26 @@
"**/node_modules": true,
"**/dist": true
},
"peacock.color": "#190d38",
"typescript.tsdk": "node_modules\\typescript\\lib",
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#190d38",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#190d3899",
"titleBar.inactiveForeground": "#e7e7e799",
"activityBar.activeBackground": "#2b1761",
"activityBar.activeBorder": "#9b4525",
"activityBar.background": "#2b1761",
"activityBar.foreground": "#e7e7e7",
"activityBar.inactiveForeground": "#e7e7e799",
"activityBarBadge.background": "#9b4525",
"activityBarBadge.foreground": "#e7e7e7",
"sash.hoverBorder": "#2b1761",
"statusBar.background": "#190d38",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#2b1761",
"titleBar.activeBackground": "#190d38",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#190d3899",
"titleBar.inactiveForeground": "#e7e7e799"
},
"peacock.color": "#190d38"
"statusBarItem.remoteBackground": "#190d38",
"statusBarItem.remoteForeground": "#e7e7e7",
"commandCenter.border": "#e7e7e799"
}
}
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.0.0
- Complete refactoring

# 0.17.0
- `ScreenBase.name` is now a property with a default getter implementation reading the value from the `nameValue` field. To adapt to this change, you should replace `this.name = xxx` with `this.nameValue = xxx`.
- BREAKING: Renamed `UrlNavigationAdapter` to `HashNavigationAdapter` and added `PathNavigationAdapter` to @frui.ts/screens.
@@ -29,7 +32,7 @@
- `FilteredListViewModel` in @frui.ts/datascreens has new extension/customization points: `cloneFilterForApply()` and `createFilter()`.

- BREAKING: Props of `<View />` changed: `fallbackMode: "message" | "children"`. In case `"children"` is set, the children props of the `<View />` component is rendered when no view is found. You can use `"children"` instead of the original `"empty"`.
- BREAKING: `getValue` and `setValue` hooks accept `target` and `property` arguments instead of single `props`.
- BREAKING: `getValue` and `setValue` hooks accept `target` and `property` arguments instead of a single `props`.
- Binding types changed. You can use the third type parameter of `IBindingProps<TTarget, TProperty, TValue>` to restrict the binding target value type.

- `IApiConnector` and `FetchApiConnector` changes:
Loading