A mostly reasonable approach to React and JSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Created Date: Monday, April 20th 2020, 3:03:54 pm | |
* Author: Johannes Pichler | |
* | |
* Copyright (c) 2020 Webpixels e.U. | |
*/ | |
let processAllRecords = require("waterline/lib/waterline/utils/query/process-all-records"); | |
export type RawResult = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// declare var ; | |
declare namespace Sails { | |
enum SortOption { | |
ASC, | |
DESC, | |
} | |
type SortOptions = keyof typeof SortOption; | |
interface Criteria { | |
or?: Criteria[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Component, OnInit, ChangeDetectorRef, ChangeDetectionStrategy} from "@angular/core"; | |
import {FDB_DIRECTIVES} from "../components"; | |
import {CalendarPipe, DateFormatPipe, TimeAgoPipe, FromUnixPipe} from "angular2-moment/index"; | |
import {OrderByPipe} from "../pipes/order-by.pipe"; | |
import {ResourceService} from "../services/resource.service"; | |
//import {MiniCalendarComponent, CardComponent, CardContentHeaderComponent, AvatarComponent} from "../shared"; | |
declare let jQuery:any; | |
//directives: [MiniCalendarComponent, CardComponent, AvatarComponent, CardComponent, CardContentHeaderComponent] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Http, HTTP_PROVIDERS } from 'angular2/http'; | |
import { ROUTER_DIRECTIVES, RouteConfig, RouterOutlet, RouterLink, AsyncRoute, Router, RouteRegistry } from 'angular2/router'; | |
import { ROUTER_PRIMARY_COMPONENT, APP_BASE_HREF, ROUTER_PROVIDERS as NG2_ROUTER_PROVIDERS, LocationStrategy, HashLocationStrategy,PathLocationStrategy } from 'angular2/router'; | |
// import your components, you want to use for routes | |
import {MyPluginComponent, MyAnotherPluginComponent} from './myComponents/components'; | |
@Component({ | |
//your definitions here | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**! | |
* nodocms backend application | |
* Copyright(c) 2015 Johannes Pichler - webpixels | |
* Created by johannespichler on 23.11.15. | |
* LGPLv3.0 Licensed | |
**/ | |