mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 08:46:19 -04:00
rename dishTranslationTypes
This commit is contained in:
parent
79e2ca6284
commit
c70f14419a
14 changed files with 23 additions and 46 deletions
|
@ -19,7 +19,7 @@ import {
|
|||
DishListFile,
|
||||
DishNumber,
|
||||
DishString,
|
||||
} from "./dishTranslationTypes";
|
||||
} from "./dishTypes";
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -4,14 +4,14 @@
|
|||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
import DishTranslationType from "./DishTranslationType";
|
||||
import DishType from "./DishType";
|
||||
import Utils from "../Utils";
|
||||
import BigNumber from "bignumber.js";
|
||||
|
||||
/**
|
||||
* translation methods for BigNumber Dishes
|
||||
*/
|
||||
class DishBigNumber extends DishTranslationType {
|
||||
class DishBigNumber extends DishType {
|
||||
|
||||
/**
|
||||
* convert the given value to a ArrayBuffer
|
|
@ -4,12 +4,12 @@
|
|||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
import DishTranslationType from "./DishTranslationType";
|
||||
import DishType from "./DishType";
|
||||
|
||||
/**
|
||||
* Translation methods for ArrayBuffer Dishes
|
||||
*/
|
||||
class DishByteArray extends DishTranslationType {
|
||||
class DishByteArray extends DishType {
|
||||
|
||||
/**
|
||||
* convert the given value to a ArrayBuffer
|
|
@ -4,13 +4,13 @@
|
|||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
import DishTranslationType from "./DishTranslationType";
|
||||
import DishType from "./DishType";
|
||||
import Utils from "../Utils";
|
||||
|
||||
/**
|
||||
* Translation methods for file Dishes
|
||||
*/
|
||||
class DishFile extends DishTranslationType {
|
||||
class DishFile extends DishType {
|
||||
|
||||
/**
|
||||
* convert the given value to an ArrayBuffer
|
|
@ -4,13 +4,13 @@
|
|||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
import DishTranslationType from "./DishTranslationType";
|
||||
import DishType from "./DishType";
|
||||
import Utils from "../Utils";
|
||||
|
||||
/**
|
||||
* Translation methods for JSON dishes
|
||||
*/
|
||||
class DishJSON extends DishTranslationType {
|
||||
class DishJSON extends DishType {
|
||||
|
||||
/**
|
||||
* convert the given value to a ArrayBuffer
|
|
@ -4,13 +4,14 @@
|
|||
* @license Apache-2.0
|
||||
*/
|
||||
|
||||
import DishTranslationType from "./DishTranslationType";
|
||||
import DishType from "./DishType";
|
||||
import Utils from "../Utils.mjs";
|
||||
|
||||
|
||||
/**
|
||||
* Translation methods for ListFile Dishes
|
||||
*/
|
||||
class DishListFile extends DishTranslationType {
|
||||
class DishListFile extends DishType {
|
||||
|
||||
/**
|
||||
* convert the given value to a ArrayBuffer
|
|
@ -5,13 +5,13 @@
|
|||
*/
|
||||
|
||||
|
||||
import DishTranslationType from "./DishTranslationType";
|
||||
import DishType from "./DishType";
|
||||
import Utils from "../Utils";
|
||||
|
||||
/**
|
||||
* Translation methods for number dishes
|
||||
*/
|
||||
class DishNumber extends DishTranslationType {
|
||||
class DishNumber extends DishType {
|
||||
|
||||
/**
|
||||
* convert the given value to a ArrayBuffer
|
|
@ -5,13 +5,13 @@
|
|||
*/
|
||||
|
||||
|
||||
import DishTranslationType from "./DishTranslationType";
|
||||
import DishType from "./DishType";
|
||||
import Utils from "../Utils";
|
||||
|
||||
/**
|
||||
* Translation methods for string dishes
|
||||
*/
|
||||
class DishString extends DishTranslationType {
|
||||
class DishString extends DishType {
|
||||
|
||||
/**
|
||||
* convert the given value to a ArrayBuffer
|
|
@ -8,7 +8,7 @@
|
|||
/**
|
||||
* Abstract class for dish translation methods
|
||||
*/
|
||||
class DishTranslationType {
|
||||
class DishType {
|
||||
|
||||
/**
|
||||
* Warn translations dont work without value from bind
|
||||
|
@ -24,7 +24,7 @@ class DishTranslationType {
|
|||
* @param {*} value
|
||||
*/
|
||||
static toArrayBuffer() {
|
||||
throw new Error("toByteArray has not been implemented");
|
||||
throw new Error("toArrayBuffer has not been implemented");
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -32,8 +32,8 @@ class DishTranslationType {
|
|||
* @param {boolean} notUTF8
|
||||
*/
|
||||
static fromArrayBuffer(notUTF8=undefined) {
|
||||
throw new Error("toType has not been implemented");
|
||||
throw new Error("fromArrayBuffer has not been implemented");
|
||||
}
|
||||
}
|
||||
|
||||
export default DishTranslationType;
|
||||
export default DishType;
|
Loading…
Add table
Add a link
Reference in a new issue