-
Notifications
You must be signed in to change notification settings - Fork 34
[Tree-widget]: learning snippets #1031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
923b676
initial tests
MartynasStrazdas f98dda0
test fixes and aditional tests
MartynasStrazdas 33948ec
Tree widget left over tests
MartynasStrazdas 4beb5b4
cleanup
MartynasStrazdas 71c3c49
Merge branch 'master' into mast/tree-widget-learning-snippets
MartynasStrazdas 67d5fa4
Update dependencies
MartynasStrazdas d1fe91a
warning fixes
MartynasStrazdas c457b69
readMe adjustments
MartynasStrazdas 1ee0dbe
cleanUp
MartynasStrazdas ddd0656
cleanup
MartynasStrazdas ca71698
dependencies and act warning fixes
MartynasStrazdas 9fb287c
import fix
MartynasStrazdas f5d6834
fix
MartynasStrazdas d556418
small fixes
MartynasStrazdas 0b67cb9
Change
MartynasStrazdas 5b18080
import order fix
MartynasStrazdas 23aadb5
fixes
MartynasStrazdas 727ea2d
Update change/@itwin-tree-widget-react-0bdfd58a-2c3d-4499-9a14-66ff2a…
MartynasStrazdas f1fb3b1
Fixes
MartynasStrazdas d04fba2
Merge branch 'mast/tree-widget-learning-snippets' of https://github.c…
MartynasStrazdas edc9d67
fixes
MartynasStrazdas cfbace8
readme adjustments
MartynasStrazdas eabaae3
pipeline fix
MartynasStrazdas 168e9b5
Partial fixes
MartynasStrazdas fab7913
Update apps/learning-snippets/src/test/tree-widget/Telemetry.test.tsx
MartynasStrazdas 75f7f0b
fixes
MartynasStrazdas 1d54fa2
Merge branch 'mast/tree-widget-learning-snippets' of https://github.c…
MartynasStrazdas de361c5
fix
MartynasStrazdas 9a5d9cd
Destructure useButtonProps result
saskliutas 8e8cdc8
Merge branch 'master' into mast/tree-widget-learning-snippets
saskliutas 830d630
lint
saskliutas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,25 @@ | ||
{ | ||
"require": [ | ||
"raf/polyfill", | ||
"source-map-support/register", | ||
"ignore-styles" | ||
], | ||
"check-leaks": true, | ||
"timeout": "60000", | ||
"globals": [ | ||
"IS_REACT_ACT_ENVIRONMENT" | ||
], | ||
"file": [ | ||
"./lib/test/setup.js" | ||
], | ||
"ignore": [ | ||
"lib/coverage/**/*" | ||
], | ||
"reporter": "node_modules/@itwin/build-tools/mocha-reporter", | ||
"reporter-option": [ | ||
"mochaFile=lib/test/junit_results.xml" | ||
], | ||
"spec": [ | ||
"./lib/test/**/*.test.js" | ||
] | ||
} |
This file contains hidden or 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,42 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
* See LICENSE.md in the project root for license terms and full copyright notice. | ||
*--------------------------------------------------------------------------------------------*/ | ||
const iTwinPlugin = require("@itwin/eslint-plugin"); | ||
const reactPlugin = require("eslint-plugin-react"); | ||
const eslintConfigPrettier = require("eslint-config-prettier"); | ||
const unusedImports = require("eslint-plugin-unused-imports"); | ||
|
||
module.exports = [ | ||
{ | ||
files: ["**/*.{ts,tsx}"], | ||
...iTwinPlugin.configs.uiConfig, | ||
rules: { | ||
...iTwinPlugin.configs.uiConfig.rules, | ||
"@itwin/no-internal": ["error"], | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.{ts,tsx}"], | ||
rules: { | ||
...reactPlugin.configs["jsx-runtime"].rules, | ||
}, | ||
}, | ||
{ | ||
plugins: { | ||
"unused-imports": unusedImports, | ||
}, | ||
files: ["**/*.{ts,tsx}"], | ||
rules: { | ||
"no-duplicate-imports": "off", | ||
"import/no-duplicates": "error", | ||
"object-curly-spacing": ["error", "always"], | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"unused-imports/no-unused-imports": "error", | ||
"unused-imports/no-unused-vars": ["error", { vars: "all", varsIgnorePattern: "^_", args: "after-used", argsIgnorePattern: "^_" }], | ||
curly: ["error", "all"], | ||
}, | ||
}, | ||
eslintConfigPrettier, | ||
]; |
This file contains hidden or 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,93 @@ | ||
{ | ||
"name": "@itwin/presentation-learning-snippets", | ||
"version": "0.0.0", | ||
"description": "Learning snippets for ReadMes", | ||
"private": true, | ||
"scripts": { | ||
"build": "tsc", | ||
"build:watch": "tsc -w", | ||
"clean": "rimraf lib build", | ||
"cover": "npm run -s test", | ||
"lint": "eslint ./src/**/*.{ts,tsx}", | ||
"test": "mocha --config ./.mocharc.json", | ||
"docs": "betools extract --fileExt=ts,tsx --extractFrom=./src --recursive --out=./build/docs/extract" | ||
}, | ||
"dependencies": { | ||
"@itwin/tree-widget-react": "workspace:*", | ||
"@itwin/presentation-hierarchies": "^0.5.0", | ||
"@itwin/presentation-shared": "^0.4.1", | ||
"@itwin/itwinui-react": "3.14.1", | ||
"@itwin/unified-selection": "^0.5", | ||
"@itwin/appui-abstract": "^4.8.0", | ||
"@itwin/appui-react": "^4.16.0", | ||
"@itwin/build-tools": "^4.8.0", | ||
"@itwin/components-react": "^4.16.0", | ||
"@itwin/core-backend": "^4.8.0", | ||
"@itwin/core-bentley": "^4.8.0", | ||
"@itwin/core-common": "^4.8.0", | ||
"@itwin/core-frontend": "^4.8.0", | ||
"@itwin/core-geometry": "^4.8.0", | ||
"@itwin/core-orbitgt": "4.8.0", | ||
"@itwin/core-quantity": "^4.8.0", | ||
"@itwin/core-react": "^4.16.0", | ||
"@itwin/core-telemetry": "^4.8.0", | ||
"@itwin/ecschema-metadata": "^4.8.0", | ||
"@itwin/ecschema-rpcinterface-common": "^4.8.0", | ||
"@itwin/ecschema-rpcinterface-impl": "^4.8.0", | ||
"@itwin/eslint-plugin": "^4.1.1", | ||
"@itwin/imodel-components-react": "^4.16.0", | ||
"@itwin/presentation-backend": "^4.8.0", | ||
"@itwin/presentation-common": "^4.8.0", | ||
"@itwin/presentation-components": "^5.3.3", | ||
"@itwin/presentation-frontend": "^4.8.0", | ||
"@itwin/presentation-testing": "^5.0.13", | ||
"@testing-library/dom": "^9.3.3", | ||
"@testing-library/react": "^14.1.2", | ||
"@testing-library/user-event": "^14.5.2", | ||
"@types/chai": "4.3.5", | ||
"@types/chai-as-promised": "^7.1.1", | ||
"@types/chai-jest-snapshot": "^1.3.4", | ||
"@types/chai-subset": "1.3.3", | ||
"@types/jsdom": "^21.1.6", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^18.18.10", | ||
"@types/react": "^18.0.34", | ||
"@types/react-dom": "^18.0.11", | ||
"@types/sinon": "^17.0.2", | ||
"@types/sinon-chai": "^3.2.12", | ||
"@typescript-eslint/eslint-plugin": "^7.16.1", | ||
"@typescript-eslint/parser": "^7.16.1", | ||
"chai": "^4.3.7", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-jest-snapshot": "^2.0.0", | ||
"chai-subset": "1.6.0", | ||
"eslint": "^8.57.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-plugin-react": "^7.34.4", | ||
"eslint-plugin-unused-imports": "^3.2.0", | ||
"fast-xml-parser": "^4.3.6", | ||
"global-jsdom": "^9.2.0", | ||
"ignore-styles": "^5.0.1", | ||
"jsdom": "^23.1.0", | ||
"mocha": "^10.2.0", | ||
"raf": "^3.4.0", | ||
"react": "^18.0.34", | ||
"react-dom": "^18.0.34", | ||
"rimraf": "^6.0.1", | ||
"sinon": "^17.0.1", | ||
"sinon-chai": "^3.7.0", | ||
"source-map-support": "^0.5.6", | ||
saskliutas marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"typescript": "~5.0.0", | ||
"xmlhttprequest": "^1.8.0" | ||
}, | ||
"dependenciesMeta": { | ||
"@itwin/tree-widget-react": { | ||
"injected": true | ||
} | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
".eslintrc.js" | ||
] | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.