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 {Component, Element, Prop, State} from '@stencil/core'; | |
| import firebase from 'firebase'; | |
| @Component({ | |
| tag: 'job-item', | |
| styleUrl: 'job-item.scss' | |
| }) | |
| export class JobItem { | |
| @Prop() job: any; |
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
| $colors: ( | |
| primary: #06D3CA, | |
| secondary: #314655, | |
| danger: #f53d3d, | |
| border: #EFEFEF, | |
| dark: #222, | |
| header: rgba(38,38,38,1), | |
| error: #E0343D, | |
| description: #5f5757, | |
| "image-overlay" : rgba(0,0,0, 0.2), |
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
| const sass = require('@stencil/sass'); | |
| exports.config = { | |
| serviceWorker: { | |
| swSrc: 'src/sw.js' | |
| }, | |
| globalStyle: 'src/global/app.css', | |
| plugins: [ | |
| sass({injectGlobalPaths: [ | |
| 'src/global/variables.scss' |
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
| $app-primary-color: #009688; |
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
| $color: ( | |
| primary: #009688, | |
| secondary: #3F51B5 | |
| ); | |
| // In some other scss file, reference this variable | |
| .active { | |
| color: map-get($color, primary); | |
| } |
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
| // src/global/variables.scss | |
| :root { | |
| --ion-color-primary: $app-primary-color; | |
| } |
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
| // GraphQL Query | |
| ordersByAsset(assetType: $assetType) { | |
| id | |
| asset_type | |
| } | |
| // GraphQL Codegen | |
| export enum OrderAssetType { | |
| CommonStock = 'common_stock', | |
| PreferredStock = 'preferred_stock', |
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
| // Example of a type safe query that returns an Order object | |
| def orderByAssetType(assetType: OrderAssetType)(implicit ctx: C): Future[OrderRead] = db.run { dsl => | |
| dsl.selectFrom(ORDER) | |
| .where(ORDER.ASSET_TYPE equal assetType) | |
| .fetchOne() | |
| .make[OrderRead] // Return an Order Object | |
| } |
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
| CREATE TYPE order_asset_type AS ENUM ( | |
| 'common_stock', | |
| 'preferred_stock', | |
| ); | |
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
| // jOOQ Generated OrderAssetType Enum | |
| sealed trait OrderAssetType extends EnumEntry | |
| object OrderAssetType extends Enum[OrderAssetType] { | |
| val values = findValues | |
| case object common_stock extends OrderAssetType | |
| case object preferred_stock extends OrderAssetType | |
| } |