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
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit3ad67bf

Browse files
committed
pass editor into config, create store on activation
1 parentc7bfc1f commit3ad67bf

25 files changed

+134
-89
lines changed

‎lib/editor.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/editor.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/editor/actions/index.js

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/editor/actions/index.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/editor/index.js

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/editor/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/editor/setup.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/editor/setup.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/main.js

Lines changed: 9 additions & 8 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/modules/dir/index.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/modules/dir/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/modules/editor/reducer.js

Lines changed: 21 additions & 22 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎lib/modules/editor/reducer.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎src/editor/actions/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export{toggleDevTools,clearConsole,openDevTools}from'./console';
2+
export{getEditor}from'./editor';
3+
export{openFolder,open,save,scroll}from'./file';
4+
// export {quit} from './quit';
5+
// export {closeAllPanels} from './tabs';
6+
// export {openTerminal} from './terminal';
7+
export{set,insert}from'./write';
8+
export{writeFileFromContent,writeFileFromFile}from'./writeFile';

‎src/editor/index.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1+
import*asactionfrom'./actions';
12
import{directory}from'./directory';
23
import{getGrammar,tokenizeLines}from'./grammar';
34
import{
4-
editorIssuesPath,editorMinVersion,editorName,
5-
editorVersionFailMessage,editorVersionLabel,minVersion
5+
editorIssuesPath,editorMinVersion,editorVersionFailMessage,
6+
editorVersionLabel,minVersion,name
67
}from'./setup';
78
importSubscriptionsfrom'./subscriptions';
89
import{addRightPanel}from'./ui';
910

1011
consteditor={
12+
action,
1113
directory,
14+
name,
1215
getGrammar,
1316
tokenizeLines,
14-
editorName,
1517
editorMinVersion,
1618
editorVersionLabel,
1719
editorVersionFailMessage,
1820
editorIssuesPath,
1921
minVersion,
2022
Subscriptions,
21-
addRightPanel
22-
}
23+
addRightPanel,
24+
};
2325

2426
exportdefaulteditor;

‎src/editor/setup.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import * as React from 'react';
33
import{isAboveVersion}from'./compareVersions';
44
importcommandLinefrom'atom-plugin-command-line';
55

6-
exportconsteditorName='Atom';
6+
exportconstname='Atom';
77
exportconstminVersion='1.8';
88

9-
exportconsteditorVersionLabel=`${editorName} >=${minVersion}`;
9+
exportconsteditorVersionLabel=`${name} >=${minVersion}`;
1010

1111
exportconsteditorVersionFailMessage=(
1212
<div>

‎src/editor/subscriptions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ export default class Subscriptions {
2424
this.subscriptions.dispose();
2525
}
2626
}
27+

‎src/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
importeditorfrom'./editor';
22
importMainfrom'./main';
33

4-
// React optimization
5-
process.env.NODE_ENV='production';
6-
7-
export=newMain(editor);
4+
exports.editor=editor;
5+
// "modules.exports" is needed for loading commonjs in Atom
6+
module.exports=(()=>newMain(editor))();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp