Git Product home page Git Product logo

Comments (9)

BryanWilhite avatar BryanWilhite commented on June 9, 2024

commits i forgot to associate with this issue:

from songhay-ng-workspace.

BryanWilhite avatar BryanWilhite commented on June 9, 2024

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.

BryanWilhite avatar BryanWilhite commented on June 9, 2024

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.

BryanWilhite avatar BryanWilhite commented on June 9, 2024

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 get AppDataStoreOptions via an override instead of DI
  • services over HttpClient should have tests that look like this:

image

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.

BryanWilhite avatar BryanWilhite commented on June 9, 2024

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.

BryanWilhite avatar BryanWilhite commented on June 9, 2024

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 use rxYouTubeApiPlaylistPath instead of rxYouTubeApiVideosPath
  • you-tube-channels-presentation-data.store should be renamed to you-tube-presentation-data.store
  • you-tube-presentation-videos-data.store should be added with its getUri using rxYouTubeApiVideosPath

from songhay-ng-workspace.

BryanWilhite avatar BryanWilhite commented on June 9, 2024

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.

BryanWilhite avatar BryanWilhite commented on June 9, 2024

what is left:

  • write documentation about setting up the yt lib
  • deal with SVG assets and styling in a lib

from songhay-ng-workspace.

BryanWilhite avatar BryanWilhite commented on June 9, 2024

image

πŸ‘ 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.