Comments (9)
commits i forgot to associate with this issue:
from songhay-ng-workspace.
as of month 5 2018 (version 2.9) Typescript can import *.json
files as static modulesβhuge for testing: https://stackoverflow.com/questions/49996456/importing-json-file-in-typescript
from songhay-ng-workspace.
wow, this is yet another discovery for me (injecting the injector):
/**
* Creates an instance of @type {YouTubeChannelDataStore}.
* @param {Injector} injector
* @memberof YouTubeChannelDataStore
*/
constructor(injector: Injector) {
super(
injector.get<HttpClient>(HttpClient),
YouTubeChannelDataStore.getOptions()
);
}
from songhay-ng-workspace.
let me try to catch up with myself:
- i have learned that bare naked JSON files can be treated as modules by TypeScript 2.9+ π
- i have re-factored
AppDataStore
to getAppDataStoreOptions
via an override instead of DI - services over
HttpClient
should have tests that look like this:
it renders clear that these observable data service tests are concerned with:
- documenting the endpoint URIs
- getting data the expected number of times
- converting that data to models of the client domain the expected number of times
from songhay-ng-workspace.
i could close this issue with the latest commit but i should use the client project of this workspace to visualize the Angular yt Angular components π¨ βοΈ
ng generate module components/yt --flat=true --module=app --project=client --dry-run=true
ng generate component components/yt/index --flat=true --module=yt --project=client --skip-tests=true --dry-run=true
ng generate component components/yt/presentation --flat=false --module=yt --project=client --skip-tests=true --dry-run=true
ng generate component components/yt/thumbs --flat=false --module=yt --project=client --skip-tests=true --dry-run=true
ng generate component components/yt/set --flat=false --module=yt --project=client --skip-tests=true --dry-run=true
from songhay-ng-workspace.
with the last commit, i see that i am still having trouble properly accounting the endpoints of the b-roll API: none of the new services are using rxYouTubeApiPlaylistPath
βand:
you-tube-channel-data.store.getUri()
should userxYouTubeApiPlaylistPath
instead ofrxYouTubeApiVideosPath
you-tube-channels-presentation-data.store
should be renamed toyou-tube-presentation-data.store
you-tube-presentation-videos-data.store
should be added with itsgetUri
usingrxYouTubeApiVideosPath
from songhay-ng-workspace.
testing is showing me that you-tube-channel-data.store
can support domain translation for two endpoints:
Player/v1/video/youtube/playlist/uploads/{id}
Player/v1/video/youtube/videos/{id}
both of these are expecting json as { items: {} }
; there is no need for you-tube-presentation-videos-data.store
from songhay-ng-workspace.
what is left:
- write documentation about setting up the yt lib
- deal with SVG assets and styling in a lib
from songhay-ng-workspace.
π however, console output in the browser reminds me of this issue: https://github.com/BryanWilhite/Songhay.Dashboard/issues/25
from songhay-ng-workspace.
Related Issues (20)
- move `angular.io-index-app` into `songhay-ng-workspace` HOT 24
- make @songhay/index styling configurable HOT 12
- relative path issues: will passing around location.path() help? HOT 1
- make @songhay/player-video-you-tube styling configurable HOT 6
- migrate filter-form CSS from `Songhay.Blog`
- generate @songhay/player-audio-progressive lib and migrate assets
- does @songhay/player-audio-progressive lib still need audio5js or equivalent? HOT 1
- try TsUML for @songhay/core at least π
- @songhay/core needs to be published HOT 1
- add sample based on angular - How can I call a service within a pipe?β
- upgrade to Angular 9 HOT 11
- `ng build --prod`: `compilation of entry points` error
- `ng update` does not really touch karma-jasmine and typescript packages HOT 1
- remove `you-tube-presentation` component
- consider removing any logic/concerns for showing `you-tube-thumbs` individually
- upgrade dependencies π¦β HOT 15
- consider cancelling the @songhay/player-audio-progressive project
- add caching (with `Window.localStorage`?) to `player-video-you-tube`
- publish packages on npm (https://www.npmjs.com/) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from songhay-ng-workspace.