repo
stringlengths
7
64
file_url
stringlengths
81
338
file_path
stringlengths
5
257
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:25:31
2026-01-05 01:50:38
truncated
bool
2 classes
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/index.ts
src/app/components/index.ts
export * from './header/header.component'; export * from './micropost-list/micropost-list.module'; export * from './micropost-list/micropost-list.component'; export * from './micropost-new/micropost-new.component'; export * from './user-stats/user-stats.module'; export * from './user-stats/user-stats.component';
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/user-stats/user-stats.module.ts
src/app/components/user-stats/user-stats.module.ts
import {CommonModule} from "@angular/common"; import {NgModule} from "@angular/core/src/metadata/ng_module"; import {RouterModule} from "@angular/router"; import {SharedModule} from "../../shared"; import {UserStatsComponent} from "./user-stats.component"; @NgModule({ imports: [ CommonModule, RouterModule, ...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/user-stats/user-stats.component.ts
src/app/components/user-stats/user-stats.component.ts
import {Component, OnInit, Input} from "@angular/core"; import {User} from "../../core/domains"; import {UserService} from "../../core/services/user.service"; import {HttpErrorHandler} from "../../core/services/http-error-handler"; import {styles} from './user-stats.component.styles'; @Component({ selector: 'mpt-use...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/user-stats/user-stats.component.spec.ts
src/app/components/user-stats/user-stats.component.spec.ts
import {Component, DebugElement} from "@angular/core"; import {By} from "@angular/platform-browser/src/dom/debug/by"; import {getDOM} from "@angular/platform-browser/src/dom/dom_adapter"; import { inject, ComponentFixture, TestBed, fakeAsync } from "@angular/core/testing"; import {ResponseOptions, Response} fro...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/user-stats/user-stats.component.styles.ts
src/app/components/user-stats/user-stats.component.styles.ts
import {StyleSheet} from "aphrodite"; import {colors} from "../../styles/colors.styles"; export const styles = StyleSheet.create({ gravatar: { float: 'left', marginRight: '8px', }, section: { padding: '8px 0', borderBottom: `1px solid ${colors.borderColor}`, }, userName: { fontSize: '1.4e...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/micropost-new/micropost-new.component.spec.ts
src/app/components/micropost-new/micropost-new.component.spec.ts
import {Component, DebugElement} from "@angular/core"; import {By} from "@angular/platform-browser/src/dom/debug/by"; import {inject, TestBed, fakeAsync} from "@angular/core/testing"; import {Response, BaseResponseOptions} from "@angular/http"; import {MockBackend} from "@angular/http/testing"; import {MicropostNewComp...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/micropost-new/micropost-new.component.ts
src/app/components/micropost-new/micropost-new.component.ts
import {Component, EventEmitter, Output} from "@angular/core"; import {MicropostService} from "../../core/services/micropost.service"; import {HttpErrorHandler} from "../../core/services/http-error-handler"; import {styles} from "./micropost-new.component.styles"; import {ToastService} from "../../core/toast/toast.serv...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/micropost-new/micropost-new.component.styles.ts
src/app/components/micropost-new/micropost-new.component.styles.ts
import {StyleSheet} from "aphrodite"; export const styles = StyleSheet.create({ formGroup: { marginBottom: '8px', }, });
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/micropost-list/micropost-list.component.ts
src/app/components/micropost-list/micropost-list.component.ts
import {Component, OnInit, Input} from "@angular/core"; import {MicropostListService} from "./micropost-list.service"; import {Micropost, UserStats} from "../../core/domains"; import {MicropostService} from "../../core/services/micropost.service"; import {UserService} from "../../core/services/user.service"; import {Ht...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/micropost-list/micropost-list.component.styles.ts
src/app/components/micropost-list/micropost-list.component.styles.ts
import {StyleSheet} from "aphrodite"; import {list_1} from "../../styles/shared.styles"; import {colors} from "../../styles/colors.styles"; export const styles = StyleSheet.create({ list: list_1, content: { display: 'block', }, timestamp: { color: colors.weakTextColor, }, });
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/micropost-list/micropost-list.service.ts
src/app/components/micropost-list/micropost-list.service.ts
import {Observable} from "rxjs/Observable"; import {Injectable} from "@angular/core"; import {Micropost} from "../../core/domains"; import {objToSearchParams} from "../../core/services/helpers"; import {JsonHttp} from "../../core/services"; const url = (userId: string): string => `/api/users/${userId}/microposts`; @I...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/micropost-list/micropost-list.service.spec.ts
src/app/components/micropost-list/micropost-list.service.spec.ts
import {inject, TestBed} from "@angular/core/testing"; import { ResponseOptions, Response, RequestMethod, HttpModule } from "@angular/http"; import {MockBackend} from "@angular/http/testing"; import {MicropostListService} from "./micropost-list.service"; import {APP_TEST_HTTP_PROVIDERS} from "../../../testing";...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/micropost-list/micropost-list.component.spec.ts
src/app/components/micropost-list/micropost-list.component.spec.ts
import {Component, DebugElement} from "@angular/core"; import {By} from "@angular/platform-browser/src/dom/debug/by"; import {getDOM} from "@angular/platform-browser/src/dom/dom_adapter"; import {inject, TestBed, fakeAsync} from "@angular/core/testing"; import {ResponseOptions, Response} from "@angular/http"; import {M...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/micropost-list/micropost-list.module.ts
src/app/components/micropost-list/micropost-list.module.ts
import {CommonModule} from "@angular/common"; import {NgModule} from "@angular/core/src/metadata/ng_module"; import {SharedModule} from "../../shared"; import {MicropostListComponent} from "./micropost-list.component"; import {MicropostListService} from "./micropost-list.service"; @NgModule({ imports: [ CommonMo...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/header/header.module.ts
src/app/components/header/header.module.ts
import {CommonModule} from "@angular/common"; import {NgModule} from "@angular/core/src/metadata/ng_module"; import {RouterModule} from "@angular/router"; import {SharedModule} from "../../shared"; import {HeaderComponent} from "./header.component"; @NgModule({ imports: [ CommonModule, RouterModule, Shar...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/header/header.component.ts
src/app/components/header/header.component.ts
import {Component, OnInit, HostListener} from "@angular/core"; import {Router} from "@angular/router"; import {AuthService} from "../../core/services/auth.service"; import {styles} from "./header.component.styles"; @Component({ selector: 'mpt-header', templateUrl: 'header.component.html', }) export class HeaderCom...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/header/header.component.spec.ts
src/app/components/header/header.component.spec.ts
import {Observable} from "rxjs"; import {Component, DebugElement} from "@angular/core"; import {Location} from "@angular/common"; import {By} from "@angular/platform-browser/src/dom/debug/by"; import {getDOM} from "@angular/platform-browser/src/dom/dom_adapter"; import { inject, ComponentFixture, TestBed, fakeA...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/components/header/header.component.styles.ts
src/app/components/header/header.component.styles.ts
import {StyleSheet} from "aphrodite"; export const styles = StyleSheet.create({ navbarToggler: { color: 'white', }, });
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/core.module.ts
src/app/core/core.module.ts
import {CommonModule} from "@angular/common"; import {NgModule} from "@angular/core/src/metadata/ng_module"; import {SkipSelf, Optional} from "@angular/core"; import {HttpErrorHandler} from "./services/http-error-handler"; import {AuthService} from "./services/auth.service"; import {MicropostService} from "./services/m...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/domains.ts
src/app/core/domains.ts
export interface Micropost { id:number; content:string; user:User; createdAt:number; isMyPost?:boolean; } export interface User { id:string|number; email?:string; name?:string; userStats?:UserStats; isFollowedByMe?:boolean; avatarHash?:string; } export interface RelatedUser extends User { rela...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/dto.ts
src/app/core/dto.ts
export interface Page<T> { content: T[]; totalPages: number; totalElements: number; } export interface PageRequest { page: number; size: number; } export interface UserParams { email?: string; password?: string; name?: string; }
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/index.ts
src/app/core/index.ts
export * from "./core.module";
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/auth.service.spec.ts
src/app/core/services/auth.service.spec.ts
import {inject, TestBed} from "@angular/core/testing"; import { ResponseOptions, Response, RequestMethod, HttpModule } from "@angular/http"; import {MockBackend} from "@angular/http/testing"; import {AuthService} from "./auth.service"; import {APP_TEST_HTTP_PROVIDERS} from "../../../testing"; import {User} from...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/micropost.service.ts
src/app/core/services/micropost.service.ts
import {Observable} from "rxjs/Observable"; import {Injectable} from "@angular/core"; import {Response} from "@angular/http"; import {JsonHttp} from "./"; const url = '/api/microposts'; @Injectable() export class MicropostService { constructor(private http: JsonHttp) { } create(content: string): Observable<Re...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/http-error-handler.spec.ts
src/app/core/services/http-error-handler.spec.ts
import {inject, TestBed} from "@angular/core/testing"; import {Router} from "@angular/router"; import {HttpErrorHandler} from "./http-error-handler"; import {AuthService} from "./auth.service"; import {CoreModule} from "../core.module"; import {APP_TEST_HTTP_PROVIDERS} from "../../../testing"; describe('HttpErrorHandl...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/user.service.ts
src/app/core/services/user.service.ts
import {Observable} from "rxjs/Observable"; import {Injectable} from "@angular/core"; import {Response} from "@angular/http"; import {User} from "../domains"; import {objToSearchParams} from "./helpers"; import {PageRequest, Page, UserParams} from "../dto"; import {JsonHttp} from "./"; const url = '/api/users'; const ...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/json-http.ts
src/app/core/services/json-http.ts
import {Observable} from "rxjs/Observable"; import {Injectable} from "@angular/core"; import { Http, RequestOptionsArgs, RequestOptions, Response, Headers } from "@angular/http"; const mergeAuthToken = (options: RequestOptionsArgs = {}) => { let newOptions = new RequestOptions({}).merge(options); let new...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/json-http.spec.ts
src/app/core/services/json-http.spec.ts
import {inject, TestBed} from "@angular/core/testing"; import { BaseResponseOptions, Response, Http, RequestMethod, HttpModule } from "@angular/http"; import {MockBackend} from "@angular/http/testing"; import {JsonHttp} from "./"; import {APP_TEST_HTTP_PROVIDERS} from "../../../testing"; describe('JsonHttp',...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/private-page.guard.ts
src/app/core/services/private-page.guard.ts
import {Injectable} from "@angular/core"; import {CanActivate, Router} from "@angular/router"; import {AuthService} from "./auth.service"; @Injectable() export class PrivatePageGuard implements CanActivate { constructor(private router:Router, private authService:AuthService) { } canActivate() { if (!this.a...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/public-page.guard.ts
src/app/core/services/public-page.guard.ts
import {Injectable} from "@angular/core"; import {CanActivate, Router} from "@angular/router"; import {AuthService} from "./auth.service"; @Injectable() export class PublicPageGuard implements CanActivate { constructor(private router: Router, private authService: AuthService) { } canActivate() { if (this.a...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/helpers.ts
src/app/core/services/helpers.ts
import {URLSearchParams} from "@angular/http"; export const objToSearchParams = (obj:any):URLSearchParams => { let params = new URLSearchParams(); for (let k in obj) { if (obj[k]) params.append(k, obj[k]); } return params; };
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/http-error-handler.ts
src/app/core/services/http-error-handler.ts
import {Injectable} from "@angular/core"; import {Router} from "@angular/router"; import {AuthService} from "./auth.service"; import {ToastService} from "../toast/toast.service"; @Injectable() export class HttpErrorHandler { constructor(private router: Router, private authService: AuthService, ...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/micropost.service.spec.ts
src/app/core/services/micropost.service.spec.ts
import {inject, TestBed} from "@angular/core/testing"; import { Response, BaseResponseOptions, RequestMethod, HttpModule } from "@angular/http"; import {MockBackend} from "@angular/http/testing"; import {MicropostService} from "./micropost.service"; import {APP_TEST_HTTP_PROVIDERS} from "../../../testing"; des...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/auth.service.ts
src/app/core/services/auth.service.ts
import {Observable} from "rxjs/Observable"; import {Subject} from "rxjs/Subject"; import {Injectable} from "@angular/core"; import {Response} from "@angular/http"; import {JsonHttp} from "./"; import {User} from "../domains"; const jwtDecode = require('jwt-decode'); @Injectable() export class AuthService { private...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/index.ts
src/app/core/services/index.ts
export * from "./json-http";
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/profile-data.resolver.ts
src/app/core/services/profile-data.resolver.ts
import { Resolve, ActivatedRouteSnapshot, RouterStateSnapshot } from "@angular/router"; import {Injectable} from "@angular/core"; import {UserService} from "./user.service"; @Injectable() export class ProfileDataResolver implements Resolve<any> { constructor(private userService: UserService) { } resolve(...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/services/user.service.spec.ts
src/app/core/services/user.service.spec.ts
import {inject, TestBed} from "@angular/core/testing"; import { ResponseOptions, Response, BaseResponseOptions, RequestMethod, HttpModule } from "@angular/http"; import {MockBackend} from "@angular/http/testing"; import {UserService} from "./user.service"; import {UserParams} from "../dto"; import {APP_TEST_H...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/forms/validator.spec.ts
src/app/core/forms/validator.spec.ts
import {FormControl, FormGroup} from "@angular/forms"; import {Validators} from "./validators"; describe('Validator', () => { describe('.match', () => { it('validates the match of two controls', () => { const ctrl1 = new FormControl('test1'); const ctrl2 = new FormControl('test2'); expect(Vali...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/forms/validators.ts
src/app/core/forms/validators.ts
import {FormControl, ValidatorFn} from "@angular/forms"; export class Validators { static match(c1: FormControl, c2: FormControl): ValidatorFn { return (): {[key: string]: any} => { if (c1.value !== c2.value) return {unmatched: true}; return {}; }; } }
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/forms/index.ts
src/app/core/forms/index.ts
export * from './validators'; export const EMAIL_PATTERN = "^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$";
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/toast/toast.module.ts
src/app/core/toast/toast.module.ts
import {CommonModule} from "@angular/common"; import {NgModule} from "@angular/core/src/metadata/ng_module"; import {ToastService} from "./toast.service"; import {ToastComponent} from "./toast.component"; import {SharedModule} from "../../shared/shared.module"; @NgModule({ imports: [ CommonModule, SharedModu...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/toast/toast.component.ts
src/app/core/toast/toast.component.ts
import {Component, OnInit} from "@angular/core"; import {Toast} from "./toast"; import {styles} from "./toast.component.styles"; import {ToastService} from "./toast.service"; @Component({ selector: 'mpt-toast', templateUrl: 'toast.component.html', }) export class ToastComponent implements OnInit { styles: any =...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/toast/toast.component.spec.ts
src/app/core/toast/toast.component.spec.ts
import {Component, DebugElement} from "@angular/core"; import {getDOM} from "@angular/platform-browser/src/dom/dom_adapter"; import { TestBed, fakeAsync, inject, ComponentFixture } from "@angular/core/testing"; import {CoreModule} from "../core.module"; import {ToastModule} from "./toast.module"; import {By} fr...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/toast/toast.ts
src/app/core/toast/toast.ts
export interface ToastEvent { message: string; level: string; } export interface Toast { message: string; level: string; styles: any[]; }
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/toast/toast.service.ts
src/app/core/toast/toast.service.ts
import {Injectable} from "@angular/core"; import {Observable} from "rxjs/Observable"; import {Subject} from "rxjs/Subject"; import {Toast, ToastEvent} from "./toast"; @Injectable() export class ToastService { private toastEvents: Subject<ToastEvent> = new Subject<Toast>(); get events(): Observable<ToastEvent> { ...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/toast/toast.service.spec.ts
src/app/core/toast/toast.service.spec.ts
import {ToastService} from "./toast.service"; import {TestBed, inject} from "@angular/core/testing"; describe('ToastService', () => { let toastService: ToastService; beforeEach(() => { TestBed.configureTestingModule({ providers: [ ToastService, ], }); }); beforeEach(inject([ToastS...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/core/toast/toast.component.styles.ts
src/app/core/toast/toast.component.styles.ts
import {StyleSheet} from "aphrodite"; export const styles = StyleSheet.create({ wrapper: { position: 'fixed', top: '12px', right: '12px', zIndex: '999999', display: 'table', }, list: { marginBottom: '12px', }, toastBase: { color: 'white', opacity: '0.9', width: '285px', ...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/shared.module.ts
src/app/shared/shared.module.ts
import {CommonModule} from "@angular/common"; import {NgModule} from "@angular/core/src/metadata/ng_module"; import {TimeAgoPipe} from "./pipes"; import {GravatarComponent} from "./gravatar/gravatar.component"; import {PagerComponent} from "./pager/pager.component"; import {FollowBtnModule} from "./follow-btn/follow-bt...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/index.ts
src/app/shared/index.ts
export * from "./shared.module";
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/gravatar/gravatar.component.styles.ts
src/app/shared/gravatar/gravatar.component.styles.ts
import {StyleSheet} from "aphrodite"; import {spinner} from "../../styles/mixin.styles"; export const styles = StyleSheet.create({ wrapper: { position: 'relative', }, loading: spinner(24), });
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/gravatar/gravatar.component.spec.ts
src/app/shared/gravatar/gravatar.component.spec.ts
import {Component, DebugElement} from "@angular/core"; import {By} from "@angular/platform-browser/src/dom/debug/by"; import {getDOM} from "@angular/platform-browser/src/dom/dom_adapter"; import {TestBed, fakeAsync} from "@angular/core/testing"; import {GravatarComponent} from "./gravatar.component"; import {StylesDire...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/gravatar/gravatar.component.ts
src/app/shared/gravatar/gravatar.component.ts
import {Component, OnChanges, Input, SimpleChanges} from "@angular/core"; import {styles} from "./gravatar.component.styles"; @Component({ selector: 'mpt-gravatar', templateUrl: './gravatar.component.html', }) export class GravatarComponent implements OnChanges { styles: any = styles; imageUrl: string; isLo...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/pipes/time-ago.pipe.ts
src/app/shared/pipes/time-ago.pipe.ts
import {Pipe, PipeTransform} from "@angular/core"; const ta = require('time-ago')(); @Pipe({name: 'timeAgo'}) export class TimeAgoPipe implements PipeTransform { transform(value: any) { return ta.ago(value); } }
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/pipes/time-ago.pipe.spec.ts
src/app/shared/pipes/time-ago.pipe.spec.ts
import {TimeAgoPipe} from "./time-ago.pipe"; describe('TimeAgoPipe', () => { let pipe:TimeAgoPipe; beforeEach(() => { pipe = new TimeAgoPipe(); jasmine.clock().mockDate(new Date(2014, 10, 4)); }); it('shows a text for time ago', () => { expect(pipe.transform(new Date(2014, 10, 3))).toEqual('1 da...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/pipes/index.ts
src/app/shared/pipes/index.ts
export * from './time-ago.pipe';
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/pager/pager.component.ts
src/app/shared/pager/pager.component.ts
import {Component, EventEmitter, Input, Output} from "@angular/core"; @Component({ selector: 'mpt-pager', templateUrl: './pager.component.html', }) export class PagerComponent { @Input() currentPage: number = 1; @Input() totalPages: number; @Output() pageChanged = new EventEmitter(); showPrev() { if...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/pager/pager.component.spec.ts
src/app/shared/pager/pager.component.spec.ts
import {Component, DebugElement} from "@angular/core"; import {By} from "@angular/platform-browser/src/dom/debug/by"; import {TestBed, fakeAsync} from "@angular/core/testing"; import {PagerComponent} from "./pager.component"; describe('PagerComponent', () => { @Component({ template: `<mpt-pager (pageChanged)="d...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/follow-btn/follow-btn.service.spec.ts
src/app/shared/follow-btn/follow-btn.service.spec.ts
import {inject, TestBed} from "@angular/core/testing"; import { Response, BaseResponseOptions, RequestMethod, HttpModule } from "@angular/http"; import {MockBackend} from "@angular/http/testing"; import {FollowBtnService} from "./follow-btn.service"; import {APP_TEST_HTTP_PROVIDERS} from "../../../testing"; de...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/follow-btn/follow-btn.module.ts
src/app/shared/follow-btn/follow-btn.module.ts
import {CommonModule} from "@angular/common"; import {NgModule} from "@angular/core/src/metadata/ng_module"; import {FollowBtnComponent} from "./follow-btn.component"; import {FollowBtnService} from "./follow-btn.service"; @NgModule({ imports: [CommonModule], declarations: [ FollowBtnComponent, ], provider...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/follow-btn/follow-btn.component.spec.ts
src/app/shared/follow-btn/follow-btn.component.spec.ts
import {Component, DebugElement} from "@angular/core"; import {By} from "@angular/platform-browser/src/dom/debug/by"; import {inject, TestBed, fakeAsync} from "@angular/core/testing"; import {Response, ResponseOptions} from "@angular/http"; import {MockBackend} from "@angular/http/testing"; import {RouterTestingModule}...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/follow-btn/follow-btn.service.ts
src/app/shared/follow-btn/follow-btn.service.ts
import {Observable} from "rxjs/Observable"; import {Injectable} from "@angular/core"; import {Response} from "@angular/http"; import {JsonHttp} from "../../core/services"; const url = '/api/relationships'; @Injectable() export class FollowBtnService { constructor(private http:JsonHttp) { } follow(followerId:s...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/follow-btn/follow-btn.component.ts
src/app/shared/follow-btn/follow-btn.component.ts
import { Component, OnChanges, EventEmitter, Output, Input, SimpleChanges } from "@angular/core"; import {FollowBtnService} from "./follow-btn.service"; import {UserService} from "../../core/services/user.service"; import {HttpErrorHandler} from "../../core/services/http-error-handler"; import {User} from "...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/directives/styles.directive.spec.ts
src/app/shared/directives/styles.directive.spec.ts
import {Component, DebugElement} from "@angular/core"; import {TestBed, fakeAsync, ComponentFixture} from "@angular/core/testing"; import {By} from "@angular/platform-browser"; import {StylesDirective} from "./styles.directive"; import {StyleSheet} from "aphrodite"; describe('StylesDirective', () => { const styles ...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/app/shared/directives/styles.directive.ts
src/app/shared/directives/styles.directive.ts
import { Directive, ElementRef, Input, Renderer, OnChanges, SimpleChanges } from "@angular/core"; import {css} from "aphrodite"; @Directive({ selector: '[mptStyles]' }) export class StylesDirective implements OnChanges { @Input('mptStyles') mptStyles: any[]; constructor(private el: ElementRef, priv...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/testing/helpers.ts
src/testing/helpers.ts
import {inject, ComponentFixture, tick} from "@angular/core/testing"; import {AuthService} from "../app/core/services/auth.service"; export function login() { return inject([AuthService], (authService) => { spyOn(authService, 'isSignedIn').and.returnValue(true); }); } export function advance(fixture: Componen...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/testing/index.ts
src/testing/index.ts
import {RequestOptions, Http} from "@angular/http"; import {MockBackend} from "@angular/http/testing"; import {JsonHttp} from "../app/core/services"; export * from './helpers'; export const APP_TEST_HTTP_PROVIDERS = [ MockBackend, { provide: JsonHttp, useFactory: (mockBackend: MockBackend, requestOptions:...
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
springboot-angular2-tutorial/angular2-app
https://github.com/springboot-angular2-tutorial/angular2-app/blob/5c15d7f693b16d8a07dcc2e34af18242bb14219e/src/testing/global.spec.ts
src/testing/global.spec.ts
beforeEach(() => { localStorage.clear(); });
typescript
MIT
5c15d7f693b16d8a07dcc2e34af18242bb14219e
2026-01-05T05:01:19.427940Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/d1-example/src/index.ts
packages/d1-example/src/index.ts
/** * Welcome to Cloudflare Workers! This is your first worker. * * - Run `wrangler dev src/index.ts` in your terminal to start a development server * - Open a browser tab at http://localhost:8787/ to see your worker in action * - Run `wrangler publish src/index.ts --name my-worker` to publish your worker * * Le...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/absurd-web-backend/src/absurdWebBackend.ts
packages/absurd-web-backend/src/absurdWebBackend.ts
import { initBackend } from "@kikko-land/better-absurd-sql/dist/indexeddb-main-thread"; import { getTime, IDbBackend, IPrimitiveValue, IQuery, ITransactionOpts, reactiveVar, } from "@kikko-land/kikko"; import * as Comlink from "comlink"; import type { DbWorker } from "./worker/DB.worker"; // eslint-disable...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/absurd-web-backend/src/sqljs.d.ts
packages/absurd-web-backend/src/sqljs.d.ts
/* eslint-disable @typescript-eslint/no-explicit-any */ declare module "@kikko-land/sql.js" { /// <reference types="emscripten" /> import { SQLiteFS } from "@kikko-land/better-absurd-sql"; export type SqlValue = number | string | Uint8Array | null; export type ParamsObject = Record<string, SqlValue>; export ...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/absurd-web-backend/src/index.ts
packages/absurd-web-backend/src/index.ts
// eslint-disable-next-line @typescript-eslint/triple-slash-reference /// <reference path="./sqljs.d.ts" /> export * from "./absurdWebBackend";
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/absurd-web-backend/src/worker/DbBackend.ts
packages/absurd-web-backend/src/worker/DbBackend.ts
import { SQLiteFS } from "@kikko-land/better-absurd-sql"; import IndexedDBBackend from "@kikko-land/better-absurd-sql/dist/indexeddb-backend"; import { getTime } from "@kikko-land/kikko"; import initSqlJs, { BindParams, Database } from "@kikko-land/sql.js"; type IRes = { rows: Record<string, number | string | Uint8A...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/absurd-web-backend/src/worker/DB.worker.ts
packages/absurd-web-backend/src/worker/DB.worker.ts
import { buildSyncQueryRunner, initJobsState, IPrimitiveValue, IQuery, ITransactionOpts, whenAllJobsDone, } from "@kikko-land/kikko"; import * as Comlink from "comlink"; import { DbBackend } from "./DbBackend"; let db: DbBackend | undefined; const jobsState = initJobsState(); let isStopped = false; con...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/native-ionic-backend/src/nativeIonicBackend.ts
packages/native-ionic-backend/src/nativeIonicBackend.ts
import { SQLite, SQLiteObject } from "@awesome-cordova-plugins/sqlite"; import { buildAsyncQueryRunner, getTime, IDbBackend, initJobsState, IPrimitiveValue, IQuery, IQueryResult, IRunRes, ITransactionOpts, } from "@kikko-land/kikko"; export const ionicBackend = (path: (dbName: string) => string): IDb...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/native-ionic-backend/src/index.ts
packages/native-ionic-backend/src/index.ts
export * from "./nativeIonicBackend";
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/vue/src/index.ts
packages/vue/src/index.ts
export * from "./hooks/useQueries"; export * from "@kikko-land/boono-sql"; export * from "@kikko-land/kikko"; export * from "@kikko-land/migrations-plugin"; export * from "@kikko-land/reactive-queries-plugin";
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/vue/src/hooks/useQueries.tsx
packages/vue/src/hooks/useQueries.tsx
import { ISqlAdapter } from "@kikko-land/boono-sql"; import { IDb, IInitDbClientConfig, initDbClient, stopDb, withSuppressedLog, } from "@kikko-land/kikko"; import { listenQueries } from "@kikko-land/reactive-queries-plugin"; import { computed, ComputedRef, getCurrentScope, onScopeDispose, Ref, re...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/tauri-backend/src/tauriBackend.ts
packages/tauri-backend/src/tauriBackend.ts
import { buildAsyncQueryRunner, getTime, IDbBackend, initJobsState, IPrimitiveValue, IQuery, IQueryResult, IRunRes, ITransactionOpts, } from "@kikko-land/kikko"; import SQLite from "tauri-plugin-sqlite-api"; export const tauriBackend = (path: (dbName: string) => string): IDbBackend => ({ dbName }...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/tauri-backend/src/index.ts
packages/tauri-backend/src/index.ts
export * from "./tauriBackend";
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/wa-sqlite-backend/vite.config.ts
packages/wa-sqlite-backend/vite.config.ts
import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], });
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/wa-sqlite-backend/src/waSqliteWebBackend.ts
packages/wa-sqlite-backend/src/waSqliteWebBackend.ts
import { buildAsyncQueryRunner, IDbBackend, IExecQueriesResult, initJobsState, IPrimitiveValue, IQuery, IQueryResult, IQueryValue, ITransactionOpts, } from "@kikko-land/kikko"; import * as SQLite from "wa-sqlite"; import SQLiteAsyncModule from "wa-sqlite/dist/wa-sqlite-async.mjs"; // @ts-expect-error...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/wa-sqlite-backend/src/index.ts
packages/wa-sqlite-backend/src/index.ts
export * from "./waSqliteWebBackend";
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/react-native-backend/src/reactNativeBackend.ts
packages/react-native-backend/src/reactNativeBackend.ts
import { buildAsyncQueryRunner, getTime, IDbBackend, initJobsState, IPrimitiveValue, IQuery, IQueryResult, IRunRes, ITransactionOpts, } from "@kikko-land/kikko"; import { Location, openDatabase, SQLiteDatabase, } from "react-native-sqlite-storage"; export const reactNativeBackend = (initOpts:...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/react-native-backend/src/index.ts
packages/react-native-backend/src/index.ts
export * from "./reactNativeBackend";
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/react-queries-hooks/src/DbProvider.tsx
packages/react-queries-hooks/src/DbProvider.tsx
import { IDb, IInitDbClientConfig, initDbClient, stopDb, } from "@kikko-land/kikko"; import React, { ReactElement, RefObject, useCallback, useContext, useEffect, useMemo, useRef, useState, } from "react"; type IHolderState = { [dbKey: string]: | { type: "initialized"; db: IDb; config: IIn...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/react-queries-hooks/src/index.ts
packages/react-queries-hooks/src/index.ts
export * from "./DbProvider"; export * from "./hooks/types"; export * from "./hooks/useQueries";
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/react-queries-hooks/src/hooks/types.ts
packages/react-queries-hooks/src/hooks/types.ts
export type ISingleQueryHookResult<D> = | { type: "loading"; data?: D; } | { type: "waitingDb"; data?: D; } | { type: "loaded"; data: D } | { type: "noSqlPresent"; data?: D }; export type IRunQueryHookResult<D> = | { type: "running"; data?: D; } | { typ...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/react-queries-hooks/src/hooks/useQueries.tsx
packages/react-queries-hooks/src/hooks/useQueries.tsx
import { ISqlAdapter } from "@kikko-land/boono-sql"; import { withSuppressedLog } from "@kikko-land/kikko"; import { IDb } from "@kikko-land/kikko"; import { listenQueries } from "@kikko-land/reactive-queries-plugin"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { useDbState } from...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/kikko/src/reactiveVar.ts
packages/kikko/src/reactiveVar.ts
import { deepEqual } from "fast-equals"; export interface ReactiveVar<T> { __state: { subscriptions: ((val: T) => void)[]; value: T; isStopped: boolean; onStop: (() => void)[]; }; value: T; subscribe(sub: (val: T) => void, emitValueOnSubscribe?: boolean): () => void; waitTill( filter: (va...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/kikko/src/errors.ts
packages/kikko/src/errors.ts
export class QueryRunError extends Error { constructor( initialError: Error, public dbName: string, public queries: string[] ) { super(initialError.message, { cause: initialError }); this.cause = initialError; this.stack = initialError.stack; this.name = "QueryRunError"; } }
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/kikko/src/initDb.ts
packages/kikko/src/initDb.ts
import { IPrimitiveValue, ISql } from "@kikko-land/boono-sql"; import { runAfterTransaction } from "./afterTransaction"; import { IDbBackend } from "./backend"; import { createNanoEvents } from "./createNanoEvents"; import { reactiveVar } from "./reactiveVar"; import { runQueries } from "./runQueries"; import { execAt...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/kikko/src/utils.ts
packages/kikko/src/utils.ts
import { ISql } from "@kikko-land/boono-sql"; import { IDb, IQuery } from "./types"; export const assureDbIsRunning = (state: IDb, toStart: () => string) => { const { __state: { sharedState: { runningState, dbName }, }, } = state; if (runningState.value !== "running") { throw new Error(`Faile...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/kikko/src/measurePerformance.ts
packages/kikko/src/measurePerformance.ts
export const getTime = () => Date.now();
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/kikko/src/suppressLog.ts
packages/kikko/src/suppressLog.ts
import { IDb } from "./types"; export const suppressLog = <T>(db: IDb, func: (state: IDb) => T): T => { return func({ ...db, __state: { ...db.__state, localState: { ...db.__state.localState, suppressLog: true, }, }, }); }; export const withSuppressedLog = (db: IDb): I...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/kikko/src/createNanoEvents.ts
packages/kikko/src/createNanoEvents.ts
// Adopted from https://github.com/ai/nanoevents/blob/main/index.js // Adopted from https://github.com/ai/nanoevents // I didn't use original due to lack of cjs support export type EventsMap = { // eslint-disable-next-line @typescript-eslint/no-explicit-any [eventName: string]: (...args: any[]) => Promise<void> |...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/kikko/src/runQueries.ts
packages/kikko/src/runQueries.ts
import { IPrimitiveValue } from "@kikko-land/boono-sql"; import { QueryRunError } from "./errors"; import { getTime } from "./measurePerformance"; import { IDb, INextQueriesMiddleware, IQueriesMiddleware, IQueriesMiddlewareState, IQueriesToRun, ISqlToRun, ITransactionOpts, } from "./types"; import { assu...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/kikko/src/transaction.ts
packages/kikko/src/transaction.ts
import { sql } from "@kikko-land/boono-sql"; import { getTime } from "./measurePerformance"; import { runQueries } from "./runQueries"; import { IAtomicTransactionScope, IDb, ISqlToRun, ITransaction, ITransactionPerformance, } from "./types"; import { assureDbIsRunning, makeId } from "./utils"; // Let' make...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/kikko/src/types.ts
packages/kikko/src/types.ts
import { IPrimitiveValue, ISql, ISqlAdapter } from "@kikko-land/boono-sql"; import { DeepReadonly } from "ts-essentials"; import { IDbBackend } from "./backend"; import { INanoEmitter } from "./createNanoEvents"; import { ReactiveVar } from "./reactiveVar"; export type ICmdPerformance = { blockTime?: number; send...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/kikko/src/index.ts
packages/kikko/src/index.ts
export * from "./backend"; export * from "./errors"; export * from "./initDb"; export * from "./measurePerformance"; export * from "./reactiveVar"; export * from "./suppressLog"; export * from "./transactionJobs"; export * from "./types"; export { makeId } from "./utils"; export * from "@kikko-land/boono-sql";
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false
kikko-land/kikko
https://github.com/kikko-land/kikko/blob/de56022c7bb15f3bd10a3de528b30e999afd9801/packages/kikko/src/transactionJobs.ts
packages/kikko/src/transactionJobs.ts
import { DeepReadonly } from "ts-essentials"; import { ReactiveVar, reactiveVar, TimeoutError } from "./reactiveVar"; import { ITransactionOpts } from "./types"; import { makeId } from "./utils"; export type DistributiveOmit< T, K extends keyof Record<string, unknown> > = T extends unknown ? Omit<T, K> : never; ...
typescript
MIT
de56022c7bb15f3bd10a3de528b30e999afd9801
2026-01-05T05:01:22.972790Z
false