Skip to content

Commit

Permalink
add account
Browse files Browse the repository at this point in the history
  • Loading branch information
heapwolf committed Apr 15, 2024
1 parent e1d9790 commit 299bb12
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ class AppEditor extends Tonic {
{ token: 'annotation', foreground: 'cc6666' },
{ token: 'type', foreground: '3DC9B0' },

{ token: 'delimiter', foreground: 'DCDCDC' },
{ token: 'delimiter', foreground: colors.primary },
{ token: 'delimiter.html', foreground: '808080' },
{ token: 'delimiter.xml', foreground: '808080' },

Expand Down Expand Up @@ -510,7 +510,7 @@ class AppEditor extends Tonic {

monaco.languages.registerFoldingRangeProvider('ini', {
provideFoldingRanges: function (model, context, token) {
const sectionStartRegex = /^\[.*]$/
const sectionStartRegex = /^\[.*]\s*$/
const foldingRanges = []
let lastSectionStart = -1

Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class AppView extends Tonic {
margin: preview.margin, // ie '6.0',
title: preview.title,
titlebarStyle: preview.titlebarStyle, // ie 'hiddenInset'
windowConrolOffsets: preview.windowControlOffsets, // ie '10x26'
windowControlOffsets: preview.windowControlOffsets, // ie '10x26'
// backgroundColorDark: 'rgba(46, 46, 46, 0.1)',
// backgroundColorLight: 'rgba(255, 255, 255, 0.1)',
aspectRatio: preview.aspectRatio, // ie '9:19.5'
Expand Down
2 changes: 2 additions & 0 deletions src/views/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,8 @@ class ViewHome extends Tonic {
data-event-"copy-public-key"
id="profile-public-key"
></tonic-textarea>
<iframe src="pages/account.html" border=0></iframe>
</section>
</tonic-tab-panel>
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ export default async function (req, env, ctx) {

const headers = {
'Content-Type': type,
'Cache-Control': 'no-cache'
'Cache-Control': 'no-cache',
'Access-Control-Allow-Origin': '*'
}

return new Response(html, { status: 200, headers })
Expand Down

0 comments on commit 299bb12

Please sign in to comment.