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
from flask import redirect, g, flash, request | |
from flask_appbuilder.security.views import UserDBModelView,AuthDBView | |
from superset.security import SupersetSecurityManager | |
from flask_appbuilder.security.views import expose | |
from flask_appbuilder.security.manager import BaseSecurityManager | |
from flask_login import login_user, logout_user | |
class CustomAuthDBView(AuthDBView): | |
login_template = 'appbuilder/general/security/login_db.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
#--------------------------------------------------------- | |
# Superset specific config | |
#--------------------------------------------------------- | |
ROW_LIMIT = 5000 | |
SUPERSET_WEBSERVER_PORT = 8088 | |
#--------------------------------------------------------- | |
#--------------------------------------------------------- | |
# Flask App Builder configuration |
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 { sandboxOf } from 'angular-playground'; | |
import { QuestionListComponent } from './question-list.component'; | |
import { SharedModule } from '../../shared/shared.module'; | |
import { QuestionViewSmallComponent } from '../question-view-small/question-view-small.component'; | |
const sandboxConfig = { | |
imports: [SharedModule], | |
declarations: [QuestionViewSmallComponent], | |
label: 'QuestionList' | |
} |
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 { sandboxOf } from 'angular-playground'; | |
import { YourComponent } from './your.component'; | |
import { SharedModule } from '../../shared/shared.module'; | |
const sandboxConfig = { | |
imports: [SharedModule], | |
label: 'Label for below collection of component views' | |
} | |
export default sandboxOf(YourComponent, sandboxConfig) | |
.add('with no questions', { |
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
{ | |
... | |
"playground": { | |
"root": "", | |
"sourceRoot": "src", | |
"projectType": "application", | |
"architect": { | |
"build": { | |
"builder": "@angular-devkit/build-angular:browser", |
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
version: '3.3' | |
services: | |
mongo: | |
image: mongo:3.6 | |
restart: always | |
hostname: mongo | |
ports: | |
- '27017:27017' | |
volumes: |
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
FROM openjdk:8 | |
ENV APP_HOME=/usr/app/ | |
WORKDIR $APP_HOME | |
COPY ./build/libs/* ./app.jar | |
EXPOSE 8080 | |
CMD ["java","-jar","app.jar"] |
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
docker volume create --name gradle-cache | |
docker run --rm -v gradle-cache:/home/gradle/.gradle -v "$PWD":/home/gradle/project -w /home/gradle/project gradle:4.7.0-jdk8-alpine gradle build | |
ls -ltrh ./build/libs |
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
buildscript { | |
ext { | |
springBootVersion = '2.0.2.RELEASE' | |
} | |
repositories { | |
mavenCentral() | |
maven { url "https://repo.spring.io/milestone" } | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") |