-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[UI] Use PowerSelect for campaigns & lists
- Loading branch information
Showing
11 changed files
with
270 additions
and
160 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
query index { | ||
campaigns { | ||
subject | ||
param | ||
} | ||
lists { | ||
name | ||
param | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import Route from '@ember/routing/route'; | ||
import { service } from '@ember/service'; | ||
|
||
export default class IndexRoute extends Route { | ||
@service router; | ||
|
||
beforeModel(/* transition */) { | ||
this.router.transitionTo('preview'); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import query from 'preview/gql/queries/index.graphql'; | ||
import { queryManager } from 'ember-apollo-client'; | ||
import Route from '@ember/routing/route'; | ||
|
||
export default class PreviewIndexRoute extends Route { | ||
@queryManager apollo; | ||
|
||
model() { | ||
return this.apollo.query({ | ||
query, | ||
}); | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ | |
<div class="min-h-screen bg-white"> | ||
{{outlet}} | ||
</div> | ||
|
||
<BasicDropdownWormhole /> |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
const isProduction = process.env.EMBER_ENV === 'production'; | ||
|
||
module.exports = { | ||
mode: isProduction ? 'jit' : undefined, | ||
purge: ['./app/**/*.{html,hbs,js,ts}', './public/**/*.html'], | ||
theme: { | ||
extend: {}, | ||
}, | ||
variants: {}, | ||
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography')], | ||
|
||
// Disable JIT in devo. Faster to import all classes. | ||
safelist: isProduction ? undefined : [{ pattern: /.*/ }], | ||
|
||
// Do we need these? | ||
theme: { extend: {} }, | ||
variants: {}, | ||
}; |
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
Oops, something went wrong.