This file contains 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 _ = require('underscore'); | |
const {css} = require('styled-components'); | |
const {media} = require('app/platforms/mixins'); | |
class Grid { | |
constructor(grid, cells) { | |
this.style = { | |
grid: { | |
base: css` | |
display: grid; |
This file contains 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 Sidebar = styled.div` | |
display: -ms-grid; | |
-ms-grid-columns: auto minmax(0, 1fr); | |
-ms-grid-rows: auto auto auto auto; | |
${media.up('md')` | |
-ms-grid-columns: auto minmax(0, 1fr) auto; | |
-ms-grid-rows: auto auto auto; | |
`} |
This file contains 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 Sidebar = styled.div` | |
display: grid; | |
grid-template-columns: auto minmax(0, 1fr); | |
grid-template-rows: auto auto auto auto; | |
${media.up('md')` | |
grid-template-columns: auto minmax(0, 1fr) auto; | |
grid-template-rows: auto auto auto; | |
`} |
This file contains 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 Sidebar = styled.div` | |
display: grid; | |
grid-template-areas: | |
'avatar greeting' | |
'avatar socials' | |
'avatar contacts' | |
'avatar buttons'; | |
grid-template-columns: auto minmax(0, 1fr); | |
grid-template-rows: auto auto auto auto; |
This file contains 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 _ = require('underscore'); | |
const t = require('tap'); | |
const testHelpers = require('../helpers'); | |
const {reservationsResource, ticketsPoolsResource} = require('../../tickets'); | |
t.test('reservations api', async (t) => { | |
await testHelpers.initDb(); | |
await t.skip('get', async (t) => { | |
const {user, organization} = await testHelpers.createAdmin(); |
This file contains 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 Sequelize = require('sequelize'); | |
const config = require('./config')(); | |
const {DataTypes} = Sequelize; | |
const db = new Sequelize({ | |
database: config.postgres.database, | |
username: config.postgres.user, | |
password: config.postgres.password, | |
host: config.postgres.host, |
This file contains 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 Sequelize = require('sequelize'); | |
const config = require('./config')(); | |
const {DataTypes} = Sequelize; | |
const db = new Sequelize({ | |
database: config.postgres.database, | |
username: config.postgres.user, | |
password: config.postgres.password, | |
host: config.postgres.host, |