-
Notifications
You must be signed in to change notification settings - Fork 400
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/brookshi/Hitchhiker
- Loading branch information
Showing
101 changed files
with
1,720 additions
and
734 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,12 @@ | ||
import { Setting } from '../utils/setting'; | ||
|
||
export class Message { | ||
static userEmailRepeat: string = 'email is taken'; | ||
static userEmailFormatError: string = 'email format error'; | ||
static userPasswordFormatError: string = 'password format error'; | ||
static userNameFormatError: string = 'name format error'; | ||
static userCreateSuccess: string = 'create user success'; | ||
static userCreateFailed: string = 'create user failed'; | ||
static userCheckFailed: string = 'email or password error'; | ||
static accountNotActive: string = 'account is not active, please active it in your email'; | ||
static regSuccess = Setting.instance.needRegisterMailConfirm ? 'register success, please active your account in your email' : 'register success, please login'; | ||
static userLogout: string = 'logout success'; | ||
static userLoginSuccess: string = 'login success'; | ||
static userNotExist: string = 'user does not exist'; | ||
static userOldPwdIncorrect: string = 'old password is incorrect'; | ||
static userChangePwdSuccess: string = 'change password success'; | ||
static findPwdSuccess: string = 'a new password have send to your mail'; | ||
static regConfirmFailedUserNotExist: string = 'check failed, user does not exist'; | ||
static regConfirmFailedUserConfirmed: string = 'user was confirmed'; | ||
static regConfirmFailedExpired: string = 'verification url was expired'; | ||
static regConfirmFailedInvalid: string = 'verification url was invalid'; | ||
static regConfirmSuccess: string = 'account is activated, you can use it to login now'; | ||
|
||
static inviterNotExist: string = 'inviter does not exist'; | ||
static emailsAtLeastOne: string = 'at least one email'; | ||
static en = require('../locales/en.json'); | ||
|
||
static envCreateFailed: string = 'create environment failed'; | ||
static envCreateSuccess: string = 'create environment success'; | ||
static envUpdateSuccess: string = 'update environment success'; | ||
static envDeleteSuccess: string = 'delete environment success'; | ||
static envNotExist: string = 'environment does not exist'; | ||
static zh = require('../locales/zh.json'); | ||
|
||
static projectSaveSuccess: string = 'project save success'; | ||
static projectUpdateSuccess: string = 'project update success'; | ||
static projectQuitSuccess: string = 'quit project success'; | ||
static projectNotExist: string = 'project does not exist'; | ||
static projectDisbandNeedOwner: string = 'only project owner can disband this project'; | ||
static projectDisbandSuccess: string = 'disband project success'; | ||
static projectDeleteSuccess: string = 'delete project success'; | ||
static emailsAllInProject: string = 'emails are all in this project already'; | ||
static alreadyInProject: string = 'already in this project'; | ||
static joinProjectSuccess: string = 'join project success'; | ||
static rejectProjectSuccess: string = 'reject invite success'; | ||
static updateLocalhostMappingSuccess: string = 'update localhost mapping success'; | ||
static createLocalhostMappingSuccess: string = 'create localhost mapping success'; | ||
static updateGlobalFuncSuccess: string = 'update global function success'; | ||
static deleteProjectFileSuccess: string = 'delete project file success'; | ||
|
||
static collectionCreateFailed: string = 'create collection failed'; | ||
static collectionCreateSuccess: string = 'create collection success'; | ||
static collectionUpdateSuccess: string = 'update collection success'; | ||
static collectionNotExist: string = 'collection does not exist'; | ||
static collectionDeleteSuccess: string = 'collection delete success'; | ||
|
||
static recordCreateFailed: string = 'create record failed'; | ||
static recordCreateFailedOnName: string = 'record name is incorrect'; | ||
static recordSortSuccess: string = 'sort records success'; | ||
static recordSaveSuccess: string = 'record save success'; | ||
static recordDeleteSuccess: string = 'record delete success'; | ||
|
||
static scheduleCreateSuccess: string = 'create schedule success'; | ||
static scheduleCreateFailed: string = 'create schedule failed'; | ||
static scheduleUpdateSuccess: string = 'update schedule success'; | ||
static scheduleDeleteSuccess: string = 'delete schedule success'; | ||
static scheduleNotExist: string = 'schedule id does not exist'; | ||
|
||
static stressCreateSuccess: string = 'create stress test success'; | ||
static stressCreateFailed: string = 'create stress test failed'; | ||
static stressUpdateSuccess: string = 'update stress test success'; | ||
static stressDeleteSuccess: string = 'delete stress test success'; | ||
static stressNotExist: string = 'stress test case does not exist'; | ||
static stressNoRecords: string = 'stress test case does not have any valid request'; | ||
|
||
static apiNotExist: string = 'this api does not exist'; | ||
|
||
static sessionInvalid: string = 'session is invalid'; | ||
|
||
static tokenInvalid: string = 'token is invalid'; | ||
|
||
static importPostmanSuccess: string = 'import postman data success'; | ||
static get(id: string) { | ||
return this[Setting.instance.appLanguage][id]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"userEmailRepeat": "email is taken", | ||
"userEmailFormatError": "email format error", | ||
"userPasswordFormatError": "password format error", | ||
"userNameFormatError": "name format error", | ||
"userCreateSuccess": "create user success", | ||
"userCreateFailed": "create user failed", | ||
"userCheckFailed": "email or password error", | ||
"accountNotActive": "account is not active, please active it in your email", | ||
"regSuccess": "register success, please login", | ||
"regSuccessNeedConfirm": "register success, please active your account in your email", | ||
"userLogout": "logout success", | ||
"userLoginSuccess": "login success", | ||
"userNotExist": "user does not exist", | ||
"userOldPwdIncorrect": "old password is incorrect", | ||
"userChangePwdSuccess": "change password success", | ||
"findPwdSuccess": "a new password have send to your mail", | ||
"regConfirmFailedUserNotExist": "check failed, user does not exist", | ||
"regConfirmFailedUserConfirmed": "user was confirmed", | ||
"regConfirmFailedExpired": "verification url was expired", | ||
"regConfirmFailedInvalid": "verification url was invalid", | ||
"regConfirmSuccess": "account is activated, you can use it to login now", | ||
|
||
"inviterNotExist": "inviter does not exist", | ||
"emailsAtLeastOne": "at least one email", | ||
|
||
"envCreateFailed": "create environment failed", | ||
"envCreateSuccess": "create environment success", | ||
"envUpdateSuccess": "update environment success", | ||
"envDeleteSuccess": "delete environment success", | ||
"envNotExist": "environment does not exist", | ||
|
||
"projectSaveSuccess": "project save success", | ||
"projectUpdateSuccess": "project update success", | ||
"projectQuitSuccess": "quit project success", | ||
"projectNotExist": "project does not exist", | ||
"projectDisbandNeedOwner": "only project owner can disband this project", | ||
"projectDisbandSuccess": "disband project success", | ||
"projectDeleteSuccess": "delete project success", | ||
"emailsAllInProject": "emails are all in this project already", | ||
"alreadyInProject": "already in this project", | ||
"joinProjectSuccess": "join project success", | ||
"rejectProjectSuccess": "reject invite success", | ||
"updateLocalhostMappingSuccess": "update localhost mapping success", | ||
"createLocalhostMappingSuccess": "create localhost mapping success", | ||
"updateGlobalFuncSuccess": "update global function success", | ||
"deleteProjectFileSuccess": "delete project file success", | ||
|
||
"collectionCreateFailed": "create collection failed", | ||
"collectionCreateSuccess": "create collection success", | ||
"collectionUpdateSuccess": "update collection success", | ||
"collectionNotExist": "collection does not exist", | ||
"collectionDeleteSuccess": "collection delete success", | ||
|
||
"recordCreateFailed": "create record failed", | ||
"recordCreateFailedOnName": "record name is incorrect", | ||
"recordSortSuccess": "sort records success", | ||
"recordSaveSuccess": "record save success", | ||
"recordDeleteSuccess": "record delete success", | ||
|
||
"scheduleCreateSuccess": "create schedule success", | ||
"scheduleCreateFailed": "create schedule failed", | ||
"scheduleUpdateSuccess": "update schedule success", | ||
"scheduleDeleteSuccess": "delete schedule success", | ||
"scheduleNotExist": "schedule id does not exist", | ||
|
||
"stressCreateSuccess": "create stress test success", | ||
"stressCreateFailed": "create stress test failed", | ||
"stressUpdateSuccess": "update stress test success", | ||
"stressDeleteSuccess": "delete stress test success", | ||
"stressNotExist": "stress test case does not exist", | ||
"stressNoRecords": "stress test case does not have any valid request", | ||
|
||
"apiNotExist": "this api does not exist", | ||
|
||
"sessionInvalid": "session is invalid", | ||
|
||
"tokenInvalid": "token is invalid", | ||
|
||
"importPostmanSuccess": "import postman data success" | ||
} |
Oops, something went wrong.