sebgroup / frontend-tools Goto Github PK
View Code? Open in Web Editor NEWA set of frontend tools written in Typescript
Home Page: https://github.com/sebgroup/frontend-tools/wiki
License: Apache License 2.0
A set of frontend tools written in Typescript
Home Page: https://github.com/sebgroup/frontend-tools/wiki
License: Apache License 2.0
Describe the bug
The OpenAPI generator is not generating correctly with ts-angular
To Reproduce
Steps to reproduce the behavior:
ts-angular
.Observable<>
this.makeCall<>
Expected behavior
It should generate the correct type or at least use type any
if there is not type found in the swagger.json
file
Additional information
If you fix the issues manually you will have another issue when using the generated APIs. The browser with through an error in the base.ts
file line 319
about accessing headers
of undefined. The options
must be initialized with an empty object ({}
) inside the initOptions
function.
Describe the bug
Using the mocks generated by OpenAPI utility will not return the real API response. Currently the simulateData
will return an HttpResponse
while the API will return the body instead.
Expected changes
Before:
export function simulateData<T>(subscriber: Subscriber<HttpResponse<T>>, body: T, status: number, timeout: number): NodeJS.Timeout {
return setTimeout(() => {
subscriber.next(
new HttpResponse<T>({ status, body })
);
subscriber.complete();
}, timeout);
}
After
export function simulateData<T>(subscriber: Subscriber<T>, body: T, timeout: number): NodeJS.Timeout {
return setTimeout(() => {
subscriber.next(body);
subscriber.complete();
}, timeout);
}
Describe the bug
toCurrency documentation is outdated
utilityname.test.ts
describe
method that renders an it
or test
function for each test case. This will allow adding more cases in the future easilynode
CLIGradle
, the CLI must verify that Gradle is installed in the machine. Otherwise, throw a warning/error with proper explanationDescribe the bug
OpenAPI Generator is not generating correct model for some api responses (example: arrays)
To Reproduce
Steps to reproduce the behavior:
Array<SomeModel>
Expected behavior
Should generate correct models.
Additional context
I changes the template from typescript-axios to typescript-fetch and it generates correctly
Is your feature request related to a problem? Please describe.
for now, when setting showDecimal: true
, currency is displayed without decimal. this is confusing.
Describe the solution you'd like
show decimal when showDecimal: true
Describe alternatives you've considered
rename parameter
Additional context
Add any other context or screenshots about the feature request here.
Describe the bug
Typescript models cannot be imported from the root. Tested with ModelFieldError
import { ModelFieldError } from "@sebgroup/frontend-tools";
Set up a project and configure it with Github Pages. The project should have the following:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.