Skip to content

split header into vue components + immense update to gfx #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 11 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@
headwayScript.src = 'https://cdn.headwayapp.co/widget.js'
headwayScript.async = true
document.body.appendChild(headwayScript)
var element = document.querySelector(HW_config.selector)
element && (element.style.display = 'inline-block')
}
</script>
</body>
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"poi-preset-bundle-report": "^2.0.1",
"poi-preset-offline": "^9.0.3",
"raw-loader": "^0.5.1",
"repo-latest-commit": "^1.0.0",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.1",
"surge": "^0.19.0",
Expand All @@ -83,7 +82,7 @@
"codemirror": "^5.28.0",
"codemirror-emmet": "^1.0.0",
"debounce": "^1.0.2",
"element-ui": "^2.0.11",
"element-ui": "^2.9.2",
"is-electron": "^2.1.0",
"loadjs": "^3.5.1",
"marked3": "^0.5.1",
Expand Down
35 changes: 21 additions & 14 deletions poi.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const { execSync } = require('child_process')
const nodeModules = require('webpack-node-modules')
const repoLatestCommit = require('repo-latest-commit')
const pkg = require('./package')
const LATEST_COMMIT = execSync('git rev-parse HEAD', { encoding: 'utf8' }).slice(0, 7)

const cdns = {
BABEL_CDN: 'https://cdn.jsdelivr.net/npm/@babel/standalone@7.0.0-beta.32/babel.min.js',
Expand Down Expand Up @@ -29,10 +30,13 @@ module.exports = {
},
hash: false,
homepage: '/',
env: Object.assign({
VERSION: `v${pkg.version}-${repoLatestCommit().commit.slice(0, 7)}`,
LATEST_COMMIT: repoLatestCommit().commit.slice(0, 7)
}, cdns),
env: Object.assign(
{
VERSION: `v${pkg.version}-LATEST_COMMIT}`,
LATEST_COMMIT
},
cdns
),
presets: [
require('poi-preset-bundle-report')(),
require('poi-preset-babel-minify')(),
Expand Down Expand Up @@ -62,14 +66,17 @@ module.exports = {
],
babel: {
babelrc: false,
presets: [
require.resolve('babel-preset-poi')
],
plugins: [[require.resolve('babel-plugin-component'), [
{
libraryName: 'element-ui',
styleLibraryName: 'theme-chalk'
}
]]]
presets: [require.resolve('babel-preset-poi')],
plugins: [
[
require.resolve('babel-plugin-component'),
[
{
libraryName: 'element-ui',
styleLibraryName: 'theme-chalk'
}
]
]
]
}
}
Loading