Skip to content

Commit

Permalink
fix restore chart scroll after load
Browse files Browse the repository at this point in the history
  • Loading branch information
Tucsky committed Nov 9, 2022
1 parent 21be29d commit 92ad0c8
Show file tree
Hide file tree
Showing 26 changed files with 810 additions and 10,697 deletions.
8 changes: 1 addition & 7 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@ module.exports = {
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/no-var-requires': 0,
camelcase: 'off',
'prettier/prettier': [
'error',
{
endOfLine: 'auto',
printWidth: 80
}
]
'prettier/prettier': 'warn'
}
}
3 changes: 2 additions & 1 deletion .prettierrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ module.exports = {
printWidth: 80,
tabWidth: 2,
useTabs: false,
endOfLine: 'auto'
endOfLine: 'auto',
trailingComma: 'none'
}
1,220 changes: 597 additions & 623 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,9 @@
"webpack-bundle-analyzer": "^4.4.2",
"webpack-pwa-manifest": "^4.3.0",
"worker-loader": "^3.0.8"
},
"volta": {
"node": "10.19.0",
"npm": "6.14.4"
}
}
1 change: 1 addition & 0 deletions src/assets/fonts/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/assets/fonts/icon.ttf
Binary file not shown.
Binary file modified src/assets/fonts/icon.woff
Binary file not shown.
2 changes: 1 addition & 1 deletion src/assets/sass/code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
-webkit-text-fill-color: transparent;

&:focus {
-webkit-text-fill-color: white;
-webkit-text-fill-color: var(--theme-color-base);

+ pre {
visibility: hidden;
Expand Down
5 changes: 5 additions & 0 deletions src/assets/sass/icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -490,3 +490,8 @@ $iconpath: '../fonts';
content: $icon-switch;
}
}
.icon-AGGR {
&:before {
content: $icon-lab;
}
}
4 changes: 4 additions & 0 deletions src/assets/sass/pane.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
> div {
pointer-events: none;
}

iframe {
pointer-events: none !important;
}
}

> .vue-resizable-handle {
Expand Down
1 change: 1 addition & 0 deletions src/assets/sass/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ $icon-DYDX: "\e95e";
$icon-BINANCE_US: "\e95f";
$icon-flip: "\e919";
$icon-switch: "\e91a";
$icon-lab: "\e941";

$exchanges: (
'BITMEX': $icon-BITMEX,
Expand Down
2 changes: 1 addition & 1 deletion src/components/chart/Chart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ export default class extends Mixins(PaneMixin) {
const barsToLoad = Math.round(
Math.min(Math.abs(visibleLogicalRange.from) + indicatorLength, 500)
)
) + 1
if (!barsToLoad) {
return
Expand Down
4 changes: 2 additions & 2 deletions src/components/chart/IndicatorDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@
<i class="icon-info" v-tippy :title="helps.priceScaleId"></i
></label>
<dropdown-button
v-model="indicator.options.priceScaleId"
:value="indicator.options.priceScaleId"
:options="availableScales"
placeholder="Default scale"
class="-outline form-control -arrow w-100"
Expand Down Expand Up @@ -1023,7 +1023,7 @@ export default {
&__prism {
width: 100%;
height: auto;
padding: 1rem 2.5rem 1rem 1rem;
padding: 1rem 0 1rem 1rem;
font-size: 0.825em;
}
Expand Down
9 changes: 0 additions & 9 deletions src/components/chart/TimeframeDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,7 @@ export default class extends Vue {
return this.$store.state.settings.timeframeGroups
}
created() {
console.log('create timeframe dropdown')
}
mounted() {
console.log('mount timeframe dropdown')
}
get groups() {
console.log('get timeframe sections')
const units = ['seconds', 'minutes', 'hours', 'ticks']
let unit = -1
const minute = 60
Expand Down
Loading

0 comments on commit 92ad0c8

Please sign in to comment.