.gitignore000066400000000000000000000003361516074424000130530ustar00rootroot00000000000000/build /node_modules /*.log /*.iws .idea/workspace.xml .idea/tasks.xml .idea/profiles_settings.xml .idea/inspectionProfiles/Project_Default.xml .idea/inspectionProfiles/profiles_settings.xml node_modules/.yarn-integrity .idea/000077500000000000000000000000001516074424000120415ustar00rootroot00000000000000.idea/codeStyleSettings.xml000066400000000000000000000004251516074424000162400ustar00rootroot00000000000000 .idea/corifeus-app-web-pages.iml000066400000000000000000000005201516074424000170060ustar00rootroot00000000000000 .idea/modules.xml000066400000000000000000000004501516074424000142320ustar00rootroot00000000000000 .idea/php.xml000066400000000000000000000003301516074424000133460ustar00rootroot00000000000000 .idea/vcs.xml000066400000000000000000000002471516074424000133610ustar00rootroot00000000000000 .npmignore000066400000000000000000000002621516074424000130600ustar00rootroot00000000000000/.idea /artifacts /build /Gemfile /_layouts /_site /_includes /test /node_modules /*.iml /*.ipr /*.iws /.travis.yml /.scrutinizer.yml /Gruntfile.js /corifeus-boot.json /assets .scrutinizer.yml000066400000000000000000000010461516074424000142440ustar00rootroot00000000000000checks: javascript: true filter: excluded_paths: - test/* - node_modules/* - build/* - docs/* build: cache: disabled: true dependencies: before: - export LATEST=$(nvm ls-remote | tail -1) - nvm install $LATEST # - nvm use $LATEST - npm install grunt-cli -g - npm install - node_modules/protractor/bin/webdriver-manager update tests: override: - command: 'grunt coverage' coverage: file: 'build/coverage/clover.xml' format: 'clover' .travis.yml000066400000000000000000000005761516074424000132020ustar00rootroot00000000000000sudo: required dist: trusty addons: apt: sources: - google-chrome packages: - google-chrome-stable language: node_js node_js: - "node" before_script: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" - sleep 3 # give xvfb some time to start - npm install grunt-cli -g - npm install - node_modules/protractor/bin/webdriver-manager update Gruntfile.js000066400000000000000000000027721516074424000133660ustar00rootroot00000000000000module.exports = (grunt) => { const builder = require(`corifeus-builder-angular`); const loader = new builder.loader(grunt); loader.angular(); grunt.config.merge({ watch: { wait: { files: ['**/*.js'], tasks: ['copy:cory-build'], }, json2sass: { } }, 'cory-json2scss': { json2sass: { files: ['src/json/settings.json'], dest: 'src/assets/_settings.scss', prefix: 'cory-layout-settings' }, }, 'cory-inject': { sass: { files: [ 'src/angular/**/*.scss' ], dest: 'src/assets/style.scss', template: '@import \'${file}\';' } }, }); const defaults = [ 'cory-json2scss', 'cory-inject' ]; grunt.registerTask('default', defaults.concat(builder.config.task.build.angularAotJit)); grunt.registerTask('dev', defaults.concat(builder.config.task.build.angular)); grunt.registerTask('aot', defaults.concat(builder.config.task.build.angularAot)); grunt.registerTask('aot-jit', defaults.concat(builder.config.task.build.angularAotJit)); grunt.registerTask('run', defaults.concat(builder.config.task.run.angular)); grunt.registerTask('coverage', 'karma:cory-angular'); grunt.registerTask('test-connect', [ 'connect:cory-angular', 'watch:cory-wait' ]) }LICENSE000066400000000000000000000021411516074424000120640ustar00rootroot00000000000000MIT License Copyright (c) 2017 Patrik Laszlo / patrikx3 / https://patrikx3.com and contributors 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, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. README.md000066400000000000000000000032121516074424000123360ustar00rootroot00000000000000[//]: #@corifeus-header [![Build Status](https://travis-ci.org/patrikx3/corifeus-app-web-pages.svg?branch=master)](https://travis-ci.org/patrikx3/corifeus-app-web-pages) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/patrikx3/corifeus-app-web-pages/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/patrikx3/corifeus-app-web-pages/?branch=master) [![Code Coverage](https://scrutinizer-ci.com/g/patrikx3/corifeus-app-web-pages/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/patrikx3/corifeus-app-web-pages/?branch=master) --- # Corifeus App Web Pages - Support This is an open source project. Just code. ### Node Version Requirement ``` >=7.8.0 ``` ### Built on Node ``` v8.5.0 ``` The ```async``` and ```await``` keywords are required. Install NodeJs: https://nodejs.org/en/download/package-manager/ # Description [//]: #@corifeus-header:end It is the common GitHub pages for all Corifeus projects. # AOT Right now, NPM LINKED modules not working with ```tsconfig.json```. # More info [API](https://api.github.com/) [Repositories](https://api.github.com/users/patrikx3/repos) There is an error in TypeScript. The workaround is in ```tsconfig.json```: ```javascript "skipLibCheck": true, ``` Should remove once it works. # Node SASS errors ```bash nodejs node_modules/node-sass/scripts/install.js npm rebuild node-sass ``` [//]: #@corifeus-footer --- [**CORIFEUS-APP-WEB-PAGES**](https://pages.corifeus.com/corifeus-app-web-pages) Build v4.4.43-231 [Corifeus](http://www.corifeus.com) by [Patrik Laszlo](http://patrikx3.com) [//]: #@corifeus-footer:endcorifeus-app-web-pages.iml000066400000000000000000000005171516074424000160340ustar00rootroot00000000000000 package.json000066400000000000000000000020311516074424000133430ustar00rootroot00000000000000{ "name": "corifeus-app-web-pages", "version": "4.4.43-231", "corifeus": { "icon": "fa fa-sitemap", "code": "Support", "cdn": true, "nodejs": "v8.5.0" }, "description": "Corifeus App Web Pages - Support", "main": "src/index.js", "directories": { "test": "test" }, "scripts": { "test": "grunt" }, "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/patrikx3/corifeus-app-web-pages.git" }, "keywords": [ "corifeus", "pages" ], "author": "Patrik Laszlo ", "bugs": { "url": "https://github.com/patrikx3/corifeus-app-web-pages/issues" }, "homepage": "https://pages.corifeus.com/corifeus-app-web-pages", "dependencies": { "@types/marked": "0.3.0", "corifeus-builder-angular": "^4.4.48-169", "corifeus-utils": "^1.1.528-166", "corifeus-web-material": "^4.4.59-172", "highlight.js": "^9.12.0", "marked": "^0.3.6", "p3x-angular-compile": "^4.4.55-144" }, "engines": { "node": ">=7.8.0" } }src/000077500000000000000000000000001516074424000116505ustar00rootroot00000000000000src/angular/000077500000000000000000000000001516074424000133015ustar00rootroot00000000000000src/angular/application.ts000066400000000000000000000002711516074424000161540ustar00rootroot00000000000000import { Component, } from '@angular/core'; @Component({ selector: 'cory-web-pages-app', template: ` ` }) export class Application { }src/angular/bundle.aot.ts000066400000000000000000000005111516074424000157010ustar00rootroot00000000000000import { platformBrowser } from '@angular/platform-browser'; // must be the first, or 2nd import { enableProdMode } from '@angular/core'; enableProdMode(); import './bundle.common'; import {ModuleNgFactory} from '../../build/aot/src/angular/module.ngfactory'; platformBrowser().bootstrapModuleFactory(ModuleNgFactory); src/angular/bundle.common.ts000066400000000000000000000001131516074424000164040ustar00rootroot00000000000000import 'corifeus-web-material/src/bundle'; import '../assets/style.scss'; src/angular/bundle.ts000066400000000000000000000004561516074424000151270ustar00rootroot00000000000000import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { enableProdMode } from '@angular/core'; if (process.env.ENV === 'production') { enableProdMode(); } import './bundle.common'; import {Module} from './module'; platformBrowserDynamic().bootstrapModule(Module); src/angular/component/000077500000000000000000000000001516074424000153035ustar00rootroot00000000000000src/angular/component/cory-web-pages-build-status.ts000066400000000000000000000025601516074424000231200ustar00rootroot00000000000000import { Component, Input } from '@angular/core'; import {LocaleService, LocaleSubject} from "corifeus-web"; @Component({ selector: 'cory-web-pages-build-status', styles: [` span { position: relative; top: 3px; } `], template: ` ` }) export class Status { @Input('cory-repo') repo: string; tooltipPosition: string = 'above' i18n: any constructor( protected locale: LocaleService, ) { this.locale.subscribe((subject: LocaleSubject) => { this.i18n = subject.locale.data }); } }src/angular/layout/000077500000000000000000000000001516074424000146165ustar00rootroot00000000000000src/angular/layout/cory-layout.html000066400000000000000000000050341516074424000177750ustar00rootroot00000000000000
v{{ packageJson.version }}
src/angular/layout/cory-layout.ts000066400000000000000000000107131516074424000174570ustar00rootroot00000000000000import { Component, Injectable, ViewEncapsulation, ViewChild, } from '@angular/core'; import { ActivatedRoute, } from '@angular/router'; import { MdSidenav } from '@angular/material' import { RouterService, } from 'corifeus-web'; import { Http } from '@angular/http'; import * as moment from 'moment'; import { CdnService} from '../service'; import {LocaleService, LocaleSubject, SettingsService} from 'corifeus-web'; import {NotifyService} from 'corifeus-web-material'; import { Observable } from 'rxjs'; import { extractTitle } from '../utils/extracTitle'; @Component({ selector: 'cory-layout', templateUrl: 'cory-layout.html', encapsulation: ViewEncapsulation.None }) @Injectable() export class Layout { menuMenuActive: any; menuRepoActive: any extractTitle = extractTitle; @ViewChild('menuSidenav', {read: MdSidenav}) public menuSidenav : MdSidenav; currentRepo: string; body = document.getElementsByTagName('body')[0]; i18n: any; config: any; repos: any[]; public repo: any[]; packages: any = {}; settings: any; packageJson: any = { version: undefined, corifeus: { ['time-stamp']: undefined, code : '', publish: false, } } title: string; icon: string; moment = moment; noScript: any; constructor( private cdn: CdnService, private router: RouterService, private route: ActivatedRoute, protected notify: NotifyService, private http: Http, protected locale: LocaleService, protected settingsAll: SettingsService ) { this.settings = settingsAll.data.pages; this.currentRepo = this.settings.github.defaultRepo; this.locale.subscribe((data: LocaleSubject) => { this.i18n = data.locale.data.pages; }); this.noScript = document.getElementById('cory-seo'); this.route.params.subscribe((params) => { this.currentRepo = params.repo if (params.repo === undefined) { this.currentRepo = this.settings.github.defaultRepo; } this.load(); /* if (!location.pathname.endsWith('.html')) { this.navigate(); } */ }) } async load() { let packageJsonResponse : any; let repos : any; let repo: any; [ repos, repo, packageJsonResponse ] = await Promise.all([ this.cdn.repos(), this.cdn.repo(this.currentRepo), this.cdn.file(this.currentRepo, 'package.json'), ]); this.repos = >repos; this.repo = >repo; this.packageJson = JSON.parse(packageJsonResponse.text()); this.title = this.packageJson.description; this.icon = this.packageJson.corifeus.icon !== undefined ? `fa ${this.packageJson.corifeus.icon}` : 'fa fa-bolt'; document.title = this.title; this.noScript.innerHTML = ''; this.repos.forEach((repo : any) => { const a = document.createElement('a'); a.href = `/${repo.name}`; a.innerText = repo.description; this.noScript.appendChild(a) }) const packages = this.repos.map((repo) => { return new Promise(async(resolve, reject) => { try { const pkg = await this.cdn.file(repo.name, 'package.json'); resolve({ pkgResponse: pkg, repo: repo.name, }) } catch(e) { reject(e); } }) }) const packageResult = await Promise.all(packages); packageResult.forEach((packageResultItem: any) => { const packageItem = JSON.parse(packageResultItem.pkgResponse.text()); this.packages[packageResultItem.repo] = packageItem; }) } async navigate(path? : string) { if (path === undefined) { path = `github/${this.currentRepo}/index.html`; } this.menuMenuActive = ''; this.router.navigateTop([path]); } packageMenuClose() { // this.body.style.overflowY = 'auto'; this.menuSidenav.close(); } packageMenuOpen() { // this.body.style.overflowY = 'hidden'; this.menuSidenav.open(); } }src/angular/layout/footer/000077500000000000000000000000001516074424000161145ustar00rootroot00000000000000src/angular/layout/footer/cory-layout-footer.html000066400000000000000000000032541516074424000225710ustar00rootroot00000000000000 src/angular/layout/footer/cory-layout-footer.ts000066400000000000000000000061731516074424000222560ustar00rootroot00000000000000import { Component, Injectable, Host, } from '@angular/core'; import { DomSanitizer, SafeUrl, } from '@angular/platform-browser'; import { LocaleService, SettingsService, LocaleSubject, decodeEntities, MediaQueryService, MediaQuerySettingType, MediaQuerySetting } from "corifeus-web"; import { NotifyService, ThemeService } from 'corifeus-web-material'; import { Layout } from '../cory-layout'; class Tooltip { GitHub: string Npm: string Translation: string Theme: string Developer: string Sponsored: string } @Component({ selector: 'cory-layout-footer', templateUrl: 'cory-layout-footer.html', }) @Injectable() export class Footer { npmSvg: SafeUrl = require('../../../assets/npm-logo.svg'); settings : any; i18n : any; decodeEntities: Function = decodeEntities; tooltip: Tooltip = new Tooltip() tooltipPosition: string = 'above' currentWidthAlias: string; constructor( private notify: NotifyService, private theme: ThemeService, @Host() public parent: Layout, protected locale: LocaleService, protected settingsAll: SettingsService, private mediaQuery: MediaQueryService, private domSanitizer: DomSanitizer ) { this.settings = settingsAll.data.pages; this.npmSvg = this.domSanitizer.bypassSecurityTrustUrl(require('../../../assets/npm-logo.svg')) this.locale.subscribe((data: LocaleSubject) => { this.i18n = data.locale.data; this.setTooltip(); }); this.mediaQuery.register([ { name: 'small', min: 0, max: 710, type: MediaQuerySettingType.Width }, { name: 'large', min: 711, max: Infinity, type: MediaQuerySettingType.Width } ]) this.mediaQuery.subscribe((settings : MediaQuerySetting[]) => { settings.forEach((setting) => this.setTooltip(setting.name)) }) } private setTooltip(alias?: string) { if (alias !== undefined) { this.currentWidthAlias= alias; } switch (this.currentWidthAlias) { case 'small': this.tooltip.GitHub = 'GitHub'; this.tooltip.Npm = 'NPM'; this.tooltip.Developer = decodeEntities(this.i18n.pages.title.developer); this.tooltip.Sponsored = this.i18n.pages.title.sponsored; break; default: this.tooltip.GitHub = ""; this.tooltip.Npm = ""; this.tooltip.Developer = ""; this.tooltip.Sponsored = ""; break; } } public get linkDeveloper() { return `http://patrikx3.com/${this.locale.current}`; } public get linkNpm() { return `https://www.npmjs.com/package/${this.parent.packageJson.name}`; } public get linkGithub() { return `https://github.com/patrikx3/${this.parent.currentRepo}`; } } src/angular/layout/header/000077500000000000000000000000001516074424000160465ustar00rootroot00000000000000src/angular/layout/header/cory-layout-header.html000066400000000000000000000074341516074424000224610ustar00rootroot00000000000000
{{ this.settings.github.repoNames }} {{ parent.packageJson.corifeus.type }} {{ parent.packageJson.corifeus.code }}
src/angular/layout/header/cory-layout-header.scss000066400000000000000000000007351516074424000224650ustar00rootroot00000000000000.cory-layout-header-top { opacity: 0.5; font-size: 14px; position: relative; top: 20px; left: -65px; z-index: 10; .cory-layout-header-top-p3x { text-transform: uppercase; } @media screen and (max-width: 700px) { top: 15px; } } .cory-layout-header-title { font-size: 30px !important; overflow: hidden; text-overflow: ellipsis; position: relative; top: -5px; @media screen and (max-width: 700px) { font-size: 16px !important; } } src/angular/layout/header/cory-layout-header.ts000066400000000000000000000024271516074424000221400ustar00rootroot00000000000000import { Component, Host } from '@angular/core'; const hasIn = require('lodash/hasIn'); const capitalize = require('lodash/capitalize'); import { Router, } from '@angular/router'; import { Layout } from '../cory-layout'; import { LocaleService, SettingsService, LocaleSubject } from "corifeus-web"; import { extractTitle } from '../../utils/extracTitle'; @Component({ selector: 'cory-layout-header', templateUrl: 'cory-layout-header.html', }) export class Header { header : string; i18n : any; settings: any; extractTitle = extractTitle; constructor( @Host() public parent: Layout, private router: Router, protected locale: LocaleService, protected settingsAll: SettingsService ) { this.settings = settingsAll.data.pages; this.locale.subscribe((data : LocaleSubject) => { this.i18n = data.locale.data; }); this.header = capitalize(this.settings.github.repoNames ); } linkExternal(link : string) { return link.startsWith('http'); } navigateMenu(link : string) { if (this.linkExternal(link)) { return window.open(link); } this.parent.navigate('github/' + this.parent.currentRepo + '/' + link ); } }src/angular/layout/index.ts000066400000000000000000000002231516074424000162720ustar00rootroot00000000000000export { Header } from "./header/cory-layout-header"; export { Footer } from "./footer/cory-layout-footer"; export { Layout } from "./cory-layout";src/angular/module.ts000066400000000000000000000074731516074424000151510ustar00rootroot00000000000000import { NgModule , Injectable } from '@angular/core'; import { RouterModule } from '@angular/router'; import { CorifeusMaterialModule, ThemeService } from 'corifeus-web-material'; import { LocaleService, SettingsService } from 'corifeus-web'; import { CompileModule} from "p3x-angular-compile" import { Application } from './application'; import { Layout, Header, Footer } from './layout'; import { Status} from './component/cory-web-pages-build-status'; import { Page } from './modules'; import { CdnService, MarkdownService } from './service'; import { routes } from './routes'; const template = require('lodash/template'); import { MdAutocompleteModule, MdButtonModule, MdButtonToggleModule, MdCardModule, MdCheckboxModule, MdChipsModule, MdCommonModule, MdDatepickerModule, MdDialogModule, MdExpansionModule, MdGridListModule, MdIconModule, MdInputModule, MdLineModule, MdListModule, MdMenuModule, MdNativeDateModule, MdOptionModule, MdPaginatorModule, MdProgressBarModule, MdProgressSpinnerModule, MdRadioModule, MdRippleModule, MdSelectModule, MdSidenavModule, MdSliderModule, MdSlideToggleModule, MdSnackBarModule, MdSortModule, MdTableModule, MdTabsModule, MdToolbarModule, MdTooltipModule, } from '@angular/material'; /*** * NEVER USE A EXPORT * AS, NEED THE EXACT COMPONENT FOR INJECTABLE FUNCTION!!!! */ @NgModule({ imports: [ CorifeusMaterialModule, CompileModule.forRoot({ module: { imports: [ MdAutocompleteModule, MdButtonModule, MdButtonToggleModule, MdCardModule, MdCheckboxModule, MdChipsModule, MdCommonModule, MdDatepickerModule, MdDialogModule, MdExpansionModule, MdGridListModule, MdIconModule, MdInputModule, MdLineModule, MdListModule, MdMenuModule, MdNativeDateModule, MdOptionModule, MdPaginatorModule, MdProgressBarModule, MdProgressSpinnerModule, MdRadioModule, MdRippleModule, MdSelectModule, MdSidenavModule, MdSliderModule, MdSlideToggleModule, MdSnackBarModule, MdSortModule, MdTableModule, MdTabsModule, MdToolbarModule, MdTooltipModule, ] } }), RouterModule.forRoot(routes), ], entryComponents: [ ], declarations: [ Application, Layout, Header, Footer, Page, Status ], providers: [ CdnService, MarkdownService, ], bootstrap: [ Application ] }) @Injectable() export class Module { constructor( private loc : LocaleService, private settings: SettingsService, private theme: ThemeService, ) { let settingsExtendJson= require('../json/settings.core.json'); settings.extend('core', settingsExtendJson); settings.afterInit(); const module = 'pages'; let settingsJson = require('../json/settings.json'); settingsJson.github.url.repos = template(settingsJson.github.url.repos)(settingsJson); settings.register(module, settingsJson); loc.register(module, { en: require('../json/translation/english.json'), hu: require('../json/translation/hungarian.json'), }) } } src/angular/modules/000077500000000000000000000000001516074424000147515ustar00rootroot00000000000000src/angular/modules/cory-page.ts000066400000000000000000000031061516074424000172070ustar00rootroot00000000000000import { Component, Host, NgModule, } from '@angular/core'; import { ActivatedRoute, } from '@angular/router'; import { Http } from '@angular/http'; import { RouterService } from 'corifeus-web'; import { Layout } from '../layout/cory-layout'; import { CdnService, MarkdownService } from '../service'; import { SettingsService } from 'corifeus-web'; @Component({ selector: 'cory-page', template: ` ` }) export class Page { content: any; constructor( @Host() public parent: Layout, private markdown: MarkdownService, private cdn: CdnService, private router: RouterService, private route: ActivatedRoute, public http: Http, private settings: SettingsService ) { this.markdown.context = this; this.route.url.subscribe((segment) => { const path = segment.join('/'); this.navigate(path); }) } async navigate(path? : string) { if (path === undefined || path === '') { path = `index.html`; }; try { const response = await this.cdn.file(this.parent.currentRepo, path); let text = response.text(); if (path.toLowerCase().endsWith('.json')) { text = ` \`\`\`json ${text} \`\`\` ` } this.content = this.markdown.render(text, this.parent); } catch(e) { this.router.navigateTop(['/github/corifeus/404']); } } } src/angular/modules/index.ts000066400000000000000000000000351516074424000164260ustar00rootroot00000000000000export * from "./cory-page"; src/angular/polyfills.ts000066400000000000000000000000451516074424000156650ustar00rootroot00000000000000import 'corifeus-web/src/polyfills'; src/angular/routes/000077500000000000000000000000001516074424000146225ustar00rootroot00000000000000src/angular/routes/index.ts000066400000000000000000000013601516074424000163010ustar00rootroot00000000000000import { Routes } from '@angular/router'; import { Layout } from '../layout'; import { Page } from '../modules/cory-page'; import { Http404 } from 'corifeus-web-material'; export const routes: Routes = [ { path: 'github/:repo', component: Layout, children: [ { path: '404', component: Http404 }, { path: '**', component: Page } ] }, { path: '', //fixme AOT dynamic route redirectTo: `/github/corifeus`, // redirectTo: `/github/${settings.github.defaultRepo}`, pathMatch: 'full' }, { path: ':repo', redirectTo: '/github/:repo' }, ];src/angular/service/000077500000000000000000000000001516074424000147415ustar00rootroot00000000000000src/angular/service/cdn.ts000066400000000000000000000053201516074424000160550ustar00rootroot00000000000000import { Injectable } from '@angular/core'; import { Http, Response, Headers, RequestOptionsArgs } from '@angular/http'; import { SettingsService } from 'corifeus-web'; const template = require('lodash/template'); import 'rxjs/add/operator/toPromise'; const cache : any = {}; @Injectable() export class CdnService { private _repos : Promise; private requestOptions: any private settings : any; constructor( private http: Http, private settingsAll: SettingsService ) { this.settings = settingsAll.data.pages; const headers = new Headers(); headers.append('Authorization', `token ${atob(this.settings.github.token)}`); this.requestOptions = { headers: headers }; } async repos() : Promise { if (this._repos === undefined) { const patternExcludes : any = this.settings.github['exclude-starts-with'].map((exclude : any) => { return exclude.toLowerCase(); }); this._repos = this.http.get(this.settings.github.url.repos, this.requestOptions).toPromise().then((response: Response) => { const result = response.json().filter((repo : any) => { const name = repo.name.toLowerCase(); let excluded = false; for(let patternExclude of patternExcludes) { if (name.startsWith(patternExclude)) { excluded = true; break; } } return !excluded; }); return result; }); } return this._repos; } url(repo: string, path: string) : string { const params = { user: this.settings.github.user, path: path, repo: repo }; const url =template(this.settings.github.url.file)(params); return url; } async file(repo: string, path : string) : Promise { const postfix = '.html'; const index = `index${postfix}`; if (path.endsWith(index)) { path = path.substr(0, path.length - index.length) + 'README.md'; } if (path.endsWith(postfix)){ path = path.substr(0, path.length - postfix.length) + '.md'; } const url = `https://cdn.corifeus.com/git/${repo}/${path}`; if (cache[url] === undefined) { cache[url] = await this.http.get(url).toPromise(); } return cache[url]; } async repo(name: string) : Promise { const repos = await this.repos(); return repos.find((repo: any) => repo.name === name); } }src/angular/service/index.ts000066400000000000000000000001231516074424000164140ustar00rootroot00000000000000export { CdnService } from "./cdn"; export {MarkdownService } from "./markdown"; src/angular/service/markdown.ts000066400000000000000000000126321516074424000171370ustar00rootroot00000000000000import { Injectable } from '@angular/core'; const hljs = require('highlight.js/lib/highlight.js'); hljs.registerLanguage('xml', require('highlight.js/lib/languages/xml.js')); hljs.registerLanguage('css', require('highlight.js/lib/languages/css.js')); hljs.registerLanguage('scss', require('highlight.js/lib/languages/scss.js')); hljs.registerLanguage('powershell', require('highlight.js/lib/languages/powershell.js')); hljs.registerLanguage('javascript', require('highlight.js/lib/languages/javascript.js')); hljs.registerLanguage('json', require('highlight.js/lib/languages/json.js')); hljs.registerLanguage('bash', require('highlight.js/lib/languages/shell.js')); hljs.registerLanguage('typescript', require('highlight.js/lib/languages/typescript.js')); import * as marked from 'marked'; import { Layout } from '../layout/cory-layout'; import { IsBot } from 'corifeus-web'; @Injectable() export class MarkdownService { markdownRenderer: any = new marked.Renderer(); public context : any; layout: Layout; constructor() { this.markdownRenderer.image = (href: string, title: string, text: string) => { title = title || ''; text = text || ''; if (!href.startsWith('http')) { href = `https://cdn.corifeus.com/git/${this.layout.currentRepo}/${href}`; } const result = ` ${title} ${text} `; return result; }; this.markdownRenderer.link = (href: string, title: string, text: string) => { let a; let tooltip = ''; if (title !== null ) { tooltip = `mdTooltip="${title}" mdTooltipPosition="above"`; } let fixed = false; let path; if (href.includes(`/${this.context.settings.data.pages.defaultDomain}/`)) { const url = new URL(href); href = url.pathname.substr(1); path = `github/${href}/index.html`; fixed = true; } if (!href.startsWith(location.origin) && (href.startsWith('https:/') || href.startsWith('http:/'))) { a = `${text} `; } else { if (!fixed) { // console.log('not fixed'); // console.log(href); if (href.endsWith('.md')) { href = href.substr(0, href.length - 3) + '.html'; } if (href.startsWith(location.origin)) { path = href.substring(location.origin.length + 1) } else { path = `github/${this.context.parent.currentRepo}/${href}`; } } a = `${text}`; // console.log(path); // console.log(a); } return a; } this.markdownRenderer.code = (code :string, language :string) => { if (language === undefined) { language = 'text'; } if ((hljs.getLanguage(language) === 'undefined' || hljs.getLanguage(language) === undefined) && language !== 'text') { console.error(`Please add highlight.js as a language (could be a marked error as well, sometimes it thinks a language): ${language} We are not loading everything, since it is about 500kb`) } language = language === 'text' || language === undefined ? 'html' : language; const validLang = !!(language && hljs.getLanguage(language)); const highlighted = validLang ? hljs.highlight(language, code).value : code; return `
${highlighted}
`; }; this.markdownRenderer.codespan = (code: string) => { const lang = 'html'; const highlighted = hljs.highlight(lang, code).value ; return `${highlighted}`; } } private extract(template: string, area: string) : string { // [//]: #@corifeus-header // [//]: #corifeus-header:end // [//]: #@corifeus-footer // [//]: #@corifeus-footer:end const start = `[//]: #@${area}`; const end = `[//]: #@${area}:end`; const startIndex = template.indexOf(start); const endIndex = template.indexOf(end); let result : string = template.substring(0, startIndex); result += template.substring(endIndex); return result; } public render(md: string, layout: Layout ) { this.layout = layout; md = this.extract(md, 'corifeus-header'); md = this.extract(md, 'corifeus-footer'); let html = marked(md, { renderer: this.markdownRenderer }); html = html.replace(/{/g, '{').replace(/}/g, '}'); html = html.replace(/&/g, '&'); return html; } }src/angular/utils/000077500000000000000000000000001516074424000144415ustar00rootroot00000000000000src/angular/utils/extracTitle.ts000066400000000000000000000012721516074424000173030ustar00rootroot00000000000000 export function extractTitle(pkg: any) : string { if (pkg === undefined) { return; } if (pkg.name === undefined) { return; } if (pkg.name === 'corifeus' ) { return 'Corifeus'; } if (pkg.name.startsWith('grunt')) { let result = pkg.name.split('-').map((word: string) => { return word[0].toUpperCase() + word.substr(1) }); result = result.slice(); result.splice(1, 1); return result.join(' '); } else { let result = pkg.name.split('-').map((word: string) => { return word[0].toUpperCase() + word.substr(1) }).slice(1).join(' '); return result; } } src/assets/000077500000000000000000000000001516074424000131525ustar00rootroot00000000000000src/assets/_settings.scss000066400000000000000000000016561516074424000160560ustar00rootroot00000000000000$cory-layout-settings-defaultDomain: "pages.corifeus.com"; $cory-layout-settings-github-defaultRepo: "corifeus"; $cory-layout-settings-github-token: "OWY3MDgzMTllOWYyNWQwNjc3MTgwMTUwMzQ2ZDljNzY5ZmExYjU4Yg=="; $cory-layout-settings-github-user: "patrikx3"; $cory-layout-settings-github-repoNames: "corifeus"; $cory-layout-settings-github-exclude-starts-with: "address-book" , "fortune-cookie" , "resume" , "service-manager-tray-for-windows" , "gitter" , "gitlist-workspace" , "gitlist" , "cookie" , "jgrowl" , "electron-apps" , "grunt-angular-templates" , "stackicons" , "npm-check-updates" , "node-v8-workers" , "js-written-number" , "VS2015-Dark-Npp"; $cory-layout-settings-github-url-repos: "https://api.github.com/users/${github.user}/repos?per_page=100000"; $cory-layout-settings-github-url-repo: "https://api.github.com/repos/${user}/${repo}"; $cory-layout-settings-github-url-file: "https://${user}.github.io/${repo}/${path}"; src/assets/_variables.scss000066400000000000000000000002101516074424000161470ustar00rootroot00000000000000$cory-layout-fixed-zindex: 0; $cory-layout-fixed-height: 85px; $cory-layout-fixed-height-collapsed: 45px; $cory-layout-padding: 20px; src/assets/npm-logo.svg000066400000000000000000000011571516074424000154270ustar00rootroot00000000000000 src/assets/style.scss000066400000000000000000000055701516074424000152160ustar00rootroot00000000000000@import "_variables"; @import 'corifeus-web-material/src/scss/all'; @import '@angular/material/theming'; .cory-mat-theme-light { @import 'CSS:../../node_modules/highlight.js/styles/github'; } .cory-mat-theme-dark { @import 'CSS:../../node_modules/highlight.js/styles/tomorrow-night'; } img { max-width: 100%; height: auto; } .mat-toolbar { @media screen and (max-width: $cory-mat-size-xsmall) { padding-left: 0px !important; padding-right: 0px !important; } } .cory-layout-menus { // max-width: $cory-mat-size-medium; margin-left: auto; margin-right: auto; height: 50px !important; } .cory-layout-fa { font-size: 23px !important; } .cory-mat-footer { .mat-button { text-overflow: ellipsis; // overflow: hidden; } } .cory-mat-header, .cory-mat-footer { @media screen and (max-width: $cory-mat-size-xsmall) { .mat-button { min-width: 36px !important; } }; } .cory-mat-theme-light { .cory-mat-header { border-bottom: 5px solid rgba(0,0,0,0.1); } .cory-mat-footer { border-top: 5px solid rgba(0,0,0,0.1); } .cory-mat-header, .cory-mat-footer { box-shadow: 0px 0px 100px 10px rgba(0,0,0,0.25); } } .cory-mat-theme-dark { .cory-mat-header { border-bottom: 5px solid rgba(255,255,255,0.1); } .cory-mat-footer { border-top: 5px solid rgba(255,255,255,0.1); } .cory-mat-header, .cory-mat-footer { box-shadow: 0px 0px 100px 10px rgba(255,255,255,0.15); } } .cory-layout-link-external { .fa { opacity: 0.5; } &:hover { .fa { opacity: 1; } } } /* .cory-layout-container-fixed { margin-top: $cory-mat-fixed-height-collapsed; margin-bottom: $cory-mat-fixed-height-collapsed; @media screen and (min-width: $cory-mat-size-xsmall) { margin-top: $cory-mat-fixed-height; margin-bottom: $cory-mat-fixed-height; } @media screen and (min-width: $cory-mat-size-medium) { width: $cory-mat-size-medium - 100; margin-left: auto; margin-right: auto; }; } */ .cory-layout-sidenav-container { background: none !important; position: absolute; z-index: 1; top: 0px; left: 0px; width: 100%; height: 100%; padding-top: $cory-mat-fixed-height-collapsed; padding-bottom: $cory-mat-fixed-height-collapsed; @media screen and (min-width: $cory-mat-size-xsmall) { padding-top: $cory-mat-fixed-height-top; padding-bottom: $cory-mat-fixed-height-bottom; } @media screen and (min-width: $cory-mat-size-medium) { margin-left: auto; margin-right: auto; padding-left: auto; padding-right: auto; }; } //corifeus-inject @import '../angular/layout/header/cory-layout-header.scss'; //corifeus-inject:end src/index.html000066400000000000000000000003721516074424000136470ustar00rootroot00000000000000 p3x src/json/000077500000000000000000000000001516074424000126215ustar00rootroot00000000000000src/json/settings.core.json000066400000000000000000000001601516074424000163000ustar00rootroot00000000000000{ "integration": { "google": { "analytics": "UA-102164992-1", "tag": "GTM-N4H9QTM" } } }src/json/settings.json000066400000000000000000000015251516074424000153570ustar00rootroot00000000000000{ "defaultDomain": "pages.corifeus.com", "github": { "defaultRepo": "corifeus", "token": "OWY3MDgzMTllOWYyNWQwNjc3MTgwMTUwMzQ2ZDljNzY5ZmExYjU4Yg==", "user": "patrikx3", "repoNames": "corifeus", "exclude-starts-with": [ "address-book", "fortune-cookie", "resume", "service-manager-tray-for-windows", "gitter", "gitlist-workspace", "gitlist", "cookie", "jgrowl", "electron-apps", "grunt-angular-templates", "stackicons", "npm-check-updates", "node-v8-workers", "js-written-number", "VS2015-Dark-Npp" ], "url": { "repos": "https://api.github.com/users/${github.user}/repos?per_page=100000", "repo": "https://api.github.com/repos/${user}/${repo}", "file": "https://${user}.github.io/${repo}/${path}" } } }src/json/translation/000077500000000000000000000000001516074424000151575ustar00rootroot00000000000000src/json/translation/english.json000066400000000000000000000011451516074424000175040ustar00rootroot00000000000000{ "title": { "developer": "Patrik Laszlo © 2016", "packages": "Packages", "sponsored": "IntelliJ IDEA", "travis": "Build status", "scrunitizer": { "quality": "Scrutinizer Code Quality", "coverage": "Code Coverage" } }, "menu": { "menu-corifeus-code-style": "Code style", "menu-corifeus-architecture": "Architecture", "menu-corifeus-architecture-overview": "Overview", "menu-corifeus-patterns": "Patterns", "menu-corifeus-more": "More", "menu-corifeus-more-github": "Github pages", "menu-corifeus-more-origin": "Corifeus name origin" } }src/json/translation/hungarian.json000066400000000000000000000011661516074424000200320ustar00rootroot00000000000000{ "title": { "developer": "Laszlo Patrik © 2016", "packages": "Csomagok", "sponsored": "IntelliJ IDEA", "travis": "Kiépítettség", "scrunitizer": { "quality": "Scrutinizer kód minőség", "coverage": "Kódlefedettséget" } }, "menu": { "menu-corifeus-code-style": "Kód stílus", "menu-corifeus-architecture": "Szerkezet", "menu-corifeus-architecture-overview": "Áttekintés", "menu-corifeus-patterns": "Minták", "menu-corifeus-more": "Több", "menu-corifeus-more-github": "Github oldalok", "menu-corifeus-more-origin": "Corifeus név eredete " } }src/public/000077500000000000000000000000001516074424000131265ustar00rootroot00000000000000src/public/favicon.ico000066400000000000000000000764461516074424000152700ustar00rootroot00000000000000 hF 00 %V@@ (B:(  @]KI]KI;]KI\JI]KI]KIc]KI]KI]KIq]KI]KI]KI\JH]KI]KI]KI]KI7]KI]KI]KI-]KI]KI]KHM]KI]KI]KI]KI]KI]KIC]KI]KI]KI]KIi]KI]KI]KI]KI]KI]KI]KI]KI\KI]KI]KI]KH]KI]KI]KI]KI9]KI]KI]KI\KH\KHw\KI]KI]KI]KI\KI1]JI]KI]KI]KI]KH]KI]KI]KI \KI]KI]KI]KI5]KI'\KI]KI%]KI \KI]KI]KI+\KI]KI( @ ]KIC]KH]KI-]KI]KH]KI]KI]KI]KIQ]KI_]KI]KH]KI \JI]KI]KI]KI]JI]KI]KI]KI;]KI]KI]KI7]KI]KI]KI]KI]KI]KI]KI]KI ]KI ]KI]KI]KI]KI]KI{]KI]KH]KIc]KIc]KI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I]KI]KI ]KI]KIo\KI]KI]KI]KI]KI]KI]KI]KI]KI]KH]KI]KI]KI/]JI]KI]KI\JH]KHa]KH ]KIk]KI]KI]KI]KI]KI]KI]KI]KI]KH]KI5]KI]KI]KI]KI]KI]KI\JH]KIo]KI]KI]KI]KI]KI]KI]KI]KH]JH%]KI]KI]KI\JH]KIk\KI]KI]KI]KI]KI]KI]KI;]KI]KI]KI ]KH ]KIo]KI]KI]KI]KI]KI\KH]KI\KIk]KI]KI]KI]KIG]KI ]KIc\KI]KI\JI src/public/robots.txt000066400000000000000000000000261516074424000151750ustar00rootroot00000000000000User-agent: * Allow: /test/000077500000000000000000000000001516074424000120405ustar00rootroot00000000000000test/angualr-protractor/000077500000000000000000000000001516074424000156665ustar00rootroot00000000000000test/angualr-protractor/ci.js000066400000000000000000000000221516074424000166110ustar00rootroot00000000000000console.log('ci');test/angular-karma/000077500000000000000000000000001516074424000145625ustar00rootroot00000000000000test/angular-karma/test.js000066400000000000000000000010751516074424000161020ustar00rootroot00000000000000"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var testing_1 = require("@angular/core/testing"); var cory_layout_1 = require("../../src/angular/layout/cory-layout"); describe('Layout', function () { beforeEach(function () { testing_1.TestBed.configureTestingModule({ declarations: [cory_layout_1.Layout] }); }); it('should work', function () { // let fixture = TestBed.createComponent(Page); // expect(fixture.componentInstance instanceof Page).toBe(true, 'should create a Page'); }); }); test/angular-karma/test.ts000066400000000000000000000006571516074424000161210ustar00rootroot00000000000000import { TestBed } from '@angular/core/testing'; import { Layout } from '../../src/angular/layout/cory-layout'; describe('Layout', () => { beforeEach(() => { TestBed.configureTestingModule({ declarations: [Layout]}); }); it ('should work', () => { // let fixture = TestBed.createComponent(Page); // expect(fixture.componentInstance instanceof Page).toBe(true, 'should create a Page'); }); });tsconfig.aot.json000066400000000000000000000014301516074424000143500ustar00rootroot00000000000000{ "compilerOptions": { "skipLibCheck": true, "outDir": "build/aot", "target": "es5", "module": "commonjs", "moduleResolution": "node", "sourceMap": false, "emitDecoratorMetadata": true, "experimentalDecorators": true, "noImplicitAny": true, "suppressImplicitAnyIndexErrors": true, "lib": [ "es5", "es6", "dom", "es2015.collection", "es2015.promise", "es2015.core", "es2016", "es2017" ] }, "includes": [ "src/angular/**/*", "test/angular-webpack/**/*" ], "exclude": [ "node_modules", "src/angular/boot.ts", "test/angular-webpack/angular/boot.ts", "build/browser" ], "angularCompilerOptions": { "genDir": "./build/aot", "skipMetadataEmit" : true } }tsconfig.json000066400000000000000000000013531516074424000135720ustar00rootroot00000000000000{ "compilerOptions": { "skipLibCheck": true, "baseUrl": "./", "target": "es5", "module": "commonjs", "moduleResolution": "node", "sourceMap": true, "emitDecoratorMetadata": true, "experimentalDecorators": true, "noImplicitAny": true, "suppressImplicitAnyIndexErrors": true, "lib": [ "es5", "es6", "dom", "es2015.collection", "es2015.promise", "es2015.core", "es2016", "es2017" ], "paths": { "*": [ "node_modules/@types/*", "*"] } }, "includes": [ "src/angular/**/*", "test/angular-webpack/**/*" ], "exclude": [ "node_modules", "src/angular/bundle.aot.ts", "test/angular-webpack/angular/bundle.aot.ts" ] }