This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { INestApplication } from '@nestjs/common'; | |
| import { Database, Resource } from 'admin-bro-typeorm'; | |
| import AdminBro from 'admin-bro'; | |
| import * as AdminBroExpress from 'admin-bro-expressjs'; | |
| export async function setupAdminPanel(app: INestApplication): Promise<void> { | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { BaseEntity, Column, Entity, PrimaryGeneratedColumn } from 'typeorm'; | |
| @Entity() | |
| export class User extends BaseEntity { | |
| @PrimaryGeneratedColumn() | |
| id: number; | |
| @Column({ unique: true }) | |
| email: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { INestApplication } from '@nestjs/common'; | |
| import AdminBro from 'admin-bro'; | |
| import * as AdminBroExpress from 'admin-bro-expressjs'; | |
| export async function setupAdminPanel(app: INestApplication): Promise<void> { | |
| /** Create adminBro instance */ | |
| const adminBro = new AdminBro({ | |
| resources: [], // Here we will put resources | |
| rootPath: '/admin', // Define path for the admin panel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { NestFactory } from '@nestjs/core'; | |
| import { AppModule } from './app.module'; | |
| import { setupAdminPanel } from './admin-panel/admin-panel.plugin'; | |
| async function bootstrap() { | |
| const app = await NestFactory.create(AppModule); | |
| /** | |
| * Setup Admin panel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { INestApplication } from '@nestjs/common'; | |
| export async function setupAdminPanel(app: INestApplication): Promise<void> { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "extends": "stylelint-config-primer", | |
| "plugins": [ | |
| "stylelint-scss" | |
| ], | |
| "rules": { | |
| "indentation": 4, | |
| "selector-max-type": null | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "extends": "gts/tslint.json", | |
| "rulesDirectory": [ | |
| "node_modules/codelyzer" | |
| ], | |
| "rules": { | |
| "arrow-return-shorthand": true, | |
| "callable-types": true, | |
| "class-name": true, | |
| "comment-format": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| webpackJsonp(["main"],{ | |
| /***/ "./src/$$_lazy_route_resource lazy recursive": | |
| /***/ (function(module, exports, __webpack_require__) { | |
| var map = { | |
| "./badges/badges.module": [ | |
| "./src/app/main/kid/rewards/badges/badges.module.ts", | |
| "badges.module" | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class ImageWithPreviewInput < Formtastic::Inputs::FileInput | |
| def to_html | |
| options.merge!(hint: preview_html.html_safe) | |
| super + "<script>#{preview_script}</script>".html_safe | |
| end | |
| private | |
| def preview_html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "index": "/index.html", | |
| "appData": { | |
| "name": "Angular Service Worker Example", | |
| "description": "Example of Angular v5 application utilizing SW functionality" | |
| }, | |
| "assetGroups": [ | |
| { | |
| "name": "app", | |
| "installMode": "prefetch", |