-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Willy Brauner
committed
Oct 27, 2022
1 parent
75a7a2f
commit 4b119c7
Showing
30 changed files
with
2,456 additions
and
572 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
dist | ||
node_modules | ||
src/mixins/mixins.less | ||
src/index.html | ||
index.html |
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,8 @@ | ||
import couleur from "./couleur.js" | ||
|
||
export default { | ||
blue: couleur.rgb(0, 180, 180), | ||
grey: couleur.rgb(121, 121, 121), | ||
green: couleur.rgb(57, 180, 0), | ||
red: couleur.rgb(244, 34, 34), | ||
} |
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
52 changes: 10 additions & 42 deletions
52
config/tasks/scaffold-component/templates/dom/component.ts.template
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,51 +1,19 @@ | ||
import './%%upperComponentName%%.less'; | ||
import "./%%upperComponentName%%.less" | ||
import { Component } from "@wbe/compose" | ||
import debug from "@wbe/debug" | ||
|
||
const componentName = "%%upperComponentName%%"; | ||
const log = debug(`front:${componentName}`); | ||
type TStaticProps = {} | ||
|
||
const componentName = "%%upperComponentName%%" | ||
const log = debug(`front:${componentName}`) | ||
|
||
/** | ||
* @name %%upperComponentName%% | ||
*/ | ||
class %%upperComponentName%% { | ||
|
||
/** | ||
* Prepare dependencies with DependencyManager | ||
*/ | ||
protected prepareDependencies() {} | ||
|
||
/** | ||
* Middleware called just before init sequence | ||
*/ | ||
protected beforeInit() {} | ||
|
||
/** | ||
* Target our root if not already defined via constructor params | ||
*/ | ||
protected targetRoot() {} | ||
|
||
/** | ||
* Prepare node targeting from $root | ||
*/ | ||
protected prepareNodes() {} | ||
export default class %%upperComponentName%% extends Component<TStaticProps> { | ||
static attrName = componentName | ||
|
||
/** | ||
* Init components | ||
*/ | ||
protected initComponents() {} | ||
|
||
/** | ||
* Prepare events | ||
*/ | ||
protected prepareEvents() {} | ||
|
||
/** | ||
* Middleware called just after init sequence | ||
*/ | ||
protected afterInit() {} | ||
mounted() { | ||
|
||
} | ||
} | ||
|
||
|
||
export default %%upperComponentName%%; | ||
|
7 changes: 7 additions & 0 deletions
7
config/tasks/scaffold-component/templates/dom/component.twig.template
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,7 @@ | ||
{# | ||
%%upperComponentName%% | ||
@props className {string} | ||
#} | ||
<div class="%%upperComponentName%% {{ className }}" data-component="%%upperComponentName%%"> | ||
%%upperComponentName%% | ||
</div> |
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,36 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="imagetoolbar" content="no" /> | ||
<meta http-equiv="x-ua-compatible" content="IE=Edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
|
||
<title><!--meta-title--></title> | ||
<meta name="description" content="<!--meta-description-->" /> | ||
<link rel="canonical" href="<!--meta-url-->" /> | ||
|
||
<meta property="og:type" content="website" /> | ||
<meta property="og:site_name" content="<!--meta-siteName-->" /> | ||
<meta property="og:url" content="<!--meta-url-->" /> | ||
<meta property="og:title" content="<!--meta-title-->" /> | ||
<meta property="og:description" content="<!--meta-description-->" /> | ||
<meta property="og:image" content="<!--meta-imageUrl-->" /> | ||
|
||
<meta name="twitter:card" content="summary" /> | ||
<meta name="twitter:site" content="<!--meta-siteName-->" /> | ||
<meta name="twitter:url" content="<!--meta-url-->" /> | ||
<meta name="twitter:title" content="<!--meta-title-->" /> | ||
<meta name="twitter:description" content="<!--meta-description-->" /> | ||
<meta name="twitter:image" content="<!--meta-imageUrl-->" /> | ||
</head> | ||
|
||
<body> | ||
<div id="root"><!--app-html--></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
<script type="text/javascript"> | ||
window.__SSR_STATIC_PROPS__ = "<!--ssr-static-props-->" | ||
window.__GLOBAL_DATA__ = "<!--ssr-global-data-->" | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.