Krist Wongsuphasawat
bd3e7020a1
add scripts to copy assets to dist folders ( #90 )
2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
92f7794a44
Add @superset-ui/dimension ( #88 )
...
* add code for computing text dimension
* update readme
* Add unit tests
* remove dependency
* refactor util function
* add description
2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
68b97db5d7
Convert time-format to TypeScript ( #78 )
...
* convert source to TS
* fix lint
* convert unit test to TS
* fix rebasing issue
* fix typings
* use ts-ignore
2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
597d9b362d
Convert translation to typescript ( #74 )
...
* Convert translation to typescript
* update input types
* update travis
* update node version
2021-11-26 11:44:39 +08:00
Chris Williams
458d9b9987
[deps] build-config@0.0.37 ( #79 )
...
* [deps] build-config@0.0.37
* [chart] lint SuperChart
2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
9a7e3dc7b2
Convert number-format to TypeScript ( #75 )
...
* Convert number-format to TypeScript
* return string
* unit test 100%
* Allow developer to specify return type for loader
* add doc
2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
fded8f1a1c
Migrate @superset-ui/color to TypeScript ( #69 )
...
* Refactor: Convert color to TS
2021-11-26 11:44:38 +08:00
Krist Wongsuphasawat
fb6cde64d8
Convert core to TS ( #62 )
...
feat: convert core models to ts
2021-11-26 11:44:38 +08:00
Chris Williams
6c8e40c710
[build] fix typescript builds ( #56 )
...
* [build] fix typescript builds
* [typescript] ensure types pass in build
* [typescript][connection] declare modules in tests
* [typescript][connection] fix ts errors in tests
* [typescript][connection] test/types.ts => types/external.d.ts
* [chart][typescript] add @types/react-loadable
* [chart][components] convert to ts
* [charts][tests][broken] convert to ts
* [chart][typescript] re-write component generics
* [chart][typescript] fix reactify generic, add react-dom types
* [chart][typescript] more iteration
* - Tweaking reactify types (using Readonly types).
- Uncovered an issue in which ReactifyProps and Props can collide on id and className.
- Move @types/react-loadable to dev dependency
- Fixing a lint error
* [chart][deps] add @types/fetch-mock
* [client][typescript] add and export SupersetClientInterface
* [chart][clients] fix ts
* [charts][components] more ts iterations
* [chart][client] assert FormData type
* [chart][deps] try adding newest @types/react
* [chart][components][ts] fix reactify prop TS
* [chart] lint
* [chart][ts] lint #2 , move @types to deps not dev-deps
* [chart][jest] fix tests
* [chart][tests] up branch coverage
* [chart][ts][test] null => undefined
* [chart][tests] hundo
* [chart][tests] update name
* [chart][ts] ChartClient type fixes
2021-11-26 11:44:38 +08:00
Krist Wongsuphasawat
d9163364f9
Separate SupersetClient and SupersetClientClass ( #53 )
...
feat: Export `SupersetClientClass`
internal: Increase test coverage.
2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
3b54039428
Add reactify ( #51 )
...
feat: Add `reactify` function from `incubator-superset`
2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
a4c3e7da3a
Add createLoadableRenderer
( #49 )
...
feat: Add `createLoadableRenderer`
2021-11-26 11:44:37 +08:00
Christine Chambers
0f3bd0cd9c
Moving query module into superset-ui from incubator-superset ( #48 )
...
* migrate query code from incubator-superset
* Getting tests to pass
- Up build-config version to pick up a fix to eslint-typescript-parser
- Remove usage of default exports in favor of named exports unless the export is the only thing being exported out of a module
- Fixing up a few linting errors
* - Remove DatasourceKey interface in favor of readonly id and type properties on the DatasourceKey class directly.
- Adding tests for DatasourceKey.
2021-11-26 11:44:37 +08:00
Chris Williams
b3444d86df
add Typescript support + convert @superset-ui/connection to Typescript ( #41 )
...
* [typescript] add build support for typescript
* [typescript] working lint and build
* [typescript] refactor SupersetClient to TS
* [typescript][connection] leverage RequestInit types when relevant
* [typescript][connection] callApi.js => callApi.ts
* [typescript][connection] remaining .js => .ts
* [typescript][connection] add and export src/types.ts, refactor things, convert test to .ts and fix
* [typescript] build:ts only in typescript-containing packages
2021-11-26 11:44:35 +08:00
Krist Wongsuphasawat
b2c7e3cade
update devDependencies version ( #29 )
2021-11-26 11:44:34 +08:00
Krist Wongsuphasawat
86f0007a77
Add generator-superset ( #21 )
...
* add generator to monorepo
* Squash all attempts (+21 squashed commits)
Squashed commits:
[cca27ae] enable jest projects
[e7dc4ce] wip
[dd3ea7a] run in order
[cf87275] define projects
[69baf16] use specific version
[c880cfa] ignore generator test
[e9e0fd3] update travis
[4bbb3c0] update travis
[d63118b] update travis config
[267fe08] remove config
[44883e8] update travis
[40580c3] reduce node version
[59b6add] update ignore rule
[fbbd03c] update readme
[b299dfe] remove script
[a988933] fix test and lint
[95b7d5b] try install and not install
[f4583b4] remove unnecessary files
[c735329] remove eslint-config-xo
[49b3106] pass lint and test
[56c6def] remove git and readd
* can get test to pass if exclude generator-superset
* add afterall to correct working directory
* update config
* add readme
2021-11-26 11:44:34 +08:00
Chris Williams
010890ae76
[demo] add package + storybook ( #25 )
...
* [demo] add package + storybook
* [demo] add color stories
* [demo] update readme, add gh-pages hooks, remove vx deps
* [demo] remove nesting for color stories
* [gh-pages] run postrelease
* [gh-pages] add link in readme
* [demo] exclude demo package from build script
2021-11-26 11:44:33 +08:00
Krist Wongsuphasawat
3df20eff6e
@superset-ui/color ( #20 )
...
* add initial files
* update references
* fix lint issues
* Define top-level exports
* disable linting for color schemes
* update test
* update travis
* update travis
* revert travis
* install once
* update clear()
* update core index test
* update color index test
* update travis
* try build before test
* update unit tes
* override beemo config
* remove test command
* update ignore path
* use new build config
2021-11-26 11:44:33 +08:00
Krist Wongsuphasawat
68c8873370
Merge pull request #17 from apache-superset/kristw--readme
...
Update readme and remove unnecessary items from package.json
2021-11-26 11:44:32 +08:00
Chris Williams
282e719bb1
[build-config] move to monorepo root ( #11 )
...
* [build-config] move to monorepo root
* [lint-staged] testing
* [@babel/runtime] move to package level
* [build-config] update travis.yml for root build
* [lint] generate prettier config before linting
* [build-config] ^0.0.24
* [jest] add test:watch script
* [translation] remove package scripts
* [core] set author
* [core] add .eslintrc for root overrides
* [root] fix lint + prettier scripts
* [travis][jest] try --no-cache --debug
* [travis][jest] try running jest directly
* build-config@^0.0.25 to fix jest
* travis and test script to non-debug mode
* [travis] lerna bootstrap instead of installing 2x
* [npmrc] package-lock=false
* [travis] lerna bootstrap in script not install
* [travis] install and run tests per-package
* yarn workspaces are magical
2021-11-26 11:44:31 +08:00
Chris Williams
d9cc46fd17
[SupersetClient] include csrfToken passed in configuration in headers ( #10 )
2021-11-26 11:44:31 +08:00
Chris Williams
fc471d6511
[core] add parseMethod
( #5 )
...
* [core] expose 'parseMethod' in SupersetClient and callApi for text responses
* [parseResponse][test] fix parseMethod test
* [monorepo] gitignore .npmrc
* [core][deps] @data-ui/build-config => ^0.0.14
* [monorepo] tweak npm scripts
* [core] clean up parseResponse
* [core] clean up parseResponse more
* [core] don't fallback to text parsing if response is supposed to be json, allow for null responseParser
* [core][tests] fix borken tests, return promises instead of calling done()
2021-11-26 11:44:30 +08:00
Chris Williams
39677afc8a
[monorepo] add travis + codecov ✅ ( #3 )
...
* [monorepo] initial attempt at travis
* [monorepo] coveralls => codecov
* [monorepo] don't lerna bootstrap?
* [monorepo] ignore lock files, add lint:fix script
* [core] add node-fetch dev dep
* [monorepo] tweak codecov call
* [monorepo] tweak codecov call take ii
* [monorepo] codecov again
* [core][deps] build-config@^0.0.11
* [core][jest] add <rootDir> to coveragePathIgnorePatterns paths
* [core][jest] add collectCoverageFrom config
* [core][jest] try adding rootDir to collectCoverageFrom glob
* [core][deps] build-config@0.0.12
* [travis] yolo
* [travis] this is the one
* [travis] install global codecov
* [travis] no quotes in yml
* [travis] no quotes in yml part 2
2021-11-26 11:44:30 +08:00
Chris Williams
c4b946f965
Merge pull request #1 from apache-superset/chris--core-package
...
[SIP-4] add lerna monorepo and`@superset-ui/core` package with `SupersetClient`
2021-11-26 11:44:30 +08:00