repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
yuanliang/Pharos
app/src/components/Home/Home.tsx
import './Home.css' const Home = () => ( <section> <h1>Welcome to Pharos!</h1> </section> ) export default Home
yuanliang/Pharos
app/src/components/Auth/AuthForm.tsx
import { useState, useRef, useContext } from 'react' import { useNavigate } from 'react-router-dom' import AuthContext from '../../store/AuthContext' import Errors from '../Errors/Errors' const AuthForm = () => { const navigate = useNavigate() const usernameRef = useRef<HTMLInputElement | null>(null) const pass...
yuanliang/Pharos
app/src/components/Errors/Errors.tsx
<reponame>yuanliang/Pharos const Errors = (errors: any) => { const errorList: any[] = [] console.log(errors) // eslint-disable-next-line react/destructuring-assignment Object.keys(errors).forEach((key: any) => errorList.push(errors[key])) return ( <div className='mt-3'> {errorList.map((error) => (...
yuanliang/Pharos
app/src/components/Posts/PostForm.tsx
import { useState, useContext, useEffect, useCallback } from 'react' import AuthContext from '../../store/AuthContext' import Errors from '../Errors/Errors' const PostForm = (props: any) => { const authContext = useContext(AuthContext) const [titleValue, setTitleValue] = useState('') const [contentValue, setCo...
yuanliang/Pharos
app/src/App.tsx
import { useContext } from 'react' import { Routes, Route, Navigate } from 'react-router-dom' import Layout from './components/Layout/Layout' import HomePage from './pages/HomePage' import AuthPage from './pages/AuthPage' import PostsPage from './pages/PostsPage' import AuthContext from './store/AuthContext' import '....
GZH-INVESTER/zhaoxin-2020-be
app/controller/place.ts
<gh_stars>0 const Controller = require('../core/base'); export default class PlaceController extends Controller { async createPlace(){ const { ctx, service, app } = this if (!this.isLogged()) return const { campus , location} = ctx.request.body const createRule = {campus:'myCampus',location:'myLocati...
GZH-INVESTER/zhaoxin-2020-be
app/service/itime.ts
<reponame>GZH-INVESTER/zhaoxin-2020-be import { Service } from 'egg'; const moment = require('moment'); export default class Itime extends Service { //创建时间 async createDate(interviewDatetime: string) { const { ctx } = this const { Itime } = ctx.model const itimeExist = await Itime.findOne({ where: {inte...
GZH-INVESTER/zhaoxin-2020-be
typings/app/controller/index.d.ts
<gh_stars>0 // This file is created by egg-ts-helper@1.25.6 // Do not modify this file!!!!!!!!! import 'egg'; import ExportHome from '../../../app/controller/home'; import ExportItime from '../../../app/controller/itime'; import ExportPlace from '../../../app/controller/place'; import ExportUser from '../../../app/con...
GZH-INVESTER/zhaoxin-2020-be
typings/app/model/index.d.ts
<gh_stars>0 // This file is created by egg-ts-helper@1.25.6 // Do not modify this file!!!!!!!!! import 'egg'; import ExportItime from '../../../app/model/itime'; import ExportPlace from '../../../app/model/place'; import ExportQuestion from '../../../app/model/question'; import ExportStudent from '../../../app/model/s...
GZH-INVESTER/zhaoxin-2020-be
app.ts
<filename>app.ts export default (app) => { app.validator.addRule('myPassword', (_rule, value) => { if (typeof value !== 'string') return '密码应为字符串' if (value.length < 6 || value.length > 16) return '密码的长度应在6到16位' return }); app.validator.addRule('myDateTime', (_rule, value) => { var reg = /^((\d{2}...
GZH-INVESTER/zhaoxin-2020-be
app/service/user.ts
<filename>app/service/user.ts import { Service } from 'egg'; export default class User extends Service { async login(password:string){ const { ctx } = this const { User } = ctx.model const user = await User.findOne({ where: { id:1 } }) if(!user||user.password!==password){ ctx.body={ s...
GZH-INVESTER/zhaoxin-2020-be
typings/app/service/index.d.ts
// This file is created by egg-ts-helper@1.25.6 // Do not modify this file!!!!!!!!! import 'egg'; import ExportItime from '../../../app/service/itime'; import ExportPlace from '../../../app/service/place'; import ExportTest from '../../../app/service/Test'; import ExportUser from '../../../app/service/user'; declare ...
GZH-INVESTER/zhaoxin-2020-be
app/model/time-place.ts
import { Application } from 'egg'; import { Model, INTEGER, DATE, BOOLEAN } from 'sequelize'; export class TimePlace extends Model { id: number; timeId: number; placeId: number; campus:number; isChosen: boolean; createdAt:string; updatedAt:string static associate: () => any } export default (app: Appl...
GZH-INVESTER/zhaoxin-2020-be
app/model/itime.ts
<reponame>GZH-INVESTER/zhaoxin-2020-be<gh_stars>0 import { Application } from 'egg'; import { Model, INTEGER, DATE,DATEONLY,TIME} from 'sequelize'; export class Itime extends Model { id: number interviewDate:string interviewTime:string interviewDatetime:string createdAt:string updatedAt:string static ass...
GZH-INVESTER/zhaoxin-2020-be
app/model/user.ts
<filename>app/model/user.ts import {Application} from 'egg'; import {Model,INTEGER,STRING,DATE} from 'sequelize'; export class User extends Model{ id:number; password:string; createdAt:string; updatedAt:string } export default(app:Application)=>{ User.init({ id:{type:INTEGER,primaryKey:true,autoIncremen...
GZH-INVESTER/zhaoxin-2020-be
app/core/base.ts
const { Controller } = require('egg'); class BaseController extends Controller { isLogged(){ if(!this.ctx.session.userId){ this.ctx.body={ success:0, errMsg:'未登录' } return } return true } success(data){ this.ctx.body={ success:1, data } } fail...
GZH-INVESTER/zhaoxin-2020-be
app/router.ts
<gh_stars>0 import { Application } from 'egg'; export default (app: Application) => { const { controller, router } = app; router.get('/', controller.home.index); //user router.post('/login',controller.user.login); router.get('/logout', controller.user.logout); router.get('/isLogged', controller.user.isLog...
GZH-INVESTER/zhaoxin-2020-be
config/config.default.ts
<gh_stars>0 import { EggAppConfig, EggAppInfo, PowerPartial } from 'egg'; export default (appInfo: EggAppInfo) => { const config = {} as PowerPartial<EggAppConfig>; // override config from framework / plugin // use for cookie sign key, should change to your own and keep security config.keys = appInfo.name + '...
GZH-INVESTER/zhaoxin-2020-be
app/service/place.ts
<reponame>GZH-INVESTER/zhaoxin-2020-be<gh_stars>0 import { Service } from 'egg'; export default class Place extends Service { async createPlace(campus: number, location: string) { const { ctx } = this const { Place } = ctx.model const placeExist = await Place.findOne({ attributes: ['id'], where: { campus...
GZH-INVESTER/zhaoxin-2020-be
app/controller/user.ts
<reponame>GZH-INVESTER/zhaoxin-2020-be<gh_stars>0 import { Controller } from 'egg'; export default class UserController extends Controller{ async isLogged(){ const {ctx} = this if(ctx.session.userId){ ctx.body={isLogged:1} return } ctx.body={isLogged:0} return } async login(){ ...
GZH-INVESTER/zhaoxin-2020-be
app/model/question.ts
import { Application } from 'egg'; import { Model, INTEGER, STRING, DATE, BOOLEAN } from 'sequelize'; export class Question extends Model { id: number; department: number; isTailored: boolean; description: string; detail: string; createdAt:string updatedAt:string static associate: () => any } export d...
GZH-INVESTER/zhaoxin-2020-be
app/model/place.ts
<reponame>GZH-INVESTER/zhaoxin-2020-be import { Application } from 'egg'; import { Model, INTEGER, STRING, DATE } from 'sequelize'; export class Place extends Model { id: number; campus:number; location: string; createdAt:string; updatedAt:string; static associate: () => any } export default (app: Applica...
GZH-INVESTER/zhaoxin-2020-be
app/controller/itime.ts
const Controller = require('../core/base'); export default class ItimeController extends Controller { async createDate() { const { ctx, service, app } = this const { interviewDatetime } = ctx.request.body const createRule = { interviewDatetime: 'myDateTime' } if (!this.isLogged()) return let errs...
GZH-INVESTER/zhaoxin-2020-be
app/model/student.ts
import { Application } from 'egg'; import { Model, INTEGER, STRING, DATE, BOOLEAN } from 'sequelize'; export class Student extends Model { id: number; sid: string; name: string; adClass: string; phone: string; email: string; mainDepartment: number; subDepartment: string; mastered: string; wantLearn...
pradeepku123/PlaywrightJS
src/resource/user.testdata.ts
export const testUser = { userName: "Katharina_Bernier", password: "<PASSWORD>", };
pradeepku123/PlaywrightJS
src/tests/start.spec.ts
<reponame>pradeepku123/PlaywrightJS import { test, expect } from "@playwright/test"; import { testUser } from "../resource/user.testdata"; test.beforeEach(async ({ page }) => { await page.goto("http://localhost:3000/"); }); test.describe("Test Description", () => { test("login to application", async ({ page }) =>...
catervpillar/PlayWithUnicam-Games
quiz/quiz-editor/quiz-editor.module.ts
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { QuizEditorPageRoutingModule } from './quiz-editor-routing.module'; import { QuizEditorPage } from './quiz-editor.page'; import...
catervpillar/PlayWithUnicam-Games
quiz/services/quiz-logic.service.spec.ts
import { TestBed } from '@angular/core/testing'; import { QuizLogicService } from './quiz-logic.service'; describe('QuizLogicService', () => { let service: QuizLogicService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(QuizLogicService); }); it('should be created',...
catervpillar/PlayWithUnicam-Games
quiz/create-quiz-question/create-quiz-question.page.ts
<filename>quiz/create-quiz-question/create-quiz-question.page.ts<gh_stars>0 import { Component, Input, OnInit } from '@angular/core'; import { ModalController, NavParams } from '@ionic/angular'; import { QuizQuestion } from '../quiz-question'; @Component({ selector: 'app-create-quiz-question', templateUrl: './crea...
catervpillar/PlayWithUnicam-Games
games-components.module.ts
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { GooseGameEditorComponentModule } from './goose-game/components/goose-game-editor/goose-game-editor.module'; import { MemoryGameEditorPageModule } from './memory-game/components/memory-game-editor/memory-game-editor.module...
catervpillar/PlayWithUnicam-Games
quiz/quiz.page.ts
import { Component, OnInit, Inject, ViewChild, ElementRef, Renderer2, OnDestroy } from '@angular/core'; import { DOCUMENT } from '@angular/common'; import { DomController, ModalController } from '@ionic/angular'; import { Timer } from 'src/app/components/timer-components/timer'; import { TimerController } from 'src/app...
catervpillar/PlayWithUnicam-Games
quiz/create-quiz-question/create-quiz-question.module.ts
<gh_stars>0 import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { IonicModule } from '@ionic/angular'; import { CreateQuizQuestionPageRoutingModule } from './create-quiz-question-routing.module'; import { CreateQuizQuestionPag...
catervpillar/PlayWithUnicam-Games
quiz/quiz-editor/quiz-editor.page.ts
import { Component, Input, OnInit } from '@angular/core'; import { ModalController } from '@ionic/angular'; import { GameEditorComponent } from 'src/app/components/game-editor/game-editor.component'; import { AlertCreatorService } from 'src/app/services/alert-creator/alert-creator.service'; import { CreateQuizQuestionP...
catervpillar/PlayWithUnicam-Games
quiz/quiz-question.ts
export class QuizQuestion { question: string; answers: string[]; imgUrl: string; videoUrl: string; countdownSeconds: number; score: number; constructor(question: string, answers: string[], imgUrl: string, videoUrl: string, countdownSeconds: number, score: number) { this.question = q...
catervpillar/PlayWithUnicam-Games
quiz/services/quiz-logic.service.ts
<reponame>catervpillar/PlayWithUnicam-Games<gh_stars>0 import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Router } from '@angular/router'; import { ErrorManagerService } from 'src/app/services/error-manager/error-manager.service'; import { LobbyManagerService } from ...
iFlameing/WebAssemblyStudio
src/components/Sandbox.tsx
/* Copyright 2018 Mozilla Foundation * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish...
iFlameing/WebAssemblyStudio
tests/components/NewProjectDialog/NewProjectDialog.spec.tsx
<reponame>iFlameing/WebAssemblyStudio /* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ */ import "jest-enzyme"; import * as React from "react"; import { shallow } from "enzyme"; jest.mock("../../../src/utils/fetchTemplates", () => { return { default: async...
iFlameing/WebAssemblyStudio
tests/components/Toast/Toasts.spec.tsx
<gh_stars>0 /* Any copyright is dedicated to the Public Domain. * http://creativecommons.org/publicdomain/zero/1.0/ */ import "jest-enzyme"; import * as React from "react"; import {shallow, mount} from "enzyme"; import {ToastContainer, Toast} from "../../../src/components/Toasts"; import {Button} from "../../../src/c...
truongsontn96/hello-world
dist/module.d.ts
import { ExtendQueriesDatasource } from './datasource'; import { ExtendQueriesQueryCtrl } from './query_ctrl'; import { ExtendQueriesConfigCtrl } from './config_ctrl'; export { ExtendQueriesDatasource as Datasource, ExtendQueriesQueryCtrl as QueryCtrl, ExtendQueriesConfigCtrl as ConfigCtrl };
truongsontn96/hello-world
dist/module.ts
<gh_stars>0 import {ExtendQueriesDatasource} from './datasource'; import {ExtendQueriesQueryCtrl} from './query_ctrl'; import {ExtendQueriesConfigCtrl} from './config_ctrl'; export { ExtendQueriesDatasource as Datasource, ExtendQueriesQueryCtrl as QueryCtrl, ExtendQueriesConfigCtrl as ConfigCtrl };
truongsontn96/hello-world
dist/datasource.d.ts
declare var ExtendQueriesDatasource: any; export {ExtendQueriesDatasource};
truongsontn96/hello-world
dist/test/config_ctrl.d.ts
/// <reference path="../../headers/common.d.ts" /> export declare class ExtendQueriesConfigCtrl { static templateUrl: string; current: any; }
felipe2g/moon-ui
src/styles/theme.ts
<filename>src/styles/theme.ts export default { grid: { container: '130rem', gutter: '3.2rem' }, border: { radius: '0.3rem' }, font: { sizes: { xxsmall: '1.4rem', xsmall: '1.6rem', small: '1.8rem', medium: '2.2rem', large: '2.6rem', xlarge: '3.4rem', xx...
felipe2g/moon-ui
src/components/Tag/stories.tsx
<reponame>felipe2g/moon-ui<gh_stars>0 import React from 'react' import { Story, Meta } from '@storybook/react/types-6-0' import Tag from '.' export default { title: 'Tag', component: Tag, args: { label: 'Default', backgroundColor: 'red', icon: null, fontColor: 'blue' } } as Meta export const B...
felipe2g/moon-ui
src/components/Comment/styles.ts
<gh_stars>0 import styled from 'styled-components' export const Comment = styled.div` display: block; background-color: #eff0f6; padding: 16px 24px; border-radius: 0 32px 32px 32px; span { color: #4e4b66; font-size: 16px; letter-spacing: 0.75px; line-height: 28px; word-break: break-all...
felipe2g/moon-ui
src/components/Comment/index.test.tsx
import Comment from './index' describe('Comment', () => { it('is truthy', () => { expect(Comment).toBeTruthy() }) })
felipe2g/moon-ui
src/components/Tag/index.tsx
<filename>src/components/Tag/index.tsx import React from 'react' import * as S from './styles' // import { FiTag } from 'react-icons/fi' interface Props { backgroundColor: string label: string fontColor: string icon: React.ReactNode } const Tag: React.FC<Props> = ({ backgroundColor, icon, label, fontColor }) ...
felipe2g/moon-ui
src/components/InputTextarea/index.tsx
<reponame>felipe2g/moon-ui<gh_stars>0 // eslint-disable-next-line no-unused-vars import React, { InputHTMLAttributes } from 'react' import * as S from './styles' interface Props extends InputHTMLAttributes<HTMLInputElement> { name: string color?: string placeholder: string label?: boolean } const InputTextare...
felipe2g/moon-ui
src/components/Form/index.tsx
<filename>src/components/Form/index.tsx // eslint-disable-next-line no-unused-vars import React, { FormHTMLAttributes } from 'react' import * as S from './styles' interface Props extends FormHTMLAttributes<HTMLFormElement> { children: React.ReactNode } const Form: React.FC<Props> = ({ children, ...props }) => ( <...
felipe2g/moon-ui
src/components/InputText/index.test.tsx
import InputText from '.' describe('InputText', () => { it('is truthy', () => { expect(InputText).toBeTruthy() }) })
felipe2g/moon-ui
src/components/InputTextarea/styles.ts
import styled from 'styled-components' interface InputTextareaProps { color?: string } interface LabelProps { label?: boolean } export const TextareaWrapper = styled.div` margin: 16px 0; display: flex; flex-direction: column; ` export const Label = styled.label<LabelProps>` display: ${(props) => (props....
felipe2g/moon-ui
src/components/Form/stories.tsx
<reponame>felipe2g/moon-ui import React from 'react' // eslint-disable-next-line no-unused-vars import { Story, Meta } from '@storybook/react/types-6-0' import Form from '.' import InputText from '../InputText' import InputTextarea from '../InputTextarea' export default { title: 'Form', component: Form, args: { ...
felipe2g/moon-ui
src/components/InputText/stories.tsx
<reponame>felipe2g/moon-ui<filename>src/components/InputText/stories.tsx import React from 'react' // eslint-disable-next-line no-unused-vars import { Story, Meta } from '@storybook/react/types-6-0' import InputText from '.' export default { title: 'InputText', component: InputText, args: { name: 'Nome', ...
felipe2g/moon-ui
src/components/InputTextarea/index.test.tsx
<filename>src/components/InputTextarea/index.test.tsx import InputTextarea from '.' describe('InputTextarea', () => { it('is truthy', () => { expect(InputTextarea).toBeTruthy() }) })
felipe2g/moon-ui
src/components/Button/stories.tsx
import React from 'react' // eslint-disable-next-line no-unused-vars import { Story, Meta } from '@storybook/react/types-6-0' import Button from '.' export default { title: 'Button', component: Button } as Meta export const Primary: Story = (args) => ( <Button btnType='primary' size='default' label=...
felipe2g/moon-ui
src/components/Button/styles.ts
<filename>src/components/Button/styles.ts import styled, { css } from 'styled-components' import theme from '../../styles/theme' interface WrapperProps { btnType: string size: string } export const Wrapper = styled.button<WrapperProps>` ${(props) => props.btnType === 'primary' ? css` backgro...
felipe2g/moon-ui
src/components/Button/index.tsx
import React from 'react' import * as S from './styles' interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> { btnType: 'primary' | 'secondary' label: string size: 'large' | 'default' | 'small' } const Button: React.FC<ButtonProps> = ({ btnType, label, size, ...props }) => ( <S.Wrapper ...
felipe2g/moon-ui
src/components/Comment/index.tsx
<reponame>felipe2g/moon-ui import React from 'react' import * as S from './styles' interface Props { text: string } const Comment: React.FC<Props> = ({ text }) => { return ( <S.Comment> <span>{text}</span> </S.Comment> ) } export default Comment
felipe2g/moon-ui
src/components/InputText/styles.ts
import styled from 'styled-components' interface InputTextProps { color?: string } interface LabelProps { label?: boolean } export const InputTextWrapper = styled.div` margin: 16px 0; ` export const Label = styled.label<LabelProps>` display: ${(props) => (props.label ? '' : 'none')}; ` export const InputTe...
felipe2g/moon-ui
src/index.tsx
import Button from './components/Button' import Comment from './components/Comment' import Form from './components/Form' import InputText from './components/InputText' import InputTextarea from './components/InputTextarea' import Tag from './components/Tag' export { Button, Comment, Form, InputText, InputTextarea, Tag...
felipe2g/moon-ui
src/components/Tag/index.test.tsx
<gh_stars>0 import Tag from './index' describe('Tag', () => { it('is truthy', () => { expect(Tag).toBeTruthy() }) })
felipe2g/moon-ui
example/src/App.tsx
import React from 'react' import { Comment } from 'rogan-ui' import 'rogan-ui/dist/index.css' const App = () => { return <Comment text="Um comentário de teste" /> } export default App
felipe2g/moon-ui
src/components/Tag/styles.ts
import styled from 'styled-components' interface TagProps { backgroundColor: string fontColor: string } export const Wrapper = styled.div<TagProps>` display: inline-flex; justify-content: center; align-items: center; padding: 8px 16px; border-radius: 36px; background-color: ${(props) => props.backgrou...
felipe2g/moon-ui
src/components/Comment/stories.tsx
import React from 'react' import { Story, Meta } from '@storybook/react/types-6-0' import Comment from '.' export default { title: 'Comment', component: Comment, args: { text: 'Default' } } as Meta export const Basic: Story = (args) => <Comment {...args} /> Basic.args = { text: 'Eu sou um comentário!' ...
felipe2g/moon-ui
src/components/Form/styles.ts
<reponame>felipe2g/moon-ui<filename>src/components/Form/styles.ts import styled from 'styled-components' export const FormWrapper = styled.form` max-width: 500px; `
felipe2g/moon-ui
src/components/Form/index.test.tsx
<gh_stars>0 import Form from '.' describe('Form', () => { it('is truthy', () => { expect(Form).toBeTruthy() }) })
felipe2g/moon-ui
src/components/InputText/index.tsx
// eslint-disable-next-line no-unused-vars import React, { InputHTMLAttributes } from 'react' import * as S from './styles' interface Props extends InputHTMLAttributes<HTMLInputElement> { name: string color?: string placeholder: string label?: boolean } const InputText: React.FC<Props> = ({ name, label, color...
jacobdewey/SensorQuick
Sensor.ts
<reponame>jacobdewey/SensorQuick //% color=#D400D4 weight=124 icon="\uf194" namespace sensor { //% block export function sensorDifference(l: SensorDifferenceDectectionValue, otherMicrobits: number, j: Dimension): number { switch (l) { case SensorDifferenceDectectionValue.a: ...
jacobdewey/SensorQuick
SensorVar.ts
<reponame>jacobdewey/SensorQuick<filename>SensorVar.ts enum SensorDifferenceDectectionValue { //% block="magnetism" a, //% block="lightLevel" b, //% block="acceleration" c, //% block="temperature" d }
janCstoffregen/raeber-mit-generischer-suche
src/client/app/suche/utilities/utilities.module.ts
/** * Created by <NAME> (<EMAIL>) on 7/18/17. */ import { NgModule } from '@angular/core'; @NgModule({}) export class UtilitiesModule { }
janCstoffregen/raeber-mit-generischer-suche
src/client/app/synopse/synopse-werkzeugleiste/synopse-werkzeugleiste.component.ts
/** * Created by <NAME> (rfbaumgartner) on 05.07.17. */ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; @Component({ moduleId: module.id, selector: 'rae-synopse-werkzeugleiste', templateUrl: 'synopse-werkzeugleiste.component.html', styleUrls: [ 'synopse-werkzeugleiste.compone...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/suche/textgrid/textgrid.component.ts
/** * Created by retobaumgartner on 21.06.17. */ import { Component, Input, OnChanges, SimpleChanges } from '@angular/core'; @Component({ moduleId: module.id, selector: 'rae-textgrid', templateUrl: 'textgrid.component.html', styleUrls: [ 'textgrid.component.css' ] }) export class TextgridComponent implement...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/suche/searchForOneResourceComponent/searchForOneResource.component.ts
import { Component, Input, OnInit, Output, EventEmitter } from '@angular/core'; import { Http, Response } from '@angular/http'; import { globalSearchVariableService } from './../globalSearchVariablesService'; @Component({ moduleId: module.id, selector: 'rae-search-for-one-resource', templateUrl: 'searchForOneRes...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/suche/utilities/alphabetical-sorting.service.ts
<reponame>janCstoffregen/raeber-mit-generischer-suche /** * Created by <NAME> (rfbaumgartner) on 24.07.17. */ import { Injectable } from '@angular/core'; @Injectable() export class AlphabeticalSortingService { germanAlphabeticalSortKey(key: string): string { // replace special characters of Latin-1 by base let...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/fassung/fassung.module.ts
/** * Created by <NAME> (rfbaumgartner) on 05.07.17. */ import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { MdButtonModule, MdButtonToggleModule, MdCardModule, MdGridListModule, MdIconModule, MdInputModule, MdListM...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/statisch/anleitung.component.ts
/** * Created by <NAME> (<EMAIL>) on 6/7/17. */ import { Component } from '@angular/core'; @Component({ moduleId: module.id, selector: 'rae-anleitung', templateUrl: 'anleitung.component.html' }) export class AnleitungComponent { title = 'Anleitung zur Online-Edition Kuno Raeber'; }
janCstoffregen/raeber-mit-generischer-suche
src/client/app/suche/suche.module.ts
<reponame>janCstoffregen/raeber-mit-generischer-suche /** * Created by <NAME> (<EMAIL>) on 7/21/17. */ import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@a...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/shared/registerspalte/registerspalte.component.ts
/** * Created by <NAME> (rfbaumgartner) on 27.06.17. */ import { Component, OnInit } from '@angular/core'; import { Http } from '@angular/http'; import { ActivatedRoute, Params, Router } from '@angular/router'; import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/map'; import { ExtendedSearch, KnoraProperty ...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/shared/textgrid/textgrid.component.ts
<gh_stars>0 /** * Created by retobaumgartner on 21.06.17. */ import { Component, Input, OnChanges, SimpleChanges } from '@angular/core'; @Component({ moduleId: module.id, selector: 'rae-textgrid', templateUrl: 'textgrid.component.html', styleUrls: [ 'textgrid.component.css' ] }) export class TextgridCompone...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/suche/defineOnePropertyForRequest/defineOnePropertyForRequest.module.ts
<reponame>janCstoffregen/raeber-mit-generischer-suche import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { FormsModule } from '@angular/forms'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; im...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/suche/suche-routing.module.ts
import { NgModule } from '@angular/core'; import { RouterModule } from '@angular/router'; import { SucheComponent } from './suche.component'; @NgModule({ imports: [ RouterModule.forChild([ { path: 'suche', component: SucheComponent } ]) ], exports: [ RouterModule ] }) export class SucheRoutingModul...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/register/register.module.ts
<gh_stars>0 /** * Created by <NAME> (rfbaumgartner) on 07.07.17. */ import { NgModule } from '@angular/core'; import { HttpModule } from '@angular/http'; import { MdButtonModule, MdListModule } from '@angular/material'; import { BrowserModule } from '@angular/platform-browser'; import { RegisterComponent } from './r...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/shared/registerspalte/registerspalte.module.ts
/** * Created by <NAME> (rfbaumgartner) on 27.06.17. */ import { NgModule } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { HttpModule } from '@angular/http'; import { MdButtonToggleModule, MdListModule } from '@angular/material'; import { BrowserModule } from '@angular/platform-browser'...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/register/register-beschreibung/register-beschreibung.component.ts
<filename>src/client/app/register/register-beschreibung/register-beschreibung.component.ts /** * Created by <NAME> (rfbaumgartner) on 07.07.17. */ import { Component, Input } from '@angular/core'; import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/switchMap'; @Component({ ...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/suche/searchForOneResourceComponent/searchForOneResource.module.ts
<gh_stars>1-10 import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule } from '@angular/router'; import { FormsModule } from '@angular/forms'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { BrowserModule } from '@angular/p...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/shared/text/text.service.ts
/** * Created by <NAME> (<EMAIL>) on 7/10/17. */ import { Injectable } from '@angular/core'; import { Http, Response } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import { Config } from '../config/env.config'; import { KnoraRequest } from '../utilities/knora-api-params'; @Injectable() expor...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/suche/utilities/knora-api-params.ts
import { Config } from '../config/env.config'; /** * Created by <NAME> (<EMAIL>) on 7/11/17. */ /** * Base abstract class for configuring a request to Knora API */ export abstract class KnoraRequest { protected _host = Config.API; protected abstract _searchtype: string; protected abstract _filterByRestype: ...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/fassung/fassung-werkzeugleiste/fassung-werkzeugleiste.component.ts
<filename>src/client/app/fassung/fassung-werkzeugleiste/fassung-werkzeugleiste.component.ts /** * Created by <NAME> (rfbaumgartner) on 05.07.17. */ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; @Component({ moduleId: module.id, selector: 'rae-fassung-werkzeugleiste', template...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/suche/textgrid/paging.service.ts
<filename>src/client/app/suche/textgrid/paging.service.ts /** * Created by <NAME> (<EMAIL>) on 7/12/17. */ import { Injectable } from '@angular/core'; import { Observable } from 'rxjs/Observable'; import { Http } from '@angular/http'; import { KnoraRequest } from '../utilities/knora-api-params'; @Injectable() expor...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/register/register-navigation/register-navigation.component.ts
/** * Created by <NAME> (rfbaumgartner) on 07.07.17. */ import { Component, Input } from '@angular/core'; import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/switchMap'; @Component({ moduleId: module.id, selector: 'rae-register-navigation', templateUrl: 'register-naviga...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/shared/text/text.component.ts
/** * Created by <NAME> (<EMAIL>) on 7/10/17. */ import { Component, OnInit } from '@angular/core'; import { TextService } from './text.service'; import { ActivatedRoute } from '@angular/router'; import { ExtendedSearch, KnoraProperty } from '../utilities/knora-api-params'; const _expressions: { [key: string]: stri...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/suche/globalSearchVariablesService.ts
<reponame>janCstoffregen/raeber-mit-generischer-suche<filename>src/client/app/suche/globalSearchVariablesService.ts export const globalSearchVariableService = Object.freeze({ initialVocabulary: 'http://www.knora.org/ontology/incunabula', API_URL: 'http://192.168.127.12:3333/v1', resourceTypesPath: '/resourcetype...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/core/haupttext.component.ts
/** * Created by <NAME> (<EMAIL>) on 7/20/17. */ import { Component } from '@angular/core'; @Component({ moduleId: module.id, selector: 'rae-haupttext', template: '<router-outlet></router-outlet>' }) export class HaupttextComponent { }
janCstoffregen/raeber-mit-generischer-suche
src/client/app/fassung/fassung-weitere/fassung-weitere.component.ts
/** * Created by retobaumgartner on 06.07.17. */ import { Component, Input } from '@angular/core'; @Component({ moduleId: module.id, selector: 'rae-fassung-weitere', templateUrl: 'fassung-weitere.component.html' }) export class FassungWeitereComponent { @Input() synopsenTags: Array<string>; weitereFassung...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/konvolut/konvolut-steckbrief/konvolut-steckbrief.component.ts
<reponame>janCstoffregen/raeber-mit-generischer-suche /** * Created by retobaumgartner on 06.06.17. */ import { Component, Input, OnInit } from '@angular/core'; @Component({ moduleId: module.id, selector: 'rae-konvolut-steckbrief', templateUrl: 'konvolut-steckbrief.component.html', styleUrls: [ 'konvolut-ste...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/core/core.module.ts
<gh_stars>0 /** * Created by <NAME> (<EMAIL>) on 7/20/17. */ import { NgModule } from '@angular/core'; import { FusszeileComponent } from './fusszeile.component'; import { KopfzeileComponent } from './kopfzeile.component'; import { NavigationsleisteComponent } from './navigationsleiste.component'; import { CommonMo...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/statisch/statisch.module.ts
/** * Created by <NAME> (<EMAIL>) on 7/21/17. */ import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { routingComponents, StatischRoutingModule } from './statisch-routing.module'; @NgModule({ imports: [ CommonModule, StatischRoutingModule ], declarations: ...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/statisch/werkausgabe.component.ts
<reponame>janCstoffregen/raeber-mit-generischer-suche /** * Created by <NAME> (<EMAIL>) on 6/7/17. */ import { Component } from '@angular/core'; @Component({ moduleId: module.id, selector: 'rae-werkausgabe', templateUrl: 'werkausgabe.component.html' }) export class WerkausgabeComponent { title = 'Kuno Raebe...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/konvolut/konvolut-werkzeugleiste/konvolut-werkzeugleiste.component.ts
<gh_stars>0 /** * Created by <NAME> (rfbaumgartner) on 05.07.17. */ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; @Component({ moduleId: module.id, selector: 'rae-konvolut-werkzeugleiste', templateUrl: 'konvolut-werkzeugleiste.component.html', styleUrls: [ 'konvolut-werkzeu...
janCstoffregen/raeber-mit-generischer-suche
src/client/app/konvolut/super-konvolut.component.ts
/** * Created by <NAME> (rfbaumgartner) on 29.06.17. */ import { Component, OnInit } from '@angular/core'; import { Http } from '@angular/http'; import { ActivatedRoute, Params, Router } from '@angular/router'; import 'rxjs/add/operator/catch'; import 'rxjs/add/operator/map'; import 'rxjs/add/operator/switchMap'; i...