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

Commit0a2d4fd

Browse files
committed
minor refactor
1 parentb896cef commit0a2d4fd

File tree

3 files changed

+16
-6
lines changed

3 files changed

+16
-6
lines changed

‎src/services/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default async function fetch(options: Options): Promise<any> {
1717
switch(options.resource){
1818
case'getTutorialsSummary':
1919
// list of ids with summaries
20-
letdata:{[id:string]:CR.TutorialSummary}={}
20+
constdata:{[id:string]:CR.TutorialSummary}={}
2121
for(consttutorialofObject.values(tutorialsData)){
2222
data[tutorial.id]=tutorial.data.summary
2323
}

‎src/services/git/errorMessages.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
interfaceErrorMessageFilter{
2+
[lang:string]:{
3+
[key:string]:string
4+
}
5+
}
6+
7+
consterrorMessages:ErrorMessageFilter={
8+
js:{
9+
'node-gyp':'Error running npm setup command'
10+
}
11+
}
12+
13+
exportdefaulterrorMessages

‎src/services/git/index.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import*asCRfrom'typings'
22
import{exec,exists}from'../node'
3+
importerrorMessagesfrom'./errorMessages'
34

45
constgitOrigin='coderoad'
56

@@ -31,11 +32,7 @@ const cherryPickCommit = async (commit: string, count = 0): Promise<void> => {
3132
}
3233
}
3334

34-
consterrorMessages={
35-
js:{
36-
'node-gyp':'Error running npm setup command'
37-
}
38-
}
35+
3936

4037
/*
4138
SINGLE git cherry-pick %COMMIT%

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp