Skip to content

Commit

Permalink
adjust for custom domain
Browse files Browse the repository at this point in the history
  • Loading branch information
hyvyys committed Dec 13, 2019
1 parent 18f0a6b commit 0f9da42
Show file tree
Hide file tree
Showing 8 changed files with 1,876 additions and 905 deletions.
2,727 changes: 1,840 additions & 887 deletions package-lock.json

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,37 @@
"build": "vue-cli-service build",
"lint": "vue-cli-service lint",
"test:e2e": "vue-cli-service test:e2e",
"test:unit": "vue-cli-service test:unit"
"test:unit": "vue-cli-service test:unit",
"deploy": "node .\\scripts\\publish.js"
},
"dependencies": {
"animejs": "^3.1.0",
"convert-css-length": "^2.0.1",
"core-js": "^2.6.5",
"core-js": "^2.6.10",
"decimal.js": "^10.2.0",
"detect-browser": "^4.7.0",
"detect-browser": "^4.8.0",
"grapheme-splitter": "^1.0.4",
"hamsterjs": "^1.1.3",
"keen-ui": "^1.2.0",
"language-data": "0.0.12",
"keen-ui": "^1.2.1",
"language-data": "0.0.13",
"lodash.debounce": "^4.0.8",
"lodash.throttle": "^4.1.1",
"opentype.js": "^1.1.0",
"vue": "^2.6.10",
"vue-closable": "0.0.3",
"vue-color": "^2.7.0",
"vue-observe-visibility": "^0.4.4",
"vue-observe-visibility": "^0.4.6",
"vue-router": "^3.1.3",
"vue-worker": "^1.2.1",
"vuebar": "github:hyvyys/vuebar",
"vuex": "^3.1.1"
"vuex": "^3.1.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.11.0",
"@vue/cli-plugin-e2e-nightwatch": "^3.11.0",
"@vue/cli-plugin-eslint": "^3.11.0",
"@vue/cli-plugin-unit-jest": "^3.11.0",
"@vue/cli-service": "^3.11.0",
"@vue/cli-plugin-babel": "^3.12.1",
"@vue/cli-plugin-e2e-nightwatch": "^3.12.1",
"@vue/cli-plugin-eslint": "^3.12.1",
"@vue/cli-plugin-unit-jest": "^3.12.1",
"@vue/cli-service": "^3.12.1",
"@vue/test-utils": "1.0.0-beta.29",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
Expand All @@ -45,9 +46,9 @@
"eslint-plugin-vue": "^5.0.0",
"gh-pages": "^2.1.1",
"markdown-it": "^9.1.0",
"node-sass": "^4.9.0",
"node-sass": "^4.13.0",
"sass-loader": "^7.1.0",
"vue-svg-inline-loader": "^1.2.18",
"vue-svg-inline-loader": "^1.4.4",
"vue-template-compiler": "^2.6.10",
"ware-loader": "^0.2.4",
"worker-loader": "^2.0.0"
Expand Down
2 changes: 1 addition & 1 deletion public/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// https://username.github.io/repo-name/one/two?a=b&c=d#qwe becomes
// https://username.github.io/repo-name/?p=/one/two&q=a=b~and~c=d#qwe
// Otherwise, leave segmentCount as 0.
var segmentCount = 1;
var segmentCount = 0;
var l = window.location;
l.replace(
l.protocol + '//' + l.hostname + (l.port ? ':' + l.port : '') +
Expand Down
1 change: 1 addition & 0 deletions public/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bulletproof.italic.space
10 changes: 10 additions & 0 deletions src/components/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,16 @@
/>
</div>

<div class="row">
<label class="row-label">Case transform</label>
<UiSelect
ref="settingTextTransform"
:value="settings.textTransform"
:options="settings.textTransformOptions"
@input="v => updateSetting('updateSettings', { textTransform: v })"
/>
</div>

<h3 v-if="capFeatures.length > 0">Caps</h3>
<div class="setting-group">
<div class="row" v-for="(feature, key) in capFeatures" :key="key">
Expand Down
8 changes: 7 additions & 1 deletion src/utils/scrollToHash.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ export default function scrollToHash(a, scrolled, hash = null) {
const target = document.querySelector(selector);

if (target) {
const top = target.offsetTop;
let top = target.offsetTop;
// let parent = target.parentElement;
// while (parent != scrolled) {
// top += parent.offsetTop;
// console.log(parent, parent.offsetTop)
// parent = parent.parentElement;
// }
scrolled.scrollTop = top;
}
}
2 changes: 1 addition & 1 deletion src/viewparts/SiteFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

<div class="bulletproof-info">
<div>
Bulletproof Font Tester v {{version}}
Bulletproof Font Tester
</div>
<div>
Copyright 2019 Adam Jagosz.
Expand Down
2 changes: 1 addition & 1 deletion vue.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
publicPath: process.env.NODE_ENV === "production" ? "/Bulletproof/" : "/",
publicPath: process.env.NODE_ENV === "production" ? "/" : "/",

devServer: {
// writeToDisk: true, // https://webpack.js.org/configuration/dev-server/#devserverwritetodisk-
Expand Down

0 comments on commit 0f9da42

Please sign in to comment.