Code Monkey home page Code Monkey logo

agastya's People

Contributors

anandchowdhary avatar dependabot-preview[bot] avatar dependabot-support avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

delokman

agastya's Issues

Translations stopped working

Looks like some Google Translate API's have changed and therefore Agastya's translations have stopped working.

Dyslexia & Night modes in Angular Material button

Minimal Working Example

<a mat-button>My Text</a>
<mat-nav-list role="navigation">
  <a mat-list-item>Second Text</a>
</mat-nav-list>

Expected Behaviour

Work as expected, i.e. apply certain CSS styles to these items (mat-button, mat-list-item [which is also mat-button], and display correctly as other elements.

Current Behaviour

Using button of Angular Material there's just a rectangle of certain colour, without distinguishing that there's a text inside. The easiest how does it works is to check the screenshots below (the same behaviour is with Night mode). On the pictures sidebar is used as a mobile menu, whilst toolbar as a menu for desktop.

sidebar
toolbar

"ReferenceError: window is not defined" when rendering on the server

Looks like Agastya access window explicitly, thus when using Server-Side Rendering (SSR) (e.g. Angular Universal) it breaks with the following error ReferenceError: window is not defined. Maybe it would be a good to add in the documentation for the workaround?

Using Express.js approach, see issue#830(comment)

Using NestJS approach applyDomino does works like so:

import { AngularUniversalModule, applyDomino } from '@nestjs/ng-universal';
import { join } from 'path';
import { Module } from '@nestjs/common';

const BROWSER_DIR = join(process.cwd(), 'dist/path/to/browser');
applyDomino(global, join(BROWSER_DIR, 'index.html'));

@Module({
  imports: [
    AngularUniversalModule.forRoot({
      bundle: require('dist/path/to/server/main'), // Bundle is created dynamically during build process.
      liveReload: true,
      viewsPath: BROWSER_DIR
    })
  ]
})
export class AppModule {}

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.