Skip to content

Commit 27417ed

Browse files
committed
Refine ui
1 parent 926cd0d commit 27417ed

2 files changed

Lines changed: 15 additions & 13 deletions

File tree

src/components/CodeManager.vue

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -425,10 +425,12 @@ export default {
425425
}
426426
else if ( j > 2 && details.slice( j - 2, j ) === '}]' ) {
427427
ranges = JSON.parse( details.slice( i, j ) )
428-
this.$message( {
429-
type: 'warning',
430-
message: details.slice( j + 1 )
431-
} )
428+
if ( details.length > j + 2 ) {
429+
this.$message( {
430+
type: 'warning',
431+
message: details.slice( j + 1 )
432+
} )
433+
}
432434
break
433435
}
434436
}
@@ -439,7 +441,7 @@ export default {
439441
buf.session.setAnnotations( ranges.map( function( r ) {
440442
const loc = r.locations[0]
441443
return {
442-
row: loc.caret.line,
444+
row: loc.caret.line - 1,
443445
column: loc.caret.column,
444446
text: r.message,
445447
type: r.kind === 'note' ? 'info' : r.kind
@@ -660,7 +662,7 @@ export default {
660662
661663
/* Status */
662664
.cb-red-dot::after {
663-
background-color: rgba(245, 110, 110, 0.3);
665+
background-color: rgba(245, 110, 110, 0.38);
664666
content: '';
665667
height: 9px;
666668
width: 9px;
@@ -670,7 +672,7 @@ export default {
670672
border-radius: 50%;
671673
}
672674
.cb-tag-warning::after {
673-
background-color: rgba(227, 162, 195, 0.3);
675+
background-color: #e6a23c;
674676
content: '';
675677
height: 9px;
676678
width: 9px;

src/connector.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ import { _t } from './plugins/gettext.js'
77
const ACCESS_TOKEN_KEY = 'ACCESS_TOKEN'
88
const REFRESH_TOKEN_KEY = 'REFRESH_TOKEN'
99

10-
const serverUrl = 'http://localhost:9092/api/v1'
11-
const clientId = '0gvr1GFNpCy9fSpxsKHPdUPUu7ZSCQS76zc8kAgl'
12-
const clientSecret = 'dazoA4IhCGrWrkh2rA02FE1qm3AVWdAz9qKqSZDLAD22xWiVYsEeMtq2BmqVY748U8Qw9jecBo9BHYYG3nZDgOUUwaEFjjDir1VX25ejnCvEcwdzV3Wt2Rxcnt45lxaN'
10+
// const serverUrl = 'http://localhost:9092/api/v1'
11+
// const clientId = '0gvr1GFNpCy9fSpxsKHPdUPUu7ZSCQS76zc8kAgl'
12+
// const clientSecret = 'dazoA4IhCGrWrkh2rA02FE1qm3AVWdAz9qKqSZDLAD22xWiVYsEeMtq2BmqVY748U8Qw9jecBo9BHYYG3nZDgOUUwaEFjjDir1VX25ejnCvEcwdzV3Wt2Rxcnt45lxaN'
1313

1414
// const serverUrl = 'https://codebang.dashingsoft.com'
1515
// const clientId = 'rgt9yKrM82ACFiKLW2aIwxYUCIUV8ggx2OH5hvu8'
1616
// const clientSecret = 'hiWi4Q8k4TR1aAF8PGtqjL7DiY15gBFXjYQ9UM5F3EV5mneJbo88LlXqst0PcfpYVhPQyKc1jjlICggI0otTjOv6zoP89Q0uBNoLsEqkRVmi2G4w5Snn9dBADHx7UxaT'
1717

18-
// const serverUrl = 'https://cb.dashingsoft.com/api/v1'
19-
// const clientId = 'PetTAmGzfinaiKDcr8wAfuq2IGqYv2TfWBHuou2F'
20-
// const clientSecret = 'SLc0LAGCyPQ291V2f3XSpK1xyBde01SHy9hZ5l2FQbrEbd17J9ZSlT8VXDWpsHMre4JqA7F8Olr6SDOQuR5Ul8D7U5PaFopiARASA8vIudRBsh2RAWqfO6Iu14Dtc5bq'
18+
const serverUrl = 'https://cb.dashingsoft.com/api/v1'
19+
const clientId = 'PetTAmGzfinaiKDcr8wAfuq2IGqYv2TfWBHuou2F'
20+
const clientSecret = 'SLc0LAGCyPQ291V2f3XSpK1xyBde01SHy9hZ5l2FQbrEbd17J9ZSlT8VXDWpsHMre4JqA7F8Olr6SDOQuR5Ul8D7U5PaFopiARASA8vIudRBsh2RAWqfO6Iu14Dtc5bq'
2121

2222
// Fix this issue:
2323
// Do not access Object.prototype method ‘hasOwnProperty’ from target object no-prototype-builtins

0 commit comments

Comments
 (0)