Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ukwhatn committed Apr 14, 2024
0 parents commit fac5eaf
Show file tree
Hide file tree
Showing 103 changed files with 5,407 additions and 0 deletions.
68 changes: 68 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
test/test.ts

node_modules/
.node_modules/
built/*
tests/cases/rwc/*
tests/cases/perf/*
!tests/cases/webharness/compilerToString.js
test-args.txt
~*.docx
\#*\#
.\#*
tests/baselines/local/*
tests/baselines/local.old/*
tests/services/baselines/local/*
tests/baselines/prototyping/local/*
tests/baselines/rwc/*
tests/baselines/reference/projectOutput/*
tests/baselines/local/projectOutput/*
tests/baselines/reference/testresults.tap
tests/baselines/symlinks/*
tests/services/baselines/prototyping/local/*
tests/services/browser/typescriptServices.js
src/harness/*.js
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.generated.json
src/parser/diagnosticInformationMap.generated.ts
src/parser/diagnosticMessages.generated.json
rwc-report.html
*.swp
build.json
*.actual
tests/webTestServer.js
tests/webTestServer.js.map
tests/webhost/*.d.ts
tests/webhost/webtsc.js
tests/cases/**/*.js
tests/cases/**/*.js.map
*.config
scripts/eslint/built/
scripts/debug.bat
scripts/run.bat
scripts/**/*.js
scripts/**/*.js.map
coverage/
internal/
**/.DS_Store
.settings
**/.vs
**/.vscode/*
!**/.vscode/tasks.json
!**/.vscode/settings.template.json
!**/.vscode/launch.template.json
!**/.vscode/extensions.json
!tests/cases/projects/projectOption/**/node_modules
!tests/cases/projects/NodeModulesSearch/**/*
!tests/baselines/reference/project/nodeModules*/**/*
.idea
yarn.lock
yarn-error.log
.parallelperf.*
tests/baselines/reference/dt
.failed-tests
TEST-results.xml
package-lock.json
.eslintcache
*v8.log
/lib/
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/node_modules
/src
tsconfig.json
Empty file added dist/common/decorators.d.ts
Empty file.
2 changes: 2 additions & 0 deletions dist/common/decorators.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/common/decorators.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

95 changes: 95 additions & 0 deletions dist/common/exceptions.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/**
* 独自例外の基底クラス
*
* @param message - エラーメッセージ
*/
declare class WikidotException extends Error {
constructor(message: string);
}
/**
* 予期せぬ例外が発生したときの例外
*
* @param message - エラーメッセージ
*/
declare class UnexpectedException extends WikidotException {
constructor(message: string);
}
/**
* セッションの作成に失敗したときの例外
*
* @param message - エラーメッセージ
*/
declare class SessionCreateException extends WikidotException {
constructor(message: string);
}
/**
* ログインが必要なメソッドをときの例外
*
* @param message - エラーメッセージ
*/
declare class LoginRequiredException extends WikidotException {
constructor(message: string);
}
/**
* ajax-module-connector.phpへのリクエストに失敗したときの例外
*
* @param message - エラーメッセージ
*/
declare class AjaxModuleConnectorException extends WikidotException {
constructor(message: string);
}
/**
* AMCから返却されたHTTPステータスが200以外だったときの例外
*
* @param message - エラーメッセージ
* @param statusCode - HTTPステータスコード
*/
declare class AMCHttpStatusCodeException extends AjaxModuleConnectorException {
readonly statusCode: number;
constructor(message: string, statusCode: number);
}
/**
* AMCから返却されたデータ内のステータスがokではなかったときの例外
*
* HTTPステータスが200以外の場合はAMCHttpStatusCodeExceptionを投げる
*
* @param message - エラーメッセージ
* @param statusCode - WikidotステータスコードAMCから返却されたデータ内のステータスがokではなかったときの例外
*/
declare class WikidotStatusCodeException extends AjaxModuleConnectorException {
readonly statusCode: string;
constructor(message: string, statusCode: string);
}
/**
* AMCから返却されたデータが不正だったときの例外
*
* @param message - エラーメッセージ
*/
declare class ResponseDataException extends AjaxModuleConnectorException {
constructor(message: string);
}
/**
* サイトやページ・ユーザが見つからなかったときの例外
*
* @param message - エラーメッセージ
*/
declare class NotFoundException extends WikidotException {
constructor(message: string);
}
/**
* メソッドの対象としたオブジェクトに操作が適用できないときの例外
*
* @param message - エラーメッセージ
*/
declare class TargetErrorException extends WikidotException {
constructor(message: string);
}
/**
* 権限がないときの例外
*
* @param message - エラーメッセージ
*/
declare class ForbiddenException extends WikidotException {
constructor(message: string);
}
export { WikidotException, UnexpectedException, SessionCreateException, LoginRequiredException, AjaxModuleConnectorException, AMCHttpStatusCodeException, WikidotStatusCodeException, ResponseDataException, NotFoundException, TargetErrorException, ForbiddenException };
146 changes: 146 additions & 0 deletions dist/common/exceptions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/common/exceptions.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/common/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { logger } from './logger';
6 changes: 6 additions & 0 deletions dist/common/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/common/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/common/logger.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import winston from 'winston';
export declare const logger: winston.Logger;
19 changes: 19 additions & 0 deletions dist/common/logger.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/common/logger.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fac5eaf

Please sign in to comment.