type stringclasses 7
values | content stringlengths 4 9.55k | repo stringlengths 7 96 | path stringlengths 4 178 | language stringclasses 1
value |
|---|---|---|---|---|
MethodDeclaration |
filterByTags() {
const allTag = this.tags.find((t) => t.name === `All`);
if (allTag?.selected) {
this.filteredBlogPosts = this.blogPosts;
return;
}
this.filteredBlogPosts = this.blogPosts.filter((blogPost) => {
const selectedTags = this.tags
.filter((t) => t.selected)
... | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
MethodDeclaration |
resetFilters() {
this.tags.forEach((tag) => {
tag.selected = false;
});
const allTag = this.tags.find((t) => t.name === `All`);
if (allTag) {
allTag.selected = true;
}
this.overflowContainer.nativeElement.scroll({
left: 0,
behavior: 'smooth',
});
this.showLeftBut... | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
MethodDeclaration |
searchClicked() {
if (!this.drawer.opened) {
this.showSearchResults();
}
this.drawer.toggle();
} | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
MethodDeclaration |
showSearchResults() {
if (
!this.searchForm.controls.searchCriteria.value ||
this.searchForm.controls.searchCriteria.value?.length < 3
) {
this.searchResults = [];
} else {
this.searchResults = this.blogPosts.filter((blogPost) => {
return (
blogPost.title
... | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
MethodDeclaration |
clearSearchCriteria() {
this.searchForm.controls.searchCriteria.setValue(``);
this.showSearchResults();
} | ArturSymanovic/symartsoft | client/src/app/blog/blog.component.ts | TypeScript |
ClassDeclaration |
class SimpleComponent extends Component {
render() {
return <div>It works</div>;
}
} | jiaqi2019/preact- | test/ts/jsx-namespacce-test.tsx | TypeScript |
InterfaceDeclaration |
interface Element {
unknownProperty: string;
} | jiaqi2019/preact- | test/ts/jsx-namespacce-test.tsx | TypeScript |
MethodDeclaration |
render() {
return <div>It works</div>;
} | jiaqi2019/preact- | test/ts/jsx-namespacce-test.tsx | TypeScript |
ClassDeclaration | /**
* <p>Applies tags to an existing AWS X-Ray group or sampling rule.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { XRayClient, TagResourceCommand } from "@aws-sdk/client-xray"; // ES Modules import
* // const { XRayClient, TagResourceCommand } ... | Acium-Global/aws-sdk-js-v3 | clients/client-xray/commands/TagResourceCommand.ts | TypeScript |
InterfaceDeclaration |
export interface TagResourceCommandInput extends TagResourceRequest {} | Acium-Global/aws-sdk-js-v3 | clients/client-xray/commands/TagResourceCommand.ts | TypeScript |
InterfaceDeclaration |
export interface TagResourceCommandOutput extends TagResourceResponse, __MetadataBearer {} | Acium-Global/aws-sdk-js-v3 | clients/client-xray/commands/TagResourceCommand.ts | TypeScript |
MethodDeclaration | /**
* @internal
*/
resolveMiddleware(
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: XRayClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<TagResourceCommandInput, TagResourceCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration... | Acium-Global/aws-sdk-js-v3 | clients/client-xray/commands/TagResourceCommand.ts | TypeScript |
MethodDeclaration |
private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
return serializeAws_restJson1TagResourceCommand(input, context);
} | Acium-Global/aws-sdk-js-v3 | clients/client-xray/commands/TagResourceCommand.ts | TypeScript |
MethodDeclaration |
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
return deserializeAws_restJson1TagResourceCommand(output, context);
} | Acium-Global/aws-sdk-js-v3 | clients/client-xray/commands/TagResourceCommand.ts | TypeScript |
FunctionDeclaration |
export function and(...conditions: ConditionExpression[]): AndExpression {
return {
conditions,
type: "And",
};
} | tleef/dynamodb-js | src/util/DynamoDBExpression.ts | TypeScript |
FunctionDeclaration |
export function condition(
subject: string,
fn: ExpressionPredicate,
...operands: ComparisonOperand[]
): ConditionExpression {
return {
subject,
...fn(...operands),
};
} | tleef/dynamodb-js | src/util/DynamoDBExpression.ts | TypeScript |
TypeAliasDeclaration |
type ExpressionPredicate = (
...operands: ComparisonOperand[]
) => ConditionExpressionPredicate; | tleef/dynamodb-js | src/util/DynamoDBExpression.ts | TypeScript |
ClassDeclaration |
@Component({
selector: 'my-app',
templateUrl: './app/app.html'
})
export class AppComponent {
title = 'Todos';
constructor(
private router: Router,
private Auth: AuthService,
) {
}
public isAuthorized(): boolean {
return this.Auth.isAuthorized();
}
pub... | alex-lens/node-typescript-starter | client/app/app.component.ts | TypeScript |
MethodDeclaration |
public isAuthorized(): boolean {
return this.Auth.isAuthorized();
} | alex-lens/node-typescript-starter | client/app/app.component.ts | TypeScript |
MethodDeclaration |
public signOut(): void {
this.Auth.signOut();
this.router.navigate([ '/' + CONSTANTS.DASHBOARD_ROUT ]);
} | alex-lens/node-typescript-starter | client/app/app.component.ts | TypeScript |
ArrowFunction |
(
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any -- - FIXME: disabled temporarily on migrate to TS.
state: any,
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any -- - FIXME: disabled... | danmedani/cellxgene | client/src/reducers/categoricalSelection.ts | TypeScript |
FunctionDeclaration |
export default function spring({
config = {
friction: 50,
rigidity: 0.15,
interpolation: 'elastic',
perfectStop: true,
precisionStop: 0.001,
},
callback,
value,
}: SpringConfig): Spring {
const inrtia = new Inrtia({ value, ...config })
const emitter = new Emitter()
inrtia.previous = 0... | bastienrobert/coup-doeil | src/utils/spring.ts | TypeScript |
ArrowFunction |
({ config, value }: SpringConfigWithoutCallback) => {
if (config) {
const { precisionStop, perfectStop, ...interpolationParams } = config
inrtia.interpolationParams = {
...inrtia.interpolationParams,
...interpolationParams,
}
if (precisionStop) inrtia.precisio... | bastienrobert/coup-doeil | src/utils/spring.ts | TypeScript |
InterfaceDeclaration |
interface IntInrtiaConfig {
friction: number
rigidity: number
interpolation: 'basic' | 'bounce' | 'elastic'
perfectStop: boolean
precisionStop: number
} | bastienrobert/coup-doeil | src/utils/spring.ts | TypeScript |
InterfaceDeclaration |
export interface SpringConfig {
config?: InrtiaConfig
callback?: (current?: InrtiaValue, previous?: InrtiaValue) => void
value: InrtiaValue
} | bastienrobert/coup-doeil | src/utils/spring.ts | TypeScript |
InterfaceDeclaration |
export interface Spring {
inrtia: Inrtia
emitter: Emitter
set: (params: SpringConfigWithoutCallback) => void
update: (delta: number) => void
} | bastienrobert/coup-doeil | src/utils/spring.ts | TypeScript |
TypeAliasDeclaration |
type InrtiaValue = number | { [key: string]: any } | any[] | bastienrobert/coup-doeil | src/utils/spring.ts | TypeScript |
TypeAliasDeclaration |
type SpringConfigWithoutCallback = Omit<SpringConfig, 'callback'> | bastienrobert/coup-doeil | src/utils/spring.ts | TypeScript |
TypeAliasDeclaration |
export type InrtiaConfig = Partial<IntInrtiaConfig> | bastienrobert/coup-doeil | src/utils/spring.ts | TypeScript |
MethodDeclaration |
update(delta: number) {
if (!isOn && !inrtia.stopped) {
isOn = true
emitter.emit('on')
} else if (isOn && inrtia.stopped) {
isOn = false
emitter.emit('off')
}
inrtia.previous = inrtia.value
inrtia.update(Math.min(delta, 64))
if (callback) callback(in... | bastienrobert/coup-doeil | src/utils/spring.ts | TypeScript |
ClassDeclaration |
@NgModule({
imports: [
RouterModule.forChild(routes),
],
exports: [
RouterModule,
]
})
export class DragonsRoutingModule { } | pedroeml/dragons-crud | src/app/dragons/dragons-routing.module.ts | TypeScript |
ArrowFunction |
() => {
React.useEffect(() => {
incModCount();
}, []);
return <div>
I'm component Comp_05_1241
<div>
</div>
</div>;
} | FredKSchott/scale-test | src/components/Comp_05_1241.tsx | TypeScript |
ClassDeclaration |
@Controller('uber-h3')
export class UberH3Controller {
constructor(private uberSvc: UberH3Service) {}
@Post('index')
CreateIndex(
@Body('latitude') lat: number,
@Body('longitude') lon: number,
@Body('zoom') zoom: number,
) {
const index = this.uberSvc.CreateIndex(lat, lon, zoom);
return { ... | Ivanov-Mihail/tracking | src/uber-h3/uber-h3.controller.ts | TypeScript |
MethodDeclaration |
@Post('index')
CreateIndex(
@Body('latitude') lat: number,
@Body('longitude') lon: number,
@Body('zoom') zoom: number,
) {
const index = this.uberSvc.CreateIndex(lat, lon, zoom);
return { data: { index: index } };
} | Ivanov-Mihail/tracking | src/uber-h3/uber-h3.controller.ts | TypeScript |
MethodDeclaration |
@Post('reverse')
ReverseH3ToGeo(@Body('h3Index') h3Index: string) {
const response = this.uberSvc.ReverseH3ToGeo(h3Index);
return { data: { coordinates: response } };
} | Ivanov-Mihail/tracking | src/uber-h3/uber-h3.controller.ts | TypeScript |
MethodDeclaration |
@Post('distance')
GetDistanceBetweenHexagons(
@Body('origin') origin: string,
@Body('destination') destination: string,
) {
const response = this.uberSvc.GetDistanceBetweenHexagons(
origin,
destination,
);
return { data: { distance: response } };
} | Ivanov-Mihail/tracking | src/uber-h3/uber-h3.controller.ts | TypeScript |
MethodDeclaration |
@Post('neighbors')
GetNeighbors(
@Body('index') index: string,
@Body('ringSize') ringSize: number,
) {
const response = this.uberSvc.GetNeighbors(index, ringSize);
return { data: { neighborsHexagons: response } };
} | Ivanov-Mihail/tracking | src/uber-h3/uber-h3.controller.ts | TypeScript |
MethodDeclaration |
@Post('polygon') // Вот тут интерсно разобраться - какую фигуру можно задать координатами.
SetPoligon(
@Body('zoom') zoom: number,
@Body('coordinates') coordinates: number[][],
@Body('type') type: string,
) {
const response = this.uberSvc.SetPoligon(coordinates, zoom);
return { data: { polygon:... | Ivanov-Mihail/tracking | src/uber-h3/uber-h3.controller.ts | TypeScript |
MethodDeclaration |
@Post('multi/polygon')
SetMultiPoligon(@Body('hexagons') hexagons) {
const response = this.uberSvc.SetMultiPoligon(hexagons);
return { data: { distance: response } };
} | Ivanov-Mihail/tracking | src/uber-h3/uber-h3.controller.ts | TypeScript |
MethodDeclaration |
@Post('parent')
GetParentIndex(@Body('h3Index') h3Index: string, @Body('zoom') zoom: number){
const response = this.uberSvc.GetParentIndex(h3Index, zoom);
return { data: { parent: response } };
} | Ivanov-Mihail/tracking | src/uber-h3/uber-h3.controller.ts | TypeScript |
MethodDeclaration |
@Post('points')
GetPointsFromIndexes(@Body('points') points){
const response = this.uberSvc.GetArrayOfPoints(points);
return { data: { indexes: response } };
} | Ivanov-Mihail/tracking | src/uber-h3/uber-h3.controller.ts | TypeScript |
FunctionDeclaration | /**
* Crisp WebsiteVisitors Resource
* @class
* @classdesc This is the Crisp Website Visitors Resource
*/
declare function WebsiteVisitors(service: any, crisp: any): void; | crisp-im/node-crisp-api | types/resources/WebsiteVisitors.d.ts | TypeScript |
ClassDeclaration |
declare class WebsiteVisitors {
/**
* Crisp WebsiteVisitors Resource
* @class
* @classdesc This is the Crisp Website Visitors Resource
*/
constructor(service: any, crisp: any);
} | crisp-im/node-crisp-api | types/resources/WebsiteVisitors.d.ts | TypeScript |
ArrowFunction |
(b: any, i: number) => {
bienes += `(?, ${b})${req.body.bienes.length - 1 == i ? '' : ', '}`
} | edalvb/hdfisme | server/src/controllers/bien/bienController.ts | TypeScript |
ClassDeclaration |
class BienController {
public async leerTodos(req: any, res: Response) {
// Se debe validar si el usuario tiene el privilegio de ejecutar este método.
if (req.pleer != 2) res.status(404).send('No tienes permiso para leer los Bienes');
const bien = await pool.query('SELECT * FROM vista_bien... | edalvb/hdfisme | server/src/controllers/bien/bienController.ts | TypeScript |
MethodDeclaration |
public async leerTodos(req: any, res: Response) {
// Se debe validar si el usuario tiene el privilegio de ejecutar este método.
if (req.pleer != 2) res.status(404).send('No tienes permiso para leer los Bienes');
const bien = await pool.query('SELECT * FROM vista_bienes;');
res.json(bie... | edalvb/hdfisme | server/src/controllers/bien/bienController.ts | TypeScript |
MethodDeclaration |
public async leer(req: Request, res: Response): Promise<any> {
const { id } = req.params;
const bien = await pool.query('SELECT * FROM bien WHERE idbien = ?'
//const bien = await pool.query('SELECT e.descripcion, a.marca, o.modelo, s.estado, e.color, e.precio, e.comentario, e.fecha_adquisic... | edalvb/hdfisme | server/src/controllers/bien/bienController.ts | TypeScript |
MethodDeclaration |
public async crear(req: Request, res: Response): Promise<void> {
var arr: any = []; // Se crea un array
var i = 0; // Se crea una variable que irá aunmentando según la cantidad de parámetros de req.body
for (var j in req.body) {
arr[i] = req.body[j]; // Se asigna lo que tenga dentro... | edalvb/hdfisme | server/src/controllers/bien/bienController.ts | TypeScript |
MethodDeclaration |
public async eliminar(req: Request, res: Response) {
const { id } = req.params;
try {
await pool.query('DELETE FROM bien WHERE idbien = ?', [id]);
res.json({ mensaje: 'El bien fué eliminado' });
} catch (e) {
console.log(e);
let mensaje = "Lo sien... | edalvb/hdfisme | server/src/controllers/bien/bienController.ts | TypeScript |
MethodDeclaration |
public async actualizar(req: Request, res: Response): Promise<void> {
const { id } = req.params;
await pool.query('UPDATE bien set ? WHERE idbien = ?', [req.body, id]);
res.json({ mensaje: 'El bien fué actualizado.' })
} | edalvb/hdfisme | server/src/controllers/bien/bienController.ts | TypeScript |
MethodDeclaration |
public async agrupar(req: Request, res: any): Promise<void> {
let bienes: string = '';
try {
// Aquí voy a ejecutar el ordenamiendo del string de los bienes.
req.body.bienes.forEach((b: any, i: number) => {
bienes += `(?, ${b})${req.body.bienes.length - 1 == i ?... | edalvb/hdfisme | server/src/controllers/bien/bienController.ts | TypeScript |
MethodDeclaration |
public async leerTodosGrupos(req: any, res: Response) {
// Se debe validar si el usuario tiene el privilegio de ejecutar este método.
if (req.pleer != 2) res.status(404).send('No tienes permiso para leer los Bienes');
const bien = await pool.query('SELECT idgrupo_bien, grupo_bien, motivo FROM ... | edalvb/hdfisme | server/src/controllers/bien/bienController.ts | TypeScript |
MethodDeclaration |
public async leerBienesGrupo(req: any, res: Response) {
const { id } = req.params;
// Se debe validar si el usuario tiene el privilegio de ejecutar este método.
if (req.pleer != 2) res.status(404).send('No tienes permiso para leer los Bienes');
const bien = await pool.query('CALL sp_le... | edalvb/hdfisme | server/src/controllers/bien/bienController.ts | TypeScript |
ArrowFunction |
(index: number): string => {
const colors = [
"bg-fuschia-40",
"bg-pink-40",
"bg-orange-40",
"bg-teal-40",
"bg-cyan-40",
"bg-blue-40",
"bg-indigo-40",
]
return colors[index % colors.length]
} | 1joySam/admin | src/utils/color.ts | TypeScript |
ClassDeclaration |
@Injectable()
export class HealthService implements IHealthService {
constructor(private readonly loggerService: ILoggerService) {}
async getText(): Promise<string> {
const appName = `${name} UP!!`;
this.loggerService.log(appName, `${HealthService.name}/${this.getText.name}`);
return appName;
}
} | mikemajesty/nestjs-microservice-boilerplate | src/modules/health/service.ts | TypeScript |
MethodDeclaration |
async getText(): Promise<string> {
const appName = `${name} UP!!`;
this.loggerService.log(appName, `${HealthService.name}/${this.getText.name}`);
return appName;
} | mikemajesty/nestjs-microservice-boilerplate | src/modules/health/service.ts | TypeScript |
ArrowFunction |
(): void => {
// Create the browser window.
const mainWindow = new BrowserWindow({
height: 600,
width: 800,
});
// and load the index.html of the app.
mainWindow.loadFile(path.join(__dirname, '../src/index.html'));
// Open the DevTools.
mainWindow.webContents.openDevTools();
} | 17radix/electron-forge | packages/template/typescript/tmpl/index.ts | TypeScript |
ArrowFunction |
() => {
if (process.platform !== 'darwin') {
app.quit();
}
} | 17radix/electron-forge | packages/template/typescript/tmpl/index.ts | TypeScript |
ArrowFunction |
() => {
// On OS X it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (BrowserWindow.getAllWindows().length === 0) {
createWindow();
}
} | 17radix/electron-forge | packages/template/typescript/tmpl/index.ts | TypeScript |
ArrowFunction |
() => {
const jetzt = Date.now();
const elapsed = jetzt - this.offset;
this.setState({ elapsed });
} | smartems/smartems | public/app/features/explore/ElapsedTime.tsx | TypeScript |
ClassDeclaration | /**
* Shows an incremental time ticker of elapsed time from some event.
*/
export default class ElapsedTime extends PureComponent<Props, State> {
offset: number;
timer: number;
state = {
elapsed: 0,
};
start() {
this.offset = Date.now();
this.timer = window.setInterval(this.tick, INTERVAL);
... | smartems/smartems | public/app/features/explore/ElapsedTime.tsx | TypeScript |
InterfaceDeclaration |
export interface Props {
time?: number;
// Use this to reset the timer. Any value is allowed just need to be !== from the previous.
// Keep in mind things like [] !== [] or {} !== {}.
resetKey?: any;
className?: string;
humanize?: boolean;
} | smartems/smartems | public/app/features/explore/ElapsedTime.tsx | TypeScript |
InterfaceDeclaration |
export interface State {
elapsed: number;
} | smartems/smartems | public/app/features/explore/ElapsedTime.tsx | TypeScript |
MethodDeclaration |
start() {
this.offset = Date.now();
this.timer = window.setInterval(this.tick, INTERVAL);
} | smartems/smartems | public/app/features/explore/ElapsedTime.tsx | TypeScript |
MethodDeclaration |
UNSAFE_componentWillReceiveProps(nextProps: Props) {
if (nextProps.time) {
clearInterval(this.timer);
} else if (this.props.time) {
this.start();
}
if (nextProps.resetKey !== this.props.resetKey) {
clearInterval(this.timer);
this.start();
}
} | smartems/smartems | public/app/features/explore/ElapsedTime.tsx | TypeScript |
MethodDeclaration |
componentDidMount() {
this.start();
} | smartems/smartems | public/app/features/explore/ElapsedTime.tsx | TypeScript |
MethodDeclaration |
componentWillUnmount() {
clearInterval(this.timer);
} | smartems/smartems | public/app/features/explore/ElapsedTime.tsx | TypeScript |
MethodDeclaration |
render() {
const { elapsed } = this.state;
const { className, time, humanize } = this.props;
const value = (time || elapsed) / 1000;
let displayValue = `${value.toFixed(1)}s`;
if (humanize) {
const duration = toDuration(elapsed);
const hours = duration.hours();
const minutes = dur... | smartems/smartems | public/app/features/explore/ElapsedTime.tsx | TypeScript |
ArrowFunction |
(role) =>
endpointRoles.includes(role) | Megumikawa/cash-program-design-wizard | server/src/auth/roles-program.guard.ts | TypeScript |
ClassDeclaration |
@Injectable()
export class RolesProgramGuard implements CanActivate {
public constructor(
private readonly reflector: Reflector,
private readonly userService: UserService,
) {}
public async canActivate(context: ExecutionContext): Promise<boolean> {
let hasAccess = false;
const endpointRoles = t... | Megumikawa/cash-program-design-wizard | server/src/auth/roles-program.guard.ts | TypeScript |
MethodDeclaration |
public async canActivate(context: ExecutionContext): Promise<boolean> {
let hasAccess = false;
const endpointRoles = this.reflector.get<UserRoleEnum[]>(
'roles',
context.getHandler(),
);
if (!endpointRoles) {
return true;
}
const request = context.switchToHttp().getRequest(... | Megumikawa/cash-program-design-wizard | server/src/auth/roles-program.guard.ts | TypeScript |
MethodDeclaration |
private async hasAccess(
user: UserEntity,
endpointRoles: UserRoleEnum[],
request: any,
): Promise<boolean> {
if (!request.params.programId && !request.body.programId) {
throw new HttpException(
'Program id not in params or body',
HttpStatus.NOT_FOUND,
);
}
let pr... | Megumikawa/cash-program-design-wizard | server/src/auth/roles-program.guard.ts | TypeScript |
ArrowFunction |
value => {
n += Number(value.quantity);
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
ArrowFunction |
(value: any): value is APIResponseError => {
if (value && value.code && value.message) return true;
return false;
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
ArrowFunction |
(customer: Customer): Address => {
const result: Address = {};
for (const p of addressProperties) {
if (!customer[p]) continue;
result[p] = customer[p];
}
if (customer.telfixe) {
result.tel = customer.telfixe;
}
if (customer.telport) {
result.tel = customer.telport;
}
return result;
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
ArrowFunction |
(address: Address, customer?: Customer): Customer => {
if (!customer) customer = {};
for (const p of addressProperties) {
if (!address[p]) continue;
customer[p] = address[p];
}
if (address.tel) {
if (!customer.telfixe) customer.telfixe = address.tel;
if (!customer.telport) customer.telport = a... | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
ArrowFunction |
(item: CardItem): CardItem => {
return {
index: item.index,
product: { id: item.product.id },
decliId: item.decliId,
quantity: item.quantity
};
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
ClassDeclaration |
export class Card implements ICard {
constructor(json?: ICard) {
if (json) this.update(json);
}
items: CardItem[] = [];
total: number = 0;
update(json: ICard) {
if (json.items != undefined) {
this.items.length = 0;
for (const i of json.items) this.items.push(i);
}
this.total = Num... | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface APIResponse {
success: boolean;
body: any;
sessionId: string;
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface APIResponseError {
code: number;
message: string;
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface APISession {
session_id: string;
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface ShopTree {
shopCategories: Category[];
cmsContents: CMSContent[];
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface IIdentifiable {
id?: string;
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface ILabelable extends IIdentifiable {
label?: string;
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface IDescriptable extends ILabelable {
description?: string;
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface Product extends IDescriptable {
price?: string;
ref?: string;
declinations?: string[];
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface ProductDetail extends Product {
images: string[];
index: string;
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface Category extends IDescriptable {
content: boolean;
children: Product[];
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface CMSContent extends IDescriptable {} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface Customer extends IIdentifiable {
ref?: string;
datecrea?: string;
raison?: string;
entreprise?: string;
siret?: string;
intracom?: string;
nom?: string;
prenom?: string;
adresse1?: string;
adresse2?: string;
adresse3?: string;
cpostal?: string;
ville?: string;
pays?: string... | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface Address {
id?: string;
libelle?: string;
client?: string;
raison?: string;
entreprise?: string;
nom?: string;
prenom?: string;
adresse1?: string;
adresse2?: string;
adresse3?: string;
cpostal?: string;
ville?: string;
tel?: string;
pays?: string;
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface Country {
id: string;
name: string;
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface CardItemPerso {
declinaison: string;
valeur?: string;
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface CardItem {
index?: number;
product?: Product;
decliId?: string;
quantity?: number;
parent?: string;
perso?: CardItemPerso[];
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface ICard {
items: CardItem[];
total: number;
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface IDeclinationItem {
id?: string;
size?: string;
price?: string;
[p: string]: any;
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface IDeclination {
label?: string;
items?: {
[id: string]: IDeclinationItem;
};
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
InterfaceDeclaration |
export interface IDeclinationMap {
[id: string]: {
label: string;
items: {
[id: string]: IDeclinationItem;
};
};
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
MethodDeclaration |
update(json: ICard) {
if (json.items != undefined) {
this.items.length = 0;
for (const i of json.items) this.items.push(i);
}
this.total = Number(json.total);
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
MethodDeclaration |
validateIndexes() {
const n = this.numItems;
for (const i in this.items) this.items[i].index = Number(i);
} | raphael-volt/ketmie-thelia-ngx | ngnx/libs/thelia/model/index.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.