Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Setup#3

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 23 commits intomasterfromxstate
Jun 8, 2019
Merged
Show file tree
Hide file tree
Changes from1 commit
Commits
Show all changes
23 commits
Select commitHold shift + click to select a range
820097a
setup level/stage tree
ShMcKMay 27, 2019
32edbcf
setup xstate machine as core
ShMcKJun 2, 2019
4be011f
setup start w/ continue or new
ShMcKJun 2, 2019
6993147
add machine loadTutorial
ShMcKJun 2, 2019
04653e2
setup tutorial initialization
ShMcKJun 2, 2019
b51dd2f
refactor files
ShMcKJun 2, 2019
89045a3
refactor files
ShMcKJun 2, 2019
9bcf64c
refactor storage into editor
ShMcKJun 2, 2019
cc176e6
update deps
ShMcKJun 2, 2019
e88651e
setup xstate with interpreter
ShMcKJun 2, 2019
f8c527e
cleanup start
ShMcKJun 2, 2019
634a6d4
Merge pull request #2 from ShMcK/feature/treeview
Jun 2, 2019
9241fef
add createWebview logic
ShMcKJun 2, 2019
563874f
initialize webview
ShMcKJun 2, 2019
54e06de
setup web-app
ShMcKJun 4, 2019
81a1041
setup react liniting & tsconfig
ShMcKJun 4, 2019
aa1a8b8
refactor out path to build
ShMcKJun 4, 2019
69b7e81
working react in vscode
ShMcKJun 8, 2019
c4a05ca
cleanup inline script
ShMcKJun 8, 2019
826f2e7
update deps
ShMcKJun 8, 2019
97cf2a1
setup storybook & components
ShMcKJun 8, 2019
567c6a6
setup concurrent build script
ShMcKJun 8, 2019
01d2669
resolve alifd/next style issues
ShMcKJun 8, 2019
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
PrevPrevious commit
NextNext commit
initialize webview
  • Loading branch information
@ShMcK
ShMcK committedJun 2, 2019
commit563874f696d94aca511b8f643822a48b6830bb86
6 changes: 6 additions & 0 deletionssrc/editor/commands/index.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
import * as vscode from 'vscode'
import start from './start'
import ReactPanel from '../views/createWebview'

// import runTest from './runTest'
// import loadSolution from './loadSolution'
Expand All@@ -8,6 +9,7 @@ import start from './start'
const COMMANDS = {
// TUTORIAL_SETUP: 'coderoad.tutorial_setup',
START: 'coderoad.start',
OPEN_WEBVIEW: 'coderoad.open_webview'
// RUN_TEST: 'coderoad.test_run',
// LOAD_SOLUTION: 'coderoad.solution_load',
// QUIT: 'coderoad.quit',
Expand All@@ -19,6 +21,10 @@ export default (context: vscode.ExtensionContext): void => {
[COMMANDS.START]: async function startCommand(): Promise<void> {
return start(context)
},
[COMMANDS.OPEN_WEBVIEW]: () => {
console.log('webview createOrShow')
ReactPanel.createOrShow(context.extensionPath);
}
// [COMMANDS.RUN_TEST]: runTest,
// [COMMANDS.LOAD_SOLUTION]: loadSolution,
// [COMMANDS.QUIT]: () => quit(context.subscriptions),
Expand Down
8 changes: 4 additions & 4 deletionssrc/editor/views/createWebview.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,10 +21,10 @@ class ReactPanel {
public static async createOrShow(extensionPath: string): Promise<void> {
const hasActiveEditor = vscode.window.activeTextEditor

if (!hasActiveEditor) {
throw new Error('Should have an open file on launch')
}
const column = vscode.ViewColumn.Two
//if (!hasActiveEditor) {
// throw new Error('Should have an open file on launch')
//}
const column = vscode.ViewColumn.One

// If we already have a panel, show it.
// Otherwise, create a new panel.
Expand Down
8 changes: 5 additions & 3 deletionssrc/state/actions/index.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
import { assign } from 'xstate'
import * as CR from 'typings'
import * as storage from '../../services/storage'
import * as git from '../../services/git'
import * as vscode from 'vscode'

let initialTutorial: CR.Tutorial | undefined
let initialProgress: CR.Progress = {
Expand DownExpand Up@@ -46,5 +45,8 @@ export default {
return position
}
}),

createWebview() {
console.log('execute coderoad.open_webview')
vscode.commands.executeCommand('coderoad.open_webview')
}
}
1 change: 1 addition & 0 deletionssrc/state/machine.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -25,6 +25,7 @@ export const machine = Machine<
},
},
NewTutorial: {
onEntry: ['createWebview'],
initial: 'SelectTutorial',
states: {
SelectTutorial: {
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp