code
stringlengths
3
1.05M
repo_name
stringlengths
4
116
path
stringlengths
3
942
language
stringclasses
30 values
license
stringclasses
15 values
size
int32
3
1.05M
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.9.1"/> <title>sym-ildl: source/block_diag_matrix.h File Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="search/searchdata.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { init_search(); }); </script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">sym-ildl &#160;<span id="projectnumber">1.0</span> </div> <div id="projectbrief">Incomplete LDL&#39; factorizations of indefinite symmetric matrices.</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.9.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main&#160;Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li><a href="annotated.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="files.html"><span>File&#160;List</span></a></li> <li><a href="globals.html"><span>File&#160;Members</span></a></li> </ul> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> </div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="dir_b2f33c71d4aa5e7af42a1ca61ff5af1b.html">source</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="summary"> <a href="#nested-classes">Classes</a> </div> <div class="headertitle"> <div class="title">block_diag_matrix.h File Reference</div> </div> </div><!--header--> <div class="contents"> <div class="textblock"><code>#include &lt;unordered_map&gt;</code><br /> <code>#include &lt;vector&gt;</code><br /> <code>#include &lt;string&gt;</code><br /> <code>#include &lt;fstream&gt;</code><br /> <code>#include &lt;cassert&gt;</code><br /> <code>#include &lt;iostream&gt;</code><br /> <code>#include &lt;algorithm&gt;</code><br /> <code>#include &quot;<a class="el" href="block__diag__matrix__to__string_8h_source.html">block_diag_matrix_to_string.h</a>&quot;</code><br /> <code>#include &quot;<a class="el" href="block__diag__matrix__save_8h_source.html">block_diag_matrix_save.h</a>&quot;</code><br /> </div><div class="textblock"><div class="dynheader"> Include dependency graph for block_diag_matrix.h:</div> <div class="dyncontent"> <div class="center"><img src="block__diag__matrix_8h__incl.png" border="0" usemap="#source_2block__diag__matrix_8h" alt=""/></div> <map name="source_2block__diag__matrix_8h" id="source_2block__diag__matrix_8h"> <area shape="rect" id="node9" href="block__diag__matrix__to__string_8h.html" title="block_diag_matrix_to\l_string.h" alt="" coords="685,80,843,121"/><area shape="rect" id="node11" href="block__diag__matrix__save_8h.html" title="block_diag_matrix_save.h" alt="" coords="867,87,1055,114"/></map> </div> </div><div class="textblock"><div class="dynheader"> This graph shows which files directly or indirectly include this file:</div> <div class="dyncontent"> <div class="center"><img src="block__diag__matrix_8h__dep__incl.png" border="0" usemap="#source_2block__diag__matrix_8hdep" alt=""/></div> <map name="source_2block__diag__matrix_8hdep" id="source_2block__diag__matrix_8hdep"> <area shape="rect" id="node2" href="lilc__matrix_8h.html" title="source/lilc_matrix.h" alt="" coords="31,80,177,107"/><area shape="rect" id="node3" href="solver_8h.html" title="source/solver.h" alt="" coords="43,155,165,181"/><area shape="rect" id="node4" href="ldl__driver_8cpp.html" title="ldl_driver.cpp" alt="" coords="50,229,158,256"/></map> </div> </div> <p><a href="block__diag__matrix_8h_source.html">Go to the source code of this file.</a></p> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a> Classes</h2></td></tr> <tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classblock__diag__matrix.html">block_diag_matrix&lt; el_type &gt;</a></td></tr> <tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">A quick implementation of a diagonal matrix with 1x1 and 2x2 blocks. <a href="classblock__diag__matrix.html#details">More...</a><br /></td></tr> <tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr> </table> </div><!-- contents --> <!-- start footer part --> <hr class="footer"/><address class="footer"><small> Generated on Wed May 6 2015 15:52:20 for sym-ildl by &#160;<a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/> </a> 1.8.9.1 </small></address> </body> </html>
inutard/matrix-factor
html/block__diag__matrix_8h.html
HTML
mit
6,906
# Contributing We love contributions from everyone. To make collaboration as easy as possible please make sure to follow the following conventions. ## Contributing Code 1. Fork the repo from `master`. 2. If you've added code that should be tested, add tests. 3. If you've changed APIs, update the documentation. 4. Ensure tests pass. 5. Submit a pull request. 6. Open a beer and enjoy. Cheers. ## Contributing grammatically or orthographically Since english is not our mother tongue we would be very happy if you could contribute corrections of spelling- or grammatical mistakes in markdown files or code comments. ## License By contributing, you agree that your contributions will be licensed under [MIT Licence](LICENSE).
peterwurzinger/SamlOida
CONTRIBUTING.md
Markdown
mit
730
/* * Copyright (c) scott.cgi All Rights Reserved. * * This source code belongs to project Mojoc, which is a pure C Game Engine hosted on GitHub. * The Mojoc Game Engine is licensed under the MIT License, and will continue to be iterated with coding passion. * * License : https://github.com/scottcgi/Mojoc/blob/master/LICENSE * GitHub : https://github.com/scottcgi/Mojoc * CodeStyle: https://github.com/scottcgi/Mojoc/blob/master/Docs/CodeStyle.md * * Since : 2013-8-30 * Update : 2019-1-19 * Author : scott.cgi */ #include <stdbool.h> #include <setjmp.h> #include "Engine/Graphics/Utils/Image.h" #include "Engine/Toolkit/Platform/File.h" #include "Engine/Toolkit/Platform/Log.h" #include "Engine/ThirdParty/PNG/Include/Android/png.h" /** * Callback for libpng read data. */ static void ReadPNGData(png_structp pngPtr, png_bytep data, png_size_t length) { AFile->Read(png_get_io_ptr(pngPtr), data, length); } static void* CreatePixelDataFromPNG(const char* resourceFilePath, float* outWidth, float* outHeight) { void* pixelData = NULL; File* file = NULL; do { file = AFile->Open(resourceFilePath); unsigned char head[8]; AFile->Read(file, head, 8); if (png_sig_cmp(head, 0, 8)) { ALog_E("AImage CreatePixelDataFromPNG file is not PNG, %s", resourceFilePath); break; } // create and initialize the png_struct with the desired error handler // functions. If you want to use the default stderr and longjump method, // you can supply NULL for the last three parameters. We also supply the // the compiler header file version, so that we know if the application // was compiled with a compatible version of the library. REQUIRED png_structp pngPtr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL); if (!pngPtr) { ALog_E("AImage CreatePixelDataFromPNG png_create_read_struct error, %s", resourceFilePath); break; } // allocate / initialize the memory for image information - REQUIRED png_infop infoPtr = png_create_info_struct(pngPtr); if (infoPtr == NULL) { png_destroy_read_struct(&pngPtr, NULL, NULL); ALog_E("AImage CreatePixelDataFromPNG png_create_info_struct infoPtr error, %s", resourceFilePath); break; } png_infop endInfo = png_create_info_struct(pngPtr); if (endInfo == NULL) { png_destroy_read_struct(&pngPtr, &infoPtr, NULL); ALog_E("AImage CreatePixelDataFromPNG png_create_info_struct endInfo error, %s", resourceFilePath); break; } // set error handling if you are using the setjmp/longjmp method (this is // the normal method of doing things with libpng). REQUIRED unless you // set up your own error handlers in the png_create_read_struct() earlier. if (setjmp(png_jmpbuf(pngPtr))) { // free all of the memory associated with the png_ptr and info_ptr png_destroy_read_struct(&pngPtr, &infoPtr, &endInfo); ALog_E("AImage CreatePixelDataFromPNG during setjmp error, %s", resourceFilePath); break; } // if you are using replacement read functions, instead of calling // png_init_io() here you would call: // where user_io_ptr is a structure you want available to the callbacks png_set_read_fn(pngPtr, file, ReadPNGData); // if we have already read some of the signature png_set_sig_bytes(pngPtr, 8); // the call to png_read_info() gives us all of the information from the // PNG file before the first IDAT (image data chunk). REQUIRED png_read_info(pngPtr, infoPtr); // note that png_get_IHDR() returns 32-bit data into // the application's outWidth and outHeight variables // This is an unsafe situation if these are 16-bit variables png_uint_32 pngWidth = png_get_image_width (pngPtr, infoPtr); png_uint_32 pngHeight = png_get_image_height(pngPtr, infoPtr); int bitDepth = png_get_bit_depth (pngPtr, infoPtr); int colorType = png_get_color_type(pngPtr, infoPtr); *outWidth = (float) pngWidth; *outHeight = (float) pngHeight; // force palette images to be expanded to 24-bit RGB // it may include alpha channel if (colorType == PNG_COLOR_TYPE_PALETTE) { png_set_palette_to_rgb(pngPtr); } // low-bit-depth grayscale images are to be expanded to 8 bits if (colorType == PNG_COLOR_TYPE_GRAY && bitDepth < 8) { png_set_expand_gray_1_2_4_to_8(pngPtr); } // expand any tRNS chunk data into a full alpha channel if (png_get_valid(pngPtr, infoPtr, PNG_INFO_tRNS)) { png_set_tRNS_to_alpha(pngPtr); } // reduce images with 16-bit samples to 8 bits if (bitDepth == 16) { png_set_strip_16(pngPtr); } // expand grayscale images to RGB if (colorType == PNG_COLOR_TYPE_GRAY || colorType == PNG_COLOR_TYPE_GRAY_ALPHA) { png_set_gray_to_rgb(pngPtr); } // update the png info struct. png_read_update_info(pngPtr, infoPtr); // allocate the memory to hold the image using the fields of info_ptr unsigned long rowBytes = png_get_rowbytes(pngPtr, infoPtr); // allocate the pixel data as a big block, to be given to openGL pixelData = png_malloc(pngPtr, rowBytes * pngHeight); if (pixelData == NULL) { png_destroy_read_struct(&pngPtr, &infoPtr, &endInfo); ALog_E("AImage CreatePixelDataFromPNG malloc PNG pixel data error, %s", resourceFilePath); break; } // turn on interlace handling REQUIRED if you are not using // png_read_image() To see how to handle interlacing passes // see the png_read_row() method below: int numberPasses = png_set_interlace_handling(pngPtr); for (int pass = 0; pass < numberPasses; ++pass) { for (int row = 0; row < pngHeight; ++row) { png_read_row(pngPtr, ((unsigned char*) pixelData + (row * rowBytes)), NULL); } } // read rest of file, and get additional chunks in info_ptr - REQUIRED png_read_end(pngPtr, infoPtr); // at this point you have read the entire image // clean up after the read, and free any memory allocated - REQUIRE png_destroy_read_struct(&pngPtr, &infoPtr, &endInfo); } while (false); AFile->Close(file); return pixelData; } struct AImage AImage[1] = {{ CreatePixelDataFromPNG, }};
scottcgi/Mojoc
Engine/Graphics/Utils/Image.c
C
mit
6,916
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import {CommonModule, Location} from '@angular/common'; import {SpyLocation} from '@angular/common/testing'; import {ChangeDetectionStrategy, Component, Injectable, NgModule, NgModuleFactoryLoader, NgModuleRef, NgZone, OnDestroy, ɵConsole as Console, ɵNoopNgZone as NoopNgZone} from '@angular/core'; import {ComponentFixture, TestBed, fakeAsync, inject, tick} from '@angular/core/testing'; import {By} from '@angular/platform-browser/src/dom/debug/by'; import {expect} from '@angular/platform-browser/testing/src/matchers'; import {ActivatedRoute, ActivatedRouteSnapshot, ActivationEnd, ActivationStart, CanActivate, CanDeactivate, ChildActivationEnd, ChildActivationStart, DefaultUrlSerializer, DetachedRouteHandle, Event, GuardsCheckEnd, GuardsCheckStart, Navigation, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, PRIMARY_OUTLET, ParamMap, Params, PreloadAllModules, PreloadingStrategy, Resolve, ResolveEnd, ResolveStart, RouteConfigLoadEnd, RouteConfigLoadStart, RouteReuseStrategy, Router, RouterEvent, RouterModule, RouterPreloader, RouterStateSnapshot, RoutesRecognized, RunGuardsAndResolvers, UrlHandlingStrategy, UrlSegmentGroup, UrlSerializer, UrlTree} from '@angular/router'; import {Observable, Observer, Subscription, of } from 'rxjs'; import {filter, first, map, tap} from 'rxjs/operators'; import {forEach} from '../src/utils/collection'; import {RouterTestingModule, SpyNgModuleFactoryLoader} from '../testing'; describe('Integration', () => { const noopConsole: Console = {log() {}, warn() {}}; beforeEach(() => { TestBed.configureTestingModule({ imports: [RouterTestingModule.withRoutes([{path: 'simple', component: SimpleCmp}]), TestModule], providers: [{provide: Console, useValue: noopConsole}] }); }); it('should navigate with a provided config', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.navigateByUrl('/simple'); advance(fixture); expect(location.path()).toEqual('/simple'); }))); it('should navigate from ngOnInit hook', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { router.resetConfig([ {path: '', component: SimpleCmp}, {path: 'one', component: RouteCmp}, ]); const fixture = createRoot(router, RootCmpWithOnInit); expect(location.path()).toEqual('/one'); expect(fixture.nativeElement).toHaveText('route'); }))); describe('navigation', function() { it('should navigate to the current URL', fakeAsync(inject([Router], (router: Router) => { router.onSameUrlNavigation = 'reload'; router.resetConfig([ {path: '', component: SimpleCmp}, {path: 'simple', component: SimpleCmp}, ]); const fixture = createRoot(router, RootCmp); const events: Event[] = []; router.events.subscribe(e => onlyNavigationStartAndEnd(e) && events.push(e)); router.navigateByUrl('/simple'); tick(); router.navigateByUrl('/simple'); tick(); expectEvents(events, [ [NavigationStart, '/simple'], [NavigationEnd, '/simple'], [NavigationStart, '/simple'], [NavigationEnd, '/simple'] ]); }))); describe('relativeLinkResolution', () => { beforeEach(inject([Router], (router: Router) => { router.resetConfig([{ path: 'foo', children: [{path: 'bar', children: [{path: '', component: RelativeLinkCmp}]}] }]); })); it('should not ignore empty paths in legacy mode', fakeAsync(inject([Router], (router: Router) => { router.relativeLinkResolution = 'legacy'; const fixture = createRoot(router, RootCmp); router.navigateByUrl('/foo/bar'); advance(fixture); const link = fixture.nativeElement.querySelector('a'); expect(link.getAttribute('href')).toEqual('/foo/bar/simple'); }))); it('should ignore empty paths in corrected mode', fakeAsync(inject([Router], (router: Router) => { router.relativeLinkResolution = 'corrected'; const fixture = createRoot(router, RootCmp); router.navigateByUrl('/foo/bar'); advance(fixture); const link = fixture.nativeElement.querySelector('a'); expect(link.getAttribute('href')).toEqual('/foo/simple'); }))); }); it('should set the restoredState to null when executing imperative navigations', fakeAsync(inject([Router], (router: Router) => { router.resetConfig([ {path: '', component: SimpleCmp}, {path: 'simple', component: SimpleCmp}, ]); const fixture = createRoot(router, RootCmp); let event: NavigationStart; router.events.subscribe(e => { if (e instanceof NavigationStart) { event = e; } }); router.navigateByUrl('/simple'); tick(); expect(event !.navigationTrigger).toEqual('imperative'); expect(event !.restoredState).toEqual(null); }))); it('should set history.state if passed using imperative navigation', fakeAsync(inject([Router, Location], (router: Router, location: SpyLocation) => { router.resetConfig([ {path: '', component: SimpleCmp}, {path: 'simple', component: SimpleCmp}, ]); const fixture = createRoot(router, RootCmp); let navigation: Navigation = null !; router.events.subscribe(e => { if (e instanceof NavigationStart) { navigation = router.getCurrentNavigation() !; } }); router.navigateByUrl('/simple', {state: {foo: 'bar'}}); tick(); const history = (location as any)._history; expect(history[history.length - 1].state.foo).toBe('bar'); expect(history[history.length - 1].state) .toEqual({foo: 'bar', navigationId: history.length}); expect(navigation.extras.state).toBeDefined(); expect(navigation.extras.state).toEqual({foo: 'bar'}); }))); it('should not pollute browser history when replaceUrl is set to true', fakeAsync(inject([Router, Location], (router: Router, location: SpyLocation) => { router.resetConfig([ {path: '', component: SimpleCmp}, {path: 'a', component: SimpleCmp}, {path: 'b', component: SimpleCmp} ]); const fixture = createRoot(router, RootCmp); router.navigateByUrl('/a', {replaceUrl: true}); router.navigateByUrl('/b', {replaceUrl: true}); tick(); expect(location.urlChanges).toEqual(['replace: /', 'replace: /b']); }))); it('should skip navigation if another navigation is already scheduled', fakeAsync(inject([Router, Location], (router: Router, location: SpyLocation) => { router.resetConfig([ {path: '', component: SimpleCmp}, {path: 'a', component: SimpleCmp}, {path: 'b', component: SimpleCmp} ]); const fixture = createRoot(router, RootCmp); router.navigate( ['/a'], {queryParams: {a: true}, queryParamsHandling: 'merge', replaceUrl: true}); router.navigate( ['/b'], {queryParams: {b: true}, queryParamsHandling: 'merge', replaceUrl: true}); tick(); /** * Why do we have '/b?b=true' and not '/b?a=true&b=true'? * * This is because the router has the right to stop a navigation mid-flight if another * navigation has been already scheduled. This is why we can use a top-level guard * to perform redirects. Calling `navigate` in such a guard will stop the navigation, and * the components won't be instantiated. * * This is a fundamental property of the router: it only cares about its latest state. * * This means that components should only map params to something else, not reduce them. * In other words, the following component is asking for trouble: * * ``` * class MyComponent { * constructor(a: ActivatedRoute) { * a.params.scan(...) * } * } * ``` * * This also means "queryParamsHandling: 'merge'" should only be used to merge with * long-living query parameters (e.g., debug). */ expect(router.url).toEqual('/b?b=true'); }))); }); describe('navigation warning', () => { let warnings: string[] = []; class MockConsole { warn(message: string) { warnings.push(message); } } beforeEach(() => { warnings = []; TestBed.overrideProvider(Console, {useValue: new MockConsole()}); }); describe('with NgZone enabled', () => { it('should warn when triggered outside Angular zone', fakeAsync(inject([Router, NgZone], (router: Router, ngZone: NgZone) => { ngZone.runOutsideAngular(() => { router.navigateByUrl('/simple'); }); expect(warnings.length).toBe(1); expect(warnings[0]) .toBe( `Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?`); }))); it('should not warn when triggered inside Angular zone', fakeAsync(inject([Router, NgZone], (router: Router, ngZone: NgZone) => { ngZone.run(() => { router.navigateByUrl('/simple'); }); expect(warnings.length).toBe(0); }))); }); describe('with NgZone disabled', () => { beforeEach(() => { TestBed.overrideProvider(NgZone, {useValue: new NoopNgZone()}); }); it('should not warn when triggered outside Angular zone', fakeAsync(inject([Router, NgZone], (router: Router, ngZone: NgZone) => { ngZone.runOutsideAngular(() => { router.navigateByUrl('/simple'); }); expect(warnings.length).toBe(0); }))); }); }); describe('should execute navigations serially', () => { let log: any[] = []; beforeEach(() => { log = []; TestBed.configureTestingModule({ providers: [ { provide: 'trueRightAway', useValue: () => { log.push('trueRightAway'); return true; } }, { provide: 'trueIn2Seconds', useValue: () => { log.push('trueIn2Seconds-start'); let res: any = null; const p = new Promise(r => res = r); setTimeout(() => { log.push('trueIn2Seconds-end'); res(true); }, 2000); return p; } } ] }); }); describe('should advance the parent route after deactivating its children', () => { @Component({template: '<router-outlet></router-outlet>'}) class Parent { constructor(route: ActivatedRoute) { route.params.subscribe((s: any) => { log.push(s); }); } } @Component({template: 'child1'}) class Child1 { ngOnDestroy() { log.push('child1 destroy'); } } @Component({template: 'child2'}) class Child2 { constructor() { log.push('child2 constructor'); } } @NgModule({ declarations: [Parent, Child1, Child2], entryComponents: [Parent, Child1, Child2], imports: [RouterModule] }) class TestModule { } beforeEach(() => TestBed.configureTestingModule({imports: [TestModule]})); it('should work', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'parent/:id', component: Parent, children: [ {path: 'child1', component: Child1}, {path: 'child2', component: Child2}, ] }]); router.navigateByUrl('/parent/1/child1'); advance(fixture); router.navigateByUrl('/parent/2/child2'); advance(fixture); expect(location.path()).toEqual('/parent/2/child2'); expect(log).toEqual([ {id: '1'}, 'child1 destroy', {id: '2'}, 'child2 constructor', ]); }))); }); it('should not wait for prior navigations to start a new navigation', fakeAsync(inject([Router, Location], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([ {path: 'a', component: SimpleCmp, canActivate: ['trueRightAway', 'trueIn2Seconds']}, {path: 'b', component: SimpleCmp, canActivate: ['trueRightAway', 'trueIn2Seconds']} ]); router.navigateByUrl('/a'); tick(100); fixture.detectChanges(); router.navigateByUrl('/b'); tick(100); // 200 fixture.detectChanges(); expect(log).toEqual( ['trueRightAway', 'trueIn2Seconds-start', 'trueRightAway', 'trueIn2Seconds-start']); tick(2000); // 2200 fixture.detectChanges(); expect(log).toEqual([ 'trueRightAway', 'trueIn2Seconds-start', 'trueRightAway', 'trueIn2Seconds-start', 'trueIn2Seconds-end', 'trueIn2Seconds-end' ]); }))); }); it('Should work inside ChangeDetectionStrategy.OnPush components', fakeAsync(() => { @Component({ selector: 'root-cmp', template: `<router-outlet></router-outlet>`, changeDetection: ChangeDetectionStrategy.OnPush, }) class OnPushOutlet { } @Component({selector: 'need-cd', template: `{{'it works!'}}`}) class NeedCdCmp { } @NgModule({ declarations: [OnPushOutlet, NeedCdCmp], entryComponents: [OnPushOutlet, NeedCdCmp], imports: [RouterModule], }) class TestModule { } TestBed.configureTestingModule({imports: [TestModule]}); const router: Router = TestBed.get(Router); const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'on', component: OnPushOutlet, children: [{ path: 'push', component: NeedCdCmp, }], }]); advance(fixture); router.navigateByUrl('on'); advance(fixture); router.navigateByUrl('on/push'); advance(fixture); expect(fixture.nativeElement).toHaveText('it works!'); })); it('should not error when no url left and no children are matching', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [{path: 'simple', component: SimpleCmp}] }]); router.navigateByUrl('/team/33/simple'); advance(fixture); expect(location.path()).toEqual('/team/33/simple'); expect(fixture.nativeElement).toHaveText('team 33 [ simple, right: ]'); router.navigateByUrl('/team/33'); advance(fixture); expect(location.path()).toEqual('/team/33'); expect(fixture.nativeElement).toHaveText('team 33 [ , right: ]'); }))); it('should work when an outlet is in an ngIf', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'child', component: OutletInNgIf, children: [{path: 'simple', component: SimpleCmp}] }]); router.navigateByUrl('/child/simple'); advance(fixture); expect(location.path()).toEqual('/child/simple'); }))); it('should work when an outlet is added/removed', fakeAsync(() => { @Component({ selector: 'someRoot', template: `[<div *ngIf="cond"><router-outlet></router-outlet></div>]` }) class RootCmpWithLink { cond: boolean = true; } TestBed.configureTestingModule({declarations: [RootCmpWithLink]}); const router: Router = TestBed.get(Router); const fixture = createRoot(router, RootCmpWithLink); router.resetConfig([ {path: 'simple', component: SimpleCmp}, {path: 'blank', component: BlankCmp}, ]); router.navigateByUrl('/simple'); advance(fixture); expect(fixture.nativeElement).toHaveText('[simple]'); fixture.componentInstance.cond = false; advance(fixture); expect(fixture.nativeElement).toHaveText('[]'); fixture.componentInstance.cond = true; advance(fixture); expect(fixture.nativeElement).toHaveText('[simple]'); })); it('should update location when navigating', fakeAsync(() => { @Component({template: `record`}) class RecordLocationCmp { private storedPath: string; constructor(loc: Location) { this.storedPath = loc.path(); } } @NgModule({declarations: [RecordLocationCmp], entryComponents: [RecordLocationCmp]}) class TestModule { } TestBed.configureTestingModule({imports: [TestModule]}); const router = TestBed.get(Router); const location = TestBed.get(Location); const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'record/:id', component: RecordLocationCmp}]); router.navigateByUrl('/record/22'); advance(fixture); const c = fixture.debugElement.children[1].componentInstance; expect(location.path()).toEqual('/record/22'); expect(c.storedPath).toEqual('/record/22'); router.navigateByUrl('/record/33'); advance(fixture); expect(location.path()).toEqual('/record/33'); })); it('should skip location update when using NavigationExtras.skipLocationChange with navigateByUrl', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = TestBed.createComponent(RootCmp); advance(fixture); router.resetConfig([{path: 'team/:id', component: TeamCmp}]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); expect(fixture.nativeElement).toHaveText('team 22 [ , right: ]'); router.navigateByUrl('/team/33', {skipLocationChange: true}); advance(fixture); expect(location.path()).toEqual('/team/22'); expect(fixture.nativeElement).toHaveText('team 33 [ , right: ]'); }))); it('should skip location update when using NavigationExtras.skipLocationChange with navigate', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = TestBed.createComponent(RootCmp); advance(fixture); router.resetConfig([{path: 'team/:id', component: TeamCmp}]); router.navigate(['/team/22']); advance(fixture); expect(location.path()).toEqual('/team/22'); expect(fixture.nativeElement).toHaveText('team 22 [ , right: ]'); router.navigate(['/team/33'], {skipLocationChange: true}); advance(fixture); expect(location.path()).toEqual('/team/22'); expect(fixture.nativeElement).toHaveText('team 33 [ , right: ]'); }))); it('should navigate after navigation with skipLocationChange', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = TestBed.createComponent(RootCmpWithNamedOutlet); advance(fixture); router.resetConfig([{path: 'show', outlet: 'main', component: SimpleCmp}]); router.navigate([{outlets: {main: 'show'}}], {skipLocationChange: true}); advance(fixture); expect(location.path()).toEqual(''); expect(fixture.nativeElement).toHaveText('main [simple]'); router.navigate([{outlets: {main: null}}], {skipLocationChange: true}); advance(fixture); expect(location.path()).toEqual(''); expect(fixture.nativeElement).toHaveText('main []'); }))); describe('"eager" urlUpdateStrategy', () => { beforeEach(() => { const serializer = new DefaultUrlSerializer(); TestBed.configureTestingModule({ providers: [{ provide: 'authGuardFail', useValue: (a: any, b: any) => { return new Promise(res => { setTimeout(() => res(serializer.parse('/login')), 1); }); } }] }); }); it('should eagerly update the URL with urlUpdateStrategy="eagar"', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = TestBed.createComponent(RootCmp); advance(fixture); router.resetConfig([{path: 'team/:id', component: TeamCmp}]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); expect(fixture.nativeElement).toHaveText('team 22 [ , right: ]'); router.urlUpdateStrategy = 'eager'; (router as any).hooks.beforePreactivation = () => { expect(location.path()).toEqual('/team/33'); expect(fixture.nativeElement).toHaveText('team 22 [ , right: ]'); return of (null); }; router.navigateByUrl('/team/33'); advance(fixture); expect(fixture.nativeElement).toHaveText('team 33 [ , right: ]'); }))); it('should eagerly update the URL with urlUpdateStrategy="eagar"', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = TestBed.createComponent(RootCmp); advance(fixture); router.urlUpdateStrategy = 'eager'; router.resetConfig([ {path: 'team/:id', component: SimpleCmp, canActivate: ['authGuardFail']}, {path: 'login', component: AbsoluteSimpleLinkCmp} ]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); // Redirects to /login advance(fixture, 1); expect(location.path()).toEqual('/login'); // Perform the same logic again, and it should produce the same result router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); // Redirects to /login advance(fixture, 1); expect(location.path()).toEqual('/login'); }))); it('should eagerly update URL after redirects are applied with urlUpdateStrategy="eagar"', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = TestBed.createComponent(RootCmp); advance(fixture); router.resetConfig([{path: 'team/:id', component: TeamCmp}]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); expect(fixture.nativeElement).toHaveText('team 22 [ , right: ]'); router.urlUpdateStrategy = 'eager'; let urlAtNavStart = ''; let urlAtRoutesRecognized = ''; router.events.subscribe(e => { if (e instanceof NavigationStart) { urlAtNavStart = location.path(); } if (e instanceof RoutesRecognized) { urlAtRoutesRecognized = location.path(); } }); router.navigateByUrl('/team/33'); advance(fixture); expect(urlAtNavStart).toBe('/team/22'); expect(urlAtRoutesRecognized).toBe('/team/33'); expect(fixture.nativeElement).toHaveText('team 33 [ , right: ]'); }))); }); it('should navigate back and forward', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [{path: 'simple', component: SimpleCmp}, {path: 'user/:name', component: UserCmp}] }]); let event: NavigationStart; router.events.subscribe(e => { if (e instanceof NavigationStart) { event = e; } }); router.navigateByUrl('/team/33/simple'); advance(fixture); expect(location.path()).toEqual('/team/33/simple'); const simpleNavStart = event !; router.navigateByUrl('/team/22/user/victor'); advance(fixture); const userVictorNavStart = event !; location.back(); advance(fixture); expect(location.path()).toEqual('/team/33/simple'); expect(event !.navigationTrigger).toEqual('hashchange'); expect(event !.restoredState !.navigationId).toEqual(simpleNavStart.id); location.forward(); advance(fixture); expect(location.path()).toEqual('/team/22/user/victor'); expect(event !.navigationTrigger).toEqual('hashchange'); expect(event !.restoredState !.navigationId).toEqual(userVictorNavStart.id); }))); it('should navigate to the same url when config changes', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'a', component: SimpleCmp}]); router.navigate(['/a']); advance(fixture); expect(location.path()).toEqual('/a'); expect(fixture.nativeElement).toHaveText('simple'); router.resetConfig([{path: 'a', component: RouteCmp}]); router.navigate(['/a']); advance(fixture); expect(location.path()).toEqual('/a'); expect(fixture.nativeElement).toHaveText('route'); }))); it('should navigate when locations changes', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [{path: 'user/:name', component: UserCmp}] }]); const recordedEvents: any[] = []; router.events.forEach(e => onlyNavigationStartAndEnd(e) && recordedEvents.push(e)); router.navigateByUrl('/team/22/user/victor'); advance(fixture); (<any>location).simulateHashChange('/team/22/user/fedor'); advance(fixture); (<any>location).simulateUrlPop('/team/22/user/fedor'); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ user fedor, right: ]'); expectEvents(recordedEvents, [ [NavigationStart, '/team/22/user/victor'], [NavigationEnd, '/team/22/user/victor'], [NavigationStart, '/team/22/user/fedor'], [NavigationEnd, '/team/22/user/fedor'] ]); }))); it('should update the location when the matched route does not change', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{path: '**', component: CollectParamsCmp}]); router.navigateByUrl('/one/two'); advance(fixture); const cmp = fixture.debugElement.children[1].componentInstance; expect(location.path()).toEqual('/one/two'); expect(fixture.nativeElement).toHaveText('collect-params'); expect(cmp.recordedUrls()).toEqual(['one/two']); router.navigateByUrl('/three/four'); advance(fixture); expect(location.path()).toEqual('/three/four'); expect(fixture.nativeElement).toHaveText('collect-params'); expect(cmp.recordedUrls()).toEqual(['one/two', 'three/four']); }))); describe('should reset location if a navigation by location is successful', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [{ provide: 'in1Second', useValue: (c: any, a: ActivatedRouteSnapshot, b: RouterStateSnapshot) => { let res: any = null; const p = new Promise(_ => res = _); setTimeout(() => res(true), 1000); return p; } }] }); }); it('work', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'simple', component: SimpleCmp, canActivate: ['in1Second']}]); // Trigger two location changes to the same URL. // Because of the guard the order will look as follows: // - location change 'simple' // - start processing the change, start a guard // - location change 'simple' // - the first location change gets canceled, the URL gets reset to '/' // - the second location change gets finished, the URL should be reset to '/simple' (<any>location).simulateUrlPop('/simple'); (<any>location).simulateUrlPop('/simple'); tick(2000); advance(fixture); expect(location.path()).toEqual('/simple'); }))); }); it('should support secondary routes', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [ {path: 'user/:name', component: UserCmp}, {path: 'simple', component: SimpleCmp, outlet: 'right'} ] }]); router.navigateByUrl('/team/22/(user/victor//right:simple)'); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ user victor, right: simple ]'); }))); it('should support secondary routes in separate commands', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [ {path: 'user/:name', component: UserCmp}, {path: 'simple', component: SimpleCmp, outlet: 'right'} ] }]); router.navigateByUrl('/team/22/user/victor'); advance(fixture); router.navigate(['team/22', {outlets: {right: 'simple'}}]); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ user victor, right: simple ]'); }))); it('should deactivate outlets', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [ {path: 'user/:name', component: UserCmp}, {path: 'simple', component: SimpleCmp, outlet: 'right'} ] }]); router.navigateByUrl('/team/22/(user/victor//right:simple)'); advance(fixture); router.navigateByUrl('/team/22/user/victor'); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ user victor, right: ]'); }))); it('should deactivate nested outlets', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([ { path: 'team/:id', component: TeamCmp, children: [ {path: 'user/:name', component: UserCmp}, {path: 'simple', component: SimpleCmp, outlet: 'right'} ] }, {path: '', component: BlankCmp} ]); router.navigateByUrl('/team/22/(user/victor//right:simple)'); advance(fixture); router.navigateByUrl('/'); advance(fixture); expect(fixture.nativeElement).toHaveText(''); }))); it('should set query params and fragment', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'query', component: QueryParamsAndFragmentCmp}]); router.navigateByUrl('/query?name=1#fragment1'); advance(fixture); expect(fixture.nativeElement).toHaveText('query: 1 fragment: fragment1'); router.navigateByUrl('/query?name=2#fragment2'); advance(fixture); expect(fixture.nativeElement).toHaveText('query: 2 fragment: fragment2'); }))); it('should ignore null and undefined query params', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'query', component: EmptyQueryParamsCmp}]); router.navigate(['query'], {queryParams: {name: 1, age: null, page: undefined}}); advance(fixture); const cmp = fixture.debugElement.children[1].componentInstance; expect(cmp.recordedParams).toEqual([{name: '1'}]); }))); it('should throw an error when one of the commands is null/undefined', fakeAsync(inject([Router], (router: Router) => { createRoot(router, RootCmp); router.resetConfig([{path: 'query', component: EmptyQueryParamsCmp}]); expect(() => router.navigate([ undefined, 'query' ])).toThrowError(`The requested path contains undefined segment at index 0`); }))); it('should push params only when they change', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [{path: 'user/:name', component: UserCmp}] }]); router.navigateByUrl('/team/22/user/victor'); advance(fixture); const team = fixture.debugElement.children[1].componentInstance; const user = fixture.debugElement.children[1].children[1].componentInstance; expect(team.recordedParams).toEqual([{id: '22'}]); expect(team.snapshotParams).toEqual([{id: '22'}]); expect(user.recordedParams).toEqual([{name: 'victor'}]); expect(user.snapshotParams).toEqual([{name: 'victor'}]); router.navigateByUrl('/team/22/user/fedor'); advance(fixture); expect(team.recordedParams).toEqual([{id: '22'}]); expect(team.snapshotParams).toEqual([{id: '22'}]); expect(user.recordedParams).toEqual([{name: 'victor'}, {name: 'fedor'}]); expect(user.snapshotParams).toEqual([{name: 'victor'}, {name: 'fedor'}]); }))); it('should work when navigating to /', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([ {path: '', pathMatch: 'full', component: SimpleCmp}, {path: 'user/:name', component: UserCmp} ]); router.navigateByUrl('/user/victor'); advance(fixture); expect(fixture.nativeElement).toHaveText('user victor'); router.navigateByUrl('/'); advance(fixture); expect(fixture.nativeElement).toHaveText('simple'); }))); it('should cancel in-flight navigations', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'user/:name', component: UserCmp}]); const recordedEvents: any[] = []; router.events.forEach(e => recordedEvents.push(e)); router.navigateByUrl('/user/init'); advance(fixture); const user = fixture.debugElement.children[1].componentInstance; let r1: any, r2: any; router.navigateByUrl('/user/victor') !.then(_ => r1 = _); router.navigateByUrl('/user/fedor') !.then(_ => r2 = _); advance(fixture); expect(r1).toEqual(false); // returns false because it was canceled expect(r2).toEqual(true); // returns true because it was successful expect(fixture.nativeElement).toHaveText('user fedor'); expect(user.recordedParams).toEqual([{name: 'init'}, {name: 'fedor'}]); expectEvents(recordedEvents, [ [NavigationStart, '/user/init'], [RoutesRecognized, '/user/init'], [GuardsCheckStart, '/user/init'], [ChildActivationStart], [ActivationStart], [GuardsCheckEnd, '/user/init'], [ResolveStart, '/user/init'], [ResolveEnd, '/user/init'], [ActivationEnd], [ChildActivationEnd], [NavigationEnd, '/user/init'], [NavigationStart, '/user/victor'], [NavigationCancel, '/user/victor'], [NavigationStart, '/user/fedor'], [RoutesRecognized, '/user/fedor'], [GuardsCheckStart, '/user/fedor'], [ChildActivationStart], [ActivationStart], [GuardsCheckEnd, '/user/fedor'], [ResolveStart, '/user/fedor'], [ResolveEnd, '/user/fedor'], [ActivationEnd], [ChildActivationEnd], [NavigationEnd, '/user/fedor'] ]); }))); it('should handle failed navigations gracefully', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'user/:name', component: UserCmp}]); const recordedEvents: any[] = []; router.events.forEach(e => recordedEvents.push(e)); let e: any; router.navigateByUrl('/invalid') !.catch(_ => e = _); advance(fixture); expect(e.message).toContain('Cannot match any routes'); router.navigateByUrl('/user/fedor'); advance(fixture); expect(fixture.nativeElement).toHaveText('user fedor'); expectEvents(recordedEvents, [ [NavigationStart, '/invalid'], [NavigationError, '/invalid'], [NavigationStart, '/user/fedor'], [RoutesRecognized, '/user/fedor'], [GuardsCheckStart, '/user/fedor'], [ChildActivationStart], [ActivationStart], [GuardsCheckEnd, '/user/fedor'], [ResolveStart, '/user/fedor'], [ResolveEnd, '/user/fedor'], [ActivationEnd], [ChildActivationEnd], [NavigationEnd, '/user/fedor'] ]); }))); // Errors should behave the same for both deferred and eager URL update strategies ['deferred', 'eager'].forEach((strat: any) => { it('should dispatch NavigationError after the url has been reset back', fakeAsync(() => { const router: Router = TestBed.get(Router); const location: SpyLocation = TestBed.get(Location); const fixture = createRoot(router, RootCmp); router.resetConfig( [{path: 'simple', component: SimpleCmp}, {path: 'throwing', component: ThrowingCmp}]); router.urlUpdateStrategy = strat; router.navigateByUrl('/simple'); advance(fixture); let routerUrlBeforeEmittingError = ''; let locationUrlBeforeEmittingError = ''; router.events.forEach(e => { if (e instanceof NavigationError) { routerUrlBeforeEmittingError = router.url; locationUrlBeforeEmittingError = location.path(); } }); router.navigateByUrl('/throwing').catch(() => null); advance(fixture); expect(routerUrlBeforeEmittingError).toEqual('/simple'); expect(locationUrlBeforeEmittingError).toEqual('/simple'); })); it('should reset the url with the right state when navigation errors', fakeAsync(() => { const router: Router = TestBed.get(Router); const location: SpyLocation = TestBed.get(Location); const fixture = createRoot(router, RootCmp); router.resetConfig([ {path: 'simple1', component: SimpleCmp}, {path: 'simple2', component: SimpleCmp}, {path: 'throwing', component: ThrowingCmp} ]); router.urlUpdateStrategy = strat; let event: NavigationStart; router.events.subscribe(e => { if (e instanceof NavigationStart) { event = e; } }); router.navigateByUrl('/simple1'); advance(fixture); const simple1NavStart = event !; router.navigateByUrl('/throwing').catch(() => null); advance(fixture); router.navigateByUrl('/simple2'); advance(fixture); location.back(); tick(); expect(event !.restoredState !.navigationId).toEqual(simple1NavStart.id); })); it('should not trigger another navigation when resetting the url back due to a NavigationError', fakeAsync(() => { const router = TestBed.get(Router); router.onSameUrlNavigation = 'reload'; const fixture = createRoot(router, RootCmp); router.resetConfig( [{path: 'simple', component: SimpleCmp}, {path: 'throwing', component: ThrowingCmp}]); router.urlUpdateStrategy = strat; const events: any[] = []; router.events.forEach((e: any) => { if (e instanceof NavigationStart) { events.push(e.url); } }); router.navigateByUrl('/simple'); advance(fixture); router.navigateByUrl('/throwing').catch(() => null); advance(fixture); // we do not trigger another navigation to /simple expect(events).toEqual(['/simple', '/throwing']); })); }); it('should dispatch NavigationCancel after the url has been reset back', fakeAsync(() => { TestBed.configureTestingModule( {providers: [{provide: 'returnsFalse', useValue: () => false}]}); const router: Router = TestBed.get(Router); const location: SpyLocation = TestBed.get(Location); const fixture = createRoot(router, RootCmp); router.resetConfig([ {path: 'simple', component: SimpleCmp}, {path: 'throwing', loadChildren: 'doesnotmatter', canLoad: ['returnsFalse']} ]); router.navigateByUrl('/simple'); advance(fixture); let routerUrlBeforeEmittingError = ''; let locationUrlBeforeEmittingError = ''; router.events.forEach(e => { if (e instanceof NavigationCancel) { routerUrlBeforeEmittingError = router.url; locationUrlBeforeEmittingError = location.path(); } }); location.simulateHashChange('/throwing'); advance(fixture); expect(routerUrlBeforeEmittingError).toEqual('/simple'); expect(locationUrlBeforeEmittingError).toEqual('/simple'); })); it('should support custom error handlers', fakeAsync(inject([Router], (router: Router) => { router.errorHandler = (error) => 'resolvedValue'; const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'user/:name', component: UserCmp}]); const recordedEvents: any[] = []; router.events.forEach(e => recordedEvents.push(e)); let e: any; router.navigateByUrl('/invalid') !.then(_ => e = _); advance(fixture); expect(e).toEqual('resolvedValue'); expectEvents(recordedEvents, [[NavigationStart, '/invalid'], [NavigationError, '/invalid']]); }))); it('should recover from malformed uri errors', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { router.resetConfig([{path: 'simple', component: SimpleCmp}]); const fixture = createRoot(router, RootCmp); router.navigateByUrl('/invalid/url%with%percent'); advance(fixture); expect(location.path()).toEqual('/'); }))); it('should support custom malformed uri error handler', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const customMalformedUriErrorHandler = (e: URIError, urlSerializer: UrlSerializer, url: string): UrlTree => { return urlSerializer.parse('/?error=The-URL-you-went-to-is-invalid'); }; router.malformedUriErrorHandler = customMalformedUriErrorHandler; router.resetConfig([{path: 'simple', component: SimpleCmp}]); const fixture = createRoot(router, RootCmp); router.navigateByUrl('/invalid/url%with%percent'); advance(fixture); expect(location.path()).toEqual('/?error=The-URL-you-went-to-is-invalid'); }))); it('should not swallow errors', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'simple', component: SimpleCmp}]); router.navigateByUrl('/invalid'); expect(() => advance(fixture)).toThrow(); router.navigateByUrl('/invalid2'); expect(() => advance(fixture)).toThrow(); }))); it('should replace state when path is equal to current path', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [{path: 'simple', component: SimpleCmp}, {path: 'user/:name', component: UserCmp}] }]); router.navigateByUrl('/team/33/simple'); advance(fixture); router.navigateByUrl('/team/22/user/victor'); advance(fixture); router.navigateByUrl('/team/22/user/victor'); advance(fixture); location.back(); advance(fixture); expect(location.path()).toEqual('/team/33/simple'); }))); it('should handle componentless paths', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmpWithTwoOutlets); router.resetConfig([ { path: 'parent/:id', children: [ {path: 'simple', component: SimpleCmp}, {path: 'user/:name', component: UserCmp, outlet: 'right'} ] }, {path: 'user/:name', component: UserCmp} ]); // navigate to a componentless route router.navigateByUrl('/parent/11/(simple//right:user/victor)'); advance(fixture); expect(location.path()).toEqual('/parent/11/(simple//right:user/victor)'); expect(fixture.nativeElement).toHaveText('primary [simple] right [user victor]'); // navigate to the same route with different params (reuse) router.navigateByUrl('/parent/22/(simple//right:user/fedor)'); advance(fixture); expect(location.path()).toEqual('/parent/22/(simple//right:user/fedor)'); expect(fixture.nativeElement).toHaveText('primary [simple] right [user fedor]'); // navigate to a normal route (check deactivation) router.navigateByUrl('/user/victor'); advance(fixture); expect(location.path()).toEqual('/user/victor'); expect(fixture.nativeElement).toHaveText('primary [user victor] right []'); // navigate back to a componentless route router.navigateByUrl('/parent/11/(simple//right:user/victor)'); advance(fixture); expect(location.path()).toEqual('/parent/11/(simple//right:user/victor)'); expect(fixture.nativeElement).toHaveText('primary [simple] right [user victor]'); }))); it('should not deactivate aux routes when navigating from a componentless routes', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, TwoOutletsCmp); router.resetConfig([ {path: 'simple', component: SimpleCmp}, {path: 'componentless', children: [{path: 'simple', component: SimpleCmp}]}, {path: 'user/:name', outlet: 'aux', component: UserCmp} ]); router.navigateByUrl('/componentless/simple(aux:user/victor)'); advance(fixture); expect(location.path()).toEqual('/componentless/simple(aux:user/victor)'); expect(fixture.nativeElement).toHaveText('[ simple, aux: user victor ]'); router.navigateByUrl('/simple(aux:user/victor)'); advance(fixture); expect(location.path()).toEqual('/simple(aux:user/victor)'); expect(fixture.nativeElement).toHaveText('[ simple, aux: user victor ]'); }))); it('should emit an event when an outlet gets activated', fakeAsync(() => { @Component({ selector: 'container', template: `<router-outlet (activate)="recordActivate($event)" (deactivate)="recordDeactivate($event)"></router-outlet>` }) class Container { activations: any[] = []; deactivations: any[] = []; recordActivate(component: any): void { this.activations.push(component); } recordDeactivate(component: any): void { this.deactivations.push(component); } } TestBed.configureTestingModule({declarations: [Container]}); const router: Router = TestBed.get(Router); const fixture = createRoot(router, Container); const cmp = fixture.componentInstance; router.resetConfig( [{path: 'blank', component: BlankCmp}, {path: 'simple', component: SimpleCmp}]); cmp.activations = []; cmp.deactivations = []; router.navigateByUrl('/blank'); advance(fixture); expect(cmp.activations.length).toEqual(1); expect(cmp.activations[0] instanceof BlankCmp).toBe(true); router.navigateByUrl('/simple'); advance(fixture); expect(cmp.activations.length).toEqual(2); expect(cmp.activations[1] instanceof SimpleCmp).toBe(true); expect(cmp.deactivations.length).toEqual(1); expect(cmp.deactivations[0] instanceof BlankCmp).toBe(true); })); it('should update url and router state before activating components', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'cmp', component: ComponentRecordingRoutePathAndUrl}]); router.navigateByUrl('/cmp'); advance(fixture); const cmp = fixture.debugElement.children[1].componentInstance; expect(cmp.url).toBe('/cmp'); expect(cmp.path.length).toEqual(2); }))); describe('data', () => { class ResolveSix implements Resolve<number> { resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): number { return 6; } } beforeEach(() => { TestBed.configureTestingModule({ providers: [ {provide: 'resolveTwo', useValue: (a: any, b: any) => 2}, {provide: 'resolveFour', useValue: (a: any, b: any) => 4}, {provide: 'resolveSix', useClass: ResolveSix}, {provide: 'resolveError', useValue: (a: any, b: any) => Promise.reject('error')}, {provide: 'resolveNullError', useValue: (a: any, b: any) => Promise.reject(null)}, {provide: 'numberOfUrlSegments', useValue: (a: any, b: any) => a.url.length}, ] }); }); it('should provide resolved data', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmpWithTwoOutlets); router.resetConfig([{ path: 'parent/:id', data: {one: 1}, resolve: {two: 'resolveTwo'}, children: [ {path: '', data: {three: 3}, resolve: {four: 'resolveFour'}, component: RouteCmp}, { path: '', data: {five: 5}, resolve: {six: 'resolveSix'}, component: RouteCmp, outlet: 'right' } ] }]); router.navigateByUrl('/parent/1'); advance(fixture); const primaryCmp = fixture.debugElement.children[1].componentInstance; const rightCmp = fixture.debugElement.children[3].componentInstance; expect(primaryCmp.route.snapshot.data).toEqual({one: 1, two: 2, three: 3, four: 4}); expect(rightCmp.route.snapshot.data).toEqual({one: 1, two: 2, five: 5, six: 6}); const primaryRecorded: any[] = []; primaryCmp.route.data.forEach((rec: any) => primaryRecorded.push(rec)); const rightRecorded: any[] = []; rightCmp.route.data.forEach((rec: any) => rightRecorded.push(rec)); router.navigateByUrl('/parent/2'); advance(fixture); expect(primaryRecorded).toEqual([{one: 1, three: 3, two: 2, four: 4}]); expect(rightRecorded).toEqual([{one: 1, five: 5, two: 2, six: 6}]); }))); it('should handle errors', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig( [{path: 'simple', component: SimpleCmp, resolve: {error: 'resolveError'}}]); const recordedEvents: any[] = []; router.events.subscribe(e => e instanceof RouterEvent && recordedEvents.push(e)); let e: any = null; router.navigateByUrl('/simple') !.catch(error => e = error); advance(fixture); expectEvents(recordedEvents, [ [NavigationStart, '/simple'], [RoutesRecognized, '/simple'], [GuardsCheckStart, '/simple'], [GuardsCheckEnd, '/simple'], [ResolveStart, '/simple'], [NavigationError, '/simple'] ]); expect(e).toEqual('error'); }))); it('should handle empty errors', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig( [{path: 'simple', component: SimpleCmp, resolve: {error: 'resolveNullError'}}]); const recordedEvents: any[] = []; router.events.subscribe(e => e instanceof RouterEvent && recordedEvents.push(e)); let e: any = 'some value'; router.navigateByUrl('/simple').catch(error => e = error); advance(fixture); expect(e).toEqual(null); }))); it('should preserve resolved data', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'parent', resolve: {two: 'resolveTwo'}, children: [ {path: 'child1', component: CollectParamsCmp}, {path: 'child2', component: CollectParamsCmp} ] }]); const e: any = null; router.navigateByUrl('/parent/child1'); advance(fixture); router.navigateByUrl('/parent/child2'); advance(fixture); const cmp = fixture.debugElement.children[1].componentInstance; expect(cmp.route.snapshot.data).toEqual({two: 2}); }))); it('should rerun resolvers when the urls segments of a wildcard route change', fakeAsync(inject([Router, Location], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: '**', component: CollectParamsCmp, resolve: {numberOfUrlSegments: 'numberOfUrlSegments'} }]); router.navigateByUrl('/one/two'); advance(fixture); const cmp = fixture.debugElement.children[1].componentInstance; expect(cmp.route.snapshot.data).toEqual({numberOfUrlSegments: 2}); router.navigateByUrl('/one/two/three'); advance(fixture); expect(cmp.route.snapshot.data).toEqual({numberOfUrlSegments: 3}); }))); describe('should run resolvers for the same route concurrently', () => { let log: string[]; let observer: Observer<any>; beforeEach(() => { log = []; TestBed.configureTestingModule({ providers: [ { provide: 'resolver1', useValue: () => { const obs$ = new Observable((obs: Observer<any>) => { observer = obs; return () => {}; }); return obs$.pipe(map(() => log.push('resolver1'))); } }, { provide: 'resolver2', useValue: () => { return of (null).pipe(map(() => { log.push('resolver2'); observer.next(null); observer.complete(); })); } }, ] }); }); it('works', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'a', resolve: { one: 'resolver1', two: 'resolver2', }, component: SimpleCmp }]); router.navigateByUrl('/a'); advance(fixture); expect(log).toEqual(['resolver2', 'resolver1']); }))); }); }); describe('router links', () => { it('should support skipping location update for anchor router links', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = TestBed.createComponent(RootCmp); advance(fixture); router.resetConfig([{path: 'team/:id', component: TeamCmp}]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); expect(fixture.nativeElement).toHaveText('team 22 [ , right: ]'); const teamCmp = fixture.debugElement.childNodes[1].componentInstance; teamCmp.routerLink = ['/team/0']; advance(fixture); const anchor = fixture.debugElement.query(By.css('a')).nativeElement; anchor.click(); advance(fixture); expect(fixture.nativeElement).toHaveText('team 0 [ , right: ]'); expect(location.path()).toEqual('/team/22'); teamCmp.routerLink = ['/team/1']; advance(fixture); const button = fixture.debugElement.query(By.css('button')).nativeElement; button.click(); advance(fixture); expect(fixture.nativeElement).toHaveText('team 1 [ , right: ]'); expect(location.path()).toEqual('/team/22'); }))); it('should support string router links', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [ {path: 'link', component: StringLinkCmp}, {path: 'simple', component: SimpleCmp} ] }]); router.navigateByUrl('/team/22/link'); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ link, right: ]'); const native = fixture.nativeElement.querySelector('a'); expect(native.getAttribute('href')).toEqual('/team/33/simple'); expect(native.getAttribute('target')).toEqual('_self'); native.click(); advance(fixture); expect(fixture.nativeElement).toHaveText('team 33 [ simple, right: ]'); }))); it('should not preserve query params and fragment by default', fakeAsync(() => { @Component({ selector: 'someRoot', template: `<router-outlet></router-outlet><a routerLink="/home">Link</a>` }) class RootCmpWithLink { } TestBed.configureTestingModule({declarations: [RootCmpWithLink]}); const router: Router = TestBed.get(Router); const fixture = createRoot(router, RootCmpWithLink); router.resetConfig([{path: 'home', component: SimpleCmp}]); const native = fixture.nativeElement.querySelector('a'); router.navigateByUrl('/home?q=123#fragment'); advance(fixture); expect(native.getAttribute('href')).toEqual('/home'); })); it('should not throw when commands is null', fakeAsync(() => { @Component({ selector: 'someCmp', template: `<router-outlet></router-outlet><a [routerLink]="null">Link</a><button [routerLink]="null">Button</button>` }) class CmpWithLink { } TestBed.configureTestingModule({declarations: [CmpWithLink]}); const router: Router = TestBed.get(Router); let fixture: ComponentFixture<CmpWithLink> = createRoot(router, CmpWithLink); router.resetConfig([{path: 'home', component: SimpleCmp}]); const anchor = fixture.nativeElement.querySelector('a'); const button = fixture.nativeElement.querySelector('button'); expect(() => anchor.click()).not.toThrow(); expect(() => button.click()).not.toThrow(); })); it('should update hrefs when query params or fragment change', fakeAsync(() => { @Component({ selector: 'someRoot', template: `<router-outlet></router-outlet><a routerLink="/home" preserveQueryParams preserveFragment>Link</a>` }) class RootCmpWithLink { } TestBed.configureTestingModule({declarations: [RootCmpWithLink]}); const router: Router = TestBed.get(Router); const fixture = createRoot(router, RootCmpWithLink); router.resetConfig([{path: 'home', component: SimpleCmp}]); const native = fixture.nativeElement.querySelector('a'); router.navigateByUrl('/home?q=123'); advance(fixture); expect(native.getAttribute('href')).toEqual('/home?q=123'); router.navigateByUrl('/home?q=456'); advance(fixture); expect(native.getAttribute('href')).toEqual('/home?q=456'); router.navigateByUrl('/home?q=456#1'); advance(fixture); expect(native.getAttribute('href')).toEqual('/home?q=456#1'); })); it('should correctly use the preserve strategy', fakeAsync(() => { @Component({ selector: 'someRoot', template: `<router-outlet></router-outlet><a routerLink="/home" [queryParams]="{q: 456}" queryParamsHandling="preserve">Link</a>` }) class RootCmpWithLink { } TestBed.configureTestingModule({declarations: [RootCmpWithLink]}); const router: Router = TestBed.get(Router); const fixture = createRoot(router, RootCmpWithLink); router.resetConfig([{path: 'home', component: SimpleCmp}]); const native = fixture.nativeElement.querySelector('a'); router.navigateByUrl('/home?a=123'); advance(fixture); expect(native.getAttribute('href')).toEqual('/home?a=123'); })); it('should correctly use the merge strategy', fakeAsync(() => { @Component({ selector: 'someRoot', template: `<router-outlet></router-outlet><a routerLink="/home" [queryParams]="{removeMe: null, q: 456}" queryParamsHandling="merge">Link</a>` }) class RootCmpWithLink { } TestBed.configureTestingModule({declarations: [RootCmpWithLink]}); const router: Router = TestBed.get(Router); const fixture = createRoot(router, RootCmpWithLink); router.resetConfig([{path: 'home', component: SimpleCmp}]); const native = fixture.nativeElement.querySelector('a'); router.navigateByUrl('/home?a=123&removeMe=123'); advance(fixture); expect(native.getAttribute('href')).toEqual('/home?a=123&q=456'); })); it('should support using links on non-a tags', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [ {path: 'link', component: StringLinkButtonCmp}, {path: 'simple', component: SimpleCmp} ] }]); router.navigateByUrl('/team/22/link'); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ link, right: ]'); const button = fixture.nativeElement.querySelector('button'); expect(button.getAttribute('tabindex')).toEqual('0'); button.click(); advance(fixture); expect(fixture.nativeElement).toHaveText('team 33 [ simple, right: ]'); }))); it('should support absolute router links', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [ {path: 'link', component: AbsoluteLinkCmp}, {path: 'simple', component: SimpleCmp} ] }]); router.navigateByUrl('/team/22/link'); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ link, right: ]'); const native = fixture.nativeElement.querySelector('a'); expect(native.getAttribute('href')).toEqual('/team/33/simple'); native.click(); advance(fixture); expect(fixture.nativeElement).toHaveText('team 33 [ simple, right: ]'); }))); it('should support relative router links', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [ {path: 'link', component: RelativeLinkCmp}, {path: 'simple', component: SimpleCmp} ] }]); router.navigateByUrl('/team/22/link'); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ link, right: ]'); const native = fixture.nativeElement.querySelector('a'); expect(native.getAttribute('href')).toEqual('/team/22/simple'); native.click(); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ simple, right: ]'); }))); it('should support top-level link', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RelativeLinkInIfCmp); advance(fixture); router.resetConfig( [{path: 'simple', component: SimpleCmp}, {path: '', component: BlankCmp}]); router.navigateByUrl('/'); advance(fixture); expect(fixture.nativeElement).toHaveText(''); const cmp = fixture.componentInstance; cmp.show = true; advance(fixture); expect(fixture.nativeElement).toHaveText('link'); const native = fixture.nativeElement.querySelector('a'); expect(native.getAttribute('href')).toEqual('/simple'); native.click(); advance(fixture); expect(fixture.nativeElement).toHaveText('linksimple'); }))); it('should support query params and fragments', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [ {path: 'link', component: LinkWithQueryParamsAndFragment}, {path: 'simple', component: SimpleCmp} ] }]); router.navigateByUrl('/team/22/link'); advance(fixture); const native = fixture.nativeElement.querySelector('a'); expect(native.getAttribute('href')).toEqual('/team/22/simple?q=1#f'); native.click(); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ simple, right: ]'); expect(location.path()).toEqual('/team/22/simple?q=1#f'); }))); it('should support history state', fakeAsync(inject([Router, Location], (router: Router, location: SpyLocation) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [ {path: 'link', component: LinkWithState}, {path: 'simple', component: SimpleCmp} ] }]); router.navigateByUrl('/team/22/link'); advance(fixture); const native = fixture.nativeElement.querySelector('a'); expect(native.getAttribute('href')).toEqual('/team/22/simple'); native.click(); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ simple, right: ]'); // Check the history entry const history = (location as any)._history; expect(history[history.length - 1].state.foo).toBe('bar'); expect(history[history.length - 1].state) .toEqual({foo: 'bar', navigationId: history.length}); }))); it('should set href on area elements', fakeAsync(() => { @Component({ selector: 'someRoot', template: `<router-outlet></router-outlet><map><area routerLink="/home" /></map>` }) class RootCmpWithArea { } TestBed.configureTestingModule({declarations: [RootCmpWithArea]}); const router: Router = TestBed.get(Router); const fixture = createRoot(router, RootCmpWithArea); router.resetConfig([{path: 'home', component: SimpleCmp}]); const native = fixture.nativeElement.querySelector('area'); expect(native.getAttribute('href')).toEqual('/home'); })); }); describe('redirects', () => { it('should work', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([ {path: 'old/team/:id', redirectTo: 'team/:id'}, {path: 'team/:id', component: TeamCmp} ]); router.navigateByUrl('old/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); }))); it('should update Navigation object after redirects are applied', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); let initialUrl, afterRedirectUrl; router.resetConfig([ {path: 'old/team/:id', redirectTo: 'team/:id'}, {path: 'team/:id', component: TeamCmp} ]); router.events.subscribe(e => { if (e instanceof NavigationStart) { const navigation = router.getCurrentNavigation(); initialUrl = navigation && navigation.finalUrl; } if (e instanceof RoutesRecognized) { const navigation = router.getCurrentNavigation(); afterRedirectUrl = navigation && navigation.finalUrl; } }); router.navigateByUrl('old/team/22'); advance(fixture); expect(initialUrl).toBeUndefined(); expect(router.serializeUrl(afterRedirectUrl as any)).toBe('/team/22'); }))); it('should not break the back button when trigger by location change', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = TestBed.createComponent(RootCmp); advance(fixture); router.resetConfig([ {path: 'initial', component: BlankCmp}, {path: 'old/team/:id', redirectTo: 'team/:id'}, {path: 'team/:id', component: TeamCmp} ]); location.go('initial'); location.go('old/team/22'); // initial navigation router.initialNavigation(); advance(fixture); expect(location.path()).toEqual('/team/22'); location.back(); advance(fixture); expect(location.path()).toEqual('/initial'); // location change (<any>location).go('/old/team/33'); advance(fixture); expect(location.path()).toEqual('/team/33'); location.back(); advance(fixture); expect(location.path()).toEqual('/initial'); }))); }); describe('guards', () => { describe('CanActivate', () => { describe('should not activate a route when CanActivate returns false', () => { beforeEach(() => { TestBed.configureTestingModule( {providers: [{provide: 'alwaysFalse', useValue: (a: any, b: any) => false}]}); }); it('works', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); const recordedEvents: any[] = []; router.events.forEach(e => recordedEvents.push(e)); router.resetConfig( [{path: 'team/:id', component: TeamCmp, canActivate: ['alwaysFalse']}]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/'); expectEvents(recordedEvents, [ [NavigationStart, '/team/22'], [RoutesRecognized, '/team/22'], [GuardsCheckStart, '/team/22'], [ChildActivationStart], [ActivationStart], [GuardsCheckEnd, '/team/22'], [NavigationCancel, '/team/22'], ]); expect((recordedEvents[5] as GuardsCheckEnd).shouldActivate).toBe(false); }))); }); describe( 'should not activate a route when CanActivate returns false (componentless route)', () => { beforeEach(() => { TestBed.configureTestingModule( {providers: [{provide: 'alwaysFalse', useValue: (a: any, b: any) => false}]}); }); it('works', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'parent', canActivate: ['alwaysFalse'], children: [{path: 'team/:id', component: TeamCmp}] }]); router.navigateByUrl('parent/team/22'); advance(fixture); expect(location.path()).toEqual('/'); }))); }); describe('should activate a route when CanActivate returns true', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [{ provide: 'alwaysTrue', useValue: (a: ActivatedRouteSnapshot, s: RouterStateSnapshot) => true }] }); }); it('works', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig( [{path: 'team/:id', component: TeamCmp, canActivate: ['alwaysTrue']}]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); }))); }); describe('should work when given a class', () => { class AlwaysTrue implements CanActivate { canActivate(route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean { return true; } } beforeEach(() => { TestBed.configureTestingModule({providers: [AlwaysTrue]}); }); it('works', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig( [{path: 'team/:id', component: TeamCmp, canActivate: [AlwaysTrue]}]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); }))); }); describe('should work when returns an observable', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [{ provide: 'CanActivate', useValue: (a: ActivatedRouteSnapshot, b: RouterStateSnapshot) => { return Observable.create((observer: any) => { observer.next(false); }); } }] }); }); it('works', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig( [{path: 'team/:id', component: TeamCmp, canActivate: ['CanActivate']}]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/'); }))); }); describe('should work when returns a promise', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [{ provide: 'CanActivate', useValue: (a: ActivatedRouteSnapshot, b: RouterStateSnapshot) => { if (a.params['id'] === '22') { return Promise.resolve(true); } else { return Promise.resolve(false); } } }] }); }); it('works', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig( [{path: 'team/:id', component: TeamCmp, canActivate: ['CanActivate']}]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); router.navigateByUrl('/team/33'); advance(fixture); expect(location.path()).toEqual('/team/22'); }))); }); describe('should reset the location when cancleling a navigation', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [{ provide: 'alwaysFalse', useValue: (a: ActivatedRouteSnapshot, b: RouterStateSnapshot) => { return false; } }] }); }); it('works', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([ {path: 'one', component: SimpleCmp}, {path: 'two', component: SimpleCmp, canActivate: ['alwaysFalse']} ]); router.navigateByUrl('/one'); advance(fixture); expect(location.path()).toEqual('/one'); location.go('/two'); advance(fixture); expect(location.path()).toEqual('/one'); }))); }); describe('should redirect to / when guard returns false', () => { beforeEach(() => TestBed.configureTestingModule({ providers: [{ provide: 'returnFalseAndNavigate', useFactory: (router: Router) => () => { router.navigate(['/']); return false; }, deps: [Router] }] })); it('works', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { router.resetConfig([ { path: '', component: SimpleCmp, }, {path: 'one', component: RouteCmp, canActivate: ['returnFalseAndNavigate']} ]); const fixture = TestBed.createComponent(RootCmp); router.navigateByUrl('/one'); advance(fixture); expect(location.path()).toEqual('/'); expect(fixture.nativeElement).toHaveText('simple'); }))); }); describe('should redirect when guard returns UrlTree', () => { beforeEach(() => TestBed.configureTestingModule({ providers: [ { provide: 'returnUrlTree', useFactory: (router: Router) => () => { return router.parseUrl('/redirected'); }, deps: [Router] }, { provide: 'returnRootUrlTree', useFactory: (router: Router) => () => { return router.parseUrl('/'); }, deps: [Router] } ] })); it('works', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const recordedEvents: any[] = []; let cancelEvent: NavigationCancel = null !; router.events.forEach((e: any) => { recordedEvents.push(e); if (e instanceof NavigationCancel) cancelEvent = e; }); router.resetConfig([ {path: '', component: SimpleCmp}, {path: 'one', component: RouteCmp, canActivate: ['returnUrlTree']}, {path: 'redirected', component: SimpleCmp} ]); const fixture = TestBed.createComponent(RootCmp); router.navigateByUrl('/one'); advance(fixture); expect(location.path()).toEqual('/redirected'); expect(fixture.nativeElement).toHaveText('simple'); expect(cancelEvent && cancelEvent.reason) .toBe('NavigationCancelingError: Redirecting to "/redirected"'); expectEvents(recordedEvents, [ [NavigationStart, '/one'], [RoutesRecognized, '/one'], [GuardsCheckStart, '/one'], [ChildActivationStart, undefined], [ActivationStart, undefined], [NavigationCancel, '/one'], [NavigationStart, '/redirected'], [RoutesRecognized, '/redirected'], [GuardsCheckStart, '/redirected'], [ChildActivationStart, undefined], [ActivationStart, undefined], [GuardsCheckEnd, '/redirected'], [ResolveStart, '/redirected'], [ResolveEnd, '/redirected'], [ActivationEnd, undefined], [ChildActivationEnd, undefined], [NavigationEnd, '/redirected'], ]); }))); it('works with root url', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const recordedEvents: any[] = []; let cancelEvent: NavigationCancel = null !; router.events.forEach((e: any) => { recordedEvents.push(e); if (e instanceof NavigationCancel) cancelEvent = e; }); router.resetConfig([ {path: '', component: SimpleCmp}, {path: 'one', component: RouteCmp, canActivate: ['returnRootUrlTree']} ]); const fixture = TestBed.createComponent(RootCmp); router.navigateByUrl('/one'); advance(fixture); expect(location.path()).toEqual('/'); expect(fixture.nativeElement).toHaveText('simple'); expect(cancelEvent && cancelEvent.reason) .toBe('NavigationCancelingError: Redirecting to "/"'); expectEvents(recordedEvents, [ [NavigationStart, '/one'], [RoutesRecognized, '/one'], [GuardsCheckStart, '/one'], [ChildActivationStart, undefined], [ActivationStart, undefined], [NavigationCancel, '/one'], [NavigationStart, '/'], [RoutesRecognized, '/'], [GuardsCheckStart, '/'], [ChildActivationStart, undefined], [ActivationStart, undefined], [GuardsCheckEnd, '/'], [ResolveStart, '/'], [ResolveEnd, '/'], [ActivationEnd, undefined], [ChildActivationEnd, undefined], [NavigationEnd, '/'], ]); }))); }); describe('runGuardsAndResolvers', () => { let guardRunCount = 0; let resolverRunCount = 0; beforeEach(() => { guardRunCount = 0; resolverRunCount = 0; TestBed.configureTestingModule({ providers: [ { provide: 'guard', useValue: () => { guardRunCount++; return true; } }, {provide: 'resolver', useValue: () => resolverRunCount++} ] }); }); function configureRouter(router: Router, runGuardsAndResolvers: RunGuardsAndResolvers): ComponentFixture<RootCmpWithTwoOutlets> { const fixture = createRoot(router, RootCmpWithTwoOutlets); router.resetConfig([ { path: 'a', runGuardsAndResolvers, component: RouteCmp, canActivate: ['guard'], resolve: {data: 'resolver'} }, {path: 'b', component: SimpleCmp, outlet: 'right'}, { path: 'c/:param', runGuardsAndResolvers, component: RouteCmp, canActivate: ['guard'], resolve: {data: 'resolver'} }, { path: 'd/:param', component: WrapperCmp, runGuardsAndResolvers, children: [ { path: 'e/:param', component: SimpleCmp, canActivate: ['guard'], resolve: {data: 'resolver'}, }, ] } ]); router.navigateByUrl('/a'); advance(fixture); return fixture; } it('should rerun guards and resolvers when params change', fakeAsync(inject([Router], (router: Router) => { const fixture = configureRouter(router, 'paramsChange'); const cmp: RouteCmp = fixture.debugElement.children[1].componentInstance; const recordedData: any[] = []; cmp.route.data.subscribe((data: any) => recordedData.push(data)); expect(guardRunCount).toEqual(1); expect(recordedData).toEqual([{data: 0}]); router.navigateByUrl('/a;p=1'); advance(fixture); expect(guardRunCount).toEqual(2); expect(recordedData).toEqual([{data: 0}, {data: 1}]); router.navigateByUrl('/a;p=2'); advance(fixture); expect(guardRunCount).toEqual(3); expect(recordedData).toEqual([{data: 0}, {data: 1}, {data: 2}]); router.navigateByUrl('/a;p=2?q=1'); advance(fixture); expect(guardRunCount).toEqual(3); expect(recordedData).toEqual([{data: 0}, {data: 1}, {data: 2}]); }))); it('should rerun guards and resolvers when query params change', fakeAsync(inject([Router], (router: Router) => { const fixture = configureRouter(router, 'paramsOrQueryParamsChange'); const cmp: RouteCmp = fixture.debugElement.children[1].componentInstance; const recordedData: any[] = []; cmp.route.data.subscribe((data: any) => recordedData.push(data)); expect(guardRunCount).toEqual(1); expect(recordedData).toEqual([{data: 0}]); router.navigateByUrl('/a;p=1'); advance(fixture); expect(guardRunCount).toEqual(2); expect(recordedData).toEqual([{data: 0}, {data: 1}]); router.navigateByUrl('/a;p=2'); advance(fixture); expect(guardRunCount).toEqual(3); expect(recordedData).toEqual([{data: 0}, {data: 1}, {data: 2}]); router.navigateByUrl('/a;p=2?q=1'); advance(fixture); expect(guardRunCount).toEqual(4); expect(recordedData).toEqual([{data: 0}, {data: 1}, {data: 2}, {data: 3}]); router.navigateByUrl('/a;p=2(right:b)?q=1'); advance(fixture); expect(guardRunCount).toEqual(4); expect(recordedData).toEqual([{data: 0}, {data: 1}, {data: 2}, {data: 3}]); }))); it('should always rerun guards and resolvers', fakeAsync(inject([Router], (router: Router) => { const fixture = configureRouter(router, 'always'); const cmp: RouteCmp = fixture.debugElement.children[1].componentInstance; const recordedData: any[] = []; cmp.route.data.subscribe((data: any) => recordedData.push(data)); expect(guardRunCount).toEqual(1); expect(recordedData).toEqual([{data: 0}]); router.navigateByUrl('/a;p=1'); advance(fixture); expect(guardRunCount).toEqual(2); expect(recordedData).toEqual([{data: 0}, {data: 1}]); router.navigateByUrl('/a;p=2'); advance(fixture); expect(guardRunCount).toEqual(3); expect(recordedData).toEqual([{data: 0}, {data: 1}, {data: 2}]); router.navigateByUrl('/a;p=2?q=1'); advance(fixture); expect(guardRunCount).toEqual(4); expect(recordedData).toEqual([{data: 0}, {data: 1}, {data: 2}, {data: 3}]); router.navigateByUrl('/a;p=2(right:b)?q=1'); advance(fixture); expect(guardRunCount).toEqual(5); expect(recordedData).toEqual([{data: 0}, {data: 1}, {data: 2}, {data: 3}, {data: 4}]); }))); it('should rerun rerun guards and resolvers when path params change', fakeAsync(inject([Router], (router: Router) => { const fixture = configureRouter(router, 'pathParamsChange'); const cmp: RouteCmp = fixture.debugElement.children[1].componentInstance; const recordedData: any[] = []; cmp.route.data.subscribe((data: any) => recordedData.push(data)); // First navigation has already run expect(guardRunCount).toEqual(1); expect(recordedData).toEqual([{data: 0}]); // Changing any optional params will not result in running guards or resolvers router.navigateByUrl('/a;p=1'); advance(fixture); expect(guardRunCount).toEqual(1); expect(recordedData).toEqual([{data: 0}]); router.navigateByUrl('/a;p=2'); advance(fixture); expect(guardRunCount).toEqual(1); expect(recordedData).toEqual([{data: 0}]); router.navigateByUrl('/a;p=2?q=1'); advance(fixture); expect(guardRunCount).toEqual(1); expect(recordedData).toEqual([{data: 0}]); router.navigateByUrl('/a;p=2(right:b)?q=1'); advance(fixture); expect(guardRunCount).toEqual(1); expect(recordedData).toEqual([{data: 0}]); // Change to new route with path param should run guards and resolvers router.navigateByUrl('/c/paramValue'); advance(fixture); expect(guardRunCount).toEqual(2); // Modifying a path param should run guards and resolvers router.navigateByUrl('/c/paramValueChanged'); advance(fixture); expect(guardRunCount).toEqual(3); // Adding optional params should not cause guards/resolvers to run router.navigateByUrl('/c/paramValueChanged;p=1?q=2'); advance(fixture); expect(guardRunCount).toEqual(3); }))); it('should rerun when a parent segment changes', fakeAsync(inject([Router], (router: Router) => { const fixture = configureRouter(router, 'pathParamsChange'); const cmp: RouteCmp = fixture.debugElement.children[1].componentInstance; // Land on an inital page router.navigateByUrl('/d/1;dd=11/e/2;dd=22'); advance(fixture); expect(guardRunCount).toEqual(2); // Changes cause re-run on the config with the guard router.navigateByUrl('/d/1;dd=11/e/3;ee=22'); advance(fixture); expect(guardRunCount).toEqual(3); // Changes to the parent also cause re-run router.navigateByUrl('/d/2;dd=11/e/3;ee=22'); advance(fixture); expect(guardRunCount).toEqual(4); }))); it('should rerun rerun guards and resolvers when path or query params change', fakeAsync(inject([Router], (router: Router) => { const fixture = configureRouter(router, 'pathParamsOrQueryParamsChange'); const cmp: RouteCmp = fixture.debugElement.children[1].componentInstance; const recordedData: any[] = []; cmp.route.data.subscribe((data: any) => recordedData.push(data)); // First navigation has already run expect(guardRunCount).toEqual(1); expect(recordedData).toEqual([{data: 0}]); // Changing matrix params will not result in running guards or resolvers router.navigateByUrl('/a;p=1'); advance(fixture); expect(guardRunCount).toEqual(1); expect(recordedData).toEqual([{data: 0}]); router.navigateByUrl('/a;p=2'); advance(fixture); expect(guardRunCount).toEqual(1); expect(recordedData).toEqual([{data: 0}]); // Adding query params will re-run guards/resolvers router.navigateByUrl('/a;p=2?q=1'); advance(fixture); expect(guardRunCount).toEqual(2); expect(recordedData).toEqual([{data: 0}, {data: 1}]); // Changing query params will re-run guards/resolvers router.navigateByUrl('/a;p=2?q=2'); advance(fixture); expect(guardRunCount).toEqual(3); expect(recordedData).toEqual([{data: 0}, {data: 1}, {data: 2}]); }))); it('should allow a predicate function to determine when to run guards and resolvers', fakeAsync(inject([Router], (router: Router) => { const fixture = configureRouter(router, (from, to) => to.paramMap.get('p') === '2'); const cmp: RouteCmp = fixture.debugElement.children[1].componentInstance; const recordedData: any[] = []; cmp.route.data.subscribe((data: any) => recordedData.push(data)); // First navigation has already run expect(guardRunCount).toEqual(1); expect(recordedData).toEqual([{data: 0}]); // Adding `p` param shouldn't cause re-run router.navigateByUrl('/a;p=1'); advance(fixture); expect(guardRunCount).toEqual(1); expect(recordedData).toEqual([{data: 0}]); // Re-run should trigger on p=2 router.navigateByUrl('/a;p=2'); advance(fixture); expect(guardRunCount).toEqual(2); expect(recordedData).toEqual([{data: 0}, {data: 1}]); // Any other changes don't pass the predicate router.navigateByUrl('/a;p=3?q=1'); advance(fixture); expect(guardRunCount).toEqual(2); expect(recordedData).toEqual([{data: 0}, {data: 1}]); // Changing query params will re-run guards/resolvers router.navigateByUrl('/a;p=3?q=2'); advance(fixture); expect(guardRunCount).toEqual(2); expect(recordedData).toEqual([{data: 0}, {data: 1}]); }))); }); describe('should wait for parent to complete', () => { let log: string[]; beforeEach(() => { log = []; TestBed.configureTestingModule({ providers: [ { provide: 'parentGuard', useValue: () => { return delayPromise(10).then(() => { log.push('parent'); return true; }); } }, { provide: 'childGuard', useValue: () => { return delayPromise(5).then(() => { log.push('child'); return true; }); } } ] }); }); function delayPromise(delay: number): Promise<boolean> { let resolve: (val: boolean) => void; const promise = new Promise<boolean>(res => resolve = res); setTimeout(() => resolve(true), delay); return promise; } it('works', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'parent', canActivate: ['parentGuard'], children: [ {path: 'child', component: SimpleCmp, canActivate: ['childGuard']}, ] }]); router.navigateByUrl('/parent/child'); advance(fixture); tick(15); expect(log).toEqual(['parent', 'child']); }))); }); }); describe('CanDeactivate', () => { let log: any; beforeEach(() => { log = []; TestBed.configureTestingModule({ providers: [ { provide: 'CanDeactivateParent', useValue: (c: any, a: ActivatedRouteSnapshot, b: RouterStateSnapshot) => { return a.params['id'] === '22'; } }, { provide: 'CanDeactivateTeam', useValue: (c: any, a: ActivatedRouteSnapshot, b: RouterStateSnapshot) => { return c.route.snapshot.params['id'] === '22'; } }, { provide: 'CanDeactivateUser', useValue: (c: any, a: ActivatedRouteSnapshot, b: RouterStateSnapshot) => { return a.params['name'] === 'victor'; } }, { provide: 'RecordingDeactivate', useValue: (c: any, a: ActivatedRouteSnapshot, b: RouterStateSnapshot) => { log.push({path: a.routeConfig !.path, component: c}); return true; } }, { provide: 'alwaysFalse', useValue: (c: any, a: ActivatedRouteSnapshot, b: RouterStateSnapshot) => { return false; } }, { provide: 'alwaysFalseAndLogging', useValue: (c: any, a: ActivatedRouteSnapshot, b: RouterStateSnapshot) => { log.push('called'); return false; } }, { provide: 'alwaysFalseWithDelayAndLogging', useValue: () => { log.push('called'); let resolve: (result: boolean) => void; const promise = new Promise(res => resolve = res); setTimeout(() => resolve(false), 0); return promise; } }, { provide: 'canActivate_alwaysTrueAndLogging', useValue: () => { log.push('canActivate called'); return true; } }, ] }); }); describe('should not deactivate a route when CanDeactivate returns false', () => { it('works', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig( [{path: 'team/:id', component: TeamCmp, canDeactivate: ['CanDeactivateTeam']}]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); let successStatus: boolean = false; router.navigateByUrl('/team/33') !.then(res => successStatus = res); advance(fixture); expect(location.path()).toEqual('/team/33'); expect(successStatus).toEqual(true); let canceledStatus: boolean = false; router.navigateByUrl('/team/44') !.then(res => canceledStatus = res); advance(fixture); expect(location.path()).toEqual('/team/33'); expect(canceledStatus).toEqual(false); }))); it('works with componentless routes', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([ { path: 'grandparent', canDeactivate: ['RecordingDeactivate'], children: [{ path: 'parent', canDeactivate: ['RecordingDeactivate'], children: [{ path: 'child', canDeactivate: ['RecordingDeactivate'], children: [{ path: 'simple', component: SimpleCmp, canDeactivate: ['RecordingDeactivate'] }] }] }] }, {path: 'simple', component: SimpleCmp} ]); router.navigateByUrl('/grandparent/parent/child/simple'); advance(fixture); expect(location.path()).toEqual('/grandparent/parent/child/simple'); router.navigateByUrl('/simple'); advance(fixture); const child = fixture.debugElement.children[1].componentInstance; expect(log.map((a: any) => a.path)).toEqual([ 'simple', 'child', 'parent', 'grandparent' ]); expect(log[0].component instanceof SimpleCmp).toBeTruthy(); [1, 2, 3].forEach(i => expect(log[i].component).toBeNull()); expect(child instanceof SimpleCmp).toBeTruthy(); expect(child).not.toBe(log[0].component); }))); it('works with aux routes', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'two-outlets', component: TwoOutletsCmp, children: [ {path: 'a', component: BlankCmp}, { path: 'b', canDeactivate: ['RecordingDeactivate'], component: SimpleCmp, outlet: 'aux' } ] }]); router.navigateByUrl('/two-outlets/(a//aux:b)'); advance(fixture); expect(location.path()).toEqual('/two-outlets/(a//aux:b)'); router.navigate(['two-outlets', {outlets: {aux: null}}]); advance(fixture); expect(log.map((a: any) => a.path)).toEqual(['b']); expect(location.path()).toEqual('/two-outlets/(a)'); }))); it('works with a nested route', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [ {path: '', pathMatch: 'full', component: SimpleCmp}, {path: 'user/:name', component: UserCmp, canDeactivate: ['CanDeactivateUser']} ] }]); router.navigateByUrl('/team/22/user/victor'); advance(fixture); // this works because we can deactivate victor router.navigateByUrl('/team/33'); advance(fixture); expect(location.path()).toEqual('/team/33'); router.navigateByUrl('/team/33/user/fedor'); advance(fixture); // this doesn't work cause we cannot deactivate fedor router.navigateByUrl('/team/44'); advance(fixture); expect(location.path()).toEqual('/team/33/user/fedor'); }))); }); it('should not create a route state if navigation is canceled', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'main', component: TeamCmp, children: [ {path: 'component1', component: SimpleCmp, canDeactivate: ['alwaysFalse']}, {path: 'component2', component: SimpleCmp} ] }]); router.navigateByUrl('/main/component1'); advance(fixture); router.navigateByUrl('/main/component2'); advance(fixture); const teamCmp = fixture.debugElement.children[1].componentInstance; expect(teamCmp.route.firstChild.url.value[0].path).toEqual('component1'); expect(location.path()).toEqual('/main/component1'); }))); it('should not run CanActivate when CanDeactivate returns false', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'main', component: TeamCmp, children: [ { path: 'component1', component: SimpleCmp, canDeactivate: ['alwaysFalseWithDelayAndLogging'] }, { path: 'component2', component: SimpleCmp, canActivate: ['canActivate_alwaysTrueAndLogging'] }, ] }]); router.navigateByUrl('/main/component1'); advance(fixture); expect(location.path()).toEqual('/main/component1'); router.navigateByUrl('/main/component2'); advance(fixture); expect(location.path()).toEqual('/main/component1'); expect(log).toEqual(['called']); }))); it('should call guards every time when navigating to the same url over and over again', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([ {path: 'simple', component: SimpleCmp, canDeactivate: ['alwaysFalseAndLogging']}, {path: 'blank', component: BlankCmp} ]); router.navigateByUrl('/simple'); advance(fixture); router.navigateByUrl('/blank'); advance(fixture); expect(log).toEqual(['called']); expect(location.path()).toEqual('/simple'); router.navigateByUrl('/blank'); advance(fixture); expect(log).toEqual(['called', 'called']); expect(location.path()).toEqual('/simple'); }))); describe('next state', () => { let log: string[]; class ClassWithNextState implements CanDeactivate<TeamCmp> { canDeactivate( component: TeamCmp, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState: RouterStateSnapshot): boolean { log.push(currentState.url, nextState.url); return true; } } beforeEach(() => { log = []; TestBed.configureTestingModule({ providers: [ ClassWithNextState, { provide: 'FunctionWithNextState', useValue: (cmp: any, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState: RouterStateSnapshot) => { log.push(currentState.url, nextState.url); return true; } } ] }); }); it('should pass next state as the 4 argument when guard is a class', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig( [{path: 'team/:id', component: TeamCmp, canDeactivate: [ClassWithNextState]}]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); router.navigateByUrl('/team/33'); advance(fixture); expect(location.path()).toEqual('/team/33'); expect(log).toEqual(['/team/22', '/team/33']); }))); it('should pass next state as the 4 argument when guard is a function', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([ {path: 'team/:id', component: TeamCmp, canDeactivate: ['FunctionWithNextState']} ]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); router.navigateByUrl('/team/33'); advance(fixture); expect(location.path()).toEqual('/team/33'); expect(log).toEqual(['/team/22', '/team/33']); }))); }); describe('should work when given a class', () => { class AlwaysTrue implements CanDeactivate<TeamCmp> { canDeactivate( component: TeamCmp, route: ActivatedRouteSnapshot, state: RouterStateSnapshot): boolean { return true; } } beforeEach(() => { TestBed.configureTestingModule({providers: [AlwaysTrue]}); }); it('works', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig( [{path: 'team/:id', component: TeamCmp, canDeactivate: [AlwaysTrue]}]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); router.navigateByUrl('/team/33'); advance(fixture); expect(location.path()).toEqual('/team/33'); }))); }); describe('should work when returns an observable', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [{ provide: 'CanDeactivate', useValue: (c: TeamCmp, a: ActivatedRouteSnapshot, b: RouterStateSnapshot) => { return Observable.create((observer: any) => { observer.next(false); }); } }] }); }); it('works', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig( [{path: 'team/:id', component: TeamCmp, canDeactivate: ['CanDeactivate']}]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); router.navigateByUrl('/team/33'); advance(fixture); expect(location.path()).toEqual('/team/22'); }))); }); }); describe('CanActivateChild', () => { describe('should be invoked when activating a child', () => { beforeEach(() => { TestBed.configureTestingModule({ providers: [{ provide: 'alwaysFalse', useValue: (a: any, b: any) => a.paramMap.get('id') === '22', }] }); }); it('works', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: '', canActivateChild: ['alwaysFalse'], children: [{path: 'team/:id', component: TeamCmp}] }]); router.navigateByUrl('/team/22'); advance(fixture); expect(location.path()).toEqual('/team/22'); router.navigateByUrl('/team/33') !.catch(() => {}); advance(fixture); expect(location.path()).toEqual('/team/22'); }))); }); it('should find the guard provided in lazy loaded module', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { @Component({selector: 'admin', template: '<router-outlet></router-outlet>'}) class AdminComponent { } @Component({selector: 'lazy', template: 'lazy-loaded'}) class LazyLoadedComponent { } @NgModule({ declarations: [AdminComponent, LazyLoadedComponent], imports: [RouterModule.forChild([{ path: '', component: AdminComponent, children: [{ path: '', canActivateChild: ['alwaysTrue'], children: [{path: '', component: LazyLoadedComponent}] }] }])], providers: [{provide: 'alwaysTrue', useValue: () => true}], }) class LazyLoadedModule { } loader.stubbedModules = {lazy: LazyLoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'admin', loadChildren: 'lazy'}]); router.navigateByUrl('/admin'); advance(fixture); expect(location.path()).toEqual('/admin'); expect(fixture.nativeElement).toHaveText('lazy-loaded'); }))); }); describe('CanLoad', () => { let canLoadRunCount = 0; beforeEach(() => { canLoadRunCount = 0; TestBed.configureTestingModule({ providers: [ {provide: 'alwaysFalse', useValue: (a: any) => false}, { provide: 'returnFalseAndNavigate', useFactory: (router: any) => (a: any) => { router.navigate(['blank']); return false; }, deps: [Router], }, { provide: 'alwaysTrue', useValue: () => { canLoadRunCount++; return true; } }, ] }); }); it('should not load children when CanLoad returns false', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { @Component({selector: 'lazy', template: 'lazy-loaded'}) class LazyLoadedComponent { } @NgModule({ declarations: [LazyLoadedComponent], imports: [RouterModule.forChild([{path: 'loaded', component: LazyLoadedComponent}])] }) class LoadedModule { } loader.stubbedModules = {lazyFalse: LoadedModule, lazyTrue: LoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([ {path: 'lazyFalse', canLoad: ['alwaysFalse'], loadChildren: 'lazyFalse'}, {path: 'lazyTrue', canLoad: ['alwaysTrue'], loadChildren: 'lazyTrue'} ]); const recordedEvents: any[] = []; router.events.forEach(e => recordedEvents.push(e)); // failed navigation router.navigateByUrl('/lazyFalse/loaded'); advance(fixture); expect(location.path()).toEqual('/'); expectEvents(recordedEvents, [ [NavigationStart, '/lazyFalse/loaded'], // [GuardsCheckStart, '/lazyFalse/loaded'], [NavigationCancel, '/lazyFalse/loaded'], ]); recordedEvents.splice(0); // successful navigation router.navigateByUrl('/lazyTrue/loaded'); advance(fixture); expect(location.path()).toEqual('/lazyTrue/loaded'); expectEvents(recordedEvents, [ [NavigationStart, '/lazyTrue/loaded'], [RouteConfigLoadStart], [RouteConfigLoadEnd], [RoutesRecognized, '/lazyTrue/loaded'], [GuardsCheckStart, '/lazyTrue/loaded'], [ChildActivationStart], [ActivationStart], [ChildActivationStart], [ActivationStart], [GuardsCheckEnd, '/lazyTrue/loaded'], [ResolveStart, '/lazyTrue/loaded'], [ResolveEnd, '/lazyTrue/loaded'], [ActivationEnd], [ChildActivationEnd], [ActivationEnd], [ChildActivationEnd], [NavigationEnd, '/lazyTrue/loaded'], ]); }))); it('should support navigating from within the guard', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([ {path: 'lazyFalse', canLoad: ['returnFalseAndNavigate'], loadChildren: 'lazyFalse'}, {path: 'blank', component: BlankCmp} ]); const recordedEvents: any[] = []; router.events.forEach(e => recordedEvents.push(e)); router.navigateByUrl('/lazyFalse/loaded'); advance(fixture); expect(location.path()).toEqual('/blank'); expectEvents(recordedEvents, [ [NavigationStart, '/lazyFalse/loaded'], // No GuardCheck events as `canLoad` is a special guard that's not actually part of the // guard lifecycle. [NavigationCancel, '/lazyFalse/loaded'], [NavigationStart, '/blank'], [RoutesRecognized, '/blank'], [GuardsCheckStart, '/blank'], [ChildActivationStart], [ActivationStart], [GuardsCheckEnd, '/blank'], [ResolveStart, '/blank'], [ResolveEnd, '/blank'], [ActivationEnd], [ChildActivationEnd], [NavigationEnd, '/blank'] ]); }))); // Regression where navigateByUrl with false CanLoad no longer resolved `false` value on // navigateByUrl promise: https://github.com/angular/angular/issues/26284 it('should resolve navigateByUrl promise after CanLoad executes', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { @Component({selector: 'lazy', template: 'lazy-loaded'}) class LazyLoadedComponent { } @NgModule({ declarations: [LazyLoadedComponent], imports: [RouterModule.forChild([{path: 'loaded', component: LazyLoadedComponent}])] }) class LazyLoadedModule { } loader.stubbedModules = {lazy: LazyLoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([ {path: 'lazy-false', canLoad: ['alwaysFalse'], loadChildren: 'lazy'}, {path: 'lazy-true', canLoad: ['alwaysTrue'], loadChildren: 'lazy'}, ]); let navFalseResult: any; let navTrueResult: any; router.navigateByUrl('/lazy-false').then(v => { navFalseResult = v; }); advance(fixture); router.navigateByUrl('/lazy-true').then(v => { navTrueResult = v; }); advance(fixture); expect(navFalseResult).toBe(false); expect(navTrueResult).toBe(true); }))); it('should execute CanLoad only once', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { @Component({selector: 'lazy', template: 'lazy-loaded'}) class LazyLoadedComponent { } @NgModule({ declarations: [LazyLoadedComponent], imports: [RouterModule.forChild([{path: 'loaded', component: LazyLoadedComponent}])] }) class LazyLoadedModule { } loader.stubbedModules = {lazy: LazyLoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'lazy', canLoad: ['alwaysTrue'], loadChildren: 'lazy'}]); router.navigateByUrl('/lazy/loaded'); advance(fixture); expect(location.path()).toEqual('/lazy/loaded'); expect(canLoadRunCount).toEqual(1); router.navigateByUrl('/'); advance(fixture); expect(location.path()).toEqual('/'); router.navigateByUrl('/lazy/loaded'); advance(fixture); expect(location.path()).toEqual('/lazy/loaded'); expect(canLoadRunCount).toEqual(1); }))); }); describe('order', () => { class Logger { logs: string[] = []; add(thing: string) { this.logs.push(thing); } } beforeEach(() => { TestBed.configureTestingModule({ providers: [ Logger, { provide: 'canActivateChild_parent', useFactory: (logger: Logger) => () => (logger.add('canActivateChild_parent'), true), deps: [Logger] }, { provide: 'canActivate_team', useFactory: (logger: Logger) => () => (logger.add('canActivate_team'), true), deps: [Logger] }, { provide: 'canDeactivate_team', useFactory: (logger: Logger) => () => (logger.add('canDeactivate_team'), true), deps: [Logger] }, { provide: 'canDeactivate_simple', useFactory: (logger: Logger) => () => (logger.add('canDeactivate_simple'), true), deps: [Logger] } ] }); }); it('should call guards in the right order', fakeAsync(inject( [Router, Location, Logger], (router: Router, location: Location, logger: Logger) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: '', canActivateChild: ['canActivateChild_parent'], children: [{ path: 'team/:id', canActivate: ['canActivate_team'], canDeactivate: ['canDeactivate_team'], component: TeamCmp }] }]); router.navigateByUrl('/team/22'); advance(fixture); router.navigateByUrl('/team/33'); advance(fixture); expect(logger.logs).toEqual([ 'canActivateChild_parent', 'canActivate_team', 'canDeactivate_team', 'canActivateChild_parent', 'canActivate_team' ]); }))); it('should call deactivate guards from bottom to top', fakeAsync(inject( [Router, Location, Logger], (router: Router, location: Location, logger: Logger) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: '', children: [{ path: 'team/:id', canDeactivate: ['canDeactivate_team'], children: [{path: '', component: SimpleCmp, canDeactivate: ['canDeactivate_simple']}], component: TeamCmp }] }]); router.navigateByUrl('/team/22'); advance(fixture); router.navigateByUrl('/team/33'); advance(fixture); expect(logger.logs).toEqual(['canDeactivate_simple', 'canDeactivate_team']); }))); }); }); describe('route events', () => { it('should fire matching (Child)ActivationStart/End events', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'user/:name', component: UserCmp}]); const recordedEvents: any[] = []; router.events.forEach(e => recordedEvents.push(e)); router.navigateByUrl('/user/fedor'); advance(fixture); expect(fixture.nativeElement).toHaveText('user fedor'); expect(recordedEvents[3] instanceof ChildActivationStart).toBe(true); expect(recordedEvents[3].snapshot).toBe(recordedEvents[9].snapshot.root); expect(recordedEvents[9] instanceof ChildActivationEnd).toBe(true); expect(recordedEvents[9].snapshot).toBe(recordedEvents[9].snapshot.root); expect(recordedEvents[4] instanceof ActivationStart).toBe(true); expect(recordedEvents[4].snapshot.routeConfig.path).toBe('user/:name'); expect(recordedEvents[8] instanceof ActivationEnd).toBe(true); expect(recordedEvents[8].snapshot.routeConfig.path).toBe('user/:name'); expectEvents(recordedEvents, [ [NavigationStart, '/user/fedor'], [RoutesRecognized, '/user/fedor'], [GuardsCheckStart, '/user/fedor'], [ChildActivationStart], [ActivationStart], [GuardsCheckEnd, '/user/fedor'], [ResolveStart, '/user/fedor'], [ResolveEnd, '/user/fedor'], [ActivationEnd], [ChildActivationEnd], [NavigationEnd, '/user/fedor'] ]); }))); it('should allow redirection in NavigationStart', fakeAsync(inject([Router], (router: Router) => { const fixture = createRoot(router, RootCmp); router.resetConfig([ {path: 'blank', component: UserCmp}, {path: 'user/:name', component: BlankCmp}, ]); const navigateSpy = spyOn(router, 'navigate').and.callThrough(); const recordedEvents: any[] = []; const navStart$ = router.events.pipe( tap(e => recordedEvents.push(e)), filter(e => e instanceof NavigationStart), first()); navStart$.subscribe((e: NavigationStart | NavigationError) => { router.navigate( ['/blank'], {queryParams: {state: 'redirected'}, queryParamsHandling: 'merge'}); advance(fixture); }); router.navigate(['/user/:fedor']); advance(fixture); expect(navigateSpy.calls.mostRecent().args[1].queryParams); }))); }); describe('routerActiveLink', () => { it('should set the class when the link is active (a tag)', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [{ path: 'link', component: DummyLinkCmp, children: [{path: 'simple', component: SimpleCmp}, {path: '', component: BlankCmp}] }] }]); router.navigateByUrl('/team/22/link;exact=true'); advance(fixture); advance(fixture); expect(location.path()).toEqual('/team/22/link;exact=true'); const nativeLink = fixture.nativeElement.querySelector('a'); const nativeButton = fixture.nativeElement.querySelector('button'); expect(nativeLink.className).toEqual('active'); expect(nativeButton.className).toEqual('active'); router.navigateByUrl('/team/22/link/simple'); advance(fixture); expect(location.path()).toEqual('/team/22/link/simple'); expect(nativeLink.className).toEqual(''); expect(nativeButton.className).toEqual(''); }))); it('should not set the class until the first navigation succeeds', fakeAsync(() => { @Component({ template: '<router-outlet></router-outlet><a routerLink="/" routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}" ></a>' }) class RootCmpWithLink { } TestBed.configureTestingModule({declarations: [RootCmpWithLink]}); const router: Router = TestBed.get(Router); const f = TestBed.createComponent(RootCmpWithLink); advance(f); const link = f.nativeElement.querySelector('a'); expect(link.className).toEqual(''); router.initialNavigation(); advance(f); expect(link.className).toEqual('active'); })); it('should set the class on a parent element when the link is active', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [{ path: 'link', component: DummyLinkWithParentCmp, children: [{path: 'simple', component: SimpleCmp}, {path: '', component: BlankCmp}] }] }]); router.navigateByUrl('/team/22/link;exact=true'); advance(fixture); advance(fixture); expect(location.path()).toEqual('/team/22/link;exact=true'); const native = fixture.nativeElement.querySelector('#link-parent'); expect(native.className).toEqual('active'); router.navigateByUrl('/team/22/link/simple'); advance(fixture); expect(location.path()).toEqual('/team/22/link/simple'); expect(native.className).toEqual(''); }))); it('should set the class when the link is active', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [{ path: 'link', component: DummyLinkCmp, children: [{path: 'simple', component: SimpleCmp}, {path: '', component: BlankCmp}] }] }]); router.navigateByUrl('/team/22/link'); advance(fixture); advance(fixture); expect(location.path()).toEqual('/team/22/link'); const native = fixture.nativeElement.querySelector('a'); expect(native.className).toEqual('active'); router.navigateByUrl('/team/22/link/simple'); advance(fixture); expect(location.path()).toEqual('/team/22/link/simple'); expect(native.className).toEqual('active'); }))); it('should expose an isActive property', fakeAsync(() => { @Component({ template: `<a routerLink="/team" routerLinkActive #rla="routerLinkActive"></a> <p>{{rla.isActive}}</p> <span *ngIf="rla.isActive"></span> <span [ngClass]="{'highlight': rla.isActive}"></span> <router-outlet></router-outlet>` }) class ComponentWithRouterLink { } TestBed.configureTestingModule({declarations: [ComponentWithRouterLink]}); const router: Router = TestBed.get(Router); router.resetConfig([ { path: 'team', component: TeamCmp, }, { path: 'otherteam', component: TeamCmp, } ]); const fixture = TestBed.createComponent(ComponentWithRouterLink); router.navigateByUrl('/team'); expect(() => advance(fixture)).not.toThrow(); advance(fixture); const paragraph = fixture.nativeElement.querySelector('p'); expect(paragraph.textContent).toEqual('true'); router.navigateByUrl('/otherteam'); advance(fixture); advance(fixture); expect(paragraph.textContent).toEqual('false'); })); }); describe('lazy loading', () => { it('works', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { @Component({ selector: 'lazy', template: 'lazy-loaded-parent [<router-outlet></router-outlet>]' }) class ParentLazyLoadedComponent { } @Component({selector: 'lazy', template: 'lazy-loaded-child'}) class ChildLazyLoadedComponent { } @NgModule({ declarations: [ParentLazyLoadedComponent, ChildLazyLoadedComponent], imports: [RouterModule.forChild([{ path: 'loaded', component: ParentLazyLoadedComponent, children: [{path: 'child', component: ChildLazyLoadedComponent}] }])] }) class LoadedModule { } loader.stubbedModules = {expected: LoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'lazy', loadChildren: 'expected'}]); router.navigateByUrl('/lazy/loaded/child'); advance(fixture); expect(location.path()).toEqual('/lazy/loaded/child'); expect(fixture.nativeElement).toHaveText('lazy-loaded-parent [lazy-loaded-child]'); }))); it('should have 2 injector trees: module and element', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { @Component({ selector: 'lazy', template: 'parent[<router-outlet></router-outlet>]', viewProviders: [ {provide: 'shadow', useValue: 'from parent component'}, ], }) class Parent { } @Component({selector: 'lazy', template: 'child'}) class Child { } @NgModule({ declarations: [Parent], imports: [RouterModule.forChild([{ path: 'parent', component: Parent, children: [ {path: 'child', loadChildren: 'child'}, ] }])], providers: [ {provide: 'moduleName', useValue: 'parent'}, {provide: 'fromParent', useValue: 'from parent'}, ], }) class ParentModule { } @NgModule({ declarations: [Child], imports: [RouterModule.forChild([{path: '', component: Child}])], providers: [ {provide: 'moduleName', useValue: 'child'}, {provide: 'fromChild', useValue: 'from child'}, {provide: 'shadow', useValue: 'from child module'}, ], }) class ChildModule { } loader.stubbedModules = { parent: ParentModule, child: ChildModule, }; const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'lazy', loadChildren: 'parent'}]); router.navigateByUrl('/lazy/parent/child'); advance(fixture); expect(location.path()).toEqual('/lazy/parent/child'); expect(fixture.nativeElement).toHaveText('parent[child]'); const pInj = fixture.debugElement.query(By.directive(Parent)).injector !; const cInj = fixture.debugElement.query(By.directive(Child)).injector !; expect(pInj.get('moduleName')).toEqual('parent'); expect(pInj.get('fromParent')).toEqual('from parent'); expect(pInj.get(Parent)).toBeAnInstanceOf(Parent); expect(pInj.get('fromChild', null)).toEqual(null); expect(pInj.get(Child, null)).toEqual(null); expect(cInj.get('moduleName')).toEqual('child'); expect(cInj.get('fromParent')).toEqual('from parent'); expect(cInj.get('fromChild')).toEqual('from child'); expect(cInj.get(Parent)).toBeAnInstanceOf(Parent); expect(cInj.get(Child)).toBeAnInstanceOf(Child); // The child module can not shadow the parent component expect(cInj.get('shadow')).toEqual('from parent component'); const pmInj = pInj.get(NgModuleRef).injector; const cmInj = cInj.get(NgModuleRef).injector; expect(pmInj.get('moduleName')).toEqual('parent'); expect(cmInj.get('moduleName')).toEqual('child'); expect(pmInj.get(Parent, '-')).toEqual('-'); expect(cmInj.get(Parent, '-')).toEqual('-'); expect(pmInj.get(Child, '-')).toEqual('-'); expect(cmInj.get(Child, '-')).toEqual('-'); }))); // https://github.com/angular/angular/issues/12889 it('should create a single instance of lazy-loaded modules', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { @Component({ selector: 'lazy', template: 'lazy-loaded-parent [<router-outlet></router-outlet>]' }) class ParentLazyLoadedComponent { } @Component({selector: 'lazy', template: 'lazy-loaded-child'}) class ChildLazyLoadedComponent { } @NgModule({ declarations: [ParentLazyLoadedComponent, ChildLazyLoadedComponent], imports: [RouterModule.forChild([{ path: 'loaded', component: ParentLazyLoadedComponent, children: [{path: 'child', component: ChildLazyLoadedComponent}] }])] }) class LoadedModule { static instances = 0; constructor() { LoadedModule.instances++; } } loader.stubbedModules = {expected: LoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'lazy', loadChildren: 'expected'}]); router.navigateByUrl('/lazy/loaded/child'); advance(fixture); expect(fixture.nativeElement).toHaveText('lazy-loaded-parent [lazy-loaded-child]'); expect(LoadedModule.instances).toEqual(1); }))); // https://github.com/angular/angular/issues/13870 it('should create a single instance of guards for lazy-loaded modules', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { @Injectable() class Service { } @Injectable() class Resolver implements Resolve<Service> { constructor(public service: Service) {} resolve(route: ActivatedRouteSnapshot, state: RouterStateSnapshot) { return this.service; } } @Component({selector: 'lazy', template: 'lazy'}) class LazyLoadedComponent { resolvedService: Service; constructor(public injectedService: Service, route: ActivatedRoute) { this.resolvedService = route.snapshot.data['service']; } } @NgModule({ declarations: [LazyLoadedComponent], providers: [Service, Resolver], imports: [ RouterModule.forChild([{ path: 'loaded', component: LazyLoadedComponent, resolve: {'service': Resolver}, }]), ] }) class LoadedModule { } loader.stubbedModules = {expected: LoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'lazy', loadChildren: 'expected'}]); router.navigateByUrl('/lazy/loaded'); advance(fixture); expect(fixture.nativeElement).toHaveText('lazy'); const lzc = fixture.debugElement.query(By.directive(LazyLoadedComponent)).componentInstance; expect(lzc.injectedService).toBe(lzc.resolvedService); }))); it('should emit RouteConfigLoadStart and RouteConfigLoadEnd event when route is lazy loaded', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { @Component({ selector: 'lazy', template: 'lazy-loaded-parent [<router-outlet></router-outlet>]', }) class ParentLazyLoadedComponent { } @Component({selector: 'lazy', template: 'lazy-loaded-child'}) class ChildLazyLoadedComponent { } @NgModule({ declarations: [ParentLazyLoadedComponent, ChildLazyLoadedComponent], imports: [RouterModule.forChild([{ path: 'loaded', component: ParentLazyLoadedComponent, children: [{path: 'child', component: ChildLazyLoadedComponent}], }])] }) class LoadedModule { } const events: Array<RouteConfigLoadStart|RouteConfigLoadEnd> = []; router.events.subscribe(e => { if (e instanceof RouteConfigLoadStart || e instanceof RouteConfigLoadEnd) { events.push(e); } }); loader.stubbedModules = {expected: LoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'lazy', loadChildren: 'expected'}]); router.navigateByUrl('/lazy/loaded/child'); advance(fixture); expect(events.length).toEqual(2); expect(events[0].toString()).toEqual('RouteConfigLoadStart(path: lazy)'); expect(events[1].toString()).toEqual('RouteConfigLoadEnd(path: lazy)'); }))); it('throws an error when forRoot() is used in a lazy context', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { @Component({selector: 'lazy', template: 'should not show'}) class LazyLoadedComponent { } @NgModule({ declarations: [LazyLoadedComponent], imports: [RouterModule.forRoot([{path: 'loaded', component: LazyLoadedComponent}])] }) class LoadedModule { } loader.stubbedModules = {expected: LoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'lazy', loadChildren: 'expected'}]); let recordedError: any = null; router.navigateByUrl('/lazy/loaded') !.catch(err => recordedError = err); advance(fixture); expect(recordedError.message) .toEqual( `RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.`); }))); it('should combine routes from multiple modules into a single configuration', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { @Component({selector: 'lazy', template: 'lazy-loaded-2'}) class LazyComponent2 { } @NgModule({ declarations: [LazyComponent2], imports: [RouterModule.forChild([{path: 'loaded', component: LazyComponent2}])] }) class SiblingOfLoadedModule { } @Component({selector: 'lazy', template: 'lazy-loaded-1'}) class LazyComponent1 { } @NgModule({ declarations: [LazyComponent1], imports: [ RouterModule.forChild([{path: 'loaded', component: LazyComponent1}]), SiblingOfLoadedModule ] }) class LoadedModule { } loader.stubbedModules = {expected1: LoadedModule, expected2: SiblingOfLoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([ {path: 'lazy1', loadChildren: 'expected1'}, {path: 'lazy2', loadChildren: 'expected2'} ]); router.navigateByUrl('/lazy1/loaded'); advance(fixture); expect(location.path()).toEqual('/lazy1/loaded'); router.navigateByUrl('/lazy2/loaded'); advance(fixture); expect(location.path()).toEqual('/lazy2/loaded'); }))); it('should allow lazy loaded module in named outlet', fakeAsync(inject( [Router, NgModuleFactoryLoader], (router: Router, loader: SpyNgModuleFactoryLoader) => { @Component({selector: 'lazy', template: 'lazy-loaded'}) class LazyComponent { } @NgModule({ declarations: [LazyComponent], imports: [RouterModule.forChild([{path: '', component: LazyComponent}])] }) class LazyLoadedModule { } loader.stubbedModules = {lazyModule: LazyLoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [ {path: 'user/:name', component: UserCmp}, {path: 'lazy', loadChildren: 'lazyModule', outlet: 'right'}, ] }]); router.navigateByUrl('/team/22/user/john'); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ user john, right: ]'); router.navigateByUrl('/team/22/(user/john//right:lazy)'); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ user john, right: lazy-loaded ]'); }))); it('should allow componentless named outlet to render children', fakeAsync(inject( [Router, NgModuleFactoryLoader], (router: Router, loader: SpyNgModuleFactoryLoader) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'team/:id', component: TeamCmp, children: [ {path: 'user/:name', component: UserCmp}, {path: 'simple', outlet: 'right', children: [{path: '', component: SimpleCmp}]}, ] }]); router.navigateByUrl('/team/22/user/john'); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ user john, right: ]'); router.navigateByUrl('/team/22/(user/john//right:simple)'); advance(fixture); expect(fixture.nativeElement).toHaveText('team 22 [ user john, right: simple ]'); }))); describe('should use the injector of the lazily-loaded configuration', () => { class LazyLoadedServiceDefinedInModule {} @Component({ selector: 'eager-parent', template: 'eager-parent <router-outlet></router-outlet>', }) class EagerParentComponent { } @Component({ selector: 'lazy-parent', template: 'lazy-parent <router-outlet></router-outlet>', }) class LazyParentComponent { } @Component({ selector: 'lazy-child', template: 'lazy-child', }) class LazyChildComponent { constructor( lazy: LazyParentComponent, // should be able to inject lazy/direct parent lazyService: LazyLoadedServiceDefinedInModule, // should be able to inject lazy service eager: EagerParentComponent // should use the injector of the location to create a parent ) {} } @NgModule({ declarations: [LazyParentComponent, LazyChildComponent], imports: [RouterModule.forChild([{ path: '', children: [{ path: 'lazy-parent', component: LazyParentComponent, children: [{path: 'lazy-child', component: LazyChildComponent}] }] }])], providers: [LazyLoadedServiceDefinedInModule] }) class LoadedModule { } @NgModule({ declarations: [EagerParentComponent], entryComponents: [EagerParentComponent], imports: [RouterModule] }) class TestModule { } beforeEach(() => { TestBed.configureTestingModule({ imports: [TestModule], }); }); it('should use the injector of the lazily-loaded configuration', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { loader.stubbedModules = {expected: LoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'eager-parent', component: EagerParentComponent, children: [{path: 'lazy', loadChildren: 'expected'}] }]); router.navigateByUrl('/eager-parent/lazy/lazy-parent/lazy-child'); advance(fixture); expect(location.path()).toEqual('/eager-parent/lazy/lazy-parent/lazy-child'); expect(fixture.nativeElement).toHaveText('eager-parent lazy-parent lazy-child'); }))); }); it('works when given a callback', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location) => { @Component({selector: 'lazy', template: 'lazy-loaded'}) class LazyLoadedComponent { } @NgModule({ declarations: [LazyLoadedComponent], imports: [RouterModule.forChild([{path: 'loaded', component: LazyLoadedComponent}])], }) class LoadedModule { } const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'lazy', loadChildren: () => LoadedModule}]); router.navigateByUrl('/lazy/loaded'); advance(fixture); expect(location.path()).toEqual('/lazy/loaded'); expect(fixture.nativeElement).toHaveText('lazy-loaded'); }))); it('error emit an error when cannot load a config', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { loader.stubbedModules = {}; const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'lazy', loadChildren: 'invalid'}]); const recordedEvents: any[] = []; router.events.forEach(e => recordedEvents.push(e)); router.navigateByUrl('/lazy/loaded') !.catch(s => {}); advance(fixture); expect(location.path()).toEqual('/'); expectEvents(recordedEvents, [ [NavigationStart, '/lazy/loaded'], [RouteConfigLoadStart], [NavigationError, '/lazy/loaded'], ]); }))); it('should work with complex redirect rules', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { @Component({selector: 'lazy', template: 'lazy-loaded'}) class LazyLoadedComponent { } @NgModule({ declarations: [LazyLoadedComponent], imports: [RouterModule.forChild([{path: 'loaded', component: LazyLoadedComponent}])], }) class LoadedModule { } loader.stubbedModules = {lazy: LoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig( [{path: 'lazy', loadChildren: 'lazy'}, {path: '**', redirectTo: 'lazy'}]); router.navigateByUrl('/lazy/loaded'); advance(fixture); expect(location.path()).toEqual('/lazy/loaded'); }))); it('should work with wildcard route', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { @Component({selector: 'lazy', template: 'lazy-loaded'}) class LazyLoadedComponent { } @NgModule({ declarations: [LazyLoadedComponent], imports: [RouterModule.forChild([{path: '', component: LazyLoadedComponent}])], }) class LazyLoadedModule { } loader.stubbedModules = {lazy: LazyLoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([{path: '**', loadChildren: 'lazy'}]); router.navigateByUrl('/lazy'); advance(fixture); expect(location.path()).toEqual('/lazy'); expect(fixture.nativeElement).toHaveText('lazy-loaded'); }))); describe('preloading', () => { beforeEach(() => { TestBed.configureTestingModule( {providers: [{provide: PreloadingStrategy, useExisting: PreloadAllModules}]}); const preloader = TestBed.get(RouterPreloader); preloader.setUpPreloading(); }); it('should work', fakeAsync(inject( [Router, Location, NgModuleFactoryLoader], (router: Router, location: Location, loader: SpyNgModuleFactoryLoader) => { @Component({selector: 'lazy', template: 'should not show'}) class LazyLoadedComponent { } @NgModule({ declarations: [LazyLoadedComponent], imports: [RouterModule.forChild( [{path: 'LoadedModule2', component: LazyLoadedComponent}])] }) class LoadedModule2 { } @NgModule({ imports: [RouterModule.forChild([{path: 'LoadedModule1', loadChildren: 'expected2'}])] }) class LoadedModule1 { } loader.stubbedModules = {expected: LoadedModule1, expected2: LoadedModule2}; const fixture = createRoot(router, RootCmp); router.resetConfig([ {path: 'blank', component: BlankCmp}, {path: 'lazy', loadChildren: 'expected'} ]); router.navigateByUrl('/blank'); advance(fixture); const config = router.config as any; const firstConfig = config[1]._loadedConfig !; expect(firstConfig).toBeDefined(); expect(firstConfig.routes[0].path).toEqual('LoadedModule1'); const secondConfig = firstConfig.routes[0]._loadedConfig !; expect(secondConfig).toBeDefined(); expect(secondConfig.routes[0].path).toEqual('LoadedModule2'); }))); }); describe('custom url handling strategies', () => { class CustomUrlHandlingStrategy implements UrlHandlingStrategy { shouldProcessUrl(url: UrlTree): boolean { return url.toString().startsWith('/include') || url.toString() === '/'; } extract(url: UrlTree): UrlTree { const oldRoot = url.root; const children: any = {}; if (oldRoot.children[PRIMARY_OUTLET]) { children[PRIMARY_OUTLET] = oldRoot.children[PRIMARY_OUTLET]; } const root = new UrlSegmentGroup(oldRoot.segments, children); return new (UrlTree as any)(root, url.queryParams, url.fragment); } merge(newUrlPart: UrlTree, wholeUrl: UrlTree): UrlTree { const oldRoot = newUrlPart.root; const children: any = {}; if (oldRoot.children[PRIMARY_OUTLET]) { children[PRIMARY_OUTLET] = oldRoot.children[PRIMARY_OUTLET]; } forEach(wholeUrl.root.children, (v: any, k: any) => { if (k !== PRIMARY_OUTLET) { children[k] = v; } v.parent = this; }); const root = new UrlSegmentGroup(oldRoot.segments, children); return new (UrlTree as any)(root, newUrlPart.queryParams, newUrlPart.fragment); } } beforeEach(() => { TestBed.configureTestingModule( {providers: [{provide: UrlHandlingStrategy, useClass: CustomUrlHandlingStrategy}]}); }); it('should work', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'include', component: TeamCmp, children: [ {path: 'user/:name', component: UserCmp}, {path: 'simple', component: SimpleCmp} ] }]); const events: any[] = []; router.events.subscribe(e => e instanceof RouterEvent && events.push(e)); // supported URL router.navigateByUrl('/include/user/kate'); advance(fixture); expect(location.path()).toEqual('/include/user/kate'); expectEvents(events, [ [NavigationStart, '/include/user/kate'], [RoutesRecognized, '/include/user/kate'], [GuardsCheckStart, '/include/user/kate'], [GuardsCheckEnd, '/include/user/kate'], [ResolveStart, '/include/user/kate'], [ResolveEnd, '/include/user/kate'], [NavigationEnd, '/include/user/kate'] ]); expect(fixture.nativeElement).toHaveText('team [ user kate, right: ]'); events.splice(0); // unsupported URL router.navigateByUrl('/exclude/one'); advance(fixture); expect(location.path()).toEqual('/exclude/one'); expect(Object.keys(router.routerState.root.children).length).toEqual(0); expect(fixture.nativeElement).toHaveText(''); expectEvents(events, [ [NavigationStart, '/exclude/one'], [GuardsCheckStart, '/exclude/one'], [GuardsCheckEnd, '/exclude/one'], [NavigationEnd, '/exclude/one'] ]); events.splice(0); // another unsupported URL location.go('/exclude/two'); advance(fixture); expect(location.path()).toEqual('/exclude/two'); expectEvents(events, []); // back to a supported URL location.go('/include/simple'); advance(fixture); expect(location.path()).toEqual('/include/simple'); expect(fixture.nativeElement).toHaveText('team [ simple, right: ]'); expectEvents(events, [ [NavigationStart, '/include/simple'], [RoutesRecognized, '/include/simple'], [GuardsCheckStart, '/include/simple'], [GuardsCheckEnd, '/include/simple'], [ResolveStart, '/include/simple'], [ResolveEnd, '/include/simple'], [NavigationEnd, '/include/simple'] ]); }))); it('should handle the case when the router takes only the primary url', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.resetConfig([{ path: 'include', component: TeamCmp, children: [ {path: 'user/:name', component: UserCmp}, {path: 'simple', component: SimpleCmp} ] }]); const events: any[] = []; router.events.subscribe(e => e instanceof RouterEvent && events.push(e)); location.go('/include/user/kate(aux:excluded)'); advance(fixture); expect(location.path()).toEqual('/include/user/kate(aux:excluded)'); expectEvents(events, [ [NavigationStart, '/include/user/kate'], [RoutesRecognized, '/include/user/kate'], [GuardsCheckStart, '/include/user/kate'], [GuardsCheckEnd, '/include/user/kate'], [ResolveStart, '/include/user/kate'], [ResolveEnd, '/include/user/kate'], [NavigationEnd, '/include/user/kate'] ]); events.splice(0); location.go('/include/user/kate(aux:excluded2)'); advance(fixture); expectEvents(events, []); router.navigateByUrl('/include/simple'); advance(fixture); expect(location.path()).toEqual('/include/simple(aux:excluded2)'); expectEvents(events, [ [NavigationStart, '/include/simple'], [RoutesRecognized, '/include/simple'], [GuardsCheckStart, '/include/simple'], [GuardsCheckEnd, '/include/simple'], [ResolveStart, '/include/simple'], [ResolveEnd, '/include/simple'], [NavigationEnd, '/include/simple'] ]); }))); }); describe('relativeLinkResolution', () => { @Component({selector: 'link-cmp', template: `<a [routerLink]="['../simple']">link</a>`}) class RelativeLinkCmp { } @NgModule({ declarations: [RelativeLinkCmp], imports: [RouterModule.forChild([ {path: 'foo/bar', children: [{path: '', component: RelativeLinkCmp}]}, ])] }) class LazyLoadedModule { } it('should not ignore empty path when in legacy mode', fakeAsync(inject( [Router, NgModuleFactoryLoader], (router: Router, loader: SpyNgModuleFactoryLoader) => { router.relativeLinkResolution = 'legacy'; loader.stubbedModules = {expected: LazyLoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'lazy', loadChildren: 'expected'}]); router.navigateByUrl('/lazy/foo/bar'); advance(fixture); const link = fixture.nativeElement.querySelector('a'); expect(link.getAttribute('href')).toEqual('/lazy/foo/bar/simple'); }))); it('should ignore empty path when in corrected mode', fakeAsync(inject( [Router, NgModuleFactoryLoader], (router: Router, loader: SpyNgModuleFactoryLoader) => { router.relativeLinkResolution = 'corrected'; loader.stubbedModules = {expected: LazyLoadedModule}; const fixture = createRoot(router, RootCmp); router.resetConfig([{path: 'lazy', loadChildren: 'expected'}]); router.navigateByUrl('/lazy/foo/bar'); advance(fixture); const link = fixture.nativeElement.querySelector('a'); expect(link.getAttribute('href')).toEqual('/lazy/foo/simple'); }))); }); }); describe('Custom Route Reuse Strategy', () => { class AttachDetachReuseStrategy implements RouteReuseStrategy { stored: {[k: string]: DetachedRouteHandle} = {}; shouldDetach(route: ActivatedRouteSnapshot): boolean { return route.routeConfig !.path === 'a'; } store(route: ActivatedRouteSnapshot, detachedTree: DetachedRouteHandle): void { this.stored[route.routeConfig !.path !] = detachedTree; } shouldAttach(route: ActivatedRouteSnapshot): boolean { return !!this.stored[route.routeConfig !.path !]; } retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle { return this.stored[route.routeConfig !.path !]; } shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean { return future.routeConfig === curr.routeConfig; } } class ShortLifecycle implements RouteReuseStrategy { shouldDetach(route: ActivatedRouteSnapshot): boolean { return false; } store(route: ActivatedRouteSnapshot, detachedTree: DetachedRouteHandle): void {} shouldAttach(route: ActivatedRouteSnapshot): boolean { return false; } retrieve(route: ActivatedRouteSnapshot): DetachedRouteHandle|null { return null; } shouldReuseRoute(future: ActivatedRouteSnapshot, curr: ActivatedRouteSnapshot): boolean { if (future.routeConfig !== curr.routeConfig) { return false; } if (Object.keys(future.params).length !== Object.keys(curr.params).length) { return false; } return Object.keys(future.params).every(k => future.params[k] === curr.params[k]); } } it('should support attaching & detaching fragments', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.routeReuseStrategy = new AttachDetachReuseStrategy(); router.resetConfig([ { path: 'a', component: TeamCmp, children: [{path: 'b', component: SimpleCmp}], }, {path: 'c', component: UserCmp}, ]); router.navigateByUrl('/a/b'); advance(fixture); const teamCmp = fixture.debugElement.children[1].componentInstance; const simpleCmp = fixture.debugElement.children[1].children[1].componentInstance; expect(location.path()).toEqual('/a/b'); expect(teamCmp).toBeDefined(); expect(simpleCmp).toBeDefined(); router.navigateByUrl('/c'); advance(fixture); expect(location.path()).toEqual('/c'); expect(fixture.debugElement.children[1].componentInstance).toBeAnInstanceOf(UserCmp); router.navigateByUrl('/a;p=1/b;p=2'); advance(fixture); const teamCmp2 = fixture.debugElement.children[1].componentInstance; const simpleCmp2 = fixture.debugElement.children[1].children[1].componentInstance; expect(location.path()).toEqual('/a;p=1/b;p=2'); expect(teamCmp2).toBe(teamCmp); expect(simpleCmp2).toBe(simpleCmp); expect(teamCmp.route).toBe(router.routerState.root.firstChild); expect(teamCmp.route.snapshot).toBe(router.routerState.snapshot.root.firstChild); expect(teamCmp.route.snapshot.params).toEqual({p: '1'}); expect(teamCmp.route.firstChild.snapshot.params).toEqual({p: '2'}); }))); it('should support shorter lifecycles', fakeAsync(inject([Router, Location], (router: Router, location: Location) => { const fixture = createRoot(router, RootCmp); router.routeReuseStrategy = new ShortLifecycle(); router.resetConfig([{path: 'a', component: SimpleCmp}]); router.navigateByUrl('/a'); advance(fixture); const simpleCmp1 = fixture.debugElement.children[1].componentInstance; expect(location.path()).toEqual('/a'); router.navigateByUrl('/a;p=1'); advance(fixture); expect(location.path()).toEqual('/a;p=1'); const simpleCmp2 = fixture.debugElement.children[1].componentInstance; expect(simpleCmp1).not.toBe(simpleCmp2); }))); it('should not mount the component of the previously reused route when the outlet was not instantiated at the time of route activation', fakeAsync(() => { @Component({ selector: 'root-cmp', template: '<div *ngIf="isToolpanelShowing"><router-outlet name="toolpanel"></router-outlet></div>' }) class RootCmpWithCondOutlet implements OnDestroy { private subscription: Subscription; public isToolpanelShowing: boolean = false; constructor(router: Router) { this.subscription = router.events.pipe(filter(event => event instanceof NavigationEnd)) .subscribe( () => this.isToolpanelShowing = !!router.parseUrl(router.url).root.children['toolpanel']); } public ngOnDestroy(): void { this.subscription.unsubscribe(); } } @Component({selector: 'tool-1-cmp', template: 'Tool 1 showing'}) class Tool1Component { } @Component({selector: 'tool-2-cmp', template: 'Tool 2 showing'}) class Tool2Component { } @NgModule({ declarations: [RootCmpWithCondOutlet, Tool1Component, Tool2Component], imports: [ CommonModule, RouterTestingModule.withRoutes([ {path: 'a', outlet: 'toolpanel', component: Tool1Component}, {path: 'b', outlet: 'toolpanel', component: Tool2Component}, ]), ], }) class TestModule { } TestBed.configureTestingModule({imports: [TestModule]}); const router: Router = TestBed.get(Router); router.routeReuseStrategy = new AttachDetachReuseStrategy(); const fixture = createRoot(router, RootCmpWithCondOutlet); // Activate 'tool-1' router.navigate([{outlets: {toolpanel: 'a'}}]); advance(fixture); expect(fixture).toContainComponent(Tool1Component, '(a)'); // Deactivate 'tool-1' router.navigate([{outlets: {toolpanel: null}}]); advance(fixture); expect(fixture).not.toContainComponent(Tool1Component, '(b)'); // Activate 'tool-1' router.navigate([{outlets: {toolpanel: 'a'}}]); advance(fixture); expect(fixture).toContainComponent(Tool1Component, '(c)'); // Deactivate 'tool-1' router.navigate([{outlets: {toolpanel: null}}]); advance(fixture); expect(fixture).not.toContainComponent(Tool1Component, '(d)'); // Activate 'tool-2' router.navigate([{outlets: {toolpanel: 'b'}}]); advance(fixture); expect(fixture).toContainComponent(Tool2Component, '(e)'); })); }); }); describe('Testing router options', () => { describe('paramsInheritanceStrategy', () => { beforeEach(() => { TestBed.configureTestingModule( {imports: [RouterTestingModule.withRoutes([], {paramsInheritanceStrategy: 'always'})]}); }); it('should configure the router', fakeAsync(inject([Router], (router: Router) => { expect(router.paramsInheritanceStrategy).toEqual('always'); }))); }); describe('malformedUriErrorHandler', () => { function malformedUriErrorHandler(e: URIError, urlSerializer: UrlSerializer, url: string) { return urlSerializer.parse('/error'); } beforeEach(() => { TestBed.configureTestingModule( {imports: [RouterTestingModule.withRoutes([], {malformedUriErrorHandler})]}); }); it('should configure the router', fakeAsync(inject([Router], (router: Router) => { expect(router.malformedUriErrorHandler).toBe(malformedUriErrorHandler); }))); }); }); function expectEvents(events: Event[], pairs: any[]) { expect(events.length).toEqual(pairs.length); for (let i = 0; i < events.length; ++i) { expect((<any>events[i].constructor).name).toBe(pairs[i][0].name); expect((<any>events[i]).url).toBe(pairs[i][1]); } } function onlyNavigationStartAndEnd(e: Event): boolean { return e instanceof NavigationStart || e instanceof NavigationEnd; } @Component( {selector: 'link-cmp', template: `<a routerLink="/team/33/simple" [target]="'_self'">link</a>`}) class StringLinkCmp { } @Component({selector: 'link-cmp', template: `<button routerLink="/team/33/simple">link</button>`}) class StringLinkButtonCmp { } @Component({ selector: 'link-cmp', template: `<router-outlet></router-outlet><a [routerLink]="['/team/33/simple']">link</a>` }) class AbsoluteLinkCmp { } @Component({ selector: 'link-cmp', template: `<router-outlet></router-outlet><a routerLinkActive="active" [routerLinkActiveOptions]="{exact: exact}" [routerLink]="['./']">link</a> <button routerLinkActive="active" [routerLinkActiveOptions]="{exact: exact}" [routerLink]="['./']">button</button> ` }) class DummyLinkCmp { private exact: boolean; constructor(route: ActivatedRoute) { this.exact = route.snapshot.paramMap.get('exact') === 'true'; } } @Component({selector: 'link-cmp', template: `<a [routerLink]="['/simple']">link</a>`}) class AbsoluteSimpleLinkCmp { } @Component({selector: 'link-cmp', template: `<a [routerLink]="['../simple']">link</a>`}) class RelativeLinkCmp { } @Component({ selector: 'link-cmp', template: `<a [routerLink]="['../simple']" [queryParams]="{q: '1'}" fragment="f">link</a>` }) class LinkWithQueryParamsAndFragment { } @Component({ selector: 'link-cmp', template: `<a [routerLink]="['../simple']" [state]="{foo: 'bar'}">link</a>` }) class LinkWithState { } @Component({selector: 'simple-cmp', template: `simple`}) class SimpleCmp { } @Component({selector: 'collect-params-cmp', template: `collect-params`}) class CollectParamsCmp { private params: any = []; private urls: any = []; constructor(private route: ActivatedRoute) { route.params.forEach(p => this.params.push(p)); route.url.forEach(u => this.urls.push(u)); } recordedUrls(): string[] { return this.urls.map((a: any) => a.map((p: any) => p.path).join('/')); } } @Component({selector: 'blank-cmp', template: ``}) class BlankCmp { } @Component({ selector: 'team-cmp', template: `team {{id | async}} ` + `[ <router-outlet></router-outlet>, right: <router-outlet name="right"></router-outlet> ]` + `<a [routerLink]="routerLink" skipLocationChange></a>` + `<button [routerLink]="routerLink" skipLocationChange></button>` }) class TeamCmp { id: Observable<string>; recordedParams: Params[] = []; snapshotParams: Params[] = []; routerLink = ['.']; constructor(public route: ActivatedRoute) { this.id = route.params.pipe(map((p: any) => p['id'])); route.params.forEach(p => { this.recordedParams.push(p); this.snapshotParams.push(route.snapshot.params); }); } } @Component({ selector: 'two-outlets-cmp', template: `[ <router-outlet></router-outlet>, aux: <router-outlet name="aux"></router-outlet> ]` }) class TwoOutletsCmp { } @Component({selector: 'user-cmp', template: `user {{name | async}}`}) class UserCmp { name: Observable<string>; recordedParams: Params[] = []; snapshotParams: Params[] = []; constructor(route: ActivatedRoute) { this.name = route.params.pipe(map((p: any) => p['name'])); route.params.forEach(p => { this.recordedParams.push(p); this.snapshotParams.push(route.snapshot.params); }); } } @Component({selector: 'wrapper', template: `<router-outlet></router-outlet>`}) class WrapperCmp { } @Component( {selector: 'query-cmp', template: `query: {{name | async}} fragment: {{fragment | async}}`}) class QueryParamsAndFragmentCmp { name: Observable<string|null>; fragment: Observable<string>; constructor(route: ActivatedRoute) { this.name = route.queryParamMap.pipe(map((p: ParamMap) => p.get('name'))); this.fragment = route.fragment; } } @Component({selector: 'empty-query-cmp', template: ``}) class EmptyQueryParamsCmp { recordedParams: Params[] = []; constructor(route: ActivatedRoute) { route.queryParams.forEach(_ => this.recordedParams.push(_)); } } @Component({selector: 'route-cmp', template: `route`}) class RouteCmp { constructor(public route: ActivatedRoute) {} } @Component({ selector: 'link-cmp', template: `<div *ngIf="show"><a [routerLink]="['./simple']">link</a></div> <router-outlet></router-outlet>` }) class RelativeLinkInIfCmp { show: boolean = false; } @Component( {selector: 'child', template: '<div *ngIf="alwaysTrue"><router-outlet></router-outlet></div>'}) class OutletInNgIf { alwaysTrue = true; } @Component({ selector: 'link-cmp', template: `<router-outlet></router-outlet> <div id="link-parent" routerLinkActive="active" [routerLinkActiveOptions]="{exact: exact}"> <div ngClass="{one: 'true'}"><a [routerLink]="['./']">link</a></div> </div>` }) class DummyLinkWithParentCmp { private exact: boolean; constructor(route: ActivatedRoute) { this.exact = (<any>route.snapshot.params).exact === 'true'; } } @Component({selector: 'cmp', template: ''}) class ComponentRecordingRoutePathAndUrl { private path: any; private url: any; constructor(router: Router, route: ActivatedRoute) { this.path = (router.routerState as any).pathFromRoot(route); this.url = router.url.toString(); } } @Component({selector: 'root-cmp', template: `<router-outlet></router-outlet>`}) class RootCmp { } @Component({selector: 'root-cmp-on-init', template: `<router-outlet></router-outlet>`}) class RootCmpWithOnInit { constructor(private router: Router) {} ngOnInit(): void { this.router.navigate(['one']); } } @Component({ selector: 'root-cmp', template: `primary [<router-outlet></router-outlet>] right [<router-outlet name="right"></router-outlet>]` }) class RootCmpWithTwoOutlets { } @Component({selector: 'root-cmp', template: `main [<router-outlet name="main"></router-outlet>]`}) class RootCmpWithNamedOutlet { } @Component({selector: 'throwing-cmp', template: ''}) class ThrowingCmp { constructor() { throw new Error('Throwing Cmp'); } } function advance(fixture: ComponentFixture<any>, millis?: number): void { tick(millis); fixture.detectChanges(); } function createRoot(router: Router, type: any): ComponentFixture<any> { const f = TestBed.createComponent(type); advance(f); router.initialNavigation(); advance(f); return f; } @Component({selector: 'lazy', template: 'lazy-loaded'}) class LazyComponent { } @NgModule({ imports: [RouterTestingModule, CommonModule], entryComponents: [ BlankCmp, SimpleCmp, TwoOutletsCmp, TeamCmp, UserCmp, StringLinkCmp, DummyLinkCmp, AbsoluteLinkCmp, AbsoluteSimpleLinkCmp, RelativeLinkCmp, DummyLinkWithParentCmp, LinkWithQueryParamsAndFragment, LinkWithState, CollectParamsCmp, QueryParamsAndFragmentCmp, StringLinkButtonCmp, WrapperCmp, OutletInNgIf, ComponentRecordingRoutePathAndUrl, RouteCmp, RootCmp, RelativeLinkInIfCmp, RootCmpWithTwoOutlets, RootCmpWithNamedOutlet, EmptyQueryParamsCmp, ThrowingCmp ], exports: [ BlankCmp, SimpleCmp, TwoOutletsCmp, TeamCmp, UserCmp, StringLinkCmp, DummyLinkCmp, AbsoluteLinkCmp, AbsoluteSimpleLinkCmp, RelativeLinkCmp, DummyLinkWithParentCmp, LinkWithQueryParamsAndFragment, LinkWithState, CollectParamsCmp, QueryParamsAndFragmentCmp, StringLinkButtonCmp, WrapperCmp, OutletInNgIf, ComponentRecordingRoutePathAndUrl, RouteCmp, RootCmp, RootCmpWithOnInit, RelativeLinkInIfCmp, RootCmpWithTwoOutlets, RootCmpWithNamedOutlet, EmptyQueryParamsCmp, ThrowingCmp ], declarations: [ BlankCmp, SimpleCmp, TeamCmp, TwoOutletsCmp, UserCmp, StringLinkCmp, DummyLinkCmp, AbsoluteLinkCmp, AbsoluteSimpleLinkCmp, RelativeLinkCmp, DummyLinkWithParentCmp, LinkWithQueryParamsAndFragment, LinkWithState, CollectParamsCmp, QueryParamsAndFragmentCmp, StringLinkButtonCmp, WrapperCmp, OutletInNgIf, ComponentRecordingRoutePathAndUrl, RouteCmp, RootCmp, RootCmpWithOnInit, RelativeLinkInIfCmp, RootCmpWithTwoOutlets, RootCmpWithNamedOutlet, EmptyQueryParamsCmp, ThrowingCmp ] }) class TestModule { }
hansl/angular
packages/router/test/integration.spec.ts
TypeScript
mit
182,197
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['2977',"Tlece.Recruitment.Services.Company Namespace","topic_0000000000000A83.html"],['2978',"CompanyService Class","topic_0000000000000A84.html"],['2991',"Methods","topic_0000000000000A84_methods--.html"],['3066',"TerminateStaff Method","topic_0000000000000AAC.html"]];
asiboro/asiboro.github.io
vsdoc/toc--/topic_0000000000000AAC.html.js
JavaScript
mit
374
--- title: aer28 type: products image: /img/Screen Shot 2017-05-09 at 11.56.54 AM.png heading: r28 description: lksadjf lkasdjf lksajdf lksdaj flksadj flksa fdj main: heading: Foo Bar BAz description: |- ***This is i a thing***kjh hjk kj # Blah Blah ## Blah![undefined](undefined) ### Baah image1: alt: kkkk ---
pblack/kaldi-hugo-cms-template
site/content/pages2/aer28.md
Markdown
mit
339
/*global require module*/ var q = require('q'); var async = require('async'); var constants = require('./_constants'); var Logger = require('./logger'); var CompiledNode = require('./compiled-node'); var EvaluatedNode = require('./evaluated-node'); var _8a2a4f008c464f9b81b3b5f4e75772c5 = { evaluateValue: function(mapper, logger, parent, name, instanceNode, requiredOnly) { var evaluated = new EvaluatedNode(this); evaluated.content = this.value; return q().then(function () { return evaluated; }); }, evaluateObject: function(mapper, logger, parent, name, instanceNode, requiredOnly) { var self = this; var defer = q.defer(); var hasMissingNode = false; var evaluated = new EvaluatedNode(this); evaluated.children = (this.children instanceof Array) ? [] : {}; evaluated.content = (this.children instanceof Array) ? [] : {}; async.each( Object.keys(self.children), function (key, done) { self.children[key].evaluate(mapper, logger, evaluated, key, instanceNode).then(function (child) { evaluated.children[key] = child; evaluated.content[key] = child.content; hasMissingNode = hasMissingNode || child.isMissing; }) .finally(function () { done(); }) }, function (err) { if (hasMissingNode) { evaluated.content = null; evaluated.isMissing = (self.isRequired); } defer.resolve(evaluated); } ); return defer.promise } }; module.exports = Module; /*------------------------------------------------------------------------------ A module contains 0, 1 or more properties A property contains 0 or 1 selector and 0 or 1 module ------------------------------------------------------------------------------*/ function Module(source) { var helper = _8a2a4f008c464f9b81b3b5f4e75772c5; function getSource(mapper, logger) { function _getSource(source) { if (source) { if (typeof(source) === 'function') { return _getSource(source(mapper, logger)); } if (typeof(source.getSource) === 'function') { return _getSource(source.getSource(mapper, logger)); } } return source; } return _getSource(source); } function validate(mapper, instanceNode, logger) { return q().then(function () { return getSourceModule(mapper, module); }) .then(function (module) { if (module === undefined) { return true; } else if (module === null) { return true; } else if (typeof(module.validate) === 'function') { return module.validate(mapper, instanceNode); } else { return true; } }); } function __compile(parent, source, name) { var compiled = new CompiledNode(null, null, parent, name); if (source !== undefined && source !== null) { var content = source.content; if (content === undefined) { compiled.value = content; compiled.setIsRequired(false); compiled._evaluate = helper.evaluateValue; } else if (content === null) { compiled.value = content; compiled.setIsRequired(false); compiled._evaluate = helper.evaluateValue; } else if (content.$isModule) { compiled = content._compile(parent, name); } else if (content[constants.interface.compile]) { compiled = content[constants.interface.compile]._compile(parent, name); } else if (typeof(content) === 'object') { compiled._evaluate = helper.evaluateObject; compiled.children = (content instanceof Array) ? [] : {}; compiled.newContent(); var keys = Object.keys(content); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var child = __compile(compiled, {content: content[key]}, key); compiled.children[key] = child; compiled.content[key] = child.content; } } else { compiled.value = content; compiled.setIsRequired(false); compiled._evaluate = helper.evaluateValue; } } return compiled; } function _compile(parent, name) { var logger = parent.logger; var containingModule = parent.mapper && parent.mapper.containingModule; var mapper = parent.mapper && parent.mapper.newChild(logger, containingModule); var source = getSource(mapper, module); return __compile(parent, source, name); } function compile(mapper, logger) { var compiled = new CompiledNode(mapper, logger); return _compile(compiled, ''); } return { $isModule: true, logger: null, getSource: function (mapper, logger) { return getSource(mapper, logger); }, validate: function (mapper, instanceNode, logger) { return validate.call(this, mapper, instanceNode, logger || this.logger); }, _compile: function (parent, name) { return _compile(parent, name); }, compile: function (mapper, logger) { return compile(mapper, logger || this.logger).content; }, evaluate: function (mapper, instanceNode, logger) { var api = this.compile(mapper, logger); api._ = instanceNode; return api._; }, setLogger: function (val) { this.logger = val; return this; } }; }
cellanda/flexapi-core-js
lib/module.js
JavaScript
mit
6,246
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 12, 2015 at 07:43 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -- Database: `eventfinder` -- -- -------------------------------------------------------- -- -- Table structure for table `admin` -- CREATE TABLE IF NOT EXISTS `admin` ( `amId` int(11) NOT NULL AUTO_INCREMENT, `amName` varchar(50) NOT NULL, `amPassword` varchar(50) NOT NULL, `amSalt` varchar(20) NOT NULL, PRIMARY KEY (`amId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Dumping data for table `admin` -- INSERT INTO `admin` (`amId`, `amName`, `amPassword`, `amSalt`) VALUES (1, 'admin', 'EXGKPpYr3W5CiM86aGu0gw5Nnb9oY2s1', 'hck5'); -- -------------------------------------------------------- -- -- Table structure for table `article` -- CREATE TABLE IF NOT EXISTS `article` ( `arId` int(11) NOT NULL AUTO_INCREMENT, `arTitle` varchar(100) NOT NULL, `arContent` text NOT NULL, `arDateStart` date NOT NULL, `arDateEnd` date NOT NULL, `arPict` varchar(100) NOT NULL, `arURL` varchar(100) NOT NULL, `arAuthor` int(11) NOT NULL, `arBarcode` varchar(100) NOT NULL, `arCategory` int(11) NOT NULL, PRIMARY KEY (`arId`), KEY `arAuthor` (`arAuthor`), KEY `arCategory` (`arCategory`), KEY `arPict` (`arPict`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -- Dumping data for table `article` -- INSERT INTO `article` (`arId`, `arTitle`, `arContent`, `arDateStart`, `arDateEnd`, `arPict`, `arURL`, `arAuthor`, `arBarcode`, `arCategory`) VALUES (1, 'Balap Karung', 'balap karung di persembahkan oleh lorem ipsum', '2015-09-10', '2015-09-11', 'http://www.eventfinder.co.id/images/slide2_03.gif', 'Balap-Karung', 1, 'http://www.eventfinder.co.id/images/slide2_03.gif', 1); -- -------------------------------------------------------- -- -- Table structure for table `category` -- CREATE TABLE IF NOT EXISTS `category` ( `catId` int(11) NOT NULL, `catName` varchar(50) NOT NULL, PRIMARY KEY (`catId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `category` -- INSERT INTO `category` (`catId`, `catName`) VALUES (1, 'Music'), (2, 'Exhibition'), (3, 'Sport'); -- -------------------------------------------------------- -- -- Table structure for table `log` -- CREATE TABLE IF NOT EXISTS `log` ( `logId` int(11) NOT NULL AUTO_INCREMENT, `logAdmin` int(11) NOT NULL, `logDate` date NOT NULL, `logMessage` text NOT NULL, PRIMARY KEY (`logId`), KEY `logAdmin` (`logAdmin`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; -- -------------------------------------------------------- -- -- Table structure for table `media` -- CREATE TABLE IF NOT EXISTS `media` ( `mdId` int(11) NOT NULL, `mdLocation` varchar(100) NOT NULL, PRIMARY KEY (`mdId`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Dumping data for table `media` -- INSERT INTO `media` (`mdId`, `mdLocation`) VALUES (1, 'http://www.eventfinder.co.id/images/slide2_03.gif'), (2, 'http://www.eventfinder.co.id/images/slide_01.gif'), (3, 'http://www.eventfinder.co.id/images/slide_05.gif'); -- -- Constraints for dumped tables -- -- -- Constraints for table `article` -- ALTER TABLE `article` ADD CONSTRAINT `article_ibfk_1` FOREIGN KEY (`arAuthor`) REFERENCES `admin` (`amId`) ON UPDATE CASCADE, ADD CONSTRAINT `article_ibfk_2` FOREIGN KEY (`arCategory`) REFERENCES `category` (`catId`) ON UPDATE CASCADE; -- -- Constraints for table `log` -- ALTER TABLE `log` ADD CONSTRAINT `log_ibfk_1` FOREIGN KEY (`logAdmin`) REFERENCES `admin` (`amId`) ON UPDATE CASCADE; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
AccuSudarmin/efind_api
eventfinder.sql
SQL
mit
4,142
{% extends "base.html" %} <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <title></title> </head> {% block body %} <style type="text/css"> body { background-color: rgba(26, 109, 169, 0.99); font-size: 16px; } .bubble { width: 100%; padding: .5em 1em; line-height: 1.4em; padding: 20px; background-color: rgba(249, 245, 245, 0.9); position: relative; -webkit-border-radius: 8px; -moz-border-radius: 8px; -ms-border-radius: 8px; -o-border-radius: 8px; border-radius: 8px; text-align: left; display: inline-block; } .bubble:hover > .over-bubble { opacity: 1; } .bubble-container { width: 75%; display: block; position: relative; padding-left: 20px; vertical-align: top; display: inline-block; } </style> <div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="/">SocialHub</a> </div> <div class="navbar-collapse collapse"> <form class="navbar-form navbar-right" role="form"> <a href="/logout" class="btn btn-success">Log Out</a> </form> </div> <!--/.navbar-collapse --> </div> </div> {% for d in data %} <div class="panel panel-default" style=" width: 55%; margin-left: 22%; margin-bottom: 6%; "> <div class="panel-heading clearfix"> <h3 class="panel-title pull-left">{{d.type}} #{{ d.id }} </h3> </div> <div class="panel-body"> <p><a href="https://github.com/{{d.name}}">@{{ d.name }}</a> {{ d.action }}<a href="https://github.com/{{d.target}}">{{ d.target }}</a></p> </div> <div class="panel-footer"> <small>At {{ d.date }}</small> </div> </div> {% endfor %} {% endblock %} </html>
hassaanaliw/SocialHub
templates/home.html
HTML
mit
2,656
from setuptools import setup, find_packages setup( name="Coinbox-mod-customer", version="0.2", packages=find_packages(), zip_safe=True, namespace_packages=['cbmod'], include_package_data=True, install_requires=[ 'sqlalchemy>=0.7, <1.0', 'PyDispatcher>=2.0.3, <3.0', 'ProxyTypes>=0.9, <1.0', 'Babel>=1.3, <2.0', 'PySide>=1.0,<2.0' ], author='Coinbox POS Team', author_email='coinboxpos@googlegroups.com', description='Coinbox POS customer module', license='MIT', url='http://coinboxpos.org/' )
coinbox/coinbox-mod-customer
setup.py
Python
mit
654
use std::vec::{Vec}; use geometry::{Vector3D, Ray3D}; use color::{ColorRGB}; pub use self::scene_object::{SceneObject}; pub use self::scene_light::{SceneLight}; pub use self::plane::{Plane}; pub use self::sphere::{Sphere}; pub use self::camera::{Camera}; mod scene_object; mod scene_light; mod plane; mod sphere; mod camera; const BIAS: f32 = 1.0e-4; pub struct Scene { background_color: ColorRGB, refractive_index: f32, max_ray_depth: u32, items: Vec<InternalObject>, lights: Vec<InternalLight> } impl Scene { pub fn new(background_color: &ColorRGB, refractive_index: f32, max_ray_depth: u32) -> Scene { Scene { background_color: background_color.clone(), refractive_index: refractive_index, max_ray_depth: max_ray_depth, items: Vec::new(), lights: Vec::new() } } pub fn add_light_source(&mut self, light: Box<SceneLight>) { let index = self.items.len(); self.items.push(InternalObject { index: index, object: light.clone(), is_light: true }); self.lights.push(InternalLight { index: index, light: light }); } pub fn add_object(&mut self, object: Box<SceneObject+Sync+Send>) { let index = self.items.len(); self.items.push(InternalObject { index: index, object: object, is_light: false }); } pub fn trace(&self, ray: &Ray3D, depth: u32) -> TraceResult { // Find the nearest object that the ray intersects. let mut optional_nearest: Option<(&InternalObject, f32)> = None; for current_item in &self.items { let optional_intersection = current_item.object.intersect(ray); if let Some(current_distance) = optional_intersection { match optional_nearest { Some((_, nearest_distance)) => { if current_distance < nearest_distance { optional_nearest = Some((current_item, current_distance)); } }, None => { optional_nearest = Some((current_item, current_distance)); } } } } // If the ray doesn't hit any objects, return the background color. if optional_nearest.is_none() { return TraceResult { color: self.background_color.clone(), distance: 0.0 }; } // Get the information about the nearest intersection. let (nearest_item, nearest_distance) = optional_nearest.unwrap(); // Get the point where the ray intersects the object. let point = ray.point(nearest_distance); // If the ray intersects a light source, simply return the color of the light. if nearest_item.is_light { return TraceResult { color: nearest_item.object.get_material(&point).color, distance: nearest_distance }; } // Get the surface normal and color at the intersection point. let normal = nearest_item.object.get_normal(&point); let surface_material = nearest_item.object.get_material(&point); // Calculate the color at the intersection point. let mut total_ray_color = ColorRGB::black().clone(); if depth < self.max_ray_depth { // TODO: Add Fresnel effects (?) // Calculate the color from the reflected ray. let reflection = surface_material.reflection; if reflection > 0.0 { let reflected_direction = (&ray.direction - &normal * 2.0 * Vector3D::dot(&ray.direction, &normal)).to_unit(); let nearby_point = point.translate_dist(&reflected_direction, BIAS); let reflected_result = self.trace(&Ray3D::new(&nearby_point, &reflected_direction), depth + 1); total_ray_color = &total_ray_color + &reflected_result.color * reflection * &surface_material.color; } // Calculate the color from the refracted ray. let refraction = surface_material.refraction; if refraction > 0.0 { let n; let cos_i; if Vector3D::dot(&ray.direction, &normal) > 0.0 { // Internal refraction n = surface_material.refractive_index / self.refractive_index; cos_i = -Vector3D::dot(&ray.direction, &(-&normal)); } else { // External refraction n = self.refractive_index / surface_material.refractive_index; cos_i = -Vector3D::dot(&ray.direction, &normal); } let cos2_t = 1.0 - n * n * (1.0 - cos_i * cos_i); if cos2_t > 0.0 { let refracted_direction = (&ray.direction * n + &normal * (n * cos_i - (cos2_t).sqrt())).to_unit(); let nearby_point = point.translate_dist(&refracted_direction, BIAS); let refracted_result = self.trace(&Ray3D::new(&nearby_point, &refracted_direction), depth + 1); // Beer's Law let absorbance = &surface_material.color * (0.15 * -refracted_result.distance); let transparency = ColorRGB::from_rgb(absorbance.red.exp(), absorbance.green.exp(), absorbance.blue.exp()); total_ray_color = &total_ray_color + &refracted_result.color * transparency; } } } // Calculate the color from each light in the scene. for light_item in &self.lights { let light = &light_item.light; let light_color = light.get_material(&point).color; let vector_to_light = Vector3D::between_points(&point, light.get_center()); let distance_to_light = vector_to_light.magnitude(); let direction_to_light = vector_to_light.to_unit(); // Calculate the shading from the light. let mut shade: f32 = 1.0; let nearby_point = point.translate_dist(&direction_to_light, BIAS); let shadow_ray = Ray3D::new(&nearby_point, &direction_to_light); for shadow_item in &self.items { if shadow_item.index != light_item.index { let shadow_result = shadow_item.object.intersect(&shadow_ray); if let Some(distance) = shadow_result { if distance < distance_to_light { shade = 0.0; break; } } } } if shade != 0.0 { // Calculate the diffusive lighting from the light. let diffuse = surface_material.diffuse; if diffuse > 0.0 { let percentage_of_light = Vector3D::dot(&normal, &direction_to_light); if percentage_of_light > 0.0 { total_ray_color = &total_ray_color + (&light_color * &surface_material.color) * (shade * diffuse * percentage_of_light); } } // Calculate the specular lighting from the light. let specular = surface_material.specular; let shininess = surface_material.shininess; if specular > 0.0 && shininess > 0 { let reflected_direction = (&direction_to_light - &normal * 2.0 * Vector3D::dot(&direction_to_light, &normal)).to_unit(); let percentage_of_light = Vector3D::dot(&ray.direction, &reflected_direction); if percentage_of_light > 0.0 { total_ray_color = &total_ray_color + &light_color * (shade * specular * percentage_of_light.powi(shininess as i32)); } } } } TraceResult { color: total_ray_color, distance: nearest_distance } } } struct InternalObject { pub index: usize, pub object: Box<SceneObject+Sync+Send>, pub is_light: bool } struct InternalLight { pub index: usize, pub light: Box<SceneLight> } #[derive(Debug)] pub struct TraceResult { pub color: ColorRGB, pub distance: f32 }
mikee385/RustRayTracer
src/scene/mod.rs
Rust
mit
8,545
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_file_w32_spawnv_82_bad.cpp Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-82_bad.tmpl.cpp */ /* * @description * CWE: 78 OS Command Injection * BadSource: file Read input from a file * GoodSource: Fixed string * Sinks: w32_spawnv * BadSink : execute command with spawnv * Flow Variant: 82 Data flow: data passed in a parameter to an virtual method called via a pointer * * */ #ifndef OMITBAD #include "std_testcase.h" #include "CWE78_OS_Command_Injection__char_file_w32_spawnv_82.h" #include <process.h> namespace CWE78_OS_Command_Injection__char_file_w32_spawnv_82 { void CWE78_OS_Command_Injection__char_file_w32_spawnv_82_bad::action(char * data) { { char *args[] = {COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL}; /* spawnv - specify the path where the command is located */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ _spawnv(_P_WAIT, COMMAND_INT_PATH, args); } } } #endif /* OMITBAD */
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s04/CWE78_OS_Command_Injection__char_file_w32_spawnv_82_bad.cpp
C++
mit
1,190
//= require jquery3 //= require popper //= require bootstrap //= require turbolinks //= require_tree .
mrysav/familiar
app/assets/javascripts/application.js
JavaScript
mit
102
module Quovo module Models class IframeToken < Base fields %i( user token ) def url "https://embed.quovo.com/auth/#{token}" end end end end
CanopyFA/quovo-ruby
lib/quovo/models/iframe_token.rb
Ruby
mit
200
#include "sendmessagedialog.h" #include "ui_sendmessagedialog.h" #include "clientcommandmanager.h" #include "clientcommand.h" SendMessageDialog::SendMessageDialog(QWidget *parent) : QDialog(parent), ui(new Ui::SendMessageDialog) { ui->setupUi(this); errorPopup = new ErrorPopup(); attach(errorPopup); } SendMessageDialog::~SendMessageDialog() { delete errorPopup; delete ui; } void SendMessageDialog::on_buttonBox_accepted() { QByteArray receiverByteArray = ui->friendname_lineedit->text().toUtf8(); const char* receiver = receiverByteArray.constData(); QByteArray messageByteArray = ui->message_textedit->toPlainText().toUtf8(); const char* message = messageByteArray.constData(); // call client command to send a message int retVal = ClientCommandManager::clientCommand->SendCommand(receiver, message); if (retVal == -1) { // char message[] = "SendCommand error\0"; changeMessage( "SendCommand error\0"); } if (retVal == 0) { // char message[] = "message sent!\0"; changeMessage("message sent!\0"); } } void SendMessageDialog::on_unfriend_button_clicked() { if (ui->friendname_lineedit->text().isEmpty()) { char message[] = "please enter your \"friend\"'s name first!\0"; changeMessage((std::string) message); return; } QByteArray friendNameByteArray = ui->friendname_lineedit->text().toUtf8(); const char* friendName = friendNameByteArray.constData(); // CALL CLIENTCOMMAND TO UNFRIEND int retVal = ClientCommandManager::clientCommand->UnCommand(friendName); if (retVal == -1) { char message[] = "unfriend error\0"; changeMessage((std::string) message); } if (retVal == 0) { char message[] = "unfriend success\0"; changeMessage((std::string) message); } } void SendMessageDialog::changeMessage(std::string _message) { message = _message; notify(message); } std::string SendMessageDialog::getMessage() { return message; } void SendMessageDialog::setReceiver(std::string username) { QString qstr = QString::fromStdString(username); ui->friendname_lineedit->setText(qstr); }
taragu/sharefile
sharefileclient/sendmessagedialog.cpp
C++
mit
2,196
<?php namespace Etk\Bundle\AdminBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class} */ class Configuration implements ConfigurationInterface { /** * {@inheritdoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('etk_admin'); // Here you should define the parameters that are allowed to // configure your bundle. See the documentation linked above for // more information on that topic. return $treeBuilder; } }
eibertek/etek10
src/Etk/Bundle/AdminBundle/DependencyInjection/Configuration.php
PHP
mit
909
$here = Split-Path (Split-Path -Parent $MyInvocation.MyCommand.Path) -Parent $module = 'PSRegistry' $function = 'New-RegistryKey' Describe "$function" { It "when keypath includes keytype, it should throw" { { New-RegistryKey -KeyType HKLM -KeyPath 'HKLM:\SOFTWARE' } | Should throw } It "should return an object" { $ReturnObject = New-RegistryKey -KeyType HKLM -KeyPath 'SOFTWARE\test' $ReturnObject.GetType().FullName | should be "System.Object[]" $ReturnObject.KeyType | Should not be $null $ReturnObject.KeyPath | Should not be $null } It "when passed HKLM as KeyType it should return HKLM as keytype" { $ReturnObject = New-RegistryKey -KeyType HKLM -KeyPath 'SOFTWARE\test' $ReturnObject.KeyType | Should be 'HKLM' } It "when passed HKU as KeyType it should return HKU as keytype" { $ReturnObject = New-RegistryKey -KeyType HKU -KeyPath 'SOFTWARE\test' $ReturnObject.KeyType | Should be 'HKU' } }
MSAdministrator/PSRegistry
Tests/Public/New-RegistryKey.tests.ps1
PowerShell
mit
1,082
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content="WCCG - Chennai Cyclists"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0"> <title>WCCG - Chennai Cyclists</title> <!-- Page styles --> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:regular,bold,italic,thin,light,bolditalic,black,medium&amp;lang=en"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <link rel="stylesheet" href="https://code.getmdl.io/1.1.3/material.min.css"> <link rel="stylesheet" href="site.css"> </head> <body> <div class="mdl-layout mdl-js-layout mdl-layout--fixed-header"> <div class="wccg-header mdl-layout__header mdl-layout__header--waterfall"> <div class="mdl-layout__header-row"> <span class="wccg-title mdl-layout-title"> WCCG - Chennai Cyclists </span> <!-- Add spacer, to align navigation to the right in desktop --> <div class="wccg-header-spacer mdl-layout-spacer"></div> <!-- Navigation --> <div class="wccg-navigation-container"> <nav class="wccg-navigation mdl-navigation"> <a class="mdl-navigation__link mdl-typography--text-uppercase" href="">Home</a> </nav> </div> <span class="wccg-mobile-title mdl-layout-title"> WCCG - Chennai Cyclists </span> </div> </div> <div class="wccg-drawer mdl-layout__drawer"> <span class="mdl-layout-title"> WCCG </span> <nav class="mdl-navigation"> <a class="mdl-navigation__link" href="">Home</a> </nav> </div> <div class="wccg-content mdl-layout__content"> <div class="wccg-summary"> <p>Welcome to WCCG - We are Chennai Cycling group</p> <p>Do you like to cycle? Do you reside in and around Chennai? <br /> Would you like to meet and ride with like-minded people? <br /> If your answer is YES, please read below..</p> <p>WCCG was formed on June 23rd, 2012.</p> <p>We currently have 5 Ride chapters - <br /> 1) WCCG – Anna Nagar Chapter - Rides starting from Chetpet/Anna Nagar<br /> 2) WCCG - Marina Chapter - Rides starting from Gandhi Statue in Marina beach<br /> 3) WCCG - Tambaram Chapter - Rides starting from Tambaram<br /> 4) WCCG - OMR/ECR Chapter - Rides starting from Madhya Kailash/Thiruvanmiyur depot <br /> 5) WCCG - Porur Chapter - Rides starting from Porur toll<br /> </p> <p>Join the rides chapter based on the area in which you live.</p> <p>Our aim is to ride atleast 4 times in a week with 1 day of core strengthening, 1 day of cross training and 1 day rest.</p> <p>We ride regularly with short rides in weekdays and long rides in the weekends. <br /> Our usual ride routes..<br /> Marina, Besant nagar, Puzhal lake, OMR, ORR, Chennai bypass, ECR, NH45, Exploratory rides to North Chennai, Kasimedu, Ennore etc</p> <p>NO HELMET, NO RIDE !<p> <p>You can follow <a href="https://www.facebook.com/groups/wccgisthebest">WCCG Facebook Group</a> to get regular updates. <br /> </p> <p>We have chapter specific WCCG whatsapp Rides group. <br /> If you have a cycle + helmet and want to join our regular rides, please share your number, we will add you to the whatsapp group. </p <p>Happy riding, Happy Cycling</p> </div> </div> </div> <script src="https://code.getmdl.io/1.1.3/material.min.js"></script> </body> </html>
WCCG/wccg.github.io
index.html
HTML
mit
3,615
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!-- NewPage --> <html lang="fr"> <head> <!-- Generated by javadoc (1.8.0_45) on Sun Jul 12 01:26:01 CEST 2015 --> <title>Person</title> <meta name="date" content="2015-07-12"> <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style"> <script type="text/javascript" src="../../../../script.js"></script> </head> <body> <script type="text/javascript"><!-- try { if (location.href.indexOf('is-external=true') == -1) { parent.document.title="Person"; } } catch(err) { } //--> var methods = {"i0":10,"i1":10,"i2":10,"i3":10}; var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; var altColor = "altColor"; var rowColor = "rowColor"; var tableTab = "tableTab"; var activeTableTab = "activeTableTab"; </script> <noscript> <div>JavaScript is disabled on your browser.</div> </noscript> <!-- ========= START OF TOP NAVBAR ======= --> <div class="topNav"><a name="navbar.top"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.top.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../com/sidemash/redson/converter/OptionalConverter.html" title="class in com.sidemash.redson.converter"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li><a href="../../../../com/sidemash/redson/converter/QueueConverter.html" title="class in com.sidemash.redson.converter"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/sidemash/redson/converter/Person.html" target="_top">Frames</a></li> <li><a href="Person.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_top"> <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li> <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li> <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.top"> <!-- --> </a></div> <!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== --> <div class="header"> <div class="subTitle">com.sidemash.redson.converter</div> <h2 title="Class Person" class="title">Class Person</h2> </div> <div class="contentContainer"> <ul class="inheritance"> <li>java.lang.Object</li> <li> <ul class="inheritance"> <li>com.sidemash.redson.converter.Person</li> </ul> </li> </ul> <div class="description"> <ul class="blockList"> <li class="blockList"> <hr> <br> <pre>public class <span class="typeNameLabel">Person</span> extends java.lang.Object</pre> <div class="block">Created by Serge Martial on 22/06/2015.</div> </li> </ul> </div> <div class="summary"> <ul class="blockList"> <li class="blockList"> <!-- =========== FIELD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="field.summary"> <!-- --> </a> <h3>Field Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> <caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Field and Description</th> </tr> <tr class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/sidemash/redson/converter/Person.html#age">age</a></span></code>&nbsp;</td> </tr> <tr class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/sidemash/redson/converter/Person.html#name">name</a></span></code>&nbsp;</td> </tr> </table> </li> </ul> <!-- ======== CONSTRUCTOR SUMMARY ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.summary"> <!-- --> </a> <h3>Constructor Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation"> <caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption> <tr> <th class="colOne" scope="col">Constructor and Description</th> </tr> <tr class="altColor"> <td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/sidemash/redson/converter/Person.html#Person-java.lang.String-int-">Person</a></span>(java.lang.String&nbsp;name, int&nbsp;age)</code>&nbsp;</td> </tr> </table> </li> </ul> <!-- ========== METHOD SUMMARY =========== --> <ul class="blockList"> <li class="blockList"><a name="method.summary"> <!-- --> </a> <h3>Method Summary</h3> <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption> <tr> <th class="colFirst" scope="col">Modifier and Type</th> <th class="colLast" scope="col">Method and Description</th> </tr> <tr id="i0" class="altColor"> <td class="colFirst"><code>int</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/sidemash/redson/converter/Person.html#getAAge--">getAAge</a></span>()</code>&nbsp;</td> </tr> <tr id="i1" class="rowColor"> <td class="colFirst"><code>java.lang.String</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/sidemash/redson/converter/Person.html#getDateOfBirth--">getDateOfBirth</a></span>()</code>&nbsp;</td> </tr> <tr id="i2" class="altColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/sidemash/redson/converter/Person.html#setAge-int-">setAge</a></span>(int&nbsp;age)</code>&nbsp;</td> </tr> <tr id="i3" class="rowColor"> <td class="colFirst"><code>void</code></td> <td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/sidemash/redson/converter/Person.html#setName-java.lang.String-">setName</a></span>(java.lang.String&nbsp;name)</code>&nbsp;</td> </tr> </table> <ul class="blockList"> <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> <!-- --> </a> <h3>Methods inherited from class&nbsp;java.lang.Object</h3> <code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li> </ul> </li> </ul> </li> </ul> </div> <div class="details"> <ul class="blockList"> <li class="blockList"> <!-- ============ FIELD DETAIL =========== --> <ul class="blockList"> <li class="blockList"><a name="field.detail"> <!-- --> </a> <h3>Field Detail</h3> <a name="name"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>name</h4> <pre>public&nbsp;java.lang.String name</pre> </li> </ul> <a name="age"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>age</h4> <pre>public&nbsp;int age</pre> </li> </ul> </li> </ul> <!-- ========= CONSTRUCTOR DETAIL ======== --> <ul class="blockList"> <li class="blockList"><a name="constructor.detail"> <!-- --> </a> <h3>Constructor Detail</h3> <a name="Person-java.lang.String-int-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>Person</h4> <pre>public&nbsp;Person(java.lang.String&nbsp;name, int&nbsp;age)</pre> </li> </ul> </li> </ul> <!-- ============ METHOD DETAIL ========== --> <ul class="blockList"> <li class="blockList"><a name="method.detail"> <!-- --> </a> <h3>Method Detail</h3> <a name="getAAge--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getAAge</h4> <pre>public&nbsp;int&nbsp;getAAge()</pre> </li> </ul> <a name="getDateOfBirth--"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>getDateOfBirth</h4> <pre>public&nbsp;java.lang.String&nbsp;getDateOfBirth()</pre> </li> </ul> <a name="setAge-int-"> <!-- --> </a> <ul class="blockList"> <li class="blockList"> <h4>setAge</h4> <pre>public&nbsp;void&nbsp;setAge(int&nbsp;age)</pre> </li> </ul> <a name="setName-java.lang.String-"> <!-- --> </a> <ul class="blockListLast"> <li class="blockList"> <h4>setName</h4> <pre>public&nbsp;void&nbsp;setName(java.lang.String&nbsp;name)</pre> </li> </ul> </li> </ul> </li> </ul> </div> </div> <!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <div class="bottomNav"><a name="navbar.bottom"> <!-- --> </a> <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> <a name="navbar.bottom.firstrow"> <!-- --> </a> <ul class="navList" title="Navigation"> <li><a href="../../../../overview-summary.html">Overview</a></li> <li><a href="package-summary.html">Package</a></li> <li class="navBarCell1Rev">Class</li> <li><a href="package-tree.html">Tree</a></li> <li><a href="../../../../deprecated-list.html">Deprecated</a></li> <li><a href="../../../../index-files/index-1.html">Index</a></li> <li><a href="../../../../help-doc.html">Help</a></li> </ul> </div> <div class="subNav"> <ul class="navList"> <li><a href="../../../../com/sidemash/redson/converter/OptionalConverter.html" title="class in com.sidemash.redson.converter"><span class="typeNameLink">Prev&nbsp;Class</span></a></li> <li><a href="../../../../com/sidemash/redson/converter/QueueConverter.html" title="class in com.sidemash.redson.converter"><span class="typeNameLink">Next&nbsp;Class</span></a></li> </ul> <ul class="navList"> <li><a href="../../../../index.html?com/sidemash/redson/converter/Person.html" target="_top">Frames</a></li> <li><a href="Person.html" target="_top">No&nbsp;Frames</a></li> </ul> <ul class="navList" id="allclasses_navbar_bottom"> <li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li> </ul> <div> <script type="text/javascript"><!-- allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //--> </script> </div> <div> <ul class="subNavList"> <li>Summary:&nbsp;</li> <li>Nested&nbsp;|&nbsp;</li> <li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li> <li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.summary">Method</a></li> </ul> <ul class="subNavList"> <li>Detail:&nbsp;</li> <li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li> <li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li> <li><a href="#method.detail">Method</a></li> </ul> </div> <a name="skip.navbar.bottom"> <!-- --> </a></div> <!-- ======== END OF BOTTOM NAVBAR ======= --> </body> </html>
sidemash/redson
doc/com/sidemash/redson/converter/Person.html
HTML
mit
12,127
<!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>Morning UI</title> <meta name="description" content="Morning UI是一套现代、高效、友善的桌面组件库"> <meta name="keywords" content="vue morning component ui-kit vue-components fontend javascript"> <meta property="og:type" content="article"> <meta property="og:title" content="Morning UI"> <meta property="og:description" content="Morning UI - 现代、高效、友善的桌面组件库"> <meta property="og:image" content="http://morning-ui-image.test.upcdn.net/logo.png"> <link rel="icon" href="http://morning-ui-image.test.upcdn.net/logo.png" type="image/png"> <link rel="icon" href="/favicon.ico" type="image/x-icon"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/normalize.css@7.0.0/normalize.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css"> <link rel="stylesheet" href="/doc-common.css"> <link rel="stylesheet" href="/dist/morning-ui.css"> </head> <body> <div id="root"></div> <script src="https://cdn.jsdelivr.net/npm/highlight.js@9.12.0/lib/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/vue@2.5.22"></script> <script src="https://cdn.jsdelivr.net/npm/zepto@1.2.0/dist/zepto.min.js"></script> <script src="/doc-common.js"></script> <script src="/dist/morning-ui.js"></script> <script> Vue.use(morning, { uploader : (file) => { let formData = new FormData(); formData.append('file', file.file); formData.append('filename', file.name); return new Promise((resolve, reject) => { $.ajax({ type : 'POST', url : '/api/uploadfile', data : formData, processData : false, contentType : false, dataType : 'json', success : resp => { setTimeout(() => { if (resp.status) { resolve({ status : true, path : resp.path }); } else { resolve({ status : false, message : resp.message }); } }, 200); }, error : resp => { reject('upload fail.'); } }) }); } }); </script> <script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script> <!-- Global site tag (gtag.js) - Google Analytics --> <script async src="https://www.googletagmanager.com/gtag/js?id=UA-109263172-1"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-109263172-1'); </script> <script type="text/javascript" src="/component/drawer.js"></script></body> </html>
Morning-UI/morning-ui
docs/component/drawer.html
HTML
mit
3,098
<?php namespace spec\GrumPHP\Runner; use GrumPHP\Runner\TaskResult; use GrumPHP\Task\Context\ContextInterface; use GrumPHP\Task\TaskInterface; use PhpSpec\ObjectBehavior; class TaskResultSpec extends ObjectBehavior { const FAILED_TASK_MESSAGE = 'failed task message'; function it_creates_passed_task(TaskInterface $task, ContextInterface $context) { $this->beConstructedThrough('createPassed', array($task, $context)); $this->getTask()->shouldBe($task); $this->getResultCode()->shouldBe(TaskResult::PASSED); $this->isPassed()->shouldBe(true); $this->getMessage()->shouldBeNull(); } function it_creates_failed_task(TaskInterface $task, ContextInterface $context) { $this->beConstructedThrough('createFailed', array($task, $context, self::FAILED_TASK_MESSAGE)); $this->getTask()->shouldBe($task); $this->getResultCode()->shouldBe(TaskResult::FAILED); $this->isPassed()->shouldBe(false); $this->getMessage()->shouldBe(self::FAILED_TASK_MESSAGE); } function it_creates_skipped_task(TaskInterface $task, ContextInterface $context) { $this->beConstructedThrough('createSkipped', array($task, $context)); $this->getTask()->shouldBe($task); $this->getResultCode()->shouldBe(TaskResult::SKIPPED); $this->isPassed()->shouldBe(false); } function it_should_be_a_blocking_task_if_it_is_a_failed_task(TaskInterface $task, ContextInterface $context) { $this->beConstructedThrough('createFailed', array($task, $context, self::FAILED_TASK_MESSAGE)); $this->isBlocking()->shouldBe(true); } function it_should_not_be_a_blocking_task_if_it_is_a_passed_task(TaskInterface $task, ContextInterface $context) { $this->beConstructedThrough('createPassed', array($task, $context, self::FAILED_TASK_MESSAGE)); $this->isBlocking()->shouldBe(false); } function it_should_not_be_a_blocking_task_if_it_is_a_non_blocking_failed_task(TaskInterface $task, ContextInterface $context) { $this->beConstructedThrough('createNonBlockingFailed', array($task, $context, self::FAILED_TASK_MESSAGE)); $this->isBlocking()->shouldBe(false); } }
mikechernev/grumphp
spec/GrumPHP/Runner/TaskResultSpec.php
PHP
mit
2,248
#!/usr/bin/env node const fs = require('mz/fs'), path = require('path'), Promise = require('bluebird'), mongoose = require('mongoose'), uuid = require('uuid4') const config = require('../config/api_options.json') const MongoUtil = require('../dist/server/lib/mongo-util').default const Order = require('../dist/server/models/order').default const Ticket = require('../dist/server/models/ticket').default mongoose.Promise = Promise mongoose.connect(config.mongodb.dburl, { useMongoClient: true }) mongoose.model('Order', Order) mongoose.model('Ticket', Ticket) fs.readFile(path.join(__dirname, '..', 'booth.csv')).then(async data => { const entries = data.toString().split('\n').map(line => { const parts = line.split(',') return { firstname: parts[0], lastname: parts[1], email: parts[2] } }) for (let entry of entries) { const orderobj = { uuid: uuid(), email: entry.email.trim(), firstname: entry.firstname || ' ', lastname: entry.lastname || ' ', ticket_category: 'booth' } const order = await MongoUtil.model('Order').create(orderobj) const ticket = await MongoUtil.model('Ticket').create({ uuid: uuid(), firstname: entry.firstname || ' ', lastname: entry.lastname || ' ', category: 'booth', type: 'festival', order_uuid: order.uuid, issued: new Date(), price: { amount: 0.0, currency: 'eur' } }) const od = await MongoUtil.model('Order').findOne({ uuid: order.uuid }).populate('tickets') await od.authorizeTicket() console.log(order.uuid, ticket.uuid) } }).then(() => { process.exit(0) }).catch(err => { throw err })
dasantonym/nano-ticketron-xl
bin/import-booth.js
JavaScript
mit
1,688
<h2>Cross-platform Single Page Applications using ASP.NET Core, Angular 2 and Typescript</h2> <a href="http://wp.me/p3mRWu-11L" rel="attachment wp-att-3961" target="_blank"><img src="https://chsakell.files.wordpress.com/2015/12/aspnet5-agnular2-03.png?w=700&amp;h=355" alt="aspnet5-agnular2-03" width="700" height="355" class="alignnone size-full wp-image-3961"></a> <h3>Frameworks - Tools - Libraries</h3> <ul> <li>ASP.NET Core</li> <li>ASP.NET MVC 6</li> <li>Entity Framework 7</li> <li>Automapper</li> <li>Angular 2</li> <li>Typescript</li> <li>Bootstrap 3</li> <li>Gulp</li> <li>Bower</li> </ul> <h3>Installation instructions - Part 1 (Applied for Windows/Linux/MAC)</h3> <ol> <li>Install ASP.NET Core according to your development environment from <a href="http://docs.asp.net/en/latest/getting-started/index.html" target="_blank">here</a>.</li> <li>Install <strong>NPM</strong> by installing <a href="https://nodejs.org/en/" target="_blank">Node.js</a>.</li> <li>Install Bower, Gulp, Typescript and Typescript Definition Manager globally by typing the following commands on the console/terminal: <ul> <li>npm install -g bower</li> <li>npm install -g gulp</li> <li>npm install -g typescript</li> <li>npm install -g tsd</li> </ul> </li> <h3>Installation instructions - Part 2 (Run application in Visual Studio 2015, only for Windows users)</h3> <ol> <li>Download and install Visual Studio 2015 from <a href="https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx" target="_blank">here</a>.</li> <li>Open Visual Studio 2015 and install any update related to ASP.NET Core (check the notifications).</li> <li>Download the source code and open the solution.</li> <li>By the time you open the solution, VS 2015 will try to restore Nuget, NPM and Bower packages.</li> <li>In case it fails to restore NPM and Bower packages, open a console and navigate at the src/PhotoGallery path where the <i>package.json</i> and <i>bower.json</i> files exist. Run the following commands: <ul> <li>npm install</li> <li>bower install</li> <li>gulp build-spa</li> </ul> </li> <li>Open <strong>appsettings.json</strong> file and alter the database connection string to reflect your SQL Server environment.</li> <li>Open a console and navigate to src/PhotoGallery where the project.json exists. Run the following commands to enable migrations and create the database: <ol> <li>dnx ef migrations add initial</li> <li>dnx ef database update</li> </ol> </li> <li>Build your application and run it. You can use <i>username:</i> <strong>chsakell</strong> and <i>password:</i> <strong>photogallery</strong> to sign in or register a new user.</li> </ol> <h3>Installation instructions - Part 2 (Run application in Visual Studio Code, recommended for Linux/MAC users)</h3> <ol> <li>Download and install Visual Studio Code from <a href="https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx" target="_blank">here</a>.</li> <li>Download the source code and open the src/PhotoGallery folder in Visual Studio Code.</li> <li>Open a console/terminal and navigate at the src/PhotoGallery path where the <i>package.json</i> and <i>bower.json</i> files exist. Run the following commands: <ul> <li>npm install</li> <li>bower install</li> <li>gulp build-spa</li> </ul> </li> <li>Run the following command to restore Nuget Packages: <ul> <li>dnu restore</li> </ul> </li> <li>Application uses SQL Server so in case you want to change this, you need to alter the corresponding parts (more info <a href="https://github.com/chsakell/aspnet5-angular2-typescript/issues/3" target="_blank">here</a>).</li> <li>Open <strong>appsettings.json</strong> file and alter the database connection string to reflect your SQL Server environment.</li> <li>Open a console/terminal and navigate to src/PhotoGallery where the project.json exists. Run the following commands to enable migrations and create the database: <ol> <li>dnx ef migrations add initial</li> <li>dnx ef database update</li> </ol> </li> <li>Host your application using <strong>Kestrel</strong> by typing the following command while at src/PhotoGallery: <ul> <li>dnx web</li> </ul> </li> <li>Open a browser and navigate to http://localhost:5000/</li> <li>You can use <i>username:</i> <strong>chsakell</strong> and <i>password:</i> <strong>photogallery</strong> to sign in or register a new user.</li> </ol> <h3 style="font-weight:normal;">Follow chsakell's Blog</h3> <table id="gradient-style" style="box-shadow:3px -2px 10px #1F394C;font-size:12px;margin:15px;width:290px;text-align:left;border-collapse:collapse;" summary=""> <thead> <tr> <th style="width:130px;font-size:13px;font-weight:bold;padding:8px;background:#1F1F1F repeat-x;border-top:2px solid #d3ddff;border-bottom:1px solid #fff;color:#E0E0E0;" align="center" scope="col">Facebook</th> <th style="font-size:13px;font-weight:bold;padding:8px;background:#1F1F1F repeat-x;border-top:2px solid #d3ddff;border-bottom:1px solid #fff;color:#E0E0E0;" align="center" scope="col">Twitter</th> </tr> </thead> <tfoot> <tr> <td colspan="4" style="text-align:center;">Microsoft Web Application Development</td> </tr> </tfoot> <tbody> <tr> <td style="padding:8px;border-bottom:1px solid #fff;color:#FFA500;border-top:1px solid #fff;background:#1F394C repeat-x;"> <a href="https://www.facebook.com/chsakells.blog" target="_blank"><img src="https://chsakell.files.wordpress.com/2015/08/facebook.png?w=120&amp;h=120&amp;crop=1" alt="facebook" width="120" height="120" class="alignnone size-opti-archive wp-image-3578"></a> </td> <td style="padding:8px;border-bottom:1px solid #fff;color:#FFA500;border-top:1px solid #fff;background:#1F394C repeat-x;"> <a href="https://twitter.com/chsakellsBlog" target="_blank"><img src="https://chsakell.files.wordpress.com/2015/08/twitter-small.png?w=120&amp;h=120&amp;crop=1" alt="twitter-small" width="120" height="120" class="alignnone size-opti-archive wp-image-3583"></a> </td> </tr> </tbody> </table>
jensoleg/aspnet5-angular2-typescript
README.md
Markdown
mit
5,945
package admin import ( "encoding/json" "errors" "fmt" ) const ( // ErrUserExists - Attempt to create existing user ErrUserExists errorReason = "UserAlreadyExists" // ErrNoSuchUser - Attempt to create existing user ErrNoSuchUser errorReason = "NoSuchUser" // ErrInvalidAccessKey - Invalid access key specified ErrInvalidAccessKey errorReason = "InvalidAccessKey" // ErrInvalidSecretKey - Invalid secret key specified ErrInvalidSecretKey errorReason = "InvalidSecretKey" // ErrInvalidKeyType - Invalid key type specified ErrInvalidKeyType errorReason = "InvalidKeyType" // ErrKeyExists - Provided access key exists and belongs to another user ErrKeyExists errorReason = "KeyExists" // ErrEmailExists - Provided email address exists ErrEmailExists errorReason = "EmailExists" // ErrInvalidCapability - Attempt to remove an invalid admin capability ErrInvalidCapability errorReason = "InvalidCapability" // ErrSubuserExists - Specified subuser exists ErrSubuserExists errorReason = "SubuserExists" // ErrInvalidAccess - Invalid subuser access specified ErrInvalidAccess errorReason = "InvalidAccess" // ErrIndexRepairFailed - Bucket index repair failed ErrIndexRepairFailed errorReason = "IndexRepairFailed" // ErrBucketNotEmpty - Attempted to delete non-empty bucket ErrBucketNotEmpty errorReason = "BucketNotEmpty" // ErrObjectRemovalFailed - Unable to remove objects ErrObjectRemovalFailed errorReason = "ObjectRemovalFailed" // ErrBucketUnlinkFailed - Unable to unlink bucket from specified user ErrBucketUnlinkFailed errorReason = "BucketUnlinkFailed" // ErrBucketLinkFailed - Unable to link bucket to specified user ErrBucketLinkFailed errorReason = "BucketLinkFailed" // ErrNoSuchObject - Specified object does not exist ErrNoSuchObject errorReason = "NoSuchObject" // ErrIncompleteBody - Either bucket was not specified for a bucket policy request or bucket and object were not specified for an object policy request. ErrIncompleteBody errorReason = "IncompleteBody" // ErrNoSuchCap - User does not possess specified capability ErrNoSuchCap errorReason = "NoSuchCap" // ErrInternalError - Internal server error. ErrInternalError errorReason = "InternalError" // ErrAccessDenied - Access denied. ErrAccessDenied errorReason = "AccessDenied" // ErrNoSuchBucket - Bucket does not exist. ErrNoSuchBucket errorReason = "NoSuchBucket" // ErrNoSuchKey - No such access key. ErrNoSuchKey errorReason = "NoSuchKey" // ErrInvalidArgument - Invalid argument. ErrInvalidArgument errorReason = "InvalidArgument" // ErrUnknown - reports an unknown error ErrUnknown errorReason = "Unknown" // ErrSignatureDoesNotMatch - the query to the API has invalid parameters ErrSignatureDoesNotMatch errorReason = "SignatureDoesNotMatch" unmarshalError = "failed to unmarshal radosgw http response" ) var ( errMissingUserID = errors.New("missing user ID") errMissingUserAccessKey = errors.New("missing user access key") errMissingUserDisplayName = errors.New("missing user display name") errMissingUserCap = errors.New("missing user capabilities") ) // errorReason is the reason of the error type errorReason string // statusError is the API response when an error occurs type statusError struct { Code string `json:"Code,omitempty"` RequestID string `json:"RequestId,omitempty"` HostID string `json:"HostId,omitempty"` } func handleStatusError(decodedResponse []byte) error { statusError := statusError{} err := json.Unmarshal(decodedResponse, &statusError) if err != nil { return fmt.Errorf("%s. %s. %w", unmarshalError, string(decodedResponse), err) } return statusError } func (e errorReason) Error() string { return string(e) } // Is determines whether the error is known to be reported func (e statusError) Is(target error) bool { return target == errorReason(e.Code) } // Error returns non-empty string if there was an error. func (e statusError) Error() string { return fmt.Sprintf("%s %s %s", e.Code, e.RequestID, e.HostID) }
ceph/go-ceph
rgw/admin/errors.go
GO
mit
4,043
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Sylius\Behat\Context\Ui\Admin; use Behat\Behat\Context\Context; use Sylius\Behat\Element\Admin\TopBarElementInterface; use Sylius\Behat\NotificationType; use Sylius\Behat\Page\Admin\Administrator\CreatePageInterface; use Sylius\Behat\Page\Admin\Administrator\UpdatePageInterface; use Sylius\Behat\Page\Admin\Crud\IndexPageInterface; use Sylius\Behat\Service\NotificationCheckerInterface; use Sylius\Behat\Service\SharedStorageInterface; use Sylius\Component\Core\Model\AdminUserInterface; use Sylius\Component\Resource\Repository\RepositoryInterface; use Webmozart\Assert\Assert; final class ManagingAdministratorsContext implements Context { /** @var CreatePageInterface */ private $createPage; /** @var IndexPageInterface */ private $indexPage; /** @var UpdatePageInterface */ private $updatePage; /** @var TopBarElementInterface */ private $topBarElement; /** @var NotificationCheckerInterface */ private $notificationChecker; /** @var RepositoryInterface */ private $adminUserRepository; /** @var SharedStorageInterface */ private $sharedStorage; public function __construct( CreatePageInterface $createPage, IndexPageInterface $indexPage, UpdatePageInterface $updatePage, TopBarElementInterface $topBarElement, NotificationCheckerInterface $notificationChecker, RepositoryInterface $adminUserRepository, SharedStorageInterface $sharedStorage ) { $this->createPage = $createPage; $this->indexPage = $indexPage; $this->updatePage = $updatePage; $this->topBarElement = $topBarElement; $this->notificationChecker = $notificationChecker; $this->adminUserRepository = $adminUserRepository; $this->sharedStorage = $sharedStorage; } /** * @Given I want to create a new administrator */ public function iWantToCreateANewAdministrator() { $this->createPage->open(); } /** * @Given /^I am editing (my) details$/ * @When /^I want to edit (this administrator)$/ */ public function iWantToEditThisAdministrator(AdminUserInterface $adminUser) { $this->updatePage->open(['id' => $adminUser->getId()]); } /** * @When I browse administrators * @When I want to browse administrators */ public function iWantToBrowseAdministrators() { $this->indexPage->open(); } /** * @When I specify its name as :username * @When I do not specify its name */ public function iSpecifyItsNameAs($username = null) { $this->createPage->specifyUsername($username ?? ''); } /** * @When I change its name to :username */ public function iChangeItsNameTo($username) { $this->updatePage->changeUsername($username); } /** * @When I specify its email as :email * @When I do not specify its email */ public function iSpecifyItsEmailAs($email = null) { $this->createPage->specifyEmail($email ?? ''); } /** * @When I change its email to :email */ public function iChangeItsEmailTo($email) { $this->updatePage->changeEmail($email); } /** * @When I specify its locale as :localeCode */ public function iSpecifyItsLocaleAs($localeCode) { $this->createPage->specifyLocale($localeCode); } /** * @When I set my locale to :localeCode */ public function iSetMyLocaleTo($localeCode) { $this->updatePage->changeLocale($localeCode); $this->updatePage->saveChanges(); } /** * @When I specify its password as :password * @When I do not specify its password */ public function iSpecifyItsPasswordAs($password = null) { $this->createPage->specifyPassword($password ?? ''); } /** * @When I change its password to :password */ public function iChangeItsPasswordTo($password) { $this->updatePage->changePassword($password); } /** * @When I enable it */ public function iEnableIt() { $this->createPage->enable(); } /** * @When I add it * @When I try to add it */ public function iAddIt() { $this->createPage->create(); } /** * @When I save my changes */ public function iSaveMyChanges() { $this->updatePage->saveChanges(); } /** * @When I delete administrator with email :email */ public function iDeleteAdministratorWithEmail($email) { $this->indexPage->deleteResourceOnPage(['email' => $email]); } /** * @When I check (also) the :email administrator */ public function iCheckTheAdministrator(string $email): void { $this->indexPage->checkResourceOnPage(['email' => $email]); } /** * @When I delete them */ public function iDeleteThem(): void { $this->indexPage->bulkDelete(); } /** * @When /^I (?:|upload|update) the "([^"]+)" image as (my) avatar$/ */ public function iUploadTheImageAsMyAvatar(string $avatar, AdminUserInterface $administrator): void { $path = $this->updateAvatar($avatar, $administrator); $this->sharedStorage->set($avatar, $path); } /** * @Then the administrator :email should appear in the store * @Then I should see the administrator :email in the list * @Then there should still be only one administrator with an email :email */ public function theAdministratorShouldAppearInTheStore($email) { $this->indexPage->open(); Assert::true($this->indexPage->isSingleResourceOnPage(['email' => $email])); } /** * @Then this administrator with name :username should appear in the store * @Then there should still be only one administrator with name :username */ public function thisAdministratorWithNameShouldAppearInTheStore($username) { $this->indexPage->open(); Assert::true($this->indexPage->isSingleResourceOnPage(['username' => $username])); } /** * @Then I should see a single administrator in the list * @Then /^there should be (\d+) administrators in the list$/ */ public function iShouldSeeAdministratorsInTheList(int $number = 1): void { Assert::same($this->indexPage->countItems(), (int) $number); } /** * @Then I should be notified that email must be unique */ public function iShouldBeNotifiedThatEmailMustBeUnique() { Assert::same($this->createPage->getValidationMessage('email'), 'This email is already used.'); } /** * @Then I should be notified that name must be unique */ public function iShouldBeNotifiedThatNameMustBeUnique() { Assert::same($this->createPage->getValidationMessage('name'), 'This username is already used.'); } /** * @Then I should be notified that the :elementName is required */ public function iShouldBeNotifiedThatFirstNameIsRequired($elementName) { Assert::same($this->createPage->getValidationMessage($elementName), sprintf('Please enter your %s.', $elementName)); } /** * @Then I should be notified that this email is not valid */ public function iShouldBeNotifiedThatEmailIsNotValid() { Assert::same($this->createPage->getValidationMessage('email'), 'This email is invalid.'); } /** * @Then this administrator should not be added */ public function thisAdministratorShouldNotBeAdded() { $this->indexPage->open(); Assert::same($this->indexPage->countItems(), 1); } /** * @Then there should not be :email administrator anymore */ public function thereShouldBeNoAnymore($email) { Assert::false($this->indexPage->isSingleResourceOnPage(['email' => $email])); } /** * @Then I should be notified that it cannot be deleted */ public function iShouldBeNotifiedThatItCannotBeDeleted() { $this->notificationChecker->checkNotification( 'Cannot remove currently logged in user.', NotificationType::failure() ); } /** * @Then /^I should see the "([^"]*)" image as (my) avatar$/ */ public function iShouldSeeTheImageAsMyAvatar(string $avatar, AdminUserInterface $administrator): void { /** @var AdminUserInterface $administrator */ $administrator = $this->adminUserRepository->findOneBy(['id' => $administrator->getId()]); $this->updatePage->open(['id' => $administrator->getId()]); Assert::same($this->sharedStorage->get($avatar), $administrator->getAvatar()->getPath()); } /** * @Then /^I should see the "([^"]*)" avatar image in the top bar next to my name$/ */ public function iShouldSeeTheAvatarImageInTheTopBarNextToMyName(string $avatar): void { Assert::true($this->topBarElement->hasAvatarInMainBar($avatar)); } private function getAdministrator(AdminUserInterface $administrator): AdminUserInterface { /** @var AdminUserInterface $administrator */ $administrator = $this->adminUserRepository->findOneBy(['id' => $administrator->getId()]); return $administrator; } private function getPath(AdminUserInterface $administrator): string { $administrator = $this->getAdministrator($administrator); $avatar = $administrator->getAvatar(); if (null === $avatar) { return ''; } return $avatar->getPath() ?? ''; } private function updateAvatar(string $avatar, AdminUserInterface $administrator): string { $this->updatePage->attachAvatar($avatar); $this->updatePage->saveChanges(); return $this->getPath($administrator); } }
Brille24/Sylius
src/Sylius/Behat/Context/Ui/Admin/ManagingAdministratorsContext.php
PHP
mit
10,196
<?php /* @var $this RateToEurController */ /* @var $model CurrencyRateToEur */ ?> <div class="col-sm-3"> <?php $this->renderPartial('_menu', array('model' => $model, 'action' => 'view')); ?> </div> <div class="col-sm-9"> <br> <h3 class="text-center"><?php echo Yii::t('CurrencyModule.view', 'Rate Data'); ?></h3> <br> <?php $this->widget('TbDetailView', array( 'data' => $model, 'attributes' => array( 'currency_from', 'checked', 'value', ), )); ?> </div>
Anastaszor/yii1-currency
views/admin/rateToEur/view.php
PHP
mit
474
<!DOCTYPE html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="format-detection" content="telephone=no"> <title>F3F Live Results</title> <link rel="stylesheet" href="css/f3f.css" /> <script type="text/javascript" src="js/jquery-2.1.1.min.js"></script> <script type="text/javascript" src="js/iscroll.js"></script> <script type="text/javascript" src="js/f3f.js"></script> <script type="text/javascript" src="js/pending.js"></script> <script type="text/javascript" src="js/home.js"></script> <script type="text/javascript" src="js/roundinprogress.js"></script> <script type="text/javascript" src="js/completedrounds.js"></script> <script type="text/javascript" src="js/leaderboard.js"></script> </head> <body> <div id="top"> <h1>Live Results</h1> <div id="race-name"> <a class="back">&lt;</a> <h2>&nbsp;</h2> </div> </div> <div id="window"> <div id="view-stack"> </div> </div> <div id="warn"> <p>Please turn you device into landscape orientation</p> </div> </body> </html>
gale9010/f3f-timer
f3Ftimer/src/main/assets/public_html/index.html
HTML
mit
1,223
<?xml version="1.0" ?><!DOCTYPE TS><TS language="tr" version="2.1"> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="+14"/> <source>About virtauniquecoin</source> <translation>virtauniquecoin Hakkında</translation> </message> <message> <location line="+39"/> <source>&lt;b&gt;virtauniquecoin&lt;/b&gt; version</source> <translation>&lt;b&gt;virtauniquecoin&lt;/b&gt; versiyonu</translation> </message> <message> <location line="+41"/> <source>Copyright © 2009-2014 The Bitcoin developers Copyright © 2014 virtauniquecoin team Copyright © 2014 The virtauniquecoin developers</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source> This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source> <translation> Bu, deneysel bir yazılımdır. MIT/X11 yazılım lisansı kapsamında yayınlanmıştır, beraberindeki COPYING dosyasına ya da http://www.opensource.org/licenses/mit-license.php sayfasına bakınız. Bu ürün, OpenSSL Araç Takımı&apos;nda (http://www.openssl.org/) kullanılmak üzere OpenSSL projesi tarafından geliştirilen yazılımı, Eric Young (eay@cryptsoft.com) tarafından hazırlanmış kriptografik yazılımı ve Thomas Bernard tarafından yazılmış UPnP yazılımı içerir.</translation> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="+14"/> <source>Address Book</source> <translation>Adres Defteri</translation> </message> <message> <location line="+22"/> <source>Double-click to edit address or label</source> <translation>Adresi ya da etiketi düzenlemek için çift tıklayınız</translation> </message> <message> <location line="+27"/> <source>Create a new address</source> <translation>Yeni bir adres oluştur</translation> </message> <message> <location line="+14"/> <source>Copy the currently selected address to the system clipboard</source> <translation>Seçili adresi sistem panosuna kopyala</translation> </message> <message> <location line="-11"/> <source>&amp;New Address</source> <translation>&amp;Yeni Adres</translation> </message> <message> <location line="-46"/> <source>These are your virtauniquecoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation>Bunlar, ödeme almak için virtauniquecoin adreslerinizdir. Her bir göndericiye farklı birini verebilir, böylece size kimin ödeme yaptığını takip edebilirsiniz.</translation> </message> <message> <location line="+60"/> <source>&amp;Copy Address</source> <translation>Adresi &amp;Kopyala</translation> </message> <message> <location line="+11"/> <source>Show &amp;QR Code</source> <translation>&amp;QR Kodunu Göster</translation> </message> <message> <location line="+11"/> <source>Sign a message to prove you own a virtauniquecoin address</source> <translation>Bir virtauniquecoin adresine sahip olduğunu ispatlamak için bir mesaj imzala</translation> </message> <message> <location line="+3"/> <source>Sign &amp;Message</source> <translation>&amp;Mesaj İmzala</translation> </message> <message> <location line="+25"/> <source>Delete the currently selected address from the list</source> <translation>Seçili adresi listeden sil</translation> </message> <message> <location line="-14"/> <source>Verify a message to ensure it was signed with a specified virtauniquecoin address</source> <translation>Mesajın, belirli bir virtauniquecoin adresiyle imzalandığından emin olmak için onu doğrula</translation> </message> <message> <location line="+3"/> <source>&amp;Verify Message</source> <translation>Mesajı &amp;Doğrula</translation> </message> <message> <location line="+14"/> <source>&amp;Delete</source> <translation>&amp;Sil</translation> </message> <message> <location filename="../addressbookpage.cpp" line="+65"/> <source>Copy &amp;Label</source> <translation>&amp;Etiketi Kopyala</translation> </message> <message> <location line="+2"/> <source>&amp;Edit</source> <translation>&amp;Düzenle</translation> </message> <message> <location line="+250"/> <source>Export Address Book Data</source> <translation>Adres Defteri Verisini Dışarı Aktar</translation> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Virgülle ayrılmış değerler dosyası (*.csv)</translation> </message> <message> <location line="+13"/> <source>Error exporting</source> <translation>Dışarı aktarım hatası</translation> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation>%1 dosyasına yazılamadı.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="+144"/> <source>Label</source> <translation>Etiket</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Adres</translation> </message> <message> <location line="+36"/> <source>(no label)</source> <translation>(boş etiket)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="+26"/> <source>Passphrase Dialog</source> <translation>Parola Diyaloğu</translation> </message> <message> <location line="+21"/> <source>Enter passphrase</source> <translation>Parolayı giriniz</translation> </message> <message> <location line="+14"/> <source>New passphrase</source> <translation>Yeni parola</translation> </message> <message> <location line="+14"/> <source>Repeat new passphrase</source> <translation>Yeni parolayı tekrarlayınız</translation> </message> <message> <location line="+33"/> <source>Serves to disable the trivial sendmoney when OS account compromised. Provides no real security.</source> <translation>OS hesabı tehlike girdiğinde önemsiz para gönderme özelliğini devre dışı bırakmayı sağlar. Gerçek anlamda bir güvenlik sağlamaz.</translation> </message> <message> <location line="+3"/> <source>For staking only</source> <translation>Sadece pay almak için</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="+35"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Cüzdanınız için yeni parolayı giriniz.&lt;br/&gt;Lütfen &lt;b&gt;10 ya da daha fazla rastgele karakter&lt;/b&gt; veya &lt;b&gt;sekiz ya da daha fazla kelime&lt;/b&gt; içeren bir parola seçiniz.</translation> </message> <message> <location line="+1"/> <source>Encrypt wallet</source> <translation>Cüzdanı şifrele</translation> </message> <message> <location line="+7"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>Bu işlem cüzdan kilidini açmak için cüzdan parolanızı gerektirir.</translation> </message> <message> <location line="+5"/> <source>Unlock wallet</source> <translation>Cüzdan kilidini aç</translation> </message> <message> <location line="+3"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>Bu işlem, cüzdan şifresini açmak için cüzdan parolasını gerektirir.</translation> </message> <message> <location line="+5"/> <source>Decrypt wallet</source> <translation>Cüzdan şifresini aç</translation> </message> <message> <location line="+3"/> <source>Change passphrase</source> <translation>Parolayı değiştir</translation> </message> <message> <location line="+1"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Cüzdan için eski ve yeni parolaları giriniz.</translation> </message> <message> <location line="+46"/> <source>Confirm wallet encryption</source> <translation>Cüzdan şifrelenmesini teyit eder</translation> </message> <message> <location line="+1"/> <source>Warning: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR COINS&lt;/b&gt;!</source> <translation>Uyarı: Eğer cüzdanınızı şifreleyip parolanızı kaybederseniz, &lt;b&gt; TÜM COINLERİNİZİ KAYBEDECEKSİNİZ&lt;/b&gt;!</translation> </message> <message> <location line="+0"/> <source>Are you sure you wish to encrypt your wallet?</source> <translation>Cüzdanınızı şifrelemek istediğinizden emin misiniz?</translation> </message> <message> <location line="+15"/> <source>IMPORTANT: Any previous backups you have made of your wallet file should be replaced with the newly generated, encrypted wallet file. For security reasons, previous backups of the unencrypted wallet file will become useless as soon as you start using the new, encrypted wallet.</source> <translation>ÖNEMLİ: Önceden yapmış olduğunuz cüzdan dosyası yedeklemelerinin yeni oluşturulan, şifrelenmiş cüzdan dosyası ile değiştirilmeleri gerekmektedir. Güvenlik nedenleriyle yeni, şifrelenmiş cüzdanı kullanmaya başladığınızda, şifrelenmemiş cüzdan dosyasının önceki yedekleri işe yaramaz hale gelecektir.</translation> </message> <message> <location line="+103"/> <location line="+24"/> <source>Warning: The Caps Lock key is on!</source> <translation>Uyarı: Caps Lock tuşu faal durumda!</translation> </message> <message> <location line="-133"/> <location line="+60"/> <source>Wallet encrypted</source> <translation>Cüzdan şifrelendi</translation> </message> <message> <location line="-58"/> <source>virtauniquecoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your coins from being stolen by malware infecting your computer.</source> <translation>virtauniquecoin, şifreleme işlemini tamamlamak için şimdi kapatılacak. Cüzdanınızı şifrelemenin; coinlerinizin, bilgisayarınızı etkileyen zararlı yazılımlar tarafından çalınmasını bütünüyle engelleyemeyebileceğini unutmayınız.</translation> </message> <message> <location line="+13"/> <location line="+7"/> <location line="+44"/> <location line="+6"/> <source>Wallet encryption failed</source> <translation>Cüzdan şifrelemesi başarısız oldu</translation> </message> <message> <location line="-56"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Dahili bir hata sebebiyle cüzdan şifrelemesi başarısız oldu. Cüzdanınız şifrelenmedi.</translation> </message> <message> <location line="+7"/> <location line="+50"/> <source>The supplied passphrases do not match.</source> <translation>Girilen parolalar birbirleriyle eşleşmiyor.</translation> </message> <message> <location line="-38"/> <source>Wallet unlock failed</source> <translation>Cüzdan kilidinin açılması başarısız oldu</translation> </message> <message> <location line="+1"/> <location line="+12"/> <location line="+19"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Cüzdan şifresinin açılması için girilen parola yanlıştı.</translation> </message> <message> <location line="-20"/> <source>Wallet decryption failed</source> <translation>Cüzdan şifresinin açılması başarısız oldu</translation> </message> <message> <location line="+14"/> <source>Wallet passphrase was successfully changed.</source> <translation>Cüzdan parolası başarılı bir şekilde değiştirildi.</translation> </message> </context> <context> <name>virtauniquecoinGUI</name> <message> <location filename="../virtauniquecoingui.cpp" line="+282"/> <source>Sign &amp;message...</source> <translation>&amp;Mesaj imzala...</translation> </message> <message> <location line="+251"/> <source>Synchronizing with network...</source> <translation>Ağ ile senkronizasyon...</translation> </message> <message> <location line="-319"/> <source>&amp;Overview</source> <translation>&amp;Genel bakış</translation> </message> <message> <location line="+1"/> <source>Show general overview of wallet</source> <translation>Cüzdana genel bakışı göster</translation> </message> <message> <location line="+17"/> <source>&amp;Transactions</source> <translation>&amp;İşlemler</translation> </message> <message> <location line="+1"/> <source>Browse transaction history</source> <translation>İşlem geçmişine göz at</translation> </message> <message> <location line="+5"/> <source>&amp;Address Book</source> <translation>&amp;Adres Defteri</translation> </message> <message> <location line="+1"/> <source>Edit the list of stored addresses and labels</source> <translation>Kayıtlı adresler ve etiketler listesini düzenle</translation> </message> <message> <location line="-13"/> <source>&amp;Receive coins</source> <translation>Coin &amp;al</translation> </message> <message> <location line="+1"/> <source>Show the list of addresses for receiving payments</source> <translation>Ödeme almak için kullanılan adres listesini göster</translation> </message> <message> <location line="-7"/> <source>&amp;Send coins</source> <translation>Coin &amp;gönder</translation> </message> <message> <location line="+35"/> <source>E&amp;xit</source> <translation>&amp;Çık</translation> </message> <message> <location line="+1"/> <source>Quit application</source> <translation>Uygulamadan çık</translation> </message> <message> <location line="+6"/> <source>Show information about virtauniquecoin</source> <translation>virtauniquecoin hakkındaki bilgiyi göster</translation> </message> <message> <location line="+2"/> <source>About &amp;Qt</source> <translation>&amp;Qt hakkında</translation> </message> <message> <location line="+1"/> <source>Show information about Qt</source> <translation>Qt hakkındaki bilgiyi göster</translation> </message> <message> <location line="+2"/> <source>&amp;Options...</source> <translation>&amp;Seçenekler...</translation> </message> <message> <location line="+4"/> <source>&amp;Encrypt Wallet...</source> <translation>Cüzdanı &amp;Şifrele...</translation> </message> <message> <location line="+3"/> <source>&amp;Backup Wallet...</source> <translation>Cüzdanı &amp;Yedekle...</translation> </message> <message> <location line="+2"/> <source>&amp;Change Passphrase...</source> <translation>Parolayı &amp;Değiştir...</translation> </message> <message numerus="yes"> <location line="+259"/> <source>~%n block(s) remaining</source> <translation><numerusform>~%n blok kaldı</numerusform><numerusform>~%n blok kaldı</numerusform></translation> </message> <message> <location line="+6"/> <source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source> <translation>İşlem geçmişindeki %2 bloğun %1&apos;i indirildi (%3% tamamlandı).</translation> </message> <message> <location line="-256"/> <source>&amp;Export...</source> <translation>&amp;Dışarı aktar...</translation> </message> <message> <location line="-64"/> <source>Send coins to a virtauniquecoin address</source> <translation>Bir virtauniquecoin adresine coin gönder</translation> </message> <message> <location line="+47"/> <source>Modify configuration options for virtauniquecoin</source> <translation>virtauniquecoin yapılandırma seçeneklerini değiştir</translation> </message> <message> <location line="+18"/> <source>Export the data in the current tab to a file</source> <translation>Mevcut sekmedeki veriyi bir dosyaya aktar</translation> </message> <message> <location line="-14"/> <source>Encrypt or decrypt wallet</source> <translation>Cüzdanı şifrele veya cüzdanın şifresini aç</translation> </message> <message> <location line="+3"/> <source>Backup wallet to another location</source> <translation>Cüzdanı başka bir konuma yedekle</translation> </message> <message> <location line="+2"/> <source>Change the passphrase used for wallet encryption</source> <translation>Cüzdan şifrelemesi için kullanılan parolayı değiştir</translation> </message> <message> <location line="+10"/> <source>&amp;Debug window</source> <translation>&amp;Hata ayıklama penceresi</translation> </message> <message> <location line="+1"/> <source>Open debugging and diagnostic console</source> <translation>Hata ayıklama ve teşhis penceresini aç</translation> </message> <message> <location line="-5"/> <source>&amp;Verify message...</source> <translation>Mesajı &amp;doğrula...</translation> </message> <message> <location line="-202"/> <source>virtauniquecoin</source> <translation>virtauniquecoin</translation> </message> <message> <location line="+0"/> <source>Wallet</source> <translation>Cüzdan</translation> </message> <message> <location line="+180"/> <source>&amp;About virtauniquecoin</source> <translation>virtauniquecoin &amp;Hakkında</translation> </message> <message> <location line="+9"/> <source>&amp;Show / Hide</source> <translation>&amp;Göster / Gizle</translation> </message> <message> <location line="+9"/> <source>Unlock wallet</source> <translation>Cüzdanın kilidini aç</translation> </message> <message> <location line="+1"/> <source>&amp;Lock Wallet</source> <translation>Cüzdanı &amp;Kilitle</translation> </message> <message> <location line="+1"/> <source>Lock wallet</source> <translation>Cüzdanı kilitle</translation> </message> <message> <location line="+35"/> <source>&amp;File</source> <translation>&amp;Dosya</translation> </message> <message> <location line="+8"/> <source>&amp;Settings</source> <translation>&amp;Ayarlar</translation> </message> <message> <location line="+8"/> <source>&amp;Help</source> <translation>&amp;Yardım</translation> </message> <message> <location line="+12"/> <source>Tabs toolbar</source> <translation>Sekme araç çubuğu</translation> </message> <message> <location line="+8"/> <source>Actions toolbar</source> <translation>Eylem araç çubuğu</translation> </message> <message> <location line="+13"/> <location line="+9"/> <source>[testnet]</source> <translation>[testnet]</translation> </message> <message> <location line="+0"/> <location line="+60"/> <source>virtauniquecoin client</source> <translation>virtauniquecoin istemcisi</translation> </message> <message numerus="yes"> <location line="+75"/> <source>%n active connection(s) to virtauniquecoin network</source> <translation><numerusform>virtauniquecoin ağına %n etkin bağlantı</numerusform><numerusform>virtauniquecoin ağına %n etkin bağlantı</numerusform></translation> </message> <message> <location line="+40"/> <source>Downloaded %1 blocks of transaction history.</source> <translation>İşlem geçmişinin %1 bloğu indirildi.</translation> </message> <message> <location line="+413"/> <source>Staking.&lt;br&gt;Your weight is %1&lt;br&gt;Network weight is %2&lt;br&gt;Expected time to earn reward is %3</source> <translation>Pay alınıyor.&lt;br&gt;Sizin ağırlığınız %1&lt;br&gt;Ağın ağırlığı %2&lt;br&gt;Ödül almak için tahmini süre %3</translation> </message> <message> <location line="+6"/> <source>Not staking because wallet is locked</source> <translation>Pay alınmıyor çünkü cüzdan kilitlidir</translation> </message> <message> <location line="+2"/> <source>Not staking because wallet is offline</source> <translation>Pay alınmıyor çünkü cüzdan çevrimdışıdır</translation> </message> <message> <location line="+2"/> <source>Not staking because wallet is syncing</source> <translation>Pay alınmıyor çünkü cüzdan senkronize ediliyor</translation> </message> <message> <location line="+2"/> <source>Not staking because you don&apos;t have mature coins</source> <translation>Pay alınmıyor çünkü olgunlaşmış coininiz yoktur</translation> </message> <message numerus="yes"> <location line="-403"/> <source>%n second(s) ago</source> <translation><numerusform>%n saniye önce</numerusform><numerusform>%n saniye önce</numerusform></translation> </message> <message> <location line="-312"/> <source>About virtauniquecoin card</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Show information about virtauniquecoin card</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>&amp;Unlock Wallet...</source> <translation>Cüzdanı &amp;Kilitle...</translation> </message> <message numerus="yes"> <location line="+297"/> <source>%n minute(s) ago</source> <translation><numerusform>%n dakika önce</numerusform><numerusform>%n dakika önce</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s) ago</source> <translation><numerusform>%n saat önce</numerusform><numerusform>%n saat önce</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s) ago</source> <translation><numerusform>%n gün önce</numerusform><numerusform>%n gün önce</numerusform></translation> </message> <message> <location line="+6"/> <source>Up to date</source> <translation>Güncel</translation> </message> <message> <location line="+7"/> <source>Catching up...</source> <translation>Aralık kapatılıyor...</translation> </message> <message> <location line="+10"/> <source>Last received block was generated %1.</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation>Bu işlem, büyüklük sınırının üzerindedir. İşleminizi gerçekleştirecek devrelere gidecek ve ağı desteklemeye yardımcı olacak %1 ücretle coin gönderebilirsiniz. Ücreti ödemek istiyor musunuz?</translation> </message> <message> <location line="+5"/> <source>Confirm transaction fee</source> <translation>İşlem ücretini onayla</translation> </message> <message> <location line="+27"/> <source>Sent transaction</source> <translation>İşlem gerçekleştirildi</translation> </message> <message> <location line="+1"/> <source>Incoming transaction</source> <translation>Gelen işlem</translation> </message> <message> <location line="+1"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Tarih: %1 Miktar: %2 Tür: %3 Adres: %4 </translation> </message> <message> <location line="+100"/> <location line="+15"/> <source>URI handling</source> <translation>URI işleme</translation> </message> <message> <location line="-15"/> <location line="+15"/> <source>URI can not be parsed! This can be caused by an invalid virtauniquecoin address or malformed URI parameters.</source> <translation>URI ayrıştırılamadı! Bu, geçersiz bir virtauniquecoin adresi veya hatalı URI parametreleri nedeniyle olabilir.</translation> </message> <message> <location line="+18"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Cüzdan &lt;b&gt;şifrelenmiştir&lt;/b&gt; ve şu anda &lt;b&gt;kilidi açıktır&lt;/b&gt;</translation> </message> <message> <location line="+10"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Cüzdan &lt;b&gt;şifrelenmiştir&lt;/b&gt; ve şu anda &lt;b&gt;kilitlidir&lt;/b&gt;</translation> </message> <message> <location line="+25"/> <source>Backup Wallet</source> <translation>Cüzdanı Yedekle</translation> </message> <message> <location line="+0"/> <source>Wallet Data (*.dat)</source> <translation>Cüzdan Verisi (*.dat)</translation> </message> <message> <location line="+3"/> <source>Backup Failed</source> <translation>Yedekleme Başarısız Oldu</translation> </message> <message> <location line="+0"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation>Cüzdan verisi, yeni bir konuma kaydedilmeye çalışılırken bir hata oluştu.</translation> </message> <message numerus="yes"> <location line="+76"/> <source>%n second(s)</source> <translation><numerusform>%n saniye</numerusform><numerusform>%n saniye</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n minute(s)</source> <translation><numerusform>%n dakika</numerusform><numerusform>%n dakika</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n hour(s)</source> <translation><numerusform>%n saat</numerusform><numerusform>%n saat</numerusform></translation> </message> <message numerus="yes"> <location line="+4"/> <source>%n day(s)</source> <translation><numerusform>%n gün</numerusform><numerusform>%n gün</numerusform></translation> </message> <message> <location line="+18"/> <source>Not staking</source> <translation>Pay alınmıyor</translation> </message> <message> <location filename="../virtauniquecoin.cpp" line="+109"/> <source>A fatal error occurred. virtauniquecoin can no longer continue safely and will quit.</source> <translation>Önemli bir hata oluştu. virtauniquecoin artık güvenli bir şekilde devam edemez ve şimdi kapatılacak.</translation> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="+90"/> <source>Network Alert</source> <translation>Ağ Uyarısı</translation> </message> </context> <context> <name>CoinControlDialog</name> <message> <location filename="../forms/coincontroldialog.ui" line="+14"/> <source>Coin Control</source> <translation>Coin Kontrolü</translation> </message> <message> <location line="+31"/> <source>Quantity:</source> <translation>Adet:</translation> </message> <message> <location line="+32"/> <source>Bytes:</source> <translation>Bayt:</translation> </message> <message> <location line="+48"/> <source>Amount:</source> <translation>Miktar:</translation> </message> <message> <location line="+32"/> <source>Priority:</source> <translation>Öncelik:</translation> </message> <message> <location line="+48"/> <source>Fee:</source> <translation>Ücret:</translation> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation>Düşük Çıktı:</translation> </message> <message> <location filename="../coincontroldialog.cpp" line="+551"/> <source>no</source> <translation>hayır</translation> </message> <message> <location filename="../forms/coincontroldialog.ui" line="+51"/> <source>After Fee:</source> <translation>Ücretten sonra:</translation> </message> <message> <location line="+35"/> <source>Change:</source> <translation>Para üstü:</translation> </message> <message> <location line="+69"/> <source>(un)select all</source> <translation>tümünü seç(me)</translation> </message> <message> <location line="+13"/> <source>Tree mode</source> <translation>Ağaç kipi</translation> </message> <message> <location line="+16"/> <source>List mode</source> <translation>Liste kipi</translation> </message> <message> <location line="+45"/> <source>Amount</source> <translation>Miktar</translation> </message> <message> <location line="+5"/> <source>Label</source> <translation>Etiket</translation> </message> <message> <location line="+5"/> <source>Address</source> <translation>Adres</translation> </message> <message> <location line="+5"/> <source>Date</source> <translation>Tarih</translation> </message> <message> <location line="+5"/> <source>Confirmations</source> <translation>Onaylar</translation> </message> <message> <location line="+3"/> <source>Confirmed</source> <translation>Onaylandı</translation> </message> <message> <location line="+5"/> <source>Priority</source> <translation>Öncelik</translation> </message> <message> <location filename="../coincontroldialog.cpp" line="-515"/> <source>Copy address</source> <translation>Adresi kopyala</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Etiketi kopyala</translation> </message> <message> <location line="+1"/> <location line="+26"/> <source>Copy amount</source> <translation>Miktarı kopyala</translation> </message> <message> <location line="-25"/> <source>Copy transaction ID</source> <translation>İşlem Numarasını Kopyala</translation> </message> <message> <location line="+24"/> <source>Copy quantity</source> <translation>Adedi kopyala</translation> </message> <message> <location line="+2"/> <source>Copy fee</source> <translation>Ücreti kopyala</translation> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation>Ücretten sonrakini kopyala</translation> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation>Baytları kopyala</translation> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation>Önceliği kopyala</translation> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation>Düşük çıktıyı kopyala</translation> </message> <message> <location line="+1"/> <source>Copy change</source> <translation>Para üstünü kopyala</translation> </message> <message> <location line="+317"/> <source>highest</source> <translation>en yüksek</translation> </message> <message> <location line="+1"/> <source>high</source> <translation>yüksek</translation> </message> <message> <location line="+1"/> <source>medium-high</source> <translation>orta-yüksek</translation> </message> <message> <location line="+1"/> <source>medium</source> <translation>orta</translation> </message> <message> <location line="+4"/> <source>low-medium</source> <translation>düşük-orta</translation> </message> <message> <location line="+1"/> <source>low</source> <translation>düşük</translation> </message> <message> <location line="+1"/> <source>lowest</source> <translation>en düşük</translation> </message> <message> <location line="+155"/> <source>DUST</source> <translation>BOZUKLUK</translation> </message> <message> <location line="+0"/> <source>yes</source> <translation>evet</translation> </message> <message> <location line="+10"/> <source>This label turns red, if the transaction size is bigger than 10000 bytes. This means a fee of at least %1 per kb is required. Can vary +/- 1 Byte per input.</source> <translation>İşlem büyüklüğü 10000 bayttan büyükse, bu etiket kırmızıya dönüşür. Bu, kb başına en az %1 ücret gerektiği anlamına gelir. Girdi başına +/- 1 Byte değişkenlik gösterebilir.</translation> </message> <message> <location line="+1"/> <source>Transactions with higher priority get more likely into a block. This label turns red, if the priority is smaller than &quot;medium&quot;. This means a fee of at least %1 per kb is required.</source> <translation>Yüksek öncelikli işlemler, daha yüksek ihtimalle bir bloğa düşer. Öncelik &quot;orta&quot; seviyeden düşükse, bu etiket kırmızıya döner. Bu, kb başına en az %1 ücret gerektiği anlamına gelir.</translation> </message> <message> <location line="+1"/> <source>This label turns red, if any recipient receives an amount smaller than %1. This means a fee of at least %2 is required. Amounts below 0.546 times the minimum relay fee are shown as DUST.</source> <translation>Eğer herhangi bir alıcı, %1&apos;den daha küçük bir miktar alırsa, bu etiket kırmızıya dönüşür. Bu, en az %2 bir ücretin gerektiği anlamına gelir. Minimum aktarım ücretinin 0.546 katından düşük miktarlar, BOZUKLUK olarak gösterilir.</translation> </message> <message> <location line="+1"/> <source>This label turns red, if the change is smaller than %1. This means a fee of at least %2 is required.</source> <translation>Eğer para üstü %1&apos;den küçükse, bu etiket kırmızıya dönüşür. Bu, en az %2 bir ücretin gerektiği anlamına gelir.</translation> </message> <message> <location line="+37"/> <location line="+66"/> <source>(no label)</source> <translation>(boş etiket)</translation> </message> <message> <location line="-9"/> <source>change from %1 (%2)</source> <translation>%1 unsurundan para üstü (%2)</translation> </message> <message> <location line="+1"/> <source>(change)</source> <translation>(para üstü)</translation> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="+14"/> <source>Edit Address</source> <translation>Adresi düzenle</translation> </message> <message> <location line="+11"/> <source>&amp;Label</source> <translation>&amp;Etiket</translation> </message> <message> <location line="+10"/> <source>The label associated with this address book entry</source> <translation>Bu adres defteri kaydıyla ilişkili etiket</translation> </message> <message> <location line="+7"/> <source>&amp;Address</source> <translation>&amp;Adres</translation> </message> <message> <location line="+10"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation>Bu adres defteri kaydıyla ilişkili etiket. Bu, sadece gönderi adresleri için değiştirilebilir.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="+20"/> <source>New receiving address</source> <translation>Yeni alım adresi</translation> </message> <message> <location line="+4"/> <source>New sending address</source> <translation>Yeni gönderi adresi</translation> </message> <message> <location line="+3"/> <source>Edit receiving address</source> <translation>Alım adresini düzenle</translation> </message> <message> <location line="+4"/> <source>Edit sending address</source> <translation>Gönderi adresini düzenle</translation> </message> <message> <location line="+76"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>Girilen &quot;%1&quot; adresi hâlihazırda adres defterinde mevcuttur.</translation> </message> <message> <location line="-5"/> <source>The entered address &quot;%1&quot; is not a valid virtauniquecoin address.</source> <translation>Girilen %1 adresi, geçerli bir virtauniquecoin adresi değildir.</translation> </message> <message> <location line="+10"/> <source>Could not unlock wallet.</source> <translation>Cüzdan kilidi açılamadı.</translation> </message> <message> <location line="+5"/> <source>New key generation failed.</source> <translation>Yeni anahtar oluşturulması başarısız oldu.</translation> </message> </context> <context> <name>GUIUtil::HelpMessageBox</name> <message> <location filename="../guiutil.cpp" line="+420"/> <location line="+12"/> <source>virtauniquecoin-Qt</source> <translation>virtauniquecoin-Qt</translation> </message> <message> <location line="-12"/> <source>version</source> <translation>versiyon</translation> </message> <message> <location line="+2"/> <source>Usage:</source> <translation>Kullanım:</translation> </message> <message> <location line="+1"/> <source>command-line options</source> <translation>komut satırı seçenekleri</translation> </message> <message> <location line="+4"/> <source>UI options</source> <translation>GA seçenekleri</translation> </message> <message> <location line="+1"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation>Dili ayarla, örneğin &quot;de_DE&quot; (varsayılan: sistem yerel ayarları)</translation> </message> <message> <location line="+1"/> <source>Start minimized</source> <translation>Simge durumunda başlat</translation> </message> <message> <location line="+1"/> <source>Show splash screen on startup (default: 1)</source> <translation>Başlangıçta açılış ekranını göster (varsayılan: 1)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../forms/optionsdialog.ui" line="+14"/> <source>Options</source> <translation>Seçenekler</translation> </message> <message> <location line="+16"/> <source>&amp;Main</source> <translation>&amp;Esas ayarlar</translation> </message> <message> <location line="+6"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source> <translation>İşlemlerinizin hızlıca gerçekleştirilmesini sağlayan kB başına opsiyonel işlem ücreti. Birçok işlem 1 kB&apos;tır. Tavsiye edilen ücret 0.01&apos;dir.</translation> </message> <message> <location line="+15"/> <source>Pay transaction &amp;fee</source> <translation>Muamele ücreti &amp;öde</translation> </message> <message> <location line="+31"/> <source>Reserved amount does not participate in staking and is therefore spendable at any time.</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Reserve</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Automatically start virtauniquecoin after logging in to the system.</source> <translation>Sisteme giriş yaptıktan sonra virtauniquecoin&apos;i otomatik olarak başlat</translation> </message> <message> <location line="+3"/> <source>&amp;Start virtauniquecoin on system login</source> <translation>Sisteme girişte virtauniquecoin&apos;i &amp;başlat</translation> </message> <message> <location line="+7"/> <source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source> <translation>Kapanışta blok ve adres veritabanlarını birbirinden ayır. Bu, onların başka bir veri klasörüne taşınabileceği anlamına gelir ancak bu işlem kapanışı yavaşlatır. Cüzdan ise her zaman ayrılmıştır.</translation> </message> <message> <location line="+3"/> <source>&amp;Detach databases at shutdown</source> <translation>Kapanışta veritabanlarını &amp;ayır</translation> </message> <message> <location line="+21"/> <source>&amp;Network</source> <translation>&amp;Şebeke</translation> </message> <message> <location line="+6"/> <source>Automatically open the virtauniquecoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>Yönelticide virtauniquecoin istemci portunu otomatik olarak aç. Bu, sadece yönelticiniz UPnP&apos;i desteklediğinde ve etkin olduğunda çalışır.</translation> </message> <message> <location line="+3"/> <source>Map port using &amp;UPnP</source> <translation>Portları &amp;UPnP kullanarak haritala</translation> </message> <message> <location line="+7"/> <source>Connect to the virtauniquecoin network through a SOCKS proxy (e.g. when connecting through Tor).</source> <translation>virtauniquecoin ağına bir SOCKS vekil sunucusu yoluyla bağlan (örn. Tor yoluyla bağlanıldığında)</translation> </message> <message> <location line="+3"/> <source>&amp;Connect through SOCKS proxy:</source> <translation>SOCKS vekil sunucusu yoluyla &amp;bağlan:</translation> </message> <message> <location line="+9"/> <source>Proxy &amp;IP:</source> <translation>Vekil &amp;İP:</translation> </message> <message> <location line="+19"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>Vekil sunucunun IP adresi (örn. 127.0.0.1)</translation> </message> <message> <location line="+7"/> <source>&amp;Port:</source> <translation>&amp;Port:</translation> </message> <message> <location line="+19"/> <source>Port of the proxy (e.g. 9050)</source> <translation>Vekil sunucunun portu (mesela 9050)</translation> </message> <message> <location line="+7"/> <source>SOCKS &amp;Version:</source> <translation>SOCKS &amp;sürümü:</translation> </message> <message> <location line="+13"/> <source>SOCKS version of the proxy (e.g. 5)</source> <translation>Vekil sunucunun SOCKS sürümü (mesela 5)</translation> </message> <message> <location line="+36"/> <source>&amp;Window</source> <translation>&amp;Pencere</translation> </message> <message> <location line="+6"/> <source>Show only a tray icon after minimizing the window.</source> <translation>Küçültüldükten sonra sadece çekmece ikonu göster.</translation> </message> <message> <location line="+3"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>İşlem çubuğu yerine sistem çekmecesine &amp;küçült</translation> </message> <message> <location line="+7"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation>Pencere kapatıldığında uygulamadan çıkmak yerine uygulamayı küçültür. Bu seçenek etkinleştirildiğinde, uygulama sadece menüden çıkış seçildiğinde kapanacaktır.</translation> </message> <message> <location line="+3"/> <source>M&amp;inimize on close</source> <translation>Kapatma sırasında k&amp;üçült</translation> </message> <message> <location line="+21"/> <source>&amp;Display</source> <translation>&amp;Görünüm</translation> </message> <message> <location line="+8"/> <source>User Interface &amp;language:</source> <translation>Kullanıcı arayüzü &amp;lisanı:</translation> </message> <message> <location line="+13"/> <source>The user interface language can be set here. This setting will take effect after restarting virtauniquecoin.</source> <translation>Kullanıcı arabirimi dili buradan ayarlanabilir. Ayar, virtauniquecoin yeniden başlatıldığında etkin olacaktır.</translation> </message> <message> <location line="+11"/> <source>&amp;Unit to show amounts in:</source> <translation>Meblağları göstermek için &amp;birim:</translation> </message> <message> <location line="+13"/> <source>Choose the default subdivision unit to show in the interface and when sending coins.</source> <translation>virtauniquecoin gönderildiğinde arayüzde gösterilecek varsayılan alt birimi seçiniz.</translation> </message> <message> <location line="+9"/> <source>Whether to show virtauniquecoin addresses in the transaction list or not.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Display addresses in transaction list</source> <translation>Muamele listesinde adresleri &amp;göster</translation> </message> <message> <location line="+7"/> <source>Whether to show coin control features or not.</source> <translation>Para kontrol özelliklerinin gösterilip gösterilmeyeceğini ayarlar.</translation> </message> <message> <location line="+3"/> <source>Display coin &amp;control features (experts only!)</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;OK</source> <translation>&amp;Tamam</translation> </message> <message> <location line="+7"/> <source>&amp;Cancel</source> <translation>&amp;İptal</translation> </message> <message> <location line="+10"/> <source>&amp;Apply</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="+55"/> <source>default</source> <translation>varsayılan</translation> </message> <message> <location line="+149"/> <location line="+9"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location line="-9"/> <location line="+9"/> <source>This setting will take effect after restarting virtauniquecoin.</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The supplied proxy address is invalid.</source> <translation>Girilen vekil sunucu adresi geçersizdir.</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="+14"/> <source>Form</source> <translation>Form</translation> </message> <message> <location line="+33"/> <location line="+231"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the virtauniquecoin network after a connection is established, but this process has not completed yet.</source> <translation type="unfinished"/> </message> <message> <location line="-160"/> <source>Stake:</source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>Unconfirmed:</source> <translation type="unfinished"/> </message> <message> <location line="-107"/> <source>Wallet</source> <translation>Cüzdan</translation> </message> <message> <location line="+49"/> <source>Spendable:</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Your current spendable balance</source> <translation>Güncel harcanabilir bakiyeniz</translation> </message> <message> <location line="+71"/> <source>Immature:</source> <translation>Olgunlaşmamış:</translation> </message> <message> <location line="+13"/> <source>Mined balance that has not yet matured</source> <translation>Oluşturulan bakiye henüz olgunlaşmamıştır</translation> </message> <message> <location line="+20"/> <source>Total:</source> <translation>Toplam:</translation> </message> <message> <location line="+16"/> <source>Your current total balance</source> <translation>Güncel toplam bakiyeniz</translation> </message> <message> <location line="+46"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Son muameleler&lt;/b&gt;</translation> </message> <message> <location line="-108"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation type="unfinished"/> </message> <message> <location line="-29"/> <source>Total of coins that was staked, and do not yet count toward the current balance</source> <translation type="unfinished"/> </message> <message> <location filename="../overviewpage.cpp" line="+113"/> <location line="+1"/> <source>out of sync</source> <translation>eşleşme dışı</translation> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="+14"/> <source>QR Code Dialog</source> <translation type="unfinished"/> </message> <message> <location line="+59"/> <source>Request Payment</source> <translation type="unfinished"/> </message> <message> <location line="+56"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location line="-44"/> <source>Label:</source> <translation type="unfinished"/> </message> <message> <location line="+19"/> <source>Message:</source> <translation type="unfinished"/> </message> <message> <location line="+71"/> <source>&amp;Save As...</source> <translation type="unfinished"/> </message> <message> <location filename="../qrcodedialog.cpp" line="+62"/> <source>Error encoding URI into QR Code.</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>The entered amount is invalid, please check.</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Save QR Code</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>PNG Images (*.png)</source> <translation type="unfinished"/> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="+46"/> <source>Client name</source> <translation>İstemci ismi</translation> </message> <message> <location line="+10"/> <location line="+23"/> <location line="+26"/> <location line="+23"/> <location line="+23"/> <location line="+36"/> <location line="+53"/> <location line="+23"/> <location line="+23"/> <location filename="../rpcconsole.cpp" line="+348"/> <source>N/A</source> <translation>Mevcut değil</translation> </message> <message> <location line="-217"/> <source>Client version</source> <translation>İstemci sürümü</translation> </message> <message> <location line="-45"/> <source>&amp;Information</source> <translation>&amp;Malumat</translation> </message> <message> <location line="+68"/> <source>Using OpenSSL version</source> <translation>Kullanılan OpenSSL sürümü</translation> </message> <message> <location line="+49"/> <source>Startup time</source> <translation>Başlama zamanı</translation> </message> <message> <location line="+29"/> <source>Network</source> <translation>Şebeke</translation> </message> <message> <location line="+7"/> <source>Number of connections</source> <translation>Bağlantı sayısı</translation> </message> <message> <location line="+23"/> <source>On testnet</source> <translation type="unfinished"/> </message> <message> <location line="+23"/> <source>Block chain</source> <translation>Blok zinciri</translation> </message> <message> <location line="+7"/> <source>Current number of blocks</source> <translation>Güncel blok sayısı</translation> </message> <message> <location line="+23"/> <source>Estimated total blocks</source> <translation>Tahmini toplam blok sayısı</translation> </message> <message> <location line="+23"/> <source>Last block time</source> <translation>Son blok zamanı</translation> </message> <message> <location line="+52"/> <source>&amp;Open</source> <translation>&amp;Aç</translation> </message> <message> <location line="+16"/> <source>Command-line options</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Show the virtauniquecoin-Qt help message to get a list with possible virtauniquecoin command-line options.</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>&amp;Show</source> <translation type="unfinished"/> </message> <message> <location line="+24"/> <source>&amp;Console</source> <translation>&amp;Konsol</translation> </message> <message> <location line="-260"/> <source>Build date</source> <translation>Derleme tarihi</translation> </message> <message> <location line="-104"/> <source>virtauniquecoin - Debug window</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>virtauniquecoin Core</source> <translation type="unfinished"/> </message> <message> <location line="+279"/> <source>Debug log file</source> <translation>Hata ayıklama kütük dosyası</translation> </message> <message> <location line="+7"/> <source>Open the virtauniquecoin debug log file from the current data directory. This can take a few seconds for large log files.</source> <translation type="unfinished"/> </message> <message> <location line="+102"/> <source>Clear console</source> <translation>Konsolu temizle</translation> </message> <message> <location filename="../rpcconsole.cpp" line="-33"/> <source>Welcome to the virtauniquecoin RPC console.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation>Tarihçede gezinmek için imleç tuşlarını kullanınız, &lt;b&gt;Ctrl-L&lt;/b&gt; ile de ekranı temizleyebilirsiniz.</translation> </message> <message> <location line="+1"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation>Mevcut komutların listesi için &lt;b&gt;help&lt;/b&gt; yazınız.</translation> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="+14"/> <location filename="../sendcoinsdialog.cpp" line="+182"/> <location line="+5"/> <location line="+5"/> <location line="+5"/> <location line="+6"/> <location line="+5"/> <location line="+5"/> <source>Send Coins</source> <translation>virtauniquecoin yolla</translation> </message> <message> <location line="+76"/> <source>Coin Control Features</source> <translation>Para kontrolü özellikleri</translation> </message> <message> <location line="+20"/> <source>Inputs...</source> <translation>Girdiler...</translation> </message> <message> <location line="+7"/> <source>automatically selected</source> <translation>otomatik seçilmiş</translation> </message> <message> <location line="+19"/> <source>Insufficient funds!</source> <translation>Yetersiz fon!</translation> </message> <message> <location line="+77"/> <source>Quantity:</source> <translation>Miktar:</translation> </message> <message> <location line="+22"/> <location line="+35"/> <source>0</source> <translation type="unfinished"/> </message> <message> <location line="-19"/> <source>Bytes:</source> <translation>Bayt:</translation> </message> <message> <location line="+51"/> <source>Amount:</source> <translation>Meblağ:</translation> </message> <message> <location line="+22"/> <location line="+86"/> <location line="+86"/> <location line="+32"/> <source>0.00 VUC</source> <translation type="unfinished"/> </message> <message> <location line="-191"/> <source>Priority:</source> <translation>Öncelik:</translation> </message> <message> <location line="+19"/> <source>medium</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>Fee:</source> <translation>Ücret:</translation> </message> <message> <location line="+35"/> <source>Low Output:</source> <translation>Düşük çıktı:</translation> </message> <message> <location line="+19"/> <source>no</source> <translation type="unfinished"/> </message> <message> <location line="+32"/> <source>After Fee:</source> <translation>Ücretten sonra:</translation> </message> <message> <location line="+35"/> <source>Change</source> <translation type="unfinished"/> </message> <message> <location line="+50"/> <source>custom change address</source> <translation type="unfinished"/> </message> <message> <location line="+106"/> <source>Send to multiple recipients at once</source> <translation>Birçok alıcıya aynı anda gönder</translation> </message> <message> <location line="+3"/> <source>Add &amp;Recipient</source> <translation>&amp;Alıcı ekle</translation> </message> <message> <location line="+20"/> <source>Remove all transaction fields</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Clear &amp;All</source> <translation>Tümünü &amp;temizle</translation> </message> <message> <location line="+28"/> <source>Balance:</source> <translation>Bakiye:</translation> </message> <message> <location line="+16"/> <source>123.456 VUC</source> <translation type="unfinished"/> </message> <message> <location line="+31"/> <source>Confirm the send action</source> <translation>Yollama etkinliğini teyit ediniz</translation> </message> <message> <location line="+3"/> <source>S&amp;end</source> <translation>G&amp;önder</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="-173"/> <source>Enter a virtauniquecoin address (e.g. virtauniquecoinNpBmRUEiP2Po1K8km2GXcFfwYh)</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>Copy quantity</source> <translation>Miktarı kopyala</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Meblağı kopyala</translation> </message> <message> <location line="+1"/> <source>Copy fee</source> <translation>Ücreti kopyala</translation> </message> <message> <location line="+1"/> <source>Copy after fee</source> <translation>Ücretten sonrakini kopyala</translation> </message> <message> <location line="+1"/> <source>Copy bytes</source> <translation>Baytları kopyala</translation> </message> <message> <location line="+1"/> <source>Copy priority</source> <translation>Önceliği kopyala</translation> </message> <message> <location line="+1"/> <source>Copy low output</source> <translation>Düşük çıktıyı kopyala</translation> </message> <message> <location line="+1"/> <source>Copy change</source> <translation>Para üstünü kopyala</translation> </message> <message> <location line="+86"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Confirm send coins</source> <translation>Gönderiyi teyit ediniz</translation> </message> <message> <location line="+1"/> <source>Are you sure you want to send %1?</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source> and </source> <translation type="unfinished"/> </message> <message> <location line="+29"/> <source>The recipient address is not valid, please recheck.</source> <translation>Alıcı adresi geçerli değildir, lütfen denetleyiniz.</translation> </message> <message> <location line="+5"/> <source>The amount to pay must be larger than 0.</source> <translation>Ödeyeceğiniz tutarın sıfırdan yüksek olması gerekir.</translation> </message> <message> <location line="+5"/> <source>The amount exceeds your balance.</source> <translation>Tutar bakiyenizden yüksektir.</translation> </message> <message> <location line="+5"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation>Toplam, %1 muamele ücreti ilâve edildiğinde bakiyenizi geçmektedir.</translation> </message> <message> <location line="+6"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation>Çift adres bulundu, belli bir gönderi sırasında her adrese sadece tek bir gönderide bulunulabilir.</translation> </message> <message> <location line="+5"/> <source>Error: Transaction creation failed.</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="+251"/> <source>WARNING: Invalid virtauniquecoin address</source> <translation type="unfinished"/> </message> <message> <location line="+13"/> <source>(no label)</source> <translation>(boş etiket)</translation> </message> <message> <location line="+4"/> <source>WARNING: unknown change address</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="+14"/> <source>Form</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>A&amp;mount:</source> <translation>Mebla&amp;ğ:</translation> </message> <message> <location line="+13"/> <source>Pay &amp;To:</source> <translation>&amp;Şu adrese öde:</translation> </message> <message> <location line="+24"/> <location filename="../sendcoinsentry.cpp" line="+25"/> <source>Enter a label for this address to add it to your address book</source> <translation>Adres defterinize eklemek için bu adrese ilişik bir etiket giriniz</translation> </message> <message> <location line="+9"/> <source>&amp;Label:</source> <translation>&amp;Etiket:</translation> </message> <message> <location line="+18"/> <source>The address to send the payment to (e.g. virtauniquecoinNpBmRUEiP2Po1K8km2GXcFfwYh)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Choose address from address book</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="+7"/> <source>Paste address from clipboard</source> <translation>Panodan adres yapıştır</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+7"/> <source>Remove this recipient</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsentry.cpp" line="+1"/> <source>Enter a virtauniquecoin address (e.g. virtauniquecoinNpBmRUEiP2Po1K8km2GXcFfwYh)</source> <translation type="unfinished"/> </message> </context> <context> <name>SignVerifyMessageDialog</name> <message> <location filename="../forms/signverifymessagedialog.ui" line="+14"/> <source>Signatures - Sign / Verify a Message</source> <translation>İmzalar - Mesaj İmzala / Kontrol et</translation> </message> <message> <location line="+13"/> <location line="+124"/> <source>&amp;Sign Message</source> <translation>Mesaj &amp;imzala</translation> </message> <message> <location line="-118"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation>Bir adresin sizin olduğunu ispatlamak için adresinizle mesaj imzalayabilirsiniz. Oltalama saldırılarının kimliğinizi imzanızla elde etmeyi deneyebilecekleri için belirsiz hiçbir şey imzalamamaya dikkat ediniz. Sadece ayrıntılı açıklaması olan ve tümüne katıldığınız ifadeleri imzalayınız.</translation> </message> <message> <location line="+18"/> <source>The address to sign the message with (e.g. virtauniquecoinNpBmRUEiP2Po1K8km2GXcFfwYh)</source> <translation type="unfinished"/> </message> <message> <location line="+10"/> <location line="+203"/> <source>Choose an address from the address book</source> <translation type="unfinished"/> </message> <message> <location line="-193"/> <location line="+203"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location line="-193"/> <source>Paste address from clipboard</source> <translation>Panodan adres yapıştır</translation> </message> <message> <location line="+10"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location line="+12"/> <source>Enter the message you want to sign here</source> <translation>İmzalamak istediğiniz mesajı burada giriniz</translation> </message> <message> <location line="+24"/> <source>Copy the current signature to the system clipboard</source> <translation>Güncel imzayı sistem panosuna kopyala</translation> </message> <message> <location line="+21"/> <source>Sign the message to prove you own this virtauniquecoin address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all sign message fields</source> <translation>Tüm mesaj alanlarını sıfırla</translation> </message> <message> <location line="+3"/> <location line="+146"/> <source>Clear &amp;All</source> <translation>Tümünü &amp;temizle</translation> </message> <message> <location line="-87"/> <location line="+70"/> <source>&amp;Verify Message</source> <translation>Mesaj &amp;kontrol et</translation> </message> <message> <location line="-64"/> <source>Enter the signing address, message (ensure you copy line breaks, spaces, tabs, etc. exactly) and signature below to verify the message. Be careful not to read more into the signature than what is in the signed message itself, to avoid being tricked by a man-in-the-middle attack.</source> <translation>İmza için kullanılan adresi, mesajı (satır sonları, boşluklar, sekmeler vs. karakterleri tam olarak kopyaladığınızdan emin olunuz) ve imzayı aşağıda giriniz. Bir ortadaki adam saldırısı tarafından kandırılmaya mâni olmak için imzadan, imzalı mesajın içeriğini aşan bir anlam çıkarmamaya dikkat ediniz.</translation> </message> <message> <location line="+21"/> <source>The address the message was signed with (e.g. virtauniquecoinNpBmRUEiP2Po1K8km2GXcFfwYh)</source> <translation type="unfinished"/> </message> <message> <location line="+40"/> <source>Verify the message to ensure it was signed with the specified virtauniquecoin address</source> <translation type="unfinished"/> </message> <message> <location line="+17"/> <source>Reset all verify message fields</source> <translation>Tüm mesaj kontrolü alanlarını sıfırla</translation> </message> <message> <location filename="../signverifymessagedialog.cpp" line="+27"/> <location line="+3"/> <source>Enter a virtauniquecoin address (e.g. virtauniquecoinNpBmRUEiP2Po1K8km2GXcFfwYh)</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Click &quot;Sign Message&quot; to generate signature</source> <translation>İmzayı oluşturmak için &quot;Mesaj İmzala&quot; unsurunu tıklayın</translation> </message> <message> <location line="+3"/> <source>Enter virtauniquecoin signature</source> <translation type="unfinished"/> </message> <message> <location line="+82"/> <location line="+81"/> <source>The entered address is invalid.</source> <translation>Girilen adres geçersizdir.</translation> </message> <message> <location line="-81"/> <location line="+8"/> <location line="+73"/> <location line="+8"/> <source>Please check the address and try again.</source> <translation>Adresi kontrol edip tekrar deneyiniz.</translation> </message> <message> <location line="-81"/> <location line="+81"/> <source>The entered address does not refer to a key.</source> <translation>Girilen adres herhangi bir anahtara işaret etmemektedir.</translation> </message> <message> <location line="-73"/> <source>Wallet unlock was cancelled.</source> <translation>Cüzdan kilidinin açılması iptal edildi.</translation> </message> <message> <location line="+8"/> <source>Private key for the entered address is not available.</source> <translation>Girilen adres için özel anahtar mevcut değildir.</translation> </message> <message> <location line="+12"/> <source>Message signing failed.</source> <translation>Mesajın imzalanması başarısız oldu.</translation> </message> <message> <location line="+5"/> <source>Message signed.</source> <translation>Mesaj imzalandı.</translation> </message> <message> <location line="+59"/> <source>The signature could not be decoded.</source> <translation>İmzanın kodu çözülemedi.</translation> </message> <message> <location line="+0"/> <location line="+13"/> <source>Please check the signature and try again.</source> <translation>İmzayı kontrol edip tekrar deneyiniz.</translation> </message> <message> <location line="+0"/> <source>The signature did not match the message digest.</source> <translation>İmza mesajın hash değeri ile eşleşmedi.</translation> </message> <message> <location line="+7"/> <source>Message verification failed.</source> <translation>Mesaj doğrulaması başarısız oldu.</translation> </message> <message> <location line="+5"/> <source>Message verified.</source> <translation>Mesaj doğrulandı.</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="+19"/> <source>Open until %1</source> <translation>%1 değerine dek açık</translation> </message> <message numerus="yes"> <location line="-2"/> <source>Open for %n block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+8"/> <source>conflicted</source> <translation>çakışma</translation> </message> <message> <location line="+2"/> <source>%1/offline</source> <translation>%1/çevrim dışı</translation> </message> <message> <location line="+2"/> <source>%1/unconfirmed</source> <translation>%1/doğrulanmadı</translation> </message> <message> <location line="+2"/> <source>%1 confirmations</source> <translation>%1 teyit</translation> </message> <message> <location line="+18"/> <source>Status</source> <translation>Durum</translation> </message> <message numerus="yes"> <location line="+7"/> <source>, broadcast through %n node(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+4"/> <source>Date</source> <translation>Tarih</translation> </message> <message> <location line="+7"/> <source>Source</source> <translation>Kaynak</translation> </message> <message> <location line="+0"/> <source>Generated</source> <translation>Oluşturuldu</translation> </message> <message> <location line="+5"/> <location line="+17"/> <source>From</source> <translation>Gönderen</translation> </message> <message> <location line="+1"/> <location line="+22"/> <location line="+58"/> <source>To</source> <translation>Alıcı</translation> </message> <message> <location line="-77"/> <location line="+2"/> <source>own address</source> <translation>kendi adresiniz</translation> </message> <message> <location line="-2"/> <source>label</source> <translation>etiket</translation> </message> <message> <location line="+37"/> <location line="+12"/> <location line="+45"/> <location line="+17"/> <location line="+30"/> <source>Credit</source> <translation>Gider</translation> </message> <message numerus="yes"> <location line="-102"/> <source>matures in %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+2"/> <source>not accepted</source> <translation>kabul edilmedi</translation> </message> <message> <location line="+44"/> <location line="+8"/> <location line="+15"/> <location line="+30"/> <source>Debit</source> <translation>Gelir</translation> </message> <message> <location line="-39"/> <source>Transaction fee</source> <translation>Muamele ücreti</translation> </message> <message> <location line="+16"/> <source>Net amount</source> <translation>Net meblağ</translation> </message> <message> <location line="+6"/> <source>Message</source> <translation>Mesaj</translation> </message> <message> <location line="+2"/> <source>Comment</source> <translation>Yorum</translation> </message> <message> <location line="+2"/> <source>Transaction ID</source> <translation>Muamele tanımlayıcı</translation> </message> <message> <location line="+3"/> <source>Generated coins must mature 510 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, its state will change to &quot;not accepted&quot; and it won&apos;t be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation type="unfinished"/> </message> <message> <location line="+7"/> <source>Debug information</source> <translation>Hata ayıklama verileri</translation> </message> <message> <location line="+8"/> <source>Transaction</source> <translation>Muamele</translation> </message> <message> <location line="+5"/> <source>Inputs</source> <translation>Girdiler</translation> </message> <message> <location line="+23"/> <source>Amount</source> <translation>Meblağ</translation> </message> <message> <location line="+1"/> <source>true</source> <translation>doğru</translation> </message> <message> <location line="+0"/> <source>false</source> <translation>yanlış</translation> </message> <message> <location line="-211"/> <source>, has not been successfully broadcast yet</source> <translation>, henüz başarılı bir şekilde yayınlanmadı</translation> </message> <message> <location line="+35"/> <source>unknown</source> <translation>bilinmiyor</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="+14"/> <source>Transaction details</source> <translation>Muamele detayları</translation> </message> <message> <location line="+6"/> <source>This pane shows a detailed description of the transaction</source> <translation>Bu pano muamelenin ayrıntılı açıklamasını gösterir</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="+226"/> <source>Date</source> <translation>Tarih</translation> </message> <message> <location line="+0"/> <source>Type</source> <translation>Tür</translation> </message> <message> <location line="+0"/> <source>Address</source> <translation>Adres</translation> </message> <message> <location line="+0"/> <source>Amount</source> <translation>Meblağ</translation> </message> <message> <location line="+60"/> <source>Open until %1</source> <translation>%1 değerine dek açık</translation> </message> <message> <location line="+12"/> <source>Confirmed (%1 confirmations)</source> <translation>Doğrulandı (%1 teyit)</translation> </message> <message numerus="yes"> <location line="-15"/> <source>Open for %n more block(s)</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location line="+6"/> <source>Offline</source> <translation>Çevrim dışı</translation> </message> <message> <location line="+3"/> <source>Unconfirmed</source> <translation>Teyit edilmemiş</translation> </message> <message> <location line="+3"/> <source>Confirming (%1 of %2 recommended confirmations)</source> <translation>Teyit ediliyor (tavsiye edilen %2 teyit üzerinden %1 doğrulama)</translation> </message> <message> <location line="+6"/> <source>Conflicted</source> <translation>Çakışma</translation> </message> <message> <location line="+3"/> <source>Immature (%1 confirmations, will be available after %2)</source> <translation>Olgunlaşmamış (%1 teyit, %2 teyit ardından kullanılabilir olacaktır)</translation> </message> <message> <location line="+3"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Bu blok başka hiçbir düğüm tarafından alınmamıştır ve muhtemelen kabul edilmeyecektir!</translation> </message> <message> <location line="+3"/> <source>Generated but not accepted</source> <translation>Oluşturuldu ama kabul edilmedi</translation> </message> <message> <location line="+42"/> <source>Received with</source> <translation>Şununla alındı</translation> </message> <message> <location line="+2"/> <source>Received from</source> <translation>Alındığı kişi</translation> </message> <message> <location line="+3"/> <source>Sent to</source> <translation>Gönderildiği adres</translation> </message> <message> <location line="+2"/> <source>Payment to yourself</source> <translation>Kendinize ödeme</translation> </message> <message> <location line="+2"/> <source>Mined</source> <translation>Madenden çıkarılan</translation> </message> <message> <location line="+38"/> <source>(n/a)</source> <translation>(mevcut değil)</translation> </message> <message> <location line="+190"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Muamele durumu. Doğrulama sayısını görüntülemek için imleci bu alanda tutunuz.</translation> </message> <message> <location line="+2"/> <source>Date and time that the transaction was received.</source> <translation>Muamelenin alındığı tarih ve zaman.</translation> </message> <message> <location line="+2"/> <source>Type of transaction.</source> <translation>Muamele türü.</translation> </message> <message> <location line="+2"/> <source>Destination address of transaction.</source> <translation>Muamelenin alıcı adresi.</translation> </message> <message> <location line="+2"/> <source>Amount removed from or added to balance.</source> <translation>Bakiyeden alınan ya da bakiyeye eklenen meblağ.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="+55"/> <location line="+16"/> <source>All</source> <translation>Hepsi</translation> </message> <message> <location line="-15"/> <source>Today</source> <translation>Bugün</translation> </message> <message> <location line="+1"/> <source>This week</source> <translation>Bu hafta</translation> </message> <message> <location line="+1"/> <source>This month</source> <translation>Bu ay</translation> </message> <message> <location line="+1"/> <source>Last month</source> <translation>Geçen ay</translation> </message> <message> <location line="+1"/> <source>This year</source> <translation>Bu sene</translation> </message> <message> <location line="+1"/> <source>Range...</source> <translation>Aralık...</translation> </message> <message> <location line="+11"/> <source>Received with</source> <translation>Şununla alınan</translation> </message> <message> <location line="+2"/> <source>Sent to</source> <translation>Gönderildiği adres</translation> </message> <message> <location line="+2"/> <source>To yourself</source> <translation>Kendinize</translation> </message> <message> <location line="+1"/> <source>Mined</source> <translation>Oluşturulan</translation> </message> <message> <location line="+1"/> <source>Other</source> <translation>Diğer</translation> </message> <message> <location line="+7"/> <source>Enter address or label to search</source> <translation>Aranacak adres ya da etiket giriniz</translation> </message> <message> <location line="+7"/> <source>Min amount</source> <translation>Asgari meblağ</translation> </message> <message> <location line="+34"/> <source>Copy address</source> <translation>Adresi kopyala</translation> </message> <message> <location line="+1"/> <source>Copy label</source> <translation>Etiketi kopyala</translation> </message> <message> <location line="+1"/> <source>Copy amount</source> <translation>Meblağı kopyala</translation> </message> <message> <location line="+1"/> <source>Copy transaction ID</source> <translation>Muamele kimliğini kopyala</translation> </message> <message> <location line="+1"/> <source>Edit label</source> <translation>Etiketi düzenle</translation> </message> <message> <location line="+1"/> <source>Show transaction details</source> <translation>Muamele detaylarını göster</translation> </message> <message> <location line="+144"/> <source>Export Transaction Data</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Comma separated file (*.csv)</source> <translation>Virgülle ayrılmış değerler dosyası (*.csv)</translation> </message> <message> <location line="+8"/> <source>Confirmed</source> <translation>Doğrulandı</translation> </message> <message> <location line="+1"/> <source>Date</source> <translation>Tarih</translation> </message> <message> <location line="+1"/> <source>Type</source> <translation>Tür</translation> </message> <message> <location line="+1"/> <source>Label</source> <translation>Etiket</translation> </message> <message> <location line="+1"/> <source>Address</source> <translation>Adres</translation> </message> <message> <location line="+1"/> <source>Amount</source> <translation>Meblağ</translation> </message> <message> <location line="+1"/> <source>ID</source> <translation>Tanımlayıcı</translation> </message> <message> <location line="+4"/> <source>Error exporting</source> <translation type="unfinished"/> </message> <message> <location line="+0"/> <source>Could not write to file %1.</source> <translation type="unfinished"/> </message> <message> <location line="+100"/> <source>Range:</source> <translation>Aralık:</translation> </message> <message> <location line="+8"/> <source>to</source> <translation>ilâ</translation> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="+206"/> <source>Sending...</source> <translation type="unfinished"/> </message> </context> <context> <name>virtauniquecoin-core</name> <message> <location filename="../virtauniquecoinstrings.cpp" line="+33"/> <source>virtauniquecoin version</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Usage:</source> <translation>Kullanım:</translation> </message> <message> <location line="+1"/> <source>Send command to -server or virtauniquecoind</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>List commands</source> <translation>Komutları listele</translation> </message> <message> <location line="+1"/> <source>Get help for a command</source> <translation>Bir komut için yardım al</translation> </message> <message> <location line="+2"/> <source>Options:</source> <translation>Seçenekler:</translation> </message> <message> <location line="+2"/> <source>Specify configuration file (default: virtauniquecoin.conf)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Specify pid file (default: virtauniquecoind.pid)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Specify wallet file (within data directory)</source> <translation>Cüzdan dosyası belirtiniz (veri klasörünün içinde)</translation> </message> <message> <location line="-1"/> <source>Specify data directory</source> <translation>Veri dizinini belirt</translation> </message> <message> <location line="+2"/> <source>Set database cache size in megabytes (default: 25)</source> <translation>Veritabanı önbellek boyutunu megabayt olarak belirt (varsayılan: 25)</translation> </message> <message> <location line="+1"/> <source>Set database disk log size in megabytes (default: 100)</source> <translation type="unfinished"/> </message> <message> <location line="+6"/> <source>Listen for connections on &lt;port&gt; (default: 15714 or testnet: 25714)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation>Eşler ile en çok &lt;n&gt; adet bağlantı kur (varsayılan: 125)</translation> </message> <message> <location line="+3"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation>Eş adresleri elde etmek için bir düğüme bağlan ve ardından bağlantıyı kes</translation> </message> <message> <location line="+1"/> <source>Specify your own public address</source> <translation>Kendi genel adresinizi tanımlayın</translation> </message> <message> <location line="+5"/> <source>Bind to given address. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Stake your coins to support network and gain reward (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation>Aksaklık gösteren eşlerle bağlantıyı kesme sınırı (varsayılan: 100)</translation> </message> <message> <location line="+1"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation>Aksaklık gösteren eşlerle yeni bağlantıları engelleme süresi, saniye olarak (varsayılan: 86400)</translation> </message> <message> <location line="-44"/> <source>An error occurred while setting up the RPC port %u for listening on IPv4: %s</source> <translation>IPv4 üzerinde dinlemek için %u numaralı RPC portunun kurulumu sırasında hata meydana geldi: %s</translation> </message> <message> <location line="+51"/> <source>Detach block and address databases. Increases shutdown time (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+109"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source> <translation type="unfinished"/> </message> <message> <location line="-87"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 15715 or testnet: 25715)</source> <translation type="unfinished"/> </message> <message> <location line="-11"/> <source>Accept command line and JSON-RPC commands</source> <translation>Konut satırı ve JSON-RPC komutlarını kabul et</translation> </message> <message> <location line="+101"/> <source>Error: Transaction creation failed </source> <translation type="unfinished"/> </message> <message> <location line="-5"/> <source>Error: Wallet locked, unable to create transaction </source> <translation type="unfinished"/> </message> <message> <location line="-8"/> <source>Importing blockchain data file.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Importing bootstrap blockchain data file.</source> <translation type="unfinished"/> </message> <message> <location line="-88"/> <source>Run in the background as a daemon and accept commands</source> <translation>Arka planda daemon (servis) olarak çalış ve komutları kabul et</translation> </message> <message> <location line="+1"/> <source>Use the test network</source> <translation>Deneme şebekesini kullan</translation> </message> <message> <location line="-24"/> <source>Accept connections from outside (default: 1 if no -proxy or -connect)</source> <translation>Dışarıdan gelen bağlantıları kabul et (varsayılan: -proxy veya -connect yoksa 1)</translation> </message> <message> <location line="-38"/> <source>An error occurred while setting up the RPC port %u for listening on IPv6, falling back to IPv4: %s</source> <translation>IPv6 üzerinde dinlemek için %u numaralı RPC portu kurulurken bir hata meydana geldi, IPv4&apos;e dönülüyor: %s</translation> </message> <message> <location line="+117"/> <source>Error initializing database environment %s! To recover, BACKUP THAT DIRECTORY, then remove everything from it except for wallet.dat.</source> <translation type="unfinished"/> </message> <message> <location line="-20"/> <source>Set maximum size of high-priority/low-fee transactions in bytes (default: 27000)</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Warning: -paytxfee is set very high! This is the transaction fee you will pay if you send a transaction.</source> <translation>Uyarı: -paytxfee çok yüksek bir değere ayarlanmış! Bu, muamele gönderirseniz ödeyeceğiniz muamele ücretidir.</translation> </message> <message> <location line="+61"/> <source>Warning: Please check that your computer&apos;s date and time are correct! If your clock is wrong virtauniquecoin will not work properly.</source> <translation type="unfinished"/> </message> <message> <location line="-31"/> <source>Warning: error reading wallet.dat! All keys read correctly, but transaction data or address book entries might be missing or incorrect.</source> <translation>Uyarı: wallet.dat dosyasının okunması sırasında bir hata meydana geldi! Tüm anahtarlar doğru bir şekilde okundu, ancak muamele verileri ya da adres defteri unsurları hatalı veya eksik olabilir.</translation> </message> <message> <location line="-18"/> <source>Warning: wallet.dat corrupt, data salvaged! Original wallet.dat saved as wallet.{timestamp}.bak in %s; if your balance or transactions are incorrect you should restore from a backup.</source> <translation>Uyarı: wallet.dat bozuk, veriler geri kazanıldı! Özgün wallet.dat, wallet.{zamandamgası}.bak olarak %s klasörüne kaydedildi; bakiyeniz ya da muameleleriniz yanlışsa bir yedeklemeden tekrar yüklemeniz gerekir.</translation> </message> <message> <location line="-30"/> <source>Attempt to recover private keys from a corrupt wallet.dat</source> <translation>Bozuk bir wallet.dat dosyasından özel anahtarları geri kazanmayı dene</translation> </message> <message> <location line="+4"/> <source>Block creation options:</source> <translation>Blok oluşturma seçenekleri:</translation> </message> <message> <location line="-62"/> <source>Connect only to the specified node(s)</source> <translation>Sadece belirtilen düğüme veya düğümlere bağlan</translation> </message> <message> <location line="+4"/> <source>Discover own IP address (default: 1 when listening and no -externalip)</source> <translation>Kendi IP adresini keşfet (varsayılan: dinlenildiğinde ve -externalip yoksa 1)</translation> </message> <message> <location line="+94"/> <source>Failed to listen on any port. Use -listen=0 if you want this.</source> <translation>Herhangi bir portun dinlenmesi başarısız oldu. Bunu istiyorsanız -listen=0 seçeneğini kullanınız.</translation> </message> <message> <location line="-90"/> <source>Find peers using DNS lookup (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Sync checkpoints policy (default: strict)</source> <translation type="unfinished"/> </message> <message> <location line="+83"/> <source>Invalid -tor address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+4"/> <source>Invalid amount for -reservebalance=&lt;amount&gt;</source> <translation type="unfinished"/> </message> <message> <location line="-82"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 5000)</source> <translation>Bağlantı başına azami alım tamponu, &lt;n&gt;*1000 bayt (varsayılan: 5000)</translation> </message> <message> <location line="+1"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 1000)</source> <translation>Bağlantı başına azami yollama tamponu, &lt;n&gt;*1000 bayt (varsayılan: 1000)</translation> </message> <message> <location line="-16"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4, IPv6 or Tor)</source> <translation>Sadece &lt;net&gt; şebekesindeki düğümlere bağlan (IPv4, IPv6 ya da Tor)</translation> </message> <message> <location line="+28"/> <source>Output extra debugging information. Implies all other -debug* options</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Output extra network debugging information</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Prepend debug output with timestamp</source> <translation type="unfinished"/> </message> <message> <location line="+35"/> <source>SSL options: (see the virtauniquecoin Wiki for SSL setup instructions)</source> <translation> SSL seçenekleri: (SSL kurulum bilgisi için virtauniquecoin vikisine bakınız)</translation> </message> <message> <location line="-74"/> <source>Select the version of socks proxy to use (4-5, default: 5)</source> <translation type="unfinished"/> </message> <message> <location line="+41"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation>Trace/hata ayıklama verilerini debug.log dosyası yerine konsola gönder</translation> </message> <message> <location line="+1"/> <source>Send trace/debug info to debugger</source> <translation type="unfinished"/> </message> <message> <location line="+28"/> <source>Set maximum block size in bytes (default: 250000)</source> <translation type="unfinished"/> </message> <message> <location line="-1"/> <source>Set minimum block size in bytes (default: 0)</source> <translation>Bayt olarak asgari blok boyutunu tanımla (varsayılan: 0)</translation> </message> <message> <location line="-29"/> <source>Shrink debug.log file on client startup (default: 1 when no -debug)</source> <translation>İstemci başlatıldığında debug.log dosyasını küçült (varsayılan: -debug bulunmadığında 1)</translation> </message> <message> <location line="-42"/> <source>Specify connection timeout in milliseconds (default: 5000)</source> <translation>Bağlantı zaman aşım süresini milisaniye olarak belirt (varsayılan: 5000)</translation> </message> <message> <location line="+109"/> <source>Unable to sign checkpoint, wrong checkpointkey? </source> <translation type="unfinished"/> </message> <message> <location line="-80"/> <source>Use UPnP to map the listening port (default: 0)</source> <translation>Dinlenecek portu haritalamak için UPnP kullan (varsayılan: 0)</translation> </message> <message> <location line="-1"/> <source>Use UPnP to map the listening port (default: 1 when listening)</source> <translation>Dinlenecek portu haritalamak için UPnP kullan (varsayılan: dinlenildiğinde 1)</translation> </message> <message> <location line="-25"/> <source>Use proxy to reach tor hidden services (default: same as -proxy)</source> <translation type="unfinished"/> </message> <message> <location line="+42"/> <source>Username for JSON-RPC connections</source> <translation>JSON-RPC bağlantıları için kullanıcı ismi</translation> </message> <message> <location line="+47"/> <source>Verifying database integrity...</source> <translation type="unfinished"/> </message> <message> <location line="+57"/> <source>WARNING: syncronized checkpoint violation detected, but skipped!</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Warning: Disk space is low!</source> <translation type="unfinished"/> </message> <message> <location line="-2"/> <source>Warning: This version is obsolete, upgrade required!</source> <translation>Uyarı: Bu sürüm çok eskidir, güncellemeniz gerekir!</translation> </message> <message> <location line="-48"/> <source>wallet.dat corrupt, salvage failed</source> <translation>wallet.dat bozuk, geri kazanım başarısız oldu</translation> </message> <message> <location line="-54"/> <source>Password for JSON-RPC connections</source> <translation>JSON-RPC bağlantıları için parola</translation> </message> <message> <location line="-84"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=virtauniquecoinrpc rpcpassword=%s (you do not need to remember this password) The username and password MUST NOT be the same. If the file does not exist, create it with owner-readable-only file permissions. It is also recommended to set alertnotify so you are notified of problems; for example: alertnotify=echo %%s | mail -s &quot;virtauniquecoin Alert&quot; admin@foo.com </source> <translation type="unfinished"/> </message> <message> <location line="+51"/> <source>Find peers using internet relay chat (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Sync time with other nodes. Disable if time on your system is precise e.g. syncing with NTP (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+15"/> <source>When creating transactions, ignore inputs with value less than this (default: 0.01)</source> <translation type="unfinished"/> </message> <message> <location line="+16"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>Belirtilen İP adresinden JSON-RPC bağlantılarını kabul et</translation> </message> <message> <location line="+1"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Şu &lt;ip&gt; adresinde (varsayılan: 127.0.0.1) çalışan düğüme komut yolla</translation> </message> <message> <location line="+1"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation>En iyi blok değiştiğinde komutu çalıştır (komut için %s parametresi blok hash değeri ile değiştirilecektir)</translation> </message> <message> <location line="+3"/> <source>Execute command when a wallet transaction changes (%s in cmd is replaced by TxID)</source> <translation>Bir cüzdan muamelesi değiştiğinde komutu çalıştır (komuttaki %s TxID ile değiştirilecektir)</translation> </message> <message> <location line="+3"/> <source>Require a confirmations for change (default: 0)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Enforce transaction scripts to use canonical PUSH operators (default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Execute command when a relevant alert is received (%s in cmd is replaced by message)</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Upgrade wallet to latest format</source> <translation>Cüzdanı en yeni biçime güncelle</translation> </message> <message> <location line="+1"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Anahtar alan boyutunu &lt;n&gt; değerine ayarla (varsayılan: 100)</translation> </message> <message> <location line="+1"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Blok zincirini eksik cüzdan muameleleri için tekrar tara</translation> </message> <message> <location line="+2"/> <source>How many blocks to check at startup (default: 2500, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>How thorough the block verification is (0-6, default: 1)</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Imports blocks from external blk000?.dat file</source> <translation type="unfinished"/> </message> <message> <location line="+8"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>JSON-RPC bağlantıları için OpenSSL (https) kullan</translation> </message> <message> <location line="+1"/> <source>Server certificate file (default: server.cert)</source> <translation>Sunucu sertifika dosyası (varsayılan: server.cert)</translation> </message> <message> <location line="+1"/> <source>Server private key (default: server.pem)</source> <translation>Sunucu özel anahtarı (varsayılan: server.pem)</translation> </message> <message> <location line="+1"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation type="unfinished"/> </message> <message> <location line="+53"/> <source>Error: Wallet unlocked for staking only, unable to create transaction.</source> <translation type="unfinished"/> </message> <message> <location line="+18"/> <source>WARNING: Invalid checkpoint found! Displayed transactions may not be correct! You may need to upgrade, or notify developers.</source> <translation type="unfinished"/> </message> <message> <location line="-158"/> <source>This help message</source> <translation>Bu yardım mesajı</translation> </message> <message> <location line="+95"/> <source>Wallet %s resides outside data directory %s.</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot obtain a lock on data directory %s. virtauniquecoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="-98"/> <source>virtauniquecoin</source> <translation type="unfinished"/> </message> <message> <location line="+140"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation>Bu bilgisayarda %s unsuruna bağlanılamadı. (bind şu hatayı iletti: %d, %s)</translation> </message> <message> <location line="-130"/> <source>Connect through socks proxy</source> <translation type="unfinished"/> </message> <message> <location line="+3"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation>-addnode, -seednode ve -connect için DNS aramalarına izin ver</translation> </message> <message> <location line="+122"/> <source>Loading addresses...</source> <translation>Adresler yükleniyor...</translation> </message> <message> <location line="-15"/> <source>Error loading blkindex.dat</source> <translation type="unfinished"/> </message> <message> <location line="+2"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation>wallet.dat dosyasının yüklenmesinde hata oluştu: bozuk cüzdan</translation> </message> <message> <location line="+4"/> <source>Error loading wallet.dat: Wallet requires newer version of virtauniquecoin</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Wallet needed to be rewritten: restart virtauniquecoin to complete</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Error loading wallet.dat</source> <translation>wallet.dat dosyasının yüklenmesinde hata oluştu</translation> </message> <message> <location line="-16"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation>Geçersiz -proxy adresi: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation>-onlynet için bilinmeyen bir şebeke belirtildi: &apos;%s&apos;</translation> </message> <message> <location line="-1"/> <source>Unknown -socks proxy version requested: %i</source> <translation>Bilinmeyen bir -socks vekil sürümü talep edildi: %i</translation> </message> <message> <location line="+4"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation>-bind adresi çözümlenemedi: &apos;%s&apos;</translation> </message> <message> <location line="+2"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation>-externalip adresi çözümlenemedi: &apos;%s&apos;</translation> </message> <message> <location line="-24"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation>-paytxfee=&lt;meblağ&gt; için geçersiz meblağ: &apos;%s&apos;</translation> </message> <message> <location line="+44"/> <source>Error: could not start node</source> <translation type="unfinished"/> </message> <message> <location line="+11"/> <source>Sending...</source> <translation type="unfinished"/> </message> <message> <location line="+5"/> <source>Invalid amount</source> <translation>Geçersiz meblağ</translation> </message> <message> <location line="+1"/> <source>Insufficient funds</source> <translation>Yetersiz bakiye</translation> </message> <message> <location line="-34"/> <source>Loading block index...</source> <translation>Blok indeksi yükleniyor...</translation> </message> <message> <location line="-103"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation>Bağlanılacak düğüm ekle ve bağlantıyı zinde tutmaya çalış</translation> </message> <message> <location line="+122"/> <source>Unable to bind to %s on this computer. virtauniquecoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location line="-97"/> <source>Fee per KB to add to transactions you send</source> <translation type="unfinished"/> </message> <message> <location line="+55"/> <source>Invalid amount for -mininput=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location line="+25"/> <source>Loading wallet...</source> <translation>Cüzdan yükleniyor...</translation> </message> <message> <location line="+8"/> <source>Cannot downgrade wallet</source> <translation>Cüzdan eski biçime geri alınamaz</translation> </message> <message> <location line="+1"/> <source>Cannot initialize keypool</source> <translation type="unfinished"/> </message> <message> <location line="+1"/> <source>Cannot write default address</source> <translation>Varsayılan adres yazılamadı</translation> </message> <message> <location line="+1"/> <source>Rescanning...</source> <translation>Yeniden tarama...</translation> </message> <message> <location line="+5"/> <source>Done loading</source> <translation>Yükleme tamamlandı</translation> </message> <message> <location line="-167"/> <source>To use the %s option</source> <translation>%s seçeneğini kullanmak için</translation> </message> <message> <location line="+14"/> <source>Error</source> <translation>Hata</translation> </message> <message> <location line="+6"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation>rpcpassword=&lt;parola&gt; şu yapılandırma dosyasında belirtilmelidir: %s Dosya mevcut değilse, sadece sahibi için okumayla sınırlı izin ile oluşturunuz.</translation> </message> </context> </TS>
virtauniquecoin/virtauniquecoin-master
src/qt/locale/virtauniquecoin_tr.ts
TypeScript
mit
124,772
local tier = require"tier" local standard = tier.standard local primitive = tier.primitive local PhoneType = { [0] = "MOBILE", MOBILE = 0, [1] = "HOME", HOME = 1, [2] = "WORK" WORK = 2, } local PhoneNumber = standard.tuple { { key = "number", mapping = primitive.string }, { key = "type", mapping = standard.optional(primitive.byte) } } local Person = standard.tuple { { key = "name", mapping = primitive.string }, { key = "id" , mapping = primitive.int32 }, { key = "email", mapping = standard.optional(primitive.string) }, { key = "phone", mapping = standard.list(PhoneNumber)} } local AddressBook = { { key = "person", mapping = standard.list(Person) } } local function prompt_for_address() local in_ = io.stdin local out = io.stdout local person = { } out.write("Enter a person ID number: ") person.id = tonumber(in_.readline()) out.write("Enter name: ") person.name = in_.readline() out.write("Enter email address (blank for none): ") local mail = in_.readline() if #mail > 0 then person.email = mail end person.phone = { } while true do out.write("Enter a phone number (or blank to finish): ") local number = in_.readline() if #number == 0 then break; end out.write("Is this a mobile, home or work phone? ") local type = in_.readline() local type_id = PhoneType[type:upper()] if type_id == nil then out.write("Unkown phone type. Using default.\n") type_id = PhoneType.HOME end end return person end local function load_address_book(file) local input = io.open(file, "rb") local res ++ if input then res = tier.decode(input, AddressBook) input:close() else --Fresh address book res = { phone = { } } end return res end local file_name = "ProtoPhoneExample.dat" local address_book = load_address_book(file_name) if #address_book.phone > 0 then print("Loaded the phone book from disc. ") print("It currently contains " .. #address_book.phone .. " number of diffren people.") else print("No address book on disk creating a new one.") end local person = prompt_for_address() table.insert(address_book.phone, person) local output = io.open(file_name, "wb") tier.encode(output, address_book, AddressBook)
TheFlyingFiddle/TIER
examples/proto_phone_book.lua
Lua
mit
2,246
#!/usr/bin/env python ''' Retrospectively updates older FFV1/DV packages in order to meet our current packaging requirements. This should allow accession.py and makepbcore.py to run as expected. This script should work on files created by: makeffv1.py dvsip.py loopline.py ''' import argparse import sys import shutil import os import time import ififuncs def parse_args(args_): ''' Parse command line arguments. ''' parser = argparse.ArgumentParser( description='Retrospectively updates older FFV1/DV packages in order to' 'meet our current packaging requirements. This should allow' ' accession.py and makepbcore.py to run as expected.' ' Written by Kieran O\'Leary.' ) parser.add_argument( 'input', help='Input directory' ) parser.add_argument( '-start_number', help='Enter the Object Entry number for the first package. The script will increment by one for each subsequent package.' ) parser.add_argument( '-technical', help='Path to technical/PBCore CSV.' ) parser.add_argument( '-filmographic', help='Path to Filmographic CSV. Must contain reference numbers.' ) parsed_args = parser.parse_args(args_) return parsed_args def get_numbers(args): ''' Figure out the first OE number and how to increment per package. ''' if args.start_number: if args.start_number[:2] != 'oe': print 'First two characters must be \'oe\' and last four characters must be four digits' object_entry = ififuncs.get_object_entry() elif len(args.start_number[2:]) not in range(4, 6): print 'First two characters must be \'oe\' and last four characters must be four digits' object_entry = ififuncs.get_object_entry() elif not args.start_number[2:].isdigit(): object_entry = ififuncs.get_object_entry() print 'First two characters must be \'oe\' and last four characters must be four digits' else: object_entry = args.start_number else: object_entry = ififuncs.get_object_entry() object_entry_digits = int(object_entry[2:]) new_object_entry = 'oe' + str(object_entry_digits) return new_object_entry def update_manifest(manifest, old_oe, uuid): ''' Updates the existing checksum manifest by replacing OE numbers with UUIDs where appropriate. Anything logfiles or metadata relating to the original v210.mov will be left alone. ''' updated_lines = [] with open(manifest, 'r') as file_object: checksums = file_object.readlines() for line in checksums: if old_oe in line: if 'source' in line: # if source (v210) logs or metadata exist, leave filename # alone, just change the path. line = line[:40].replace(old_oe, uuid) + line[40:] elif '.mov_log.log' in line: line = line.replace(old_oe, uuid).replace('.mov_log', '_sip_log') else: line = line.replace(old_oe, uuid) updated_lines.append(line) return updated_lines def rename_files(new_uuid_path, old_oe, uuid, manifest, logname): ''' Renames files from OE numbers to UUID where appropriate. ''' for root, _, filenames in os.walk(new_uuid_path): for filename in filenames: if old_oe in filename: if 'source' not in filename: if '.mov_log.log' in filename: new_filename = os.path.join(root, filename).replace('.mov_log', '_sip_log').replace(old_oe, uuid) os.rename(os.path.join(root, filename), new_filename) logname = new_filename ififuncs.generate_log( logname, 'EVENT = eventType=Filename change,' ' eventOutcomeDetailNote=%s changed to %s' % (os.path.join(root, filename), new_filename) ) else: new_filename = os.path.join(root, filename).replace(old_oe, uuid) os.rename(os.path.join(root, filename), new_filename) ififuncs.generate_log( logname, 'EVENT = eventType=Filename change,' ' eventOutcomeDetailNote=%s changed to %s' % (os.path.join(root, filename), new_filename) ) return logname def move_files(root, new_object_entry, old_oe_path, old_uuid_path, uuid): ''' Moves files into their new folder paths. ''' new_oe_path = os.path.join( os.path.dirname(root), new_object_entry ) os.makedirs(new_oe_path) os.rename(old_oe_path, old_uuid_path) new_uuid_path = os.path.join(new_oe_path, uuid) shutil.move(old_uuid_path, new_oe_path) return new_oe_path, new_uuid_path def make_register(): ''' This sends a placeholder accessions register to the desktop logs directory. This should get rid of some of the more painful, repetitive identifier matching. ''' desktop_logs_dir = ififuncs.make_desktop_logs_dir() register = os.path.join( desktop_logs_dir, 'oe_register_' + time.strftime("%Y-%m-%dT%H_%M_%S.csv") ) ififuncs.create_csv(register, ( 'OE No.', 'Date Received', 'Quantity', 'Format', 'Description', 'Contact Name', 'Type of Acquisition', 'Accession Number', 'Additional Information', 'Habitat', 'Vinegar No.' )) return register def get_date_modified(directory): ''' Returns the date modified of a file in DD/MM/YYYY, which is the format used for the Object Entry register. yes, we should be using ISO8601 but we'll fix this later. ''' file_list = ififuncs.recursive_file_list(directory) # This will blindly use the first video file it encounters. # This is fine for this project as all the objects folders contain single files. extension = os.path.splitext(file_list[0])[1] return time.strftime('%m/%d/%Y', time.gmtime(os.path.getmtime(file_list[0]))), extension def main(args_): ''' Retrospectively updates older FFV1/DV packages in order to meet our current packaging requirements. This should allow accession.py and makepbcore.py to run as expected. This script should work on files created by: makeffv1.py dvsip.py loopline.py ''' args = parse_args(args_) user = ififuncs.get_user() new_object_entry = get_numbers(args) filmographic_csv = args.filmographic technical_csv = args.technical filmographic_oe_list = [] filmo_csv_extraction = ififuncs.extract_metadata(filmographic_csv) tech_csv_extraction = ififuncs.extract_metadata(technical_csv) register = make_register() for line_item in filmo_csv_extraction[0]: dictionary = {} oe_number = line_item['Object Entry'].lower() dictionary['title'] = line_item['Title'] if dictionary['title'] == '': dictionary['title'] = '%s - %s' % (line_item['TitleSeries'], line_item['EpisodeNo']) dictionary['uppercase_dashed_oe'] = oe_number.upper() for tech_record in tech_csv_extraction[0]: if tech_record['Reference Number'] == dictionary['uppercase_dashed_oe']: dictionary['source_accession_number'] = tech_record['Accession Number'] dictionary['filmographic_reference_number'] = tech_record['new_ref'] # this transforms OE-#### to oe#### dictionary['old_oe'] = oe_number[:2] + oe_number[3:] filmographic_oe_list.append(dictionary) for oe_package in filmographic_oe_list: for root, _, filenames in os.walk(args.input): if os.path.basename(root) == oe_package['old_oe']: old_oe_path = root old_oe = os.path.basename(root) log_dir = os.path.join(root, 'logs') for files in os.listdir(log_dir): if '.mov_log.log' in files: log = os.path.join(log_dir, files) manifest = os.path.join( os.path.dirname(root), old_oe + '_manifest.md5' ) uuid = ififuncs.create_uuid() uuid_event = ( 'EVENT = eventType=Identifier assignement,' ' eventIdentifierType=UUID, value=%s, module=uuid.uuid4' ) % uuid ififuncs.generate_log( log, 'EVENT = loopline_repackage.py started' ) ififuncs.generate_log( log, 'eventDetail=loopline_repackage.py %s' % ififuncs.get_script_version('loopline_repackage.py') ) ififuncs.generate_log( log, 'Command line arguments: %s' % args ) ififuncs.generate_log( log, 'EVENT = agentName=%s' % user ) ififuncs.generate_log( log, uuid_event ) ififuncs.generate_log( log, 'EVENT = eventType=Identifier assignement,' ' eventIdentifierType=object entry, value=%s' % new_object_entry ) ififuncs.generate_log( log, 'EVENT = eventType=Identifier assignement,' ' eventIdentifierType=Filmographic reference number , value=%s' % oe_package['filmographic_reference_number'] ) oe_package['new_object_entry'] = new_object_entry print('Transforming %s into %s' % (oe_package['old_oe'], oe_package['new_object_entry'])) ififuncs.generate_log( log, 'Relationship, derivation, has source=%s' % oe_package['source_accession_number'] ) old_uuid_path = os.path.join(os.path.dirname(root), uuid) new_oe_path, new_uuid_path = move_files( root, new_object_entry, old_oe_path, old_uuid_path, uuid ) updated_lines = update_manifest(manifest, old_oe, uuid) new_manifest = os.path.join(new_oe_path, uuid) + '_manifest.md5' shutil.move(manifest, new_manifest) with open(new_manifest, 'w') as fo: for lines in updated_lines: fo.write(lines) new_logs_path = os.path.join(new_uuid_path, 'logs') for files in os.listdir(new_logs_path): if '.mov_log.log' in files: log = os.path.join(new_logs_path, files) logname = rename_files(new_uuid_path, old_oe, uuid, new_manifest, log) date_modified, extension = get_date_modified(new_uuid_path) # This normally would be bad practise, but this project only has two formats. MOV/DV and FFv1/MKV if extension == '.mkv': av_format = 'FFV1/PCM/Matroska' elif extension == '.mov': av_format = 'DV/PCM/QuickTime' provenance_string = 'Reproduction of %s' % oe_package['source_accession_number'] ififuncs.append_csv(register, (oe_package['new_object_entry'].upper()[:2] + '-' + oe_package['new_object_entry'][2:],date_modified, '1',av_format,oe_package['title'],'contact_name','Reproduction','', provenance_string, '', '')) ififuncs.generate_log( logname, 'EVENT = loopline_repackage.py finished' ) ififuncs.checksum_replace(new_manifest, logname, 'md5') oe_digits = int(os.path.basename(new_oe_path)[2:]) + 1 new_object_entry = 'oe' + str(oe_digits) if __name__ == '__main__': main(sys.argv[1:])
kieranjol/IFIscripts
loopline_repackage.py
Python
mit
12,437
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-04-05 14:04 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('story', '0037_auto_20170405_1401'), ] operations = [ migrations.AlterField( model_name='story', name='language', field=models.CharField(choices=[('English', 'English')], max_length=10, verbose_name='Language'), ), ]
OrhanOdabasi/weirdbutreal
story/migrations/0038_auto_20170405_1404.py
Python
mit
509
package datastructs // Deque array implemented linked list type Deque struct { array []interface{} left, right int fixSize int } func NewDeque(capacity int) *Deque { d := new(Deque) if capacity <= 0 { panic("deque must have capacity") } d.array = make([]interface{}, capacity) d.fixSize = capacity return d } func (q *Deque) EnqueueLeft(x interface{}) { if q.left == q.right && q.left != 0 { panic("overflow") } q.array[q.left] = x q.left = q.left - 1 if q.left == -1 { q.left = q.fixSize - 1 } } func (q *Deque) EnqueueRight(x interface{}) { if q.right == q.fixSize { panic("overflow") } q.array[q.right] = x q.right = q.right + 1 } func (q *Deque) DequeueLeft() interface{} { if q.left == q.fixSize { panic("overflow") } q.left = q.left + 1 if q.left == q.fixSize { q.left = 0 } x := q.array[q.left] return x } func (q *Deque) DequeueRight() interface{} { if q.right == q.left { panic("underflow") } q.right = q.right - 1 if q.right == -1 { q.right = q.fixSize - 1 } x := q.array[q.right] return x }
stoneflyop1/intro2algorithms
datastructs/deque.go
GO
mit
1,068
# AngularJS AngularJS Testing
ThomasBird1984/AngularJS
README.md
Markdown
mit
30
 // Currently unused, but don't want to delete it since // it might be useful later. //SmartRoutes.ComboBoxViewModel = function(data) { // // Private: // var comboboxChoices = ko.observableArray(); // var comboboxSelection = ko.observable(); // (function Init() { // if (data && Array.isArray(data)) { // $.each(data, function(key, value) { // comboboxChoices.push(value); // }); // } // })(); // return { // // Public: // selectedItem: comboboxSelection, // choices: comboboxChoices // }; //};
SmartRoutes/SmartRoutes
SmartRoutes/Scripts/ViewModels/ComboBoxViewModel.js
JavaScript
mit
595
const TEXT_NODE = 3; import { clearSelection } from 'content-kit-editor/utils/selection-utils'; import { walkDOMUntil } from 'content-kit-editor/utils/dom-utils'; import KEY_CODES from 'content-kit-editor/utils/keycodes'; import isPhantom from './is-phantom'; function selectRange(startNode, startOffset, endNode, endOffset) { clearSelection(); const range = document.createRange(); range.setStart(startNode, startOffset); range.setEnd(endNode, endOffset); const selection = window.getSelection(); selection.addRange(range); } function selectText(startText, startContainingElement, endText=startText, endContainingElement=startContainingElement) { const findTextNode = (text) => { return (el) => el.nodeType === TEXT_NODE && el.textContent.indexOf(text) !== -1; }; const startTextNode = walkDOMUntil(startContainingElement, findTextNode(startText)); const endTextNode = walkDOMUntil(endContainingElement, findTextNode(endText)); if (!startTextNode) { throw new Error(`Could not find a starting textNode containing "${startText}"`); } if (!endTextNode) { throw new Error(`Could not find an ending textNode containing "${endText}"`); } const startOffset = startTextNode.textContent.indexOf(startText), endOffset = endTextNode.textContent.indexOf(endText) + endText.length; selectRange(startTextNode, startOffset, endTextNode, endOffset); } function moveCursorTo(node, offset=0, endNode=node, endOffset=offset) { selectRange(node, offset, endNode, endOffset); } function triggerEvent(node, eventType) { if (!node) { throw new Error(`Attempted to trigger event "${eventType}" on undefined node`); } let clickEvent = document.createEvent('MouseEvents'); clickEvent.initEvent(eventType, true, true); return node.dispatchEvent(clickEvent); } function createKeyEvent(eventType, keyCode) { let oEvent = document.createEvent('KeyboardEvent'); if (oEvent.initKeyboardEvent) { oEvent.initKeyboardEvent(eventType, true, true, window, 0, 0, 0, 0, 0, keyCode); } else if (oEvent.initKeyEvent) { oEvent.initKeyEvent(eventType, true, true, window, 0, 0, 0, 0, 0, keyCode); } // Hack for Chrome to force keyCode/which value try { Object.defineProperty(oEvent, 'keyCode', {get: function() { return keyCode; }}); Object.defineProperty(oEvent, 'which', {get: function() { return keyCode; }}); } catch(e) { // FIXME // PhantomJS/webkit will throw an error "ERROR: Attempting to change access mechanism for an unconfigurable property" // see https://bugs.webkit.org/show_bug.cgi?id=36423 } if (oEvent.keyCode !== keyCode || oEvent.which !== keyCode) { throw new Error(`Failed to create key event with keyCode ${keyCode}. \`keyCode\`: ${oEvent.keyCode}, \`which\`: ${oEvent.which}`); } return oEvent; } function triggerKeyEvent(node, eventType, keyCode=KEY_CODES.ENTER) { let oEvent = createKeyEvent(eventType, keyCode); return node.dispatchEvent(oEvent); } function _buildDOM(tagName, attributes={}, children=[]) { const el = document.createElement(tagName); Object.keys(attributes).forEach(k => el.setAttribute(k, attributes[k])); children.forEach(child => el.appendChild(child)); return el; } _buildDOM.text = (string) => { return document.createTextNode(string); }; /** * Usage: * makeDOM(t => * t('div', attributes={}, children=[ * t('b', {}, [ * t.text('I am a bold text node') * ]) * ]) * ); */ function makeDOM(tree) { return tree(_buildDOM); } function getSelectedText() { const selection = window.getSelection(); if (selection.rangeCount === 0) { return null; } else if (selection.rangeCount > 1) { // FIXME? throw new Error('Unable to get selected text for multiple ranges'); } else { const { anchorNode, anchorOffset, focusNode, focusOffset } = selection; if (anchorNode !== focusNode) { // FIXME throw new Error('Unable to get selected text when multiple nodes are selected'); } else { return anchorNode.textContent.slice(anchorOffset, focusOffset); } } } // returns the node and the offset that the cursor is on function getCursorPosition() { const selection = window.getSelection(); return { node: selection.anchorNode, offset: selection.anchorOffset }; } function triggerDelete(editor) { if (isPhantom()) { // simulate deletion for phantomjs let event = { preventDefault() {} }; editor.handleDeletion(event); } else { triggerKeyEvent(document, 'keydown', KEY_CODES.DELETE); } } function triggerEnter(editor) { if (isPhantom()) { // simulate event when testing with phantom let event = { preventDefault() {} }; editor.handleNewline(event); } else { triggerKeyEvent(document, 'keydown', KEY_CODES.ENTER); } } function insertText(string) { document.execCommand('insertText', false, string); } const DOMHelper = { moveCursorTo, selectText, clearSelection, triggerEvent, triggerKeyEvent, makeDOM, KEY_CODES, getCursorPosition, getSelectedText, triggerDelete, triggerEnter, insertText }; export { triggerEvent }; export default DOMHelper;
toddself/content-kit-editor
tests/helpers/dom.js
JavaScript
mit
5,235
class Fhir::CodeSystem attr_reader :symbolic, :display, :oid, :uris DECLARED_SYSTEMS = [{ symbolic: :unii, display: 'UNII', oid: '2.16.840.1.113883.4.9' }, { symbolic: :snomed, display: 'SNOMED', oid: '2.16.840.1.113883.6.96', uri: 'http://snomed.info/id' }, { symbolic: :loinc, display: 'LOINC', oid: '2.16.840.1.113883.6.1', uri: 'http://loinc.org' }, { symbolic: :rxnorm, display: 'RxNorm', oid: '2.16.840.1.113883.6.88' }, { symbolic: :ucum, display: 'The Unified Code for Units of Measure', oid: '2.16.840.1.113883.6.8', uri: 'http://unitsofmeasure.org' }, { symbolic: :ndc, display: 'NDC', oid: '2.16.840.1.113883.6.69' }, { symbolic: :ndfrt, display: 'NDFRT', oid: '2.16.840.1.113883.3.26.1.5' }, { symbolic: :fdb_hic, display: 'HIC_SEQN', oid: '2.16.840.1.113883.3.84' }, { symbolic: :fdb_med_name, display: 'MED_NAME_ID', oid: '2.16.840.1.113883.3.567.12.2' }, { symbolic: :fdb_allergen_group, display: 'DAM_ALRGN_GRP', oid: '2.16.840.1.113883.4.296' }, { symbolic: :fhir_administrative_gender, display: 'Gender', uri: 'http://hl7.org/fhir/v3/AdministrativeGender' }, { symbolic: :iso639_2, display: 'ISO639-2 Language Names', uri: 'http://www.loc.gov/standards/iso639-2' }, { symbolic: :race, display: 'CDC Race code', oid: '2.16.840.1.113883.6.238' }, { symbolic: :null_flavor, display: 'HL7 v3 NULL Flavor', oid: '2.16.840.1.113883.5.1008', uri: 'http://hl7.org/fhir/v3/NullFlavor' }, { symbolic: :fhir_condition_category, display: 'Fhir Condition Category', uri: 'http://hl7.org/fhir/vs/condition-category' }, { symbolic: :cpt, display: 'Current Procedural Terminology', uri: 'http://ama-assn.org/go/cpt' }, # for tests { symbolic: :rgb, display: 'RGB', oid: 'RGB' }, { symbolic: :rgba, display: 'RGBA', oid: 'RGBA' }] def initialize(attributes) @symbolic = attributes.fetch(:symbolic) @display = attributes.fetch(:display) @oid = attributes[:oid] @uris = [attributes[:uri]] @uris << "urn:oid:#{@oid}" if @oid.present? @uris = @uris.flatten.uniq.compact end def uri uris.first end def self.all @code_systems ||= DECLARED_SYSTEMS.map do |cs| self.new(cs) end end def self.find_by_uri(uri) all.find {|cs| cs.uri == uri} end def self.[](symbolic) all.find { |cs| cs.symbolic == symbolic } end def self.find(oid_or_symbolic_or_uri) key = oid_or_symbolic_or_uri all.find { |cs| cs.symbolic == key || cs.oid == key || cs.uris.include?(key) } end end
niquola/fhir
lib/fhir/handmade/code_system.rb
Ruby
mit
2,903
/* * Copyright (c) 2015, enlo * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ package info.naiv.lab.java.jmt.infrastructure; import org.junit.After; import org.junit.Before; /** * * @author enlo */ public class SimpleServiceContainerTest extends AbstractServiceContainerTest { /** * */ public SimpleServiceContainerTest() { } /** * */ @Before @Override public void setUp() { } /** * */ @After @Override public void tearDown() { } /** * * @return */ @Override protected SimpleServiceContainer createContainer() { return new SimpleServiceContainer(); } }
enlo/jmt-projects
jmt-core/src/test/java/info/naiv/lab/java/jmt/infrastructure/SimpleServiceContainerTest.java
Java
mit
1,965
DROP TYPE IF EXISTS core.view_field_origin CASCADE; DROP VIEW IF EXISTS core.widget_rule_calc CASCADE;
eulogix/cool-core-bundle
Bundle/CoreBundle/Resources/databases/core/sql/pre_sync/500_drop_stuff.sql
SQL
mit
103
CREATE TABLE IF NOT EXISTS `users_oauth` ( `uo_usr_id` int(11) unsigned NOT NULL COMMENT 'The user ID from your users table', `oauth_provider` varchar(10) NOT NULL COMMENT 'The provider: Twitter, Tumblr, LinkedIn, etc.', `oauth_provider_usr_id` varchar(99) NOT NULL COMMENT 'The user\'s ID from the provider', `oauth_username` varchar(99) default NULL COMMENT 'The user\'s username from the provider', `oauth_token` varchar(99) NOT NULL, `oauth_secret` varchar(99) NOT NULL, PRIMARY KEY (`uo_usr_id`,`oauth_provider`), KEY `uo_usersid` (`oauth_provider_usr_id`), KEY `oauth_username` (`oauth_username`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
timgavin/tumblroauth
database.sql
SQL
mit
659
local mod = RegisterMod("AlphaAPI: Item Callbacks", 1) local alpha_mod local function killPlayer() local player = AlphaAPI.GAME_STATE.PLAYERS[1] player:Die() end local function updateSoyMilk() local player = AlphaAPI.GAME_STATE.PLAYERS[1] player:AddBlackHearts(1) end local function addHealth() local player = AlphaAPI.GAME_STATE.PLAYERS[1] player:AddMaxHearts(2) player:AddHearts(2) end local function cancerCache(player, flag) if flag == CacheFlag.CACHE_DAMAGE then player.Damage = player.Damage + player.MaxFireDelay end end local function start() alpha_mod = AlphaAPI.registerMod(mod) local soy_milk = alpha_mod:registerItem("Soy Milk") alpha_mod:addCallback(AlphaAPI.Callbacks.ITEM_PICKUP, killPlayer, soy_milk, true) alpha_mod:addCallback(AlphaAPI.Callbacks.ITEM_UPDATE, updateSoyMilk, soy_milk) local moms_knife = alpha_mod:registerItem("Mom's Knife") alpha_mod:addCallback(AlphaAPI.Callbacks.ITEM_PICKUP, addHealth, moms_knife) alpha_mod:addCallback(AlphaAPI.Callbacks.ITEM_REMOVE, killPlayer, moms_knife) local cancer = alpha_mod:registerTrinket("Cancer", nil, {CacheFlag.CACHE_DAMAGE}) cancer:addCallback(AlphaAPI.Callbacks.TRINKET_CACHE, cancerCache) end -- 'start' is the name of the function -- that fires when AlphaAPI is loaded local START_FUNC = start -------------------------------------- if AlphaAPI then START_FUNC() else if not __alphaInit then __alphaInit={} end __alphaInit [#__alphaInit+1]=START_FUNC end --------------------------------------
FacemanFoothand/alphaapi
examples/callbacks/items.lua
Lua
mit
1,558
using System.Collections; using ForumSystem.Data.Common.Repository; using ForumSystem.Data.Models; using ForumSystem.Web.Areas.Administration.ViewModels.Posts; using Kendo.Mvc.UI; using Kendo.Mvc.Extensions; using System; using System.Linq; using System.Web.Mvc; using AutoMapper.QueryableExtensions; namespace ForumSystem.Web.Areas.Administration.Controllers { public class PostsController : KendoGridAdministrationController { public PostsController(IDeletableEntityRepository<Post> posts) : base(posts) { } protected override IEnumerable GetData() { return this.posts .All() .Project() .To<PostAdminViewModel>(); } protected override T GetById<T>(object id) { return this.posts.GetById(id) as T; } public ActionResult Index() { return View(); } public ActionResult Posts_Read([DataSourceRequest] DataSourceRequest request) { var posts = this.GetData(); return Json(posts.ToDataSourceResult(request)); } } }
Dr4g0/TelerikForumSystem
Source/Web/ForumSystem.Web/Areas/Administration/Controllers/PostsController.cs
C#
mit
1,157
// Copyright (c) 2010-2013 SharpDX - Alexandre Mutel // // 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. using System; using System.ComponentModel; using System.Runtime.InteropServices; using SharpDX.Serialization; namespace SharpDX { /// <summary> /// Defines a four component vector, using half precision floating point coordinates. /// </summary> [StructLayout(LayoutKind.Sequential)] #if !W8CORE [Serializable] [TypeConverter(typeof(SharpDX.Design.Half4Converter))] #endif [DynamicSerializer("TKH4")] public struct Half4 : IEquatable<Half4>, IDataSerializable { /// <summary> /// Gets or sets the X component of the vector. /// </summary> /// <value>The X component of the vector.</value> public Half X; /// <summary> /// Gets or sets the Y component of the vector. /// </summary> /// <value>The Y component of the vector.</value> public Half Y; /// <summary> /// Gets or sets the Z component of the vector. /// </summary> /// <value>The Z component of the vector.</value> public Half Z; /// <summary> /// Gets or sets the W component of the vector. /// </summary> /// <value>The W component of the vector.</value> public Half W; /// <summary> /// Initializes a new instance of the <see cref="T:SharpDX.Half4" /> structure. /// </summary> /// <param name="x">The X component.</param> /// <param name="y">The Y component.</param> /// <param name="z">The Z component.</param> /// <param name="w">The W component.</param> public Half4(Half x, Half y, Half z, Half w) { this.X = x; this.Y = y; this.Z = z; this.W = w; } /// <summary> /// Initializes a new instance of the <see cref="T:SharpDX.Half4" /> structure. /// </summary> /// <param name="value">The value to set for the X, Y, Z, and W components.</param> public Half4(Half value) { this.X = value; this.Y = value; this.Z = value; this.W = value; } /// <summary> /// Performs an implicit conversion from <see cref="SharpDX.Vector4"/> to <see cref="SharpDX.Half4"/>. /// </summary> /// <param name="value">The value.</param> /// <returns>The result of the conversion.</returns> public static implicit operator Half4(Vector4 value) { return new Half4(value.X, value.Y, value.Z, value.W); } /// <summary> /// Performs an implicit conversion from <see cref="SharpDX.Half4"/> to <see cref="SharpDX.Vector4"/>. /// </summary> /// <param name="value">The value.</param> /// <returns>The result of the conversion.</returns> public static implicit operator Vector4(Half4 value) { return new Vector4(value.X, value.Y, value.Z, value.W); } /// <summary> /// Performs an explicit conversion from <see cref="SharpDX.Vector3"/> to <see cref="SharpDX.Half4"/>. /// </summary> /// <param name="value">The value.</param> /// <returns>The result of the conversion.</returns> public static explicit operator Half4(Vector3 value) { return new Half4(value.X, value.Y, value.Z, 0.0f); } /// <summary> /// Performs an explicit conversion from <see cref="SharpDX.Half4"/> to <see cref="SharpDX.Vector3"/>. /// </summary> /// <param name="value">The value.</param> /// <returns>The result of the conversion.</returns> public static explicit operator Vector3(Half4 value) { return new Vector3(value.X, value.Y, value.Z); } /// <summary> /// Performs an explicit conversion from <see cref="SharpDX.Vector2"/> to <see cref="SharpDX.Half4"/>. /// </summary> /// <param name="value">The value.</param> /// <returns>The result of the conversion.</returns> public static explicit operator Half4(Vector2 value) { return new Half4(value.X, value.Y, 0.0f, 0.0f); } /// <summary> /// Performs an explicit conversion from <see cref="SharpDX.Half4"/> to <see cref="SharpDX.Vector2"/>. /// </summary> /// <param name="value">The value.</param> /// <returns>The result of the conversion.</returns> public static explicit operator Vector2(Half4 value) { return new Vector2(value.X, value.Y); } /// <summary> /// Tests for equality between two objects. /// </summary> /// <param name="left">The first value to compare.</param> /// <param name="right">The second value to compare.</param> /// <returns> /// <c>true</c> if <paramref name="left" /> has the same value as <paramref name="right" />; otherwise, <c>false</c>.</returns> public static bool operator ==(Half4 left, Half4 right) { return Equals(ref left, ref right); } /// <summary> /// Tests for inequality between two objects. /// </summary> /// <param name="left">The first value to compare.</param> /// <param name="right">The second value to compare.</param> /// <returns> /// <c>true</c> if <paramref name="left" /> has a different value than <paramref name="right" />; otherwise, <c>false</c>.</returns> public static bool operator !=(Half4 left, Half4 right) { return !Equals(ref left, ref right); } /// <summary> /// Returns the hash code for this instance. /// </summary> /// <returns>A 32-bit signed integer hash code.</returns> public override int GetHashCode() { int num2 = this.W.GetHashCode() + this.Z.GetHashCode(); int num = this.Y.GetHashCode() + num2; return (this.X.GetHashCode() + num); } /// <inheritdoc/> void IDataSerializable.Serialize(BinarySerializer serializer) { // Write optimized version without using Serialize methods if (serializer.Mode == SerializerMode.Write) { serializer.Writer.Write(X.RawValue); serializer.Writer.Write(Y.RawValue); serializer.Writer.Write(Z.RawValue); serializer.Writer.Write(W.RawValue); } else { X.RawValue = serializer.Reader.ReadUInt16(); Y.RawValue = serializer.Reader.ReadUInt16(); Z.RawValue = serializer.Reader.ReadUInt16(); W.RawValue = serializer.Reader.ReadUInt16(); } } /// <summary> /// Determines whether the specified object instances are considered equal. /// </summary> /// <param name="value1" /> /// <param name="value2" /> /// <returns> /// <c>true</c> if <paramref name="value1" /> is the same instance as <paramref name="value2" /> or /// if both are <c>null</c> references or if <c>value1.Equals(value2)</c> returns <c>true</c>; otherwise, <c>false</c>.</returns> public static bool Equals(ref Half4 value1, ref Half4 value2) { return (((value1.X == value2.X) && (value1.Y == value2.Y)) && ((value1.Z == value2.Z) && (value1.W == value2.W))); } /// <summary> /// Returns a value that indicates whether the current instance is equal to the specified object. /// </summary> /// <param name="other">Object to make the comparison with.</param> /// <returns> /// <c>true</c> if the current instance is equal to the specified object; <c>false</c> otherwise.</returns> public bool Equals(Half4 other) { return (((this.X == other.X) && (this.Y == other.Y)) && ((this.Z == other.Z) && (this.W == other.W))); } /// <summary> /// Returns a value that indicates whether the current instance is equal to a specified object. /// </summary> /// <param name="obj">Object to make the comparison with.</param> /// <returns> /// <c>true</c> if the current instance is equal to the specified object; <c>false</c> otherwise.</returns> public override bool Equals(object obj) { if (obj == null) { return false; } if (!ReferenceEquals(obj.GetType(), typeof(Half4))) { return false; } return this.Equals((Half4)obj); } } }
shoelzer/SharpDX
Source/SharpDX/Half4.cs
C#
mit
10,134
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_environment_w32spawnl_53d.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-53d.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: environment Read input from an environment variable * GoodSource: Fixed string * Sink: w32spawnl * BadSink : execute command with spawnl * Flow Variant: 53 Data flow: data passed as an argument from one function through two others to a fourth; all four functions are in different source files * * */ #include "std_testcase.h" #include <wchar.h> #ifdef _WIN32 #define COMMAND_INT_PATH "%WINDIR%\\system32\\cmd.exe" #define COMMAND_INT "cmd.exe" #define COMMAND_ARG1 "/c" #define COMMAND_ARG2 "dir" #define COMMAND_ARG3 data #else /* NOT _WIN32 */ #include <unistd.h> #define COMMAND_INT_PATH "/bin/sh" #define COMMAND_INT "sh" #define COMMAND_ARG1 "ls" #define COMMAND_ARG2 "-la" #define COMMAND_ARG3 data #endif #define ENV_VARIABLE "ADD" #ifdef _WIN32 #define GETENV getenv #else #define GETENV getenv #endif #include <process.h> /* all the sinks are the same, we just want to know where the hit originated if a tool flags one */ #ifndef OMITBAD void CWE78_OS_Command_Injection__char_environment_w32spawnl_53d_badSink(char * data) { /* spawnl - specify the path where the command is located */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ _spawnl(_P_WAIT, COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B uses the GoodSource with the BadSink */ void CWE78_OS_Command_Injection__char_environment_w32spawnl_53d_goodG2BSink(char * data) { /* spawnl - specify the path where the command is located */ /* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */ _spawnl(_P_WAIT, COMMAND_INT_PATH, COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL); } #endif /* OMITGOOD */
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s03/CWE78_OS_Command_Injection__char_environment_w32spawnl_53d.c
C
mit
2,165
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; namespace NutritionRecommendationEngine { public static class MyRandom { private static Random random = new Random(); public static int Next(int max) { return random.Next(max); } public static double Next(double min, double max) { return min + (random.NextDouble() * (max - min)); } } public static class Ext { public static T GetRandomMember<T>(this IEnumerable<T> list) { return list.ElementAt(MyRandom.Next(list.Count())); } } }
tsvgeorgieva/AmAm
AmAm/NutritionRecommendationEngine/MyRandom.cs
C#
mit
670
beforeEach(function () { jasmine.Clock.useMock(); jasmine.Clock.reset(); $.fx.off = true; if ($('.fake_dom').length) { $('.fake_dom').empty(); } this.addMatchers(new CustomMatchers()); }); afterEach(function () { $.fx.off = false; }); function printNode(node, depth, renderer) { renderer = renderer || _.identity; if (node === null) { return ''; } if (depth === 0) { return node.data ? renderer(node.data) + '@' + node.level.toString() : ''; } return '(' + ([printNode(node.left, depth - 1, renderer), printNode(node, 0, renderer), printNode(node.right, depth - 1, renderer)].join('-')) + ')'; } function printStack(stack) { return _.map(stack, function(node){ return node.data; }); } jasmine.fixture = function () { if (!$('.fake_dom').length) { $("body", document).prepend($('<div></div>').attr("style", "position: fixed; left: 100%").addClass('fake_dom')); } return $('.fake_dom'); }; function _helper_isObject(arg) { return arg != null && typeof(arg) == 'object'; } function _helper_isArray(arg) { return _helper_isObject(arg) && Object.prototype.toString.apply(arg) == '[object Array]'; } function decodeParams(string_or_object) { if(typeof string_or_object !== 'string') { return string_or_object; } var keyValuePairs = string_or_object.replace(/\+/g, "%20").split("&"); var hash = {}; $(keyValuePairs).each(function () { var equalSplit = this.split("="); var key = decodeURIComponent(equalSplit[0]); if (hash[key] == null) { hash[key] = decodeURIComponent(equalSplit[1]); } else if (jQuery.isArray(hash[key])) { hash[key].push(decodeURIComponent(equalSplit[1])); } else { hash[key] = [hash[key]]; hash[key].push(decodeURIComponent(equalSplit[1])); } }); return hash; } CustomMatchers = function() {}; CustomMatchers.prototype = { toBeEmpty: function() { this.message = function() { return 'Expected ' + jasmine.pp(this.actual) + (this.isNot ? ' not' : '') + ' to be empty'; }; if (this.actual instanceof jQuery) { return this.actual.size() == 0 } else if (_helper_isArray(this.actual)) { return this.actual.length == 0; } else if (_helper_isObject(this.actual)) { // any property means not empty for(var property in this.actual) { return false; } return true; } return false; }, toHaveAjaxData: function(expected) { this.message = function() { return 'Expected ' + jasmine.pp(decodeParams(this.actual)) + (this.isNot ? ' not' : '') + ' to match ' + jasmine.pp(expected); } return this.env.equals_(decodeParams(this.actual), expected); } };
ohrite/view_zoo
spec/javascripts/helpers/spec_helper.js
JavaScript
mit
2,675
package reborncore.api.power; /** * Created by modmuss50 on 08/03/2016. */ public enum EnumPowerTier { MICRO(8, 8, 0), LOW(32, 32, 1), MEDIUM(128, 128, 2), HIGH(512, 512, 3), EXTREME(2048, 2048, 4), INSANE(8192, 8192, 5), INFINITE(Integer.MAX_VALUE, Integer.MAX_VALUE, 6); private final int maxInput; private final int maxOutput; private final int ic2Tier; EnumPowerTier(int maxInput, int maxOutput, int ic2Tier) { this.maxInput = maxInput; this.maxOutput = maxOutput; this.ic2Tier = ic2Tier; } public int getMaxInput() { return maxInput; } public int getMaxOutput() { return maxOutput; } public int getIC2Tier() { return ic2Tier; } }
Szewek/Minecraft-Flux
src/api/java/reborncore/api/power/EnumPowerTier.java
Java
mit
673
class CreateTables < ActiveRecord::Migration def self.up create_table :users do |t| t.string :username t.string :facebook_token ## Database authenticatable t.string :email, :null => false, :default => "" t.string :encrypted_password, :null => false, :default => "" ## Inactivatable t.datetime :inactivated_at ## Recoverable t.string :reset_password_token t.datetime :reset_password_sent_at ## Rememberable t.datetime :remember_created_at ## Trackable t.integer :sign_in_count, :default => 0 t.datetime :current_sign_in_at t.datetime :last_sign_in_at t.string :current_sign_in_ip t.string :last_sign_in_ip ## Encryptable # t.string :password_salt ## Confirmable t.string :confirmation_token t.datetime :confirmed_at t.datetime :confirmation_sent_at # t.string :unconfirmed_email # Only if using reconfirmable ## Lockable t.integer :failed_attempts, :default => 0 # Only if lock strategy is :failed_attempts t.string :unlock_token # Only if unlock strategy is :email or :both t.datetime :locked_at ## Token authenticatable t.string :authentication_token t.timestamps end create_table :admins do |t| ## Database authenticatable t.string :email, :null => true t.string :encrypted_password, :null => true ## Inactivatable t.datetime :inactivated_at ## Recoverable t.string :reset_password_token t.datetime :reset_password_sent_at ## Rememberable t.datetime :remember_created_at ## Confirmable t.string :confirmation_token t.datetime :confirmed_at t.datetime :confirmation_sent_at t.string :unconfirmed_email # Only if using reconfirmable ## Encryptable t.string :password_salt ## Lockable t.datetime :locked_at t.timestamps end end def self.down drop_table :users drop_table :admins end end
jonathanccalixto/devise_inactivatable
test/rails_app/db/migrate/20120508165529_create_tables.rb
Ruby
mit
2,095
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <meta http-equiv="X-UA-Compatible" content="IE=9"/> <meta name="generator" content="Doxygen 1.8.7"/> <title>App Engine Python SDK: Member List</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="dynsections.js"></script> <link href="doxygen.css" rel="stylesheet" type="text/css" /> <link href="common.css" rel="stylesheet" type="text/css"/> </head> <body> <div id="top"><!-- do not remove this div, it is closed by doxygen! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td id="projectlogo"><img alt="Logo" src="gae-python.logo.png"/></td> <td style="padding-left: 0.5em;"> <div id="projectname">App Engine Python SDK &#160;<span id="projectnumber">v1.6.9 rev.445</span> </div> <div id="projectbrief">The Python runtime is available as an experimental Preview feature.</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.7 --> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><b>google</b></li><li class="navelem"><b>appengine</b></li><li class="navelem"><b>api</b></li><li class="navelem"><b>datastore_types</b></li><li class="navelem"><a class="el" href="classgoogle_1_1appengine_1_1api_1_1datastore__types_1_1_link.html">Link</a></li> </ul> </div> </div><!-- top --> <div class="header"> <div class="headertitle"> <div class="title">google.appengine.api.datastore_types.Link Member List</div> </div> </div><!--header--> <div class="contents"> <p>This is the complete list of members for <a class="el" href="classgoogle_1_1appengine_1_1api_1_1datastore__types_1_1_link.html">google.appengine.api.datastore_types.Link</a>, including all inherited members.</p> <table class="directory"> <tr bgcolor="#f0f0f0" class="even"><td class="entry"><b>__init__</b> (defined in <a class="el" href="classgoogle_1_1appengine_1_1api_1_1datastore__types_1_1_link.html">google.appengine.api.datastore_types.Link</a>)</td><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1api_1_1datastore__types_1_1_link.html">google.appengine.api.datastore_types.Link</a></td><td class="entry"></td></tr> <tr bgcolor="#f0f0f0"><td class="entry"><b>ToXml</b> (defined in <a class="el" href="classgoogle_1_1appengine_1_1api_1_1datastore__types_1_1_link.html">google.appengine.api.datastore_types.Link</a>)</td><td class="entry"><a class="el" href="classgoogle_1_1appengine_1_1api_1_1datastore__types_1_1_link.html">google.appengine.api.datastore_types.Link</a></td><td class="entry"></td></tr> </table></div><!-- contents --> <address class="footer"> <small>Maintained by <a href="http://www.tzmartin.com">tzmartin</a></small> </address>
tzmartin/gae-python.docset
Contents/Resources/Documents/classgoogle_1_1appengine_1_1api_1_1datastore__types_1_1_link-members.html
HTML
mit
3,017
package net.meisen.general.sbconfigurator.config; import java.util.Map; import java.util.Properties; /** * A bean used to inject properties within the {@code SpringPropertyHolder} * during the configuration loading. * * @author pmeisen * */ public class PropertyInjectorBean { private final Properties properties = new Properties(); /** * Gets the set properties. * * @return the set properties */ public Properties getProperties() { return this.properties; } /** * Sets some properties. * * @param properties * the final properties to be set */ public void setProperties(final Properties properties) { this.properties.putAll(properties); } /** * Sets some properties. * * @param properties * the final properties to be set */ public void setProperties(final Map<String, String> properties) { this.properties.putAll(properties); } /** * Sets a property. * * @param key * the key of the property * @param value * the value of the property * */ public void setProperty(final String key, final String value) { this.properties.setProperty(key, value); } }
pmeisen/gen-sbconfigurator
src/net/meisen/general/sbconfigurator/config/PropertyInjectorBean.java
Java
mit
1,181
var path = require('path'); module.exports = { entry: { entry:path.join(__dirname, 'src', 'entry.js'), toggle:path.join(__dirname, 'src', 'toggle.js'), }, output: { path: path.join(__dirname, 'dist'), publicPath: '/static/', filename: '[name].js' }, module: { loaders: [{ test: /\.js(x)?$/, loader: 'babel' }, { test: /.css$/, loader: 'style-loader!css-loader' },{ test : /\.(json|ttf|eot|svg|woff(2)?)(\?[a-z0-9]+)?$/, loader : 'file-loader', query:{ name:'[name]-[md5:hash:8].[ext]' } }] } }
wyvernnot/react-datatables-example
webpack.config.js
JavaScript
mit
599
import merge from 'webpack-merge'; import chalk from 'chalk'; import pkgInfo from './package.json'; import BabiliPlugin from 'babili-webpack-plugin'; import WebpackShellPlugin from '@slightlytyler/webpack-shell-plugin'; import webpackConfigBase from './webpack.config.base'; const webpackConfigProd = { plugins: [ new BabiliPlugin({}), new WebpackShellPlugin({ onBuildStart: [], // need to bump version first before files copied etc onBuildExit: ['bash scripts/clean-production.sh']}) ] }; export default merge(webpackConfigBase, webpackConfigProd);
mikeerickson/cd-messenger
webpack.config.prod.js
JavaScript
mit
584
<?xml version="1.0" ?><!DOCTYPE TS><TS language="hu" version="2.0"> <defaultcodec>UTF-8</defaultcodec> <context> <name>AboutDialog</name> <message> <location filename="../forms/aboutdialog.ui" line="14"/> <source>About Bitcoin</source> <translation>A Bitcoinról</translation> </message> <message> <location filename="../forms/aboutdialog.ui" line="53"/> <source>&lt;b&gt;Bitcoin&lt;/b&gt; version</source> <translation>&lt;b&gt;Bitcoin&lt;/b&gt; verzió</translation> </message> <message> <location filename="../forms/aboutdialog.ui" line="97"/> <source>Copyright © 2009-2012 Bitcoin Developers This is experimental software. Distributed under the MIT/X11 software license, see the accompanying file license.txt or http://www.opensource.org/licenses/mit-license.php. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/) and cryptographic software written by Eric Young (eay@cryptsoft.com) and UPnP software written by Thomas Bernard.</source> <translation type="unfinished"/> </message> </context> <context> <name>AddressBookPage</name> <message> <location filename="../forms/addressbookpage.ui" line="14"/> <source>Address Book</source> <translation>Címjegyzék</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="20"/> <source>These are your Bitcoin addresses for receiving payments. You may want to give a different one to each sender so you can keep track of who is paying you.</source> <translation>Ezekkel a Bitcoin-címekkel fogadhatod kifizetéseket. Érdemes lehet minden egyes kifizető számára külön címet létrehozni, hogy könnyebben nyomon követhesd, kitől kaptál már pénzt.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="36"/> <source>Double-click to edit address or label</source> <translation>Dupla-katt a cím vagy a címke szerkesztéséhez</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="63"/> <source>Create a new address</source> <translation>Új cím létrehozása</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="77"/> <source>Copy the currently selected address to the system clipboard</source> <translation>A kiválasztott cím másolása a vágólapra</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="66"/> <source>&amp;New Address</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/addressbookpage.ui" line="80"/> <source>&amp;Copy Address</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/addressbookpage.ui" line="91"/> <source>Show &amp;QR Code</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/addressbookpage.ui" line="102"/> <source>Sign a message to prove you own this address</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/addressbookpage.ui" line="105"/> <source>&amp;Sign Message</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/addressbookpage.ui" line="116"/> <source>Delete the currently selected address from the list. Only sending addresses can be deleted.</source> <translation>A kiválasztott cím törlése a listáról. Csak a küldő címek törölhetőek.</translation> </message> <message> <location filename="../forms/addressbookpage.ui" line="119"/> <source>&amp;Delete</source> <translation>&amp;Törlés</translation> </message> <message> <location filename="../addressbookpage.cpp" line="63"/> <source>Copy &amp;Label</source> <translation type="unfinished"/> </message> <message> <location filename="../addressbookpage.cpp" line="65"/> <source>&amp;Edit</source> <translation type="unfinished"/> </message> <message> <location filename="../addressbookpage.cpp" line="292"/> <source>Export Address Book Data</source> <translation>Címjegyzék adatainak exportálása</translation> </message> <message> <location filename="../addressbookpage.cpp" line="293"/> <source>Comma separated file (*.csv)</source> <translation>Vesszővel elválasztott fájl (*. csv)</translation> </message> <message> <location filename="../addressbookpage.cpp" line="306"/> <source>Error exporting</source> <translation>Hiba exportálás közben</translation> </message> <message> <location filename="../addressbookpage.cpp" line="306"/> <source>Could not write to file %1.</source> <translation>%1 nevű fájl nem írható.</translation> </message> </context> <context> <name>AddressTableModel</name> <message> <location filename="../addresstablemodel.cpp" line="142"/> <source>Label</source> <translation>Címke</translation> </message> <message> <location filename="../addresstablemodel.cpp" line="142"/> <source>Address</source> <translation>Cím</translation> </message> <message> <location filename="../addresstablemodel.cpp" line="178"/> <source>(no label)</source> <translation>(nincs címke)</translation> </message> </context> <context> <name>AskPassphraseDialog</name> <message> <location filename="../forms/askpassphrasedialog.ui" line="26"/> <source>Passphrase Dialog</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="47"/> <source>Enter passphrase</source> <translation>Add meg a jelszót</translation> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="61"/> <source>New passphrase</source> <translation>Új jelszó</translation> </message> <message> <location filename="../forms/askpassphrasedialog.ui" line="75"/> <source>Repeat new passphrase</source> <translation>Új jelszó újra</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="33"/> <source>Enter the new passphrase to the wallet.&lt;br/&gt;Please use a passphrase of &lt;b&gt;10 or more random characters&lt;/b&gt;, or &lt;b&gt;eight or more words&lt;/b&gt;.</source> <translation>Írd be az új jelszót a tárcához.&lt;br/&gt;Használj legalább 10&lt;br/&gt;véletlenszerű karaktert&lt;/b&gt; vagy &lt;b&gt;legalább nyolc szót&lt;/b&gt;.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="34"/> <source>Encrypt wallet</source> <translation>Tárca kódolása</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="37"/> <source>This operation needs your wallet passphrase to unlock the wallet.</source> <translation>A tárcád megnyitásához a műveletnek szüksége van a tárcád jelszavára.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="42"/> <source>Unlock wallet</source> <translation>Tárca megnyitása</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="45"/> <source>This operation needs your wallet passphrase to decrypt the wallet.</source> <translation>A tárcád dekódolásához a műveletnek szüksége van a tárcád jelszavára.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="50"/> <source>Decrypt wallet</source> <translation>Tárca dekódolása</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="53"/> <source>Change passphrase</source> <translation>Jelszó megváltoztatása</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="54"/> <source>Enter the old and new passphrase to the wallet.</source> <translation>Írd be a tárca régi és új jelszavát.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="100"/> <source>Confirm wallet encryption</source> <translation>Biztosan kódolni akarod a tárcát?</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="101"/> <source>WARNING: If you encrypt your wallet and lose your passphrase, you will &lt;b&gt;LOSE ALL OF YOUR GOODBYECOINS&lt;/b&gt;! Are you sure you wish to encrypt your wallet?</source> <translation>FIGYELEM: Ha kódolod a tárcát, és elveszíted a jelszavad, akkor &lt;b&gt;AZ ÖSSZES BITCOINODAT IS EL FOGOD VESZÍTENI!&lt;/b&gt; Biztosan kódolni akarod a tárcát?</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="110"/> <location filename="../askpassphrasedialog.cpp" line="159"/> <source>Wallet encrypted</source> <translation>Tárca kódolva</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="111"/> <source>Bitcoin will close now to finish the encryption process. Remember that encrypting your wallet cannot fully protect your bitcoins from being stolen by malware infecting your computer.</source> <translation type="unfinished"/> </message> <message> <location filename="../askpassphrasedialog.cpp" line="207"/> <location filename="../askpassphrasedialog.cpp" line="231"/> <source>Warning: The Caps Lock key is on.</source> <translation type="unfinished"/> </message> <message> <location filename="../askpassphrasedialog.cpp" line="116"/> <location filename="../askpassphrasedialog.cpp" line="123"/> <location filename="../askpassphrasedialog.cpp" line="165"/> <location filename="../askpassphrasedialog.cpp" line="171"/> <source>Wallet encryption failed</source> <translation>Tárca kódolása sikertelen.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="117"/> <source>Wallet encryption failed due to an internal error. Your wallet was not encrypted.</source> <translation>Tárca kódolása belső hiba miatt sikertelen. A tárcád nem lett kódolva.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="124"/> <location filename="../askpassphrasedialog.cpp" line="172"/> <source>The supplied passphrases do not match.</source> <translation>A megadott jelszavak nem egyeznek.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="135"/> <source>Wallet unlock failed</source> <translation>Tárca megnyitása sikertelen</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="136"/> <location filename="../askpassphrasedialog.cpp" line="147"/> <location filename="../askpassphrasedialog.cpp" line="166"/> <source>The passphrase entered for the wallet decryption was incorrect.</source> <translation>Hibás jelszó.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="146"/> <source>Wallet decryption failed</source> <translation>Dekódolás sikertelen.</translation> </message> <message> <location filename="../askpassphrasedialog.cpp" line="160"/> <source>Wallet passphrase was succesfully changed.</source> <translation>Jelszó megváltoztatva.</translation> </message> </context> <context> <name>BitcoinGUI</name> <message> <location filename="../bitcoingui.cpp" line="73"/> <source>Bitcoin Wallet</source> <translation>Bitcoin-tárca</translation> </message> <message> <location filename="../bitcoingui.cpp" line="215"/> <source>Sign &amp;message...</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="248"/> <source>Show/Hide &amp;Bitcoin</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="515"/> <source>Synchronizing with network...</source> <translation>Szinkronizálás a hálózattal...</translation> </message> <message> <location filename="../bitcoingui.cpp" line="185"/> <source>&amp;Overview</source> <translation>&amp;Áttekintés</translation> </message> <message> <location filename="../bitcoingui.cpp" line="186"/> <source>Show general overview of wallet</source> <translation>Tárca általános áttekintése</translation> </message> <message> <location filename="../bitcoingui.cpp" line="191"/> <source>&amp;Transactions</source> <translation>&amp;Tranzakciók</translation> </message> <message> <location filename="../bitcoingui.cpp" line="192"/> <source>Browse transaction history</source> <translation>Tranzakciótörténet megtekintése</translation> </message> <message> <location filename="../bitcoingui.cpp" line="197"/> <source>&amp;Address Book</source> <translation>Cím&amp;jegyzék</translation> </message> <message> <location filename="../bitcoingui.cpp" line="198"/> <source>Edit the list of stored addresses and labels</source> <translation>Tárolt címek és címkék listájának szerkesztése</translation> </message> <message> <location filename="../bitcoingui.cpp" line="203"/> <source>&amp;Receive coins</source> <translation>Érmék &amp;fogadása</translation> </message> <message> <location filename="../bitcoingui.cpp" line="204"/> <source>Show the list of addresses for receiving payments</source> <translation>Kiizetést fogadó címek listája</translation> </message> <message> <location filename="../bitcoingui.cpp" line="209"/> <source>&amp;Send coins</source> <translation>Érmék &amp;küldése</translation> </message> <message> <location filename="../bitcoingui.cpp" line="216"/> <source>Prove you control an address</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="235"/> <source>E&amp;xit</source> <translation>&amp;Kilépés</translation> </message> <message> <location filename="../bitcoingui.cpp" line="236"/> <source>Quit application</source> <translation>Kilépés</translation> </message> <message> <location filename="../bitcoingui.cpp" line="239"/> <source>&amp;About %1</source> <translation>&amp;A %1-ról</translation> </message> <message> <location filename="../bitcoingui.cpp" line="240"/> <source>Show information about Bitcoin</source> <translation>Információk a Bitcoinról</translation> </message> <message> <location filename="../bitcoingui.cpp" line="242"/> <source>About &amp;Qt</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="243"/> <source>Show information about Qt</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="245"/> <source>&amp;Options...</source> <translation>&amp;Opciók...</translation> </message> <message> <location filename="../bitcoingui.cpp" line="252"/> <source>&amp;Encrypt Wallet...</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="255"/> <source>&amp;Backup Wallet...</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="257"/> <source>&amp;Change Passphrase...</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="517"/> <source>~%n block(s) remaining</source> <translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation> </message> <message> <location filename="../bitcoingui.cpp" line="528"/> <source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="250"/> <source>&amp;Export...</source> <translation>&amp;Exportálás...</translation> </message> <message> <location filename="../bitcoingui.cpp" line="210"/> <source>Send coins to a Bitcoin address</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="246"/> <source>Modify configuration options for Bitcoin</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="249"/> <source>Show or hide the Bitcoin window</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="251"/> <source>Export the data in the current tab to a file</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="253"/> <source>Encrypt or decrypt wallet</source> <translation>Tárca kódolása vagy dekódolása</translation> </message> <message> <location filename="../bitcoingui.cpp" line="256"/> <source>Backup wallet to another location</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="258"/> <source>Change the passphrase used for wallet encryption</source> <translation>Tárcakódoló jelszó megváltoztatása</translation> </message> <message> <location filename="../bitcoingui.cpp" line="259"/> <source>&amp;Debug window</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="260"/> <source>Open debugging and diagnostic console</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="261"/> <source>&amp;Verify message...</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="262"/> <source>Verify a message signature</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="286"/> <source>&amp;File</source> <translation>&amp;Fájl</translation> </message> <message> <location filename="../bitcoingui.cpp" line="296"/> <source>&amp;Settings</source> <translation>&amp;Beállítások</translation> </message> <message> <location filename="../bitcoingui.cpp" line="302"/> <source>&amp;Help</source> <translation>&amp;Súgó</translation> </message> <message> <location filename="../bitcoingui.cpp" line="311"/> <source>Tabs toolbar</source> <translation>Fül eszköztár</translation> </message> <message> <location filename="../bitcoingui.cpp" line="322"/> <source>Actions toolbar</source> <translation>Parancsok eszköztár</translation> </message> <message> <location filename="../bitcoingui.cpp" line="334"/> <location filename="../bitcoingui.cpp" line="343"/> <source>[testnet]</source> <translation>[teszthálózat]</translation> </message> <message> <location filename="../bitcoingui.cpp" line="343"/> <location filename="../bitcoingui.cpp" line="399"/> <source>Bitcoin client</source> <translation type="unfinished"/> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="492"/> <source>%n active connection(s) to Bitcoin network</source> <translation><numerusform>%n aktív kapcsolat a Bitcoin-hálózattal</numerusform><numerusform>%n aktív kapcsolat a Bitcoin-hálózattal</numerusform></translation> </message> <message> <location filename="../bitcoingui.cpp" line="540"/> <source>Downloaded %1 blocks of transaction history.</source> <translation>%1 blokk letöltve a tranzakciótörténetből.</translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="555"/> <source>%n second(s) ago</source> <translation><numerusform>%n másodperccel ezelőtt</numerusform><numerusform>%n másodperccel ezelőtt</numerusform></translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="559"/> <source>%n minute(s) ago</source> <translation><numerusform>%n perccel ezelőtt</numerusform><numerusform>%n perccel ezelőtt</numerusform></translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="563"/> <source>%n hour(s) ago</source> <translation><numerusform>%n órával ezelőtt</numerusform><numerusform>%n órával ezelőtt</numerusform></translation> </message> <message numerus="yes"> <location filename="../bitcoingui.cpp" line="567"/> <source>%n day(s) ago</source> <translation><numerusform>%n nappal ezelőtt</numerusform><numerusform>%n nappal ezelőtt</numerusform></translation> </message> <message> <location filename="../bitcoingui.cpp" line="573"/> <source>Up to date</source> <translation>Naprakész</translation> </message> <message> <location filename="../bitcoingui.cpp" line="580"/> <source>Catching up...</source> <translation>Frissítés...</translation> </message> <message> <location filename="../bitcoingui.cpp" line="590"/> <source>Last received block was generated %1.</source> <translation>Az utolsóként kapott blokk generálva: %1.</translation> </message> <message> <location filename="../bitcoingui.cpp" line="649"/> <source>This transaction is over the size limit. You can still send it for a fee of %1, which goes to the nodes that process your transaction and helps to support the network. Do you want to pay the fee?</source> <translation>Ez a tranzakció túllépi a mérethatárt, de %1 tranzakciós díj ellenében így is elküldheted. Ezt a plusz összeget a tranzakcióidat feldolgozó csomópontok kapják, így magát a hálózatot támogatod vele. Hajlandó vagy megfizetni a díjat?</translation> </message> <message> <location filename="../bitcoingui.cpp" line="654"/> <source>Confirm transaction fee</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="681"/> <source>Sent transaction</source> <translation>Tranzakció elküldve.</translation> </message> <message> <location filename="../bitcoingui.cpp" line="682"/> <source>Incoming transaction</source> <translation>Beérkező tranzakció</translation> </message> <message> <location filename="../bitcoingui.cpp" line="683"/> <source>Date: %1 Amount: %2 Type: %3 Address: %4 </source> <translation>Dátum: %1 Összeg: %2 Típus: %3 Cím: %4 </translation> </message> <message> <location filename="../bitcoingui.cpp" line="804"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;unlocked&lt;/b&gt;</source> <translation>Tárca &lt;b&gt;kódolva&lt;/b&gt; és jelenleg &lt;b&gt;nyitva&lt;/b&gt;.</translation> </message> <message> <location filename="../bitcoingui.cpp" line="812"/> <source>Wallet is &lt;b&gt;encrypted&lt;/b&gt; and currently &lt;b&gt;locked&lt;/b&gt;</source> <translation>Tárca &lt;b&gt;kódolva&lt;/b&gt; és jelenleg &lt;b&gt;zárva&lt;/b&gt;.</translation> </message> <message> <location filename="../bitcoingui.cpp" line="835"/> <source>Backup Wallet</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="835"/> <source>Wallet Data (*.dat)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="838"/> <source>Backup Failed</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoingui.cpp" line="838"/> <source>There was an error trying to save the wallet data to the new location.</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="112"/> <source>A fatal error occured. Bitcoin can no longer continue safely and will quit.</source> <translation type="unfinished"/> </message> </context> <context> <name>ClientModel</name> <message> <location filename="../clientmodel.cpp" line="84"/> <source>Network Alert</source> <translation type="unfinished"/> </message> </context> <context> <name>DisplayOptionsPage</name> <message> <location filename="../optionsdialog.cpp" line="246"/> <source>Display</source> <translation>Megjelenítés</translation> </message> <message> <location filename="../optionsdialog.cpp" line="257"/> <source>default</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="263"/> <source>The user interface language can be set here. This setting will only take effect after restarting Bitcoin.</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="252"/> <source>User Interface &amp;Language:</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="273"/> <source>&amp;Unit to show amounts in:</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="277"/> <source>Choose the default subdivision unit to show in the interface, and when sending coins</source> <translation>Válaszd ki az interfészen és érmék küldésekor megjelenítendő alapértelmezett alegységet.</translation> </message> <message> <location filename="../optionsdialog.cpp" line="284"/> <source>&amp;Display addresses in transaction list</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="285"/> <source>Whether to show Bitcoin addresses in the transaction list</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="303"/> <source>Warning</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="303"/> <source>This setting will take effect after restarting Bitcoin.</source> <translation type="unfinished"/> </message> </context> <context> <name>EditAddressDialog</name> <message> <location filename="../forms/editaddressdialog.ui" line="14"/> <source>Edit Address</source> <translation>Cím szerkesztése</translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="25"/> <source>&amp;Label</source> <translation>Cím&amp;ke</translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="35"/> <source>The label associated with this address book entry</source> <translation>A címhez tartozó címke</translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="42"/> <source>&amp;Address</source> <translation>&amp;Cím</translation> </message> <message> <location filename="../forms/editaddressdialog.ui" line="52"/> <source>The address associated with this address book entry. This can only be modified for sending addresses.</source> <translation>Az ehhez a címjegyzék-bejegyzéshez tartozó cím. Ez csak a küldő címeknél módosítható.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="20"/> <source>New receiving address</source> <translation>Új fogadó cím</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="24"/> <source>New sending address</source> <translation>Új küldő cím</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="27"/> <source>Edit receiving address</source> <translation>Fogadó cím szerkesztése</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="31"/> <source>Edit sending address</source> <translation>Küldő cím szerkesztése</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="91"/> <source>The entered address &quot;%1&quot; is already in the address book.</source> <translation>A megadott &quot;%1&quot; cím már szerepel a címjegyzékben.</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="96"/> <source>The entered address &quot;%1&quot; is not a valid Bitcoin address.</source> <translation type="unfinished"/> </message> <message> <location filename="../editaddressdialog.cpp" line="101"/> <source>Could not unlock wallet.</source> <translation>Tárca feloldása sikertelen</translation> </message> <message> <location filename="../editaddressdialog.cpp" line="106"/> <source>New key generation failed.</source> <translation>Új kulcs generálása sikertelen</translation> </message> </context> <context> <name>HelpMessageBox</name> <message> <location filename="../bitcoin.cpp" line="133"/> <location filename="../bitcoin.cpp" line="143"/> <source>Bitcoin-Qt</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="133"/> <source>version</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="135"/> <source>Usage:</source> <translation>Használat:</translation> </message> <message> <location filename="../bitcoin.cpp" line="136"/> <source>options</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="138"/> <source>UI options</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="139"/> <source>Set language, for example &quot;de_DE&quot; (default: system locale)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoin.cpp" line="140"/> <source>Start minimized</source> <translation>Indítás lekicsinyítve </translation> </message> <message> <location filename="../bitcoin.cpp" line="141"/> <source>Show splash screen on startup (default: 1)</source> <translation type="unfinished"/> </message> </context> <context> <name>MainOptionsPage</name> <message> <location filename="../optionsdialog.cpp" line="227"/> <source>Detach block and address databases at shutdown. This means they can be moved to another data directory, but it slows down shutdown. The wallet is always detached.</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="212"/> <source>Pay transaction &amp;fee</source> <translation>Tranzakciós &amp;díj fizetése</translation> </message> <message> <location filename="../optionsdialog.cpp" line="204"/> <source>Main</source> <translation>Fő</translation> </message> <message> <location filename="../optionsdialog.cpp" line="206"/> <source>Optional transaction fee per kB that helps make sure your transactions are processed quickly. Most transactions are 1 kB. Fee 0.01 recommended.</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="222"/> <source>&amp;Start Bitcoin on system login</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="223"/> <source>Automatically start Bitcoin after logging in to the system</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="226"/> <source>&amp;Detach databases at shutdown</source> <translation type="unfinished"/> </message> </context> <context> <name>MessagePage</name> <message> <location filename="../forms/messagepage.ui" line="14"/> <source>Sign Message</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/messagepage.ui" line="20"/> <source>You can sign messages with your addresses to prove you own them. Be careful not to sign anything vague, as phishing attacks may try to trick you into signing your identity over to them. Only sign fully-detailed statements you agree to.</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/messagepage.ui" line="38"/> <source>The address to sign the message with (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/messagepage.ui" line="48"/> <source>Choose adress from address book</source> <translation>Válassz egy címet a címjegyzékből</translation> </message> <message> <location filename="../forms/messagepage.ui" line="58"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location filename="../forms/messagepage.ui" line="71"/> <source>Paste address from clipboard</source> <translation>Cím beillesztése a vágólapról</translation> </message> <message> <location filename="../forms/messagepage.ui" line="81"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location filename="../forms/messagepage.ui" line="93"/> <source>Enter the message you want to sign here</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/messagepage.ui" line="128"/> <source>Copy the current signature to the system clipboard</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/messagepage.ui" line="131"/> <source>&amp;Copy Signature</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/messagepage.ui" line="142"/> <source>Reset all sign message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/messagepage.ui" line="145"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location filename="../messagepage.cpp" line="31"/> <source>Click &quot;Sign Message&quot; to get signature</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/messagepage.ui" line="114"/> <source>Sign a message to prove you own this address</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/messagepage.ui" line="117"/> <source>&amp;Sign Message</source> <translation type="unfinished"/> </message> <message> <location filename="../messagepage.cpp" line="30"/> <source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Adj meg egy Bitcoin-címet (pl.: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L )</translation> </message> <message> <location filename="../messagepage.cpp" line="83"/> <location filename="../messagepage.cpp" line="90"/> <location filename="../messagepage.cpp" line="105"/> <location filename="../messagepage.cpp" line="117"/> <source>Error signing</source> <translation type="unfinished"/> </message> <message> <location filename="../messagepage.cpp" line="83"/> <source>%1 is not a valid address.</source> <translation type="unfinished"/> </message> <message> <location filename="../messagepage.cpp" line="90"/> <source>%1 does not refer to a key.</source> <translation type="unfinished"/> </message> <message> <location filename="../messagepage.cpp" line="105"/> <source>Private key for %1 is not available.</source> <translation type="unfinished"/> </message> <message> <location filename="../messagepage.cpp" line="117"/> <source>Sign failed</source> <translation type="unfinished"/> </message> </context> <context> <name>NetworkOptionsPage</name> <message> <location filename="../optionsdialog.cpp" line="345"/> <source>Network</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="347"/> <source>Map port using &amp;UPnP</source> <translation>&amp;UPnP port-feltérképezés</translation> </message> <message> <location filename="../optionsdialog.cpp" line="348"/> <source>Automatically open the Bitcoin client port on the router. This only works when your router supports UPnP and it is enabled.</source> <translation>A Bitcoin-kliens portjának automatikus megnyitása a routeren. Ez csak akkor működik, ha a routered támogatja az UPnP-t és az engedélyezve is van rajta.</translation> </message> <message> <location filename="../optionsdialog.cpp" line="351"/> <source>&amp;Connect through SOCKS4 proxy:</source> <translation>&amp;Csatlakozás SOCKS4 proxyn keresztül:</translation> </message> <message> <location filename="../optionsdialog.cpp" line="352"/> <source>Connect to the Bitcon network through a SOCKS4 proxy (e.g. when connecting through Tor)</source> <translation>SOCKS4 proxyn keresztüli csatlakozás a Bitcoin hálózatához (pl. Tor-on keresztüli csatlakozás esetén)</translation> </message> <message> <location filename="../optionsdialog.cpp" line="357"/> <source>Proxy &amp;IP:</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="366"/> <source>&amp;Port:</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="363"/> <source>IP address of the proxy (e.g. 127.0.0.1)</source> <translation>Proxy IP címe (pl.: 127.0.0.1)</translation> </message> <message> <location filename="../optionsdialog.cpp" line="372"/> <source>Port of the proxy (e.g. 1234)</source> <translation>Proxy portja (pl.: 1234)</translation> </message> </context> <context> <name>OptionsDialog</name> <message> <location filename="../optionsdialog.cpp" line="135"/> <source>Options</source> <translation>Opciók</translation> </message> </context> <context> <name>OverviewPage</name> <message> <location filename="../forms/overviewpage.ui" line="14"/> <source>Form</source> <translation>Űrlap</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="47"/> <location filename="../forms/overviewpage.ui" line="204"/> <source>The displayed information may be out of date. Your wallet automatically synchronizes with the Bitcoin network after a connection is established, but this process has not completed yet.</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/overviewpage.ui" line="89"/> <source>Balance:</source> <translation>Egyenleg:</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="147"/> <source>Number of transactions:</source> <translation>Tranzakciók száma:</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="118"/> <source>Unconfirmed:</source> <translation>Megerősítetlen:</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="40"/> <source>Wallet</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/overviewpage.ui" line="197"/> <source>&lt;b&gt;Recent transactions&lt;/b&gt;</source> <translation>&lt;b&gt;Legutóbbi tranzakciók&lt;/b&gt;</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="105"/> <source>Your current balance</source> <translation>Aktuális egyenleged</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="134"/> <source>Total of transactions that have yet to be confirmed, and do not yet count toward the current balance</source> <translation>Még megerősítésre váró, a jelenlegi egyenlegbe be nem számított tranzakciók</translation> </message> <message> <location filename="../forms/overviewpage.ui" line="154"/> <source>Total number of transactions in wallet</source> <translation>Tárca összes tranzakcióinak száma</translation> </message> <message> <location filename="../overviewpage.cpp" line="110"/> <location filename="../overviewpage.cpp" line="111"/> <source>out of sync</source> <translation type="unfinished"/> </message> </context> <context> <name>QRCodeDialog</name> <message> <location filename="../forms/qrcodedialog.ui" line="14"/> <source>QR Code Dialog</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/qrcodedialog.ui" line="32"/> <source>QR Code</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/qrcodedialog.ui" line="55"/> <source>Request Payment</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/qrcodedialog.ui" line="70"/> <source>Amount:</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/qrcodedialog.ui" line="105"/> <source>BTC</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/qrcodedialog.ui" line="121"/> <source>Label:</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/qrcodedialog.ui" line="144"/> <source>Message:</source> <translation>Üzenet:</translation> </message> <message> <location filename="../forms/qrcodedialog.ui" line="186"/> <source>&amp;Save As...</source> <translation type="unfinished"/> </message> <message> <location filename="../qrcodedialog.cpp" line="45"/> <source>Error encoding URI into QR Code.</source> <translation type="unfinished"/> </message> <message> <location filename="../qrcodedialog.cpp" line="63"/> <source>Resulting URI too long, try to reduce the text for label / message.</source> <translation type="unfinished"/> </message> <message> <location filename="../qrcodedialog.cpp" line="120"/> <source>Save QR Code</source> <translation type="unfinished"/> </message> <message> <location filename="../qrcodedialog.cpp" line="120"/> <source>PNG Images (*.png)</source> <translation type="unfinished"/> </message> </context> <context> <name>RPCConsole</name> <message> <location filename="../forms/rpcconsole.ui" line="14"/> <source>Bitcoin debug window</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="46"/> <source>Client name</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="56"/> <location filename="../forms/rpcconsole.ui" line="79"/> <location filename="../forms/rpcconsole.ui" line="102"/> <location filename="../forms/rpcconsole.ui" line="125"/> <location filename="../forms/rpcconsole.ui" line="161"/> <location filename="../forms/rpcconsole.ui" line="214"/> <location filename="../forms/rpcconsole.ui" line="237"/> <location filename="../forms/rpcconsole.ui" line="260"/> <location filename="../rpcconsole.cpp" line="245"/> <source>N/A</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="69"/> <source>Client version</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="24"/> <source>&amp;Information</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="39"/> <source>Client</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="115"/> <source>Startup time</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="144"/> <source>Network</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="151"/> <source>Number of connections</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="174"/> <source>On testnet</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="197"/> <source>Block chain</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="204"/> <source>Current number of blocks</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="227"/> <source>Estimated total blocks</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="250"/> <source>Last block time</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="292"/> <source>Debug logfile</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="299"/> <source>Open the Bitcoin debug logfile from the current data directory. This can take a few seconds for large logfiles.</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="302"/> <source>&amp;Open</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="323"/> <source>&amp;Console</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="92"/> <source>Build date</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/rpcconsole.ui" line="372"/> <source>Clear console</source> <translation type="unfinished"/> </message> <message> <location filename="../rpcconsole.cpp" line="212"/> <source>Welcome to the Bitcoin RPC console.</source> <translation type="unfinished"/> </message> <message> <location filename="../rpcconsole.cpp" line="213"/> <source>Use up and down arrows to navigate history, and &lt;b&gt;Ctrl-L&lt;/b&gt; to clear screen.</source> <translation type="unfinished"/> </message> <message> <location filename="../rpcconsole.cpp" line="214"/> <source>Type &lt;b&gt;help&lt;/b&gt; for an overview of available commands.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsDialog</name> <message> <location filename="../forms/sendcoinsdialog.ui" line="14"/> <location filename="../sendcoinsdialog.cpp" line="122"/> <location filename="../sendcoinsdialog.cpp" line="127"/> <location filename="../sendcoinsdialog.cpp" line="132"/> <location filename="../sendcoinsdialog.cpp" line="137"/> <location filename="../sendcoinsdialog.cpp" line="143"/> <location filename="../sendcoinsdialog.cpp" line="148"/> <location filename="../sendcoinsdialog.cpp" line="153"/> <source>Send Coins</source> <translation>Érmék küldése</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="64"/> <source>Send to multiple recipients at once</source> <translation>Küldés több címzettnek egyszerre</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="67"/> <source>&amp;Add Recipient</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="84"/> <source>Remove all transaction fields</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="87"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="106"/> <source>Balance:</source> <translation>Egyenleg:</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="113"/> <source>123.456 BTC</source> <translation>123.456 BTC</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="144"/> <source>Confirm the send action</source> <translation>Küldés megerősítése</translation> </message> <message> <location filename="../forms/sendcoinsdialog.ui" line="147"/> <source>&amp;Send</source> <translation>&amp;Küldés</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="94"/> <source>&lt;b&gt;%1&lt;/b&gt; to %2 (%3)</source> <translation>&lt;b&gt;%1&lt;/b&gt; %2-re (%3)</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="99"/> <source>Confirm send coins</source> <translation>Küldés megerősítése</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="100"/> <source>Are you sure you want to send %1?</source> <translation>Valóban el akarsz küldeni %1-t?</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="100"/> <source> and </source> <translation> és</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="123"/> <source>The recepient address is not valid, please recheck.</source> <translation>A címzett címe érvénytelen, kérlek, ellenőrizd.</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="128"/> <source>The amount to pay must be larger than 0.</source> <translation>A fizetendő összegnek nagyobbnak kell lennie 0-nál.</translation> </message> <message> <location filename="../sendcoinsdialog.cpp" line="133"/> <source>The amount exceeds your balance.</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="138"/> <source>The total exceeds your balance when the %1 transaction fee is included.</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="144"/> <source>Duplicate address found, can only send to each address once per send operation.</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="149"/> <source>Error: Transaction creation failed.</source> <translation type="unfinished"/> </message> <message> <location filename="../sendcoinsdialog.cpp" line="154"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation type="unfinished"/> </message> </context> <context> <name>SendCoinsEntry</name> <message> <location filename="../forms/sendcoinsentry.ui" line="14"/> <source>Form</source> <translation>Űrlap</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="29"/> <source>A&amp;mount:</source> <translation>Összeg:</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="42"/> <source>Pay &amp;To:</source> <translation>Címzett:</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="66"/> <location filename="../sendcoinsentry.cpp" line="25"/> <source>Enter a label for this address to add it to your address book</source> <translation>Milyen címkével kerüljön be ez a cím a címtáradba? </translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="75"/> <source>&amp;Label:</source> <translation>Címke:</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="93"/> <source>The address to send the payment to (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Címzett címe (pl.: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L )</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="103"/> <source>Choose address from address book</source> <translation>Válassz egy címet a címjegyzékből</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="113"/> <source>Alt+A</source> <translation>Alt+A</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="120"/> <source>Paste address from clipboard</source> <translation>Cím beillesztése a vágólapról</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="130"/> <source>Alt+P</source> <translation>Alt+P</translation> </message> <message> <location filename="../forms/sendcoinsentry.ui" line="137"/> <source>Remove this recipient</source> <translation>Címzett eltávolítása</translation> </message> <message> <location filename="../sendcoinsentry.cpp" line="26"/> <source>Enter a Bitcoin address (e.g. 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L)</source> <translation>Adj meg egy Bitcoin-címet (pl.: 1NS17iag9jJgTHD1VXjvLCEnZuQ3rJDE9L )</translation> </message> </context> <context> <name>TransactionDesc</name> <message> <location filename="../transactiondesc.cpp" line="21"/> <source>Open for %1 blocks</source> <translation>Megnyitva %1 blokkra</translation> </message> <message> <location filename="../transactiondesc.cpp" line="23"/> <source>Open until %1</source> <translation>Megnyitva %1-ig</translation> </message> <message> <location filename="../transactiondesc.cpp" line="29"/> <source>%1/offline?</source> <translation>%1/offline?</translation> </message> <message> <location filename="../transactiondesc.cpp" line="31"/> <source>%1/unconfirmed</source> <translation>%1/megerősítetlen</translation> </message> <message> <location filename="../transactiondesc.cpp" line="33"/> <source>%1 confirmations</source> <translation>%1 megerősítés</translation> </message> <message> <location filename="../transactiondesc.cpp" line="51"/> <source>&lt;b&gt;Status:&lt;/b&gt; </source> <translation>&lt;b&gt;Állapot:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="56"/> <source>, has not been successfully broadcast yet</source> <translation>, még nem sikerült elküldeni.</translation> </message> <message> <location filename="../transactiondesc.cpp" line="58"/> <source>, broadcast through %1 node</source> <translation>, %1 csomóponton keresztül elküldve.</translation> </message> <message> <location filename="../transactiondesc.cpp" line="60"/> <source>, broadcast through %1 nodes</source> <translation>, elküldve %1 csomóponton keresztül.</translation> </message> <message> <location filename="../transactiondesc.cpp" line="64"/> <source>&lt;b&gt;Date:&lt;/b&gt; </source> <translation>&lt;b&gt;Dátum:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="71"/> <source>&lt;b&gt;Source:&lt;/b&gt; Generated&lt;br&gt;</source> <translation>&lt;b&gt;Forrás:&lt;/b&gt; Generálva &lt;br&gt;</translation> </message> <message> <location filename="../transactiondesc.cpp" line="77"/> <location filename="../transactiondesc.cpp" line="94"/> <source>&lt;b&gt;From:&lt;/b&gt; </source> <translation>&lt;b&gt;Űrlap:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="94"/> <source>unknown</source> <translation>ismeretlen</translation> </message> <message> <location filename="../transactiondesc.cpp" line="95"/> <location filename="../transactiondesc.cpp" line="118"/> <location filename="../transactiondesc.cpp" line="178"/> <source>&lt;b&gt;To:&lt;/b&gt; </source> <translation>&lt;b&gt;Címzett:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="98"/> <source> (yours, label: </source> <translation> (tiéd, címke: </translation> </message> <message> <location filename="../transactiondesc.cpp" line="100"/> <source> (yours)</source> <translation> (tiéd)</translation> </message> <message> <location filename="../transactiondesc.cpp" line="136"/> <location filename="../transactiondesc.cpp" line="150"/> <location filename="../transactiondesc.cpp" line="195"/> <location filename="../transactiondesc.cpp" line="212"/> <source>&lt;b&gt;Credit:&lt;/b&gt; </source> <translation>&lt;b&gt;Jóváírás&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="138"/> <source>(%1 matures in %2 more blocks)</source> <translation>(%1, %2 múlva készül el)</translation> </message> <message> <location filename="../transactiondesc.cpp" line="142"/> <source>(not accepted)</source> <translation>(elutasítva)</translation> </message> <message> <location filename="../transactiondesc.cpp" line="186"/> <location filename="../transactiondesc.cpp" line="194"/> <location filename="../transactiondesc.cpp" line="209"/> <source>&lt;b&gt;Debit:&lt;/b&gt; </source> <translation>&lt;b&gt;Terhelés&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="200"/> <source>&lt;b&gt;Transaction fee:&lt;/b&gt; </source> <translation>&lt;b&gt;Tranzakciós díj:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="216"/> <source>&lt;b&gt;Net amount:&lt;/b&gt; </source> <translation>&lt;b&gt;Nettó összeg:&lt;/b&gt; </translation> </message> <message> <location filename="../transactiondesc.cpp" line="222"/> <source>Message:</source> <translation>Üzenet:</translation> </message> <message> <location filename="../transactiondesc.cpp" line="224"/> <source>Comment:</source> <translation>Megjegyzés:</translation> </message> <message> <location filename="../transactiondesc.cpp" line="226"/> <source>Transaction ID:</source> <translation type="unfinished"/> </message> <message> <location filename="../transactiondesc.cpp" line="229"/> <source>Generated coins must wait 120 blocks before they can be spent. When you generated this block, it was broadcast to the network to be added to the block chain. If it fails to get into the chain, it will change to &quot;not accepted&quot; and not be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source> <translation>A frissen generált érméket csak 120 blokkal később tudod elkölteni. Ez a blokk nyomban szétküldésre került a hálózatba, amint legeneráltad, hogy hozzáadhassák a blokklánchoz. Ha nem kerül be a láncba, úgy az állapota &quot;elutasítva&quot;-ra módosul, és nem költheted el az érméket. Ez akkor következhet be időnként, ha egy másik csomópont mindössze néhány másodperc különbséggel generált le egy blokkot a tiédhez képest.</translation> </message> </context> <context> <name>TransactionDescDialog</name> <message> <location filename="../forms/transactiondescdialog.ui" line="14"/> <source>Transaction details</source> <translation>Tranzakció részletei</translation> </message> <message> <location filename="../forms/transactiondescdialog.ui" line="20"/> <source>This pane shows a detailed description of the transaction</source> <translation>Ez a mező a tranzakció részleteit mutatja</translation> </message> </context> <context> <name>TransactionTableModel</name> <message> <location filename="../transactiontablemodel.cpp" line="226"/> <source>Date</source> <translation>Dátum</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="226"/> <source>Type</source> <translation>Típus</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="226"/> <source>Address</source> <translation>Cím</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="226"/> <source>Amount</source> <translation>Összeg</translation> </message> <message numerus="yes"> <location filename="../transactiontablemodel.cpp" line="281"/> <source>Open for %n block(s)</source> <translation><numerusform>%n blokkra megnyitva</numerusform><numerusform>%n blokkra megnyitva</numerusform></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="284"/> <source>Open until %1</source> <translation>%1-ig megnyitva</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="287"/> <source>Offline (%1 confirmations)</source> <translation>Offline (%1 megerősítés)</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="290"/> <source>Unconfirmed (%1 of %2 confirmations)</source> <translation>Megerősítetlen (%1 %2 megerősítésből)</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="293"/> <source>Confirmed (%1 confirmations)</source> <translation>Megerősítve (%1 megerősítés)</translation> </message> <message numerus="yes"> <location filename="../transactiontablemodel.cpp" line="301"/> <source>Mined balance will be available in %n more blocks</source> <translation><numerusform>%n blokk múlva lesz elérhető a bányászott egyenleg.</numerusform><numerusform>%n blokk múlva lesz elérhető a bányászott egyenleg.</numerusform></translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="307"/> <source>This block was not received by any other nodes and will probably not be accepted!</source> <translation>Ezt a blokkot egyetlen másik csomópont sem kapta meg, így valószínűleg nem lesz elfogadva!</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="310"/> <source>Generated but not accepted</source> <translation>Legenerálva, de még el nem fogadva.</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="353"/> <source>Received with</source> <translation>Erre a címre</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="355"/> <source>Received from</source> <translation type="unfinished"/> </message> <message> <location filename="../transactiontablemodel.cpp" line="358"/> <source>Sent to</source> <translation>Erre a címre</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="360"/> <source>Payment to yourself</source> <translation>Magadnak kifizetve</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="362"/> <source>Mined</source> <translation>Kibányászva</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="400"/> <source>(n/a)</source> <translation>(nincs)</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="599"/> <source>Transaction status. Hover over this field to show number of confirmations.</source> <translation>Tranzakció állapota. Húzd ide a kurzort, hogy lásd a megerősítések számát.</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="601"/> <source>Date and time that the transaction was received.</source> <translation>Tranzakció fogadásának dátuma és időpontja.</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="603"/> <source>Type of transaction.</source> <translation>Tranzakció típusa.</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="605"/> <source>Destination address of transaction.</source> <translation>A tranzakció címzettjének címe.</translation> </message> <message> <location filename="../transactiontablemodel.cpp" line="607"/> <source>Amount removed from or added to balance.</source> <translation>Az egyenleghez jóváírt vagy ráterhelt összeg.</translation> </message> </context> <context> <name>TransactionView</name> <message> <location filename="../transactionview.cpp" line="55"/> <location filename="../transactionview.cpp" line="71"/> <source>All</source> <translation>Mind</translation> </message> <message> <location filename="../transactionview.cpp" line="56"/> <source>Today</source> <translation>Mai</translation> </message> <message> <location filename="../transactionview.cpp" line="57"/> <source>This week</source> <translation>Ezen a héten</translation> </message> <message> <location filename="../transactionview.cpp" line="58"/> <source>This month</source> <translation>Ebben a hónapban</translation> </message> <message> <location filename="../transactionview.cpp" line="59"/> <source>Last month</source> <translation>Múlt hónapban</translation> </message> <message> <location filename="../transactionview.cpp" line="60"/> <source>This year</source> <translation>Ebben az évben</translation> </message> <message> <location filename="../transactionview.cpp" line="61"/> <source>Range...</source> <translation>Tartomány ...</translation> </message> <message> <location filename="../transactionview.cpp" line="72"/> <source>Received with</source> <translation>Erre a címre</translation> </message> <message> <location filename="../transactionview.cpp" line="74"/> <source>Sent to</source> <translation>Erre a címre</translation> </message> <message> <location filename="../transactionview.cpp" line="76"/> <source>To yourself</source> <translation>Magadnak</translation> </message> <message> <location filename="../transactionview.cpp" line="77"/> <source>Mined</source> <translation>Kibányászva</translation> </message> <message> <location filename="../transactionview.cpp" line="78"/> <source>Other</source> <translation>Más</translation> </message> <message> <location filename="../transactionview.cpp" line="85"/> <source>Enter address or label to search</source> <translation>Írd be a keresendő címet vagy címkét</translation> </message> <message> <location filename="../transactionview.cpp" line="92"/> <source>Min amount</source> <translation>Minimális összeg</translation> </message> <message> <location filename="../transactionview.cpp" line="126"/> <source>Copy address</source> <translation>Cím másolása</translation> </message> <message> <location filename="../transactionview.cpp" line="127"/> <source>Copy label</source> <translation>Címke másolása</translation> </message> <message> <location filename="../transactionview.cpp" line="128"/> <source>Copy amount</source> <translation type="unfinished"/> </message> <message> <location filename="../transactionview.cpp" line="129"/> <source>Edit label</source> <translation>Címke szerkesztése</translation> </message> <message> <location filename="../transactionview.cpp" line="130"/> <source>Show transaction details</source> <translation type="unfinished"/> </message> <message> <location filename="../transactionview.cpp" line="270"/> <source>Export Transaction Data</source> <translation>Tranzakció adatainak exportálása</translation> </message> <message> <location filename="../transactionview.cpp" line="271"/> <source>Comma separated file (*.csv)</source> <translation>Vesszővel elválasztott fájl (*.csv)</translation> </message> <message> <location filename="../transactionview.cpp" line="279"/> <source>Confirmed</source> <translation>Megerősítve</translation> </message> <message> <location filename="../transactionview.cpp" line="280"/> <source>Date</source> <translation>Dátum</translation> </message> <message> <location filename="../transactionview.cpp" line="281"/> <source>Type</source> <translation>Típus</translation> </message> <message> <location filename="../transactionview.cpp" line="282"/> <source>Label</source> <translation>Címke</translation> </message> <message> <location filename="../transactionview.cpp" line="283"/> <source>Address</source> <translation>Cím</translation> </message> <message> <location filename="../transactionview.cpp" line="284"/> <source>Amount</source> <translation>Összeg</translation> </message> <message> <location filename="../transactionview.cpp" line="285"/> <source>ID</source> <translation>Azonosító</translation> </message> <message> <location filename="../transactionview.cpp" line="289"/> <source>Error exporting</source> <translation>Hiba lépett fel exportálás közben</translation> </message> <message> <location filename="../transactionview.cpp" line="289"/> <source>Could not write to file %1.</source> <translation>%1 fájlba való kiírás sikertelen.</translation> </message> <message> <location filename="../transactionview.cpp" line="384"/> <source>Range:</source> <translation>Tartomány:</translation> </message> <message> <location filename="../transactionview.cpp" line="392"/> <source>to</source> <translation>meddig</translation> </message> </context> <context> <name>VerifyMessageDialog</name> <message> <location filename="../forms/verifymessagedialog.ui" line="14"/> <source>Verify Signed Message</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/verifymessagedialog.ui" line="20"/> <source>Enter the message and signature below (be careful to correctly copy newlines, spaces, tabs and other invisible characters) to obtain the Bitcoin address used to sign the message.</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/verifymessagedialog.ui" line="62"/> <source>Verify a message and obtain the Bitcoin address used to sign the message</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/verifymessagedialog.ui" line="65"/> <source>&amp;Verify Message</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/verifymessagedialog.ui" line="79"/> <source>Copy the currently selected address to the system clipboard</source> <translation>A kiválasztott cím másolása a vágólapra</translation> </message> <message> <location filename="../forms/verifymessagedialog.ui" line="82"/> <source>&amp;Copy Address</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/verifymessagedialog.ui" line="93"/> <source>Reset all verify message fields</source> <translation type="unfinished"/> </message> <message> <location filename="../forms/verifymessagedialog.ui" line="96"/> <source>Clear &amp;All</source> <translation type="unfinished"/> </message> <message> <location filename="../verifymessagedialog.cpp" line="28"/> <source>Enter Bitcoin signature</source> <translation type="unfinished"/> </message> <message> <location filename="../verifymessagedialog.cpp" line="29"/> <source>Click &quot;Verify Message&quot; to obtain address</source> <translation type="unfinished"/> </message> <message> <location filename="../verifymessagedialog.cpp" line="55"/> <location filename="../verifymessagedialog.cpp" line="62"/> <source>Invalid Signature</source> <translation type="unfinished"/> </message> <message> <location filename="../verifymessagedialog.cpp" line="55"/> <source>The signature could not be decoded. Please check the signature and try again.</source> <translation type="unfinished"/> </message> <message> <location filename="../verifymessagedialog.cpp" line="62"/> <source>The signature did not match the message digest. Please check the signature and try again.</source> <translation type="unfinished"/> </message> <message> <location filename="../verifymessagedialog.cpp" line="72"/> <source>Address not found in address book.</source> <translation type="unfinished"/> </message> <message> <location filename="../verifymessagedialog.cpp" line="72"/> <source>Address found in address book: %1</source> <translation type="unfinished"/> </message> </context> <context> <name>WalletModel</name> <message> <location filename="../walletmodel.cpp" line="158"/> <source>Sending...</source> <translation>Küldés ...</translation> </message> </context> <context> <name>WindowOptionsPage</name> <message> <location filename="../optionsdialog.cpp" line="313"/> <source>Window</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="316"/> <source>&amp;Minimize to the tray instead of the taskbar</source> <translation>&amp;Kicsinyítés a tálcára az eszköztár helyett</translation> </message> <message> <location filename="../optionsdialog.cpp" line="317"/> <source>Show only a tray icon after minimizing the window</source> <translation>Kicsinyítés után csak eszköztár-ikont mutass</translation> </message> <message> <location filename="../optionsdialog.cpp" line="320"/> <source>M&amp;inimize on close</source> <translation type="unfinished"/> </message> <message> <location filename="../optionsdialog.cpp" line="321"/> <source>Minimize instead of exit the application when the window is closed. When this option is enabled, the application will be closed only after selecting Quit in the menu.</source> <translation>Az alkalmazásból való kilépés helyett az eszköztárba kicsinyíti az alkalmazást az ablak bezárásakor. Ez esetben az alkalmazás csak a Kilépés menüponttal zárható be.</translation> </message> </context> <context> <name>bitcoin-core</name> <message> <location filename="../bitcoinstrings.cpp" line="43"/> <source>Bitcoin version</source> <translation>Bitcoin verzió</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="44"/> <source>Usage:</source> <translation>Használat:</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="45"/> <source>Send command to -server or bitcoind</source> <translation>Parancs küldése a -serverhez vagy a bitcoindhez </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="46"/> <source>List commands</source> <translation>Parancsok kilistázása </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="47"/> <source>Get help for a command</source> <translation>Segítség egy parancsról </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="49"/> <source>Options:</source> <translation>Opciók </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="50"/> <source>Specify configuration file (default: bitcoin.conf)</source> <translation>Konfigurációs fájl (alapértelmezett: bitcoin.conf) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="51"/> <source>Specify pid file (default: bitcoind.pid)</source> <translation>pid-fájl (alapértelmezett: bitcoind.pid) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="52"/> <source>Generate coins</source> <translation>Érmék generálása </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="53"/> <source>Don&apos;t generate coins</source> <translation>Bitcoin-generálás leállítása </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="54"/> <source>Specify data directory</source> <translation>Adatkönyvtár </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="55"/> <source>Set database cache size in megabytes (default: 25)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="56"/> <source>Set database disk log size in megabytes (default: 100)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="57"/> <source>Specify connection timeout (in milliseconds)</source> <translation>Csatlakozás időkerete (milliszekundumban) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="63"/> <source>Listen for connections on &lt;port&gt; (default: 8333 or testnet: 18333)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="64"/> <source>Maintain at most &lt;n&gt; connections to peers (default: 125)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="66"/> <source>Connect only to the specified node</source> <translation>Csatlakozás csak a megadott csomóponthoz </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="67"/> <source>Connect to a node to retrieve peer addresses, and disconnect</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="68"/> <source>Specify your own public address</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="69"/> <source>Only connect to nodes in network &lt;net&gt; (IPv4 or IPv6)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="70"/> <source>Try to discover public IP address (default: 1)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="73"/> <source>Bind to given address. Use [host]:port notation for IPv6</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="75"/> <source>Threshold for disconnecting misbehaving peers (default: 100)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="76"/> <source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="79"/> <source>Maximum per-connection receive buffer, &lt;n&gt;*1000 bytes (default: 10000)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="80"/> <source>Maximum per-connection send buffer, &lt;n&gt;*1000 bytes (default: 10000)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="83"/> <source>Detach block and address databases. Increases shutdown time (default: 0)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="86"/> <source>Accept command line and JSON-RPC commands</source> <translation>Parancssoros és JSON-RPC parancsok elfogadása </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="87"/> <source>Run in the background as a daemon and accept commands</source> <translation>Háttérben futtatás daemonként és parancsok elfogadása </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="88"/> <source>Use the test network</source> <translation>Teszthálózat használata </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="89"/> <source>Output extra debugging information</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="90"/> <source>Prepend debug output with timestamp</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="91"/> <source>Send trace/debug info to console instead of debug.log file</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="92"/> <source>Send trace/debug info to debugger</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="93"/> <source>Username for JSON-RPC connections</source> <translation>Felhasználói név JSON-RPC csatlakozásokhoz </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="94"/> <source>Password for JSON-RPC connections</source> <translation>Jelszó JSON-RPC csatlakozásokhoz </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="95"/> <source>Listen for JSON-RPC connections on &lt;port&gt; (default: 8332)</source> <translation>JSON-RPC csatlakozásokhoz figyelendő &lt;port&gt; (alapértelmezett: 8332) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="96"/> <source>Allow JSON-RPC connections from specified IP address</source> <translation>JSON-RPC csatlakozások engedélyezése meghatározott IP-címről </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="97"/> <source>Send commands to node running on &lt;ip&gt; (default: 127.0.0.1)</source> <translation>Parancsok küldése &lt;ip&gt; címen működő csomóponthoz (alapértelmezett: 127.0.0.1) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="98"/> <source>Execute command when the best block changes (%s in cmd is replaced by block hash)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="101"/> <source>Upgrade wallet to latest format</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="102"/> <source>Set key pool size to &lt;n&gt; (default: 100)</source> <translation>Kulcskarika mérete &lt;n&gt; (alapértelmezett: 100) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="103"/> <source>Rescan the block chain for missing wallet transactions</source> <translation>Blokklánc újraszkennelése hiányzó tárca-tranzakciók után </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="104"/> <source>How many blocks to check at startup (default: 2500, 0 = all)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="105"/> <source>How thorough the block verification is (0-6, default: 1)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="106"/> <source>Imports blocks from external blk000?.dat file</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="108"/> <source> SSL options: (see the Bitcoin Wiki for SSL setup instructions)</source> <translation> SSL-opciók: (lásd a Bitcoin Wiki SSL-beállítási instrukcióit) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="111"/> <source>Use OpenSSL (https) for JSON-RPC connections</source> <translation>OpenSSL (https) használata JSON-RPC csatalkozásokhoz </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="112"/> <source>Server certificate file (default: server.cert)</source> <translation>Szervertanúsítvány-fájl (alapértelmezett: server.cert) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="113"/> <source>Server private key (default: server.pem)</source> <translation>Szerver titkos kulcsa (alapértelmezett: server.pem) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="114"/> <source>Acceptable ciphers (default: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH)</source> <translation>Elfogadható rejtjelkulcsok (alapértelmezett: TLSv1+HIGH:!SSLv2:!aNULL:!eNULL:!AH:!3DES:@STRENGTH ) </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="145"/> <source>Warning: Disk space is low</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="107"/> <source>This help message</source> <translation>Ez a súgó-üzenet </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="121"/> <source>Cannot obtain a lock on data directory %s. Bitcoin is probably already running.</source> <translation>Az %s adatkönyvtár nem zárható. A Bitcoin valószínűleg fut már.</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="48"/> <source>Bitcoin</source> <translation>Bitcoin</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="30"/> <source>Unable to bind to %s on this computer (bind returned error %d, %s)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="58"/> <source>Connect through socks proxy</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="59"/> <source>Select the version of socks proxy to use (4 or 5, 5 is default)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="60"/> <source>Do not use proxy for connections to network &lt;net&gt; (IPv4 or IPv6)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="61"/> <source>Allow DNS lookups for -addnode, -seednode and -connect</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="62"/> <source>Pass DNS requests to (SOCKS5) proxy</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="142"/> <source>Loading addresses...</source> <translation>Címek betöltése...</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="132"/> <source>Error loading blkindex.dat</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="134"/> <source>Error loading wallet.dat: Wallet corrupted</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="135"/> <source>Error loading wallet.dat: Wallet requires newer version of Bitcoin</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="136"/> <source>Wallet needed to be rewritten: restart Bitcoin to complete</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="137"/> <source>Error loading wallet.dat</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="124"/> <source>Invalid -proxy address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="125"/> <source>Unknown network specified in -noproxy: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="127"/> <source>Unknown network specified in -onlynet: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="126"/> <source>Unknown -socks proxy version requested: %i</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="128"/> <source>Cannot resolve -bind address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="129"/> <source>Not listening on any port</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="130"/> <source>Cannot resolve -externalip address: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="117"/> <source>Invalid amount for -paytxfee=&lt;amount&gt;: &apos;%s&apos;</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="143"/> <source>Error: could not start node</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="31"/> <source>Error: Wallet locked, unable to create transaction </source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="32"/> <source>Error: This transaction requires a transaction fee of at least %s because of its amount, complexity, or use of recently received funds </source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="35"/> <source>Error: Transaction creation failed </source> <translation>Hiba: nem sikerült létrehozni a tranzakciót </translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="36"/> <source>Sending...</source> <translation>Küldés...</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="37"/> <source>Error: The transaction was rejected. This might happen if some of the coins in your wallet were already spent, such as if you used a copy of wallet.dat and coins were spent in the copy but not marked as spent here.</source> <translation>Hiba: a tranzakciót elutasították. Ezt az okozhatja, ha már elköltöttél valamennyi érmét a tárcádból - például ha a wallet.dat-od egy másolatát használtad, és így az elköltés csak abban lett jelölve, de itt nem.</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="41"/> <source>Invalid amount</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="42"/> <source>Insufficient funds</source> <translation>Nincs elég bitcoinod.</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="131"/> <source>Loading block index...</source> <translation>Blokkindex betöltése...</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="65"/> <source>Add a node to connect to and attempt to keep the connection open</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="28"/> <source>Unable to bind to %s on this computer. Bitcoin is probably already running.</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="71"/> <source>Find peers using internet relay chat (default: 0)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="72"/> <source>Accept connections from outside (default: 1)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="74"/> <source>Find peers using DNS lookup (default: 1)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="81"/> <source>Use Universal Plug and Play to map the listening port (default: 1)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="82"/> <source>Use Universal Plug and Play to map the listening port (default: 0)</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="85"/> <source>Fee per KB to add to transactions you send</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="118"/> <source>Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction.</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="133"/> <source>Loading wallet...</source> <translation>Tárca betöltése...</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="138"/> <source>Cannot downgrade wallet</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="139"/> <source>Cannot initialize keypool</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="140"/> <source>Cannot write default address</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="141"/> <source>Rescanning...</source> <translation>Újraszkennelés...</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="144"/> <source>Done loading</source> <translation>Betöltés befejezve.</translation> </message> <message> <location filename="../bitcoinstrings.cpp" line="8"/> <source>To use the %s option</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="9"/> <source>%s, you must set a rpcpassword in the configuration file: %s It is recommended you use the following random password: rpcuser=bitcoinrpc rpcpassword=%s (you do not need to remember this password) If the file does not exist, create it with owner-readable-only file permissions. </source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="18"/> <source>Error</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="19"/> <source>An error occured while setting up the RPC port %i for listening: %s</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="20"/> <source>You must set rpcpassword=&lt;password&gt; in the configuration file: %s If the file does not exist, create it with owner-readable-only file permissions.</source> <translation type="unfinished"/> </message> <message> <location filename="../bitcoinstrings.cpp" line="25"/> <source>Warning: Please check that your computer&apos;s date and time are correct. If your clock is wrong Bitcoin will not work properly.</source> <translation>Figyelem: Ellenőrizd, hogy helyesen van-e beállítva a gépeden a dátum és az idő. A Bitcoin nem fog megfelelően működni, ha rosszul van beállítvaaz órád.</translation> </message> </context> </TS>
goodbyecoin/goodbyecoin
src/qt/locale/bitcoin_hu.ts
TypeScript
mit
106,091
/** * This file is where you define your application routes and controllers. * * Start by including the middleware you want to run for every request; * you can attach middleware to the pre('routes') and pre('render') events. * * For simplicity, the default setup for route controllers is for each to be * in its own file, and we import all the files in the /routes/views directory. * * Each of these files is a route controller, and is responsible for all the * processing that needs to happen for the route (e.g. loading data, handling * form submissions, rendering the view template, etc). * * Bind each route pattern your application should respond to in the function * that is exported from this module, following the examples below. * * See the Express application routing documentation for more information: * http://expressjs.com/api.html#app.VERB */ var keystone = require('keystone'); var middleware = require('./middleware'); var importRoutes = keystone.importer(__dirname); var sitemap = require('keystone-express-sitemap'); var https = require('https'); // Common Middleware keystone.pre('routes', middleware.initLocals); keystone.pre('render', middleware.flashMessages); // Import Route Controllers var routes = { views: importRoutes('./views') }; // Setup Route Bindings exports = module.exports = function(app) { // Views app.get('/', routes.views.index); app.get('/blog/:category?', routes.views.blog); app.get('/blog/post/:post', routes.views.post); app.get('/buy/:category?', routes.views.buy); app.get('/buy/post/:post', routes.views.post); app.get('/sell/:category?', routes.views.sell); app.get('/sell/post/:post', routes.views.post); app.get('/testimonial/:category?', routes.views.testimonial); app.get('/testimonial/post/:post', routes.views.post); app.get('/gallery', routes.views.gallery); //app.get('/listing/:category?', routes.views.listing); app.get('/listing2', routes.views.listing2); //app.get('/listing/post/:post', routes.views.post); app.all('/search2', routes.views.search2); app.get('/mls', routes.views.mls); app.all('/contact', routes.views.contact); app.all('/coverage', routes.views.coverage); app.all('/legal', routes.views.legal); app.all('/location', routes.views.location); app.get('/sitemap.xml', function(req, res) { sitemap.create(keystone, req, res); }); // NOTE: To protect a route so that only admins can see it, use the requireUser middleware: // app.get('/protected', middleware.requireUser, routes.views.protected); };
briviere/keystone-realestate-template
routes/index.js
JavaScript
mit
2,560
/** * @license Copyright (c) {{year}}, {{author}} All Rights Reserved. * Available via MIT license. */ /** * A client {{page}} {{request}} handler. */ define([ 'framework/request/base_request_handler', '../{{request}}_request', 'framework/core/deferred/deferred', 'domain/request/{{page}}/{{requestServer}}_request' ], function(BaseRequestHandler, {{toPascal request}}Request, Deferred, {{toPascal requestServer}}Request) { var {{toPascal request}}Handler = BaseRequestHandler.create({{toPascal request}}Request); // @override {{toPascal request}}Handler.prototype.execute = function(requestContext, request, response) { // TODO: Add in the handler method. return Deferred.resolvedPromise(requestContext); // OR /* var _this = this, remoteRequest = new {{toPascal requestServer}}Request(request); this._dispatcher.trigger('message', [ 'Doing Something', request.getSomething() ]); return this._remoteRequest(requestContext, remoteRequest).then(function(remoteResponse) { _this._dispatcher.trigger('message', [ 'Something Done', request.getSomething() ]); return Deferred.resolvedPromise(requestContext); }); */ }; return {{toPascal request}}Handler; });
DragonDTG/vex
lib/generator/request/public/static/scripts/pages/page/handler/request_handler.js
JavaScript
mit
1,223
// A cross-browser javascript shim for html5 audio (function(audiojs, audiojsInstance, container) { // Use the path to the audio.js file to create relative paths to the swf and player graphics // Remember that some systems (e.g. ruby on rails) append strings like '?1301478336' to asset paths var path = (function() { var re = new RegExp('audio(\.min)?\.js.*'), scripts = document.getElementsByTagName('script'); for (var i = 0, ii = scripts.length; i < ii; i++) { var path = scripts[i].getAttribute('src'); if(re.test(path)) return path.replace(re, ''); } })(); // ##The audiojs interface // This is the global object which provides an interface for creating new `audiojs` instances. // It also stores all of the construction helper methods and variables. container[audiojs] = { instanceCount: 0, instances: {}, // The markup for the swf. It is injected into the page if there is not support for the `<audio>` element. The `$n`s are placeholders. // `$1` The name of the flash movie // `$2` The path to the swf // `$3` Cache invalidation flashSource: '\ <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="$1" width="1" height="1" name="$1" style="position: absolute; left: -1px;"> \ <param name="movie" value="$2?playerInstance='+audiojs+'.instances[\'$1\']&datetime=$3"> \ <param name="allowscriptaccess" value="always"> \ <embed name="$1" src="$2?playerInstance='+audiojs+'.instances[\'$1\']&datetime=$3" width="1" height="1" allowscriptaccess="always"> \ </object>', // ### The main settings object // Where all the default settings are stored. Each of these variables and methods can be overwritten by the user-provided `options` object. settings: { autoplay: false, loop: false, preload: false, imageLocation: path + 'player-graphics.gif', swfLocation: path + 'audiojs.swf', useFlash: (function() { var a = document.createElement('audio'); return !(a.canPlayType && a.canPlayType('audio/mpeg;').replace(/no/, '')); })(), hasFlash: (function() { if (navigator.plugins && navigator.plugins.length && navigator.plugins['Shockwave Flash']) { return true; } else if (navigator.mimeTypes && navigator.mimeTypes.length) { var mimeType = navigator.mimeTypes['application/x-shockwave-flash']; return mimeType && mimeType.enabledPlugin; } else { try { var ax = new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); return true; } catch (e) {} } return false; })(), // The default markup and classes for creating the player: createPlayer: { markup: '\ <div class="play-pause"> \ <p class="play"></p> \ <p class="pause"></p> \ <p class="loading"></p> \ <p class="error"></p> \ </div> \ <div class="scrubber"> \ <div class="progress"></div> \ <div class="loaded"></div> \ </div> \ <div class="time"> \ <em class="played">00:00</em>/<strong class="duration">00:00</strong> \ </div> \ <div class="error-message"></div>', playPauseClass: 'play-pause', scrubberClass: 'scrubber', progressClass: 'progress', loaderClass: 'loaded', timeClass: 'time', durationClass: 'duration', playedClass: 'played', errorMessageClass: 'error-message', playingClass: 'playing', loadingClass: 'loading', errorClass: 'error' }, // The css used by the default player. This is is dynamically injected into a `<style>` tag in the top of the head. css: '\ .audiojs audio { position: absolute; left: -1px; } \ .audiojs { width: 460px; height: 36px; background: #404040; overflow: hidden; font-family: monospace; font-size: 12px; \ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #444), color-stop(0.5, #555), color-stop(0.51, #444), color-stop(1, #444)); \ background-image: -moz-linear-gradient(center top, #444 0%, #555 50%, #444 51%, #444 100%); \ -webkit-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3); -moz-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3); \ -o-box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3); box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.3); } \ .audiojs .play-pause { width: 25px; height: 40px; padding: 4px 6px; margin: 0px; float: left; overflow: hidden; border-right: 1px solid #000; } \ .audiojs p { display: none; width: 25px; height: 40px; margin: 0px; cursor: pointer; } \ .audiojs .play { display: block; } \ .audiojs .scrubber { position: relative; float: left; width: 280px; background: #5a5a5a; height: 14px; margin: 10px; border-top: 1px solid #3f3f3f; border-left: 0px; border-bottom: 0px; overflow: hidden; } \ .audiojs .progress { position: absolute; top: 0px; left: 0px; height: 14px; width: 0px; background: #ccc; z-index: 1; \ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #ccc), color-stop(0.5, #ddd), color-stop(0.51, #ccc), color-stop(1, #ccc)); \ background-image: -moz-linear-gradient(center top, #ccc 0%, #ddd 50%, #ccc 51%, #ccc 100%); } \ .audiojs .loaded { position: absolute; top: 0px; left: 0px; height: 14px; width: 0px; background: #000; \ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #222), color-stop(0.5, #333), color-stop(0.51, #222), color-stop(1, #222)); \ background-image: -moz-linear-gradient(center top, #222 0%, #333 50%, #222 51%, #222 100%); } \ .audiojs .time { float: left; height: 36px; line-height: 36px; margin: 0px 0px 0px 6px; padding: 0px 6px 0px 12px; border-left: 1px solid #000; color: #ddd; text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5); } \ .audiojs .time em { padding: 0px 2px 0px 0px; color: #f9f9f9; font-style: normal; } \ .audiojs .time strong { padding: 0px 0px 0px 2px; font-weight: normal; } \ .audiojs .error-message { float: left; display: none; margin: 0px 10px; height: 36px; width: 400px; overflow: hidden; line-height: 36px; white-space: nowrap; color: #fff; \ text-overflow: ellipsis; -o-text-overflow: ellipsis; -icab-text-overflow: ellipsis; -khtml-text-overflow: ellipsis; -moz-text-overflow: ellipsis; -webkit-text-overflow: ellipsis; } \ .audiojs .error-message a { color: #eee; text-decoration: none; padding-bottom: 1px; border-bottom: 1px solid #999; white-space: wrap; } \ \ .audiojs .play { background: url("$1") -2px -1px no-repeat; } \ .audiojs .loading { background: url("$1") -2px -31px no-repeat; } \ .audiojs .error { background: url("$1") -2px -61px no-repeat; } \ .audiojs .pause { background: url("$1") -2px -91px no-repeat; } \ \ .playing .play, .playing .loading, .playing .error { display: none; } \ .playing .pause { display: block; } \ \ .loading .play, .loading .pause, .loading .error { display: none; } \ .loading .loading { display: block; } \ \ .error .time, .error .play, .error .pause, .error .scrubber, .error .loading { display: none; } \ .error .error { display: block; } \ .error .play-pause p { cursor: auto; } \ .error .error-message { display: block; }', // The default event callbacks: trackEnded: function(e) {}, flashError: function() { var player = this.settings.createPlayer, errorMessage = getByClass(player.errorMessageClass, this.wrapper), html = 'Missing <a href="http://get.adobe.com/flashplayer/">flash player</a> plugin.'; if (this.mp3) html += ' <a href="'+this.mp3+'">Download audio file</a>.'; container[audiojs].helpers.removeClass(this.wrapper, player.loadingClass); container[audiojs].helpers.addClass(this.wrapper, player.errorClass); errorMessage.innerHTML = html; }, loadError: function(e) { var player = this.settings.createPlayer, errorMessage = getByClass(player.errorMessageClass, this.wrapper); container[audiojs].helpers.removeClass(this.wrapper, player.loadingClass); container[audiojs].helpers.addClass(this.wrapper, player.errorClass); errorMessage.innerHTML = 'Error loading: "'+this.mp3+'"'; }, init: function() { var player = this.settings.createPlayer; container[audiojs].helpers.addClass(this.wrapper, player.loadingClass); }, loadStarted: function() { var player = this.settings.createPlayer, duration = getByClass(player.durationClass, this.wrapper), m = Math.floor(this.duration / 60), s = Math.floor(this.duration % 60); container[audiojs].helpers.removeClass(this.wrapper, player.loadingClass); duration.innerHTML = ((m<10?'0':'')+m+':'+(s<10?'0':'')+s); }, loadProgress: function(percent) { var player = this.settings.createPlayer, scrubber = getByClass(player.scrubberClass, this.wrapper), loaded = getByClass(player.loaderClass, this.wrapper); loaded.style.width = (scrubber.offsetWidth * percent) + 'px'; }, playPause: function() { if (this.playing) this.settings.play(); else this.settings.pause(); }, play: function() { var player = this.settings.createPlayer; container[audiojs].helpers.addClass(this.wrapper, player.playingClass); }, pause: function() { var player = this.settings.createPlayer; container[audiojs].helpers.removeClass(this.wrapper, player.playingClass); }, updatePlayhead: function(percent) { var player = this.settings.createPlayer, scrubber = getByClass(player.scrubberClass, this.wrapper), progress = getByClass(player.progressClass, this.wrapper); progress.style.width = (scrubber.offsetWidth * percent) + 'px'; var played = getByClass(player.playedClass, this.wrapper), p = this.duration * percent, m = Math.floor(p / 60), s = Math.floor(p % 60); played.innerHTML = ((m<10?'0':'')+m+':'+(s<10?'0':'')+s); } }, // ### Contructor functions // `create()` // Used to create a single `audiojs` instance. // If an array is passed then it calls back to `createAll()`. // Otherwise, it creates a single instance and returns it. create: function(element, options) { var options = options || {} if (element.length) { return this.createAll(options, element); } else { return this.newInstance(element, options); } }, // `createAll()` // Creates multiple `audiojs` instances. // If `elements` is `null`, then automatically find any `<audio>` tags on the page and create `audiojs` instances for them. createAll: function(options, elements) { var audioElements = elements || document.getElementsByTagName('audio'), instances = [] options = options || {}; for (var i = 0, ii = audioElements.length; i < ii; i++) { instances.push(this.newInstance(audioElements[i], options)); } return instances; }, // ### Creating and returning a new instance // This goes through all the steps required to build out a usable `audiojs` instance. newInstance: function(element, options) { var element = element, s = this.helpers.clone(this.settings), id = 'audiojs'+this.instanceCount, wrapperId = 'audiojs_wrapper'+this.instanceCount, instanceCount = this.instanceCount++; // Check for `autoplay`, `loop` and `preload` attributes and write them into the settings. if (element.getAttribute('autoplay') != null) s.autoplay = true; if (element.getAttribute('loop') != null) s.loop = true; if (element.getAttribute('preload') == 'none') s.preload = false; // Merge the default settings with the user-defined `options`. if (options) this.helpers.merge(s, options); // Inject the player html if required. if (s.createPlayer.markup) element = this.createPlayer(element, s.createPlayer, wrapperId); else element.parentNode.setAttribute('id', wrapperId); // Return a new `audiojs` instance. var audio = new container[audiojsInstance](element, s); // If css has been passed in, dynamically inject it into the `<head>`. if (s.css) this.helpers.injectCss(audio, s.css); // If `<audio>` or mp3 playback isn't supported, insert the swf & attach the required events for it. if (s.useFlash && s.hasFlash) { this.injectFlash(audio, id); this.attachFlashEvents(audio.wrapper, audio); } else if (s.useFlash && !s.hasFlash) { this.settings.flashError.apply(audio); } // Attach event callbacks to the new audiojs instance. if (!s.useFlash || (s.useFlash && s.hasFlash)) this.attachEvents(audio.wrapper, audio); // Store the newly-created `audiojs` instance. this.instances[id] = audio; return audio; }, // ### Helper methods for constructing a working player // Inject a wrapping div and the markup for the html player. createPlayer: function(element, player, id) { var wrapper = document.createElement('div'), newElement = element.cloneNode(true); wrapper.setAttribute('class', 'audiojs'); wrapper.setAttribute('className', 'audiojs'); wrapper.setAttribute('id', id); // Fix IE's broken implementation of `innerHTML` & `cloneNode` for HTML5 elements. if (newElement.outerHTML && !document.createElement('audio').canPlayType) { newElement = this.helpers.cloneHtml5Node(element); wrapper.innerHTML = player.markup; wrapper.appendChild(newElement); element.outerHTML = wrapper.outerHTML; wrapper = document.getElementById(id); } else { wrapper.appendChild(newElement); wrapper.innerHTML = wrapper.innerHTML + player.markup; element.parentNode.replaceChild(wrapper, element); } return wrapper.getElementsByTagName('audio')[0]; }, // Attaches useful event callbacks to an `audiojs` instance. attachEvents: function(wrapper, audio) { if (!audio.settings.createPlayer) return; var player = audio.settings.createPlayer, playPause = getByClass(player.playPauseClass, wrapper), scrubber = getByClass(player.scrubberClass, wrapper), leftPos = function(elem) { var curleft = 0; if (elem.offsetParent) { do { curleft += elem.offsetLeft; } while (elem = elem.offsetParent); } return curleft; }; container[audiojs].events.addListener(playPause, 'click', function(e) { audio.playPause.apply(audio); }); container[audiojs].events.addListener(scrubber, 'click', function(e) { var relativeLeft = e.clientX - leftPos(this); audio.skipTo(relativeLeft / scrubber.offsetWidth); }); // _If flash is being used, then the following handlers don't need to be registered._ if (audio.settings.useFlash) return; // Start tracking the load progress of the track. container[audiojs].events.trackLoadProgress(audio); container[audiojs].events.addListener(audio.element, 'timeupdate', function(e) { audio.updatePlayhead.apply(audio); }); container[audiojs].events.addListener(audio.element, 'ended', function(e) { audio.trackEnded.apply(audio); }); container[audiojs].events.addListener(audio.source, 'error', function(e) { // on error, cancel any load timers that are running. clearInterval(audio.readyTimer); clearInterval(audio.loadTimer); audio.settings.loadError.apply(audio); }); }, // Flash requires a slightly different API to the `<audio>` element, so this method is used to overwrite the standard event handlers. attachFlashEvents: function(element, audio) { audio['swfReady'] = false; audio['load'] = function(mp3) { // If the swf isn't ready yet then just set `audio.mp3`. `init()` will load it in once the swf is ready. audio.mp3 = mp3; if (audio.swfReady) audio.element.load(mp3); } audio['loadProgress'] = function(percent, duration) { audio.loadedPercent = percent; audio.duration = duration; audio.settings.loadStarted.apply(audio); audio.settings.loadProgress.apply(audio, [percent]); } audio['skipTo'] = function(percent) { if (percent > audio.loadedPercent) return; audio.updatePlayhead.call(audio, [percent]) audio.element.skipTo(percent); } audio['updatePlayhead'] = function(percent) { audio.settings.updatePlayhead.apply(audio, [percent]); } audio['play'] = function() { // If the audio hasn't started preloading, then start it now. // Then set `preload` to `true`, so that any tracks loaded in subsequently are loaded straight away. if (!audio.settings.preload) { audio.settings.preload = true; audio.element.init(audio.mp3); } audio.playing = true; // IE doesn't allow a method named `play()` to be exposed through `ExternalInterface`, so lets go with `pplay()`. // <http://dev.nuclearrooster.com/2008/07/27/externalinterfaceaddcallback-can-cause-ie-js-errors-with-certain-keyworkds/> audio.element.pplay(); audio.settings.play.apply(audio); } audio['pause'] = function() { audio.playing = false; // Use `ppause()` for consistency with `pplay()`, even though it isn't really required. audio.element.ppause(); audio.settings.pause.apply(audio); } audio['setVolume'] = function(v) { audio.element.setVolume(v); } audio['loadStarted'] = function() { // Load the mp3 specified by the audio element into the swf. audio.swfReady = true; if (audio.settings.preload) audio.element.init(audio.mp3); if (audio.settings.autoplay) audio.play.apply(audio); } }, // ### Injecting an swf from a string // Build up the swf source by replacing the `$keys` and then inject the markup into the page. injectFlash: function(audio, id) { var flashSource = this.flashSource.replace(/\$1/g, id); flashSource = flashSource.replace(/\$2/g, audio.settings.swfLocation); // `(+new Date)` ensures the swf is not pulled out of cache. The fixes an issue with Firefox running multiple players on the same page. flashSource = flashSource.replace(/\$3/g, (+new Date + Math.random())); // Inject the player markup using a more verbose `innerHTML` insertion technique that works with IE. var html = audio.wrapper.innerHTML, div = document.createElement('div'); div.innerHTML = flashSource + html; audio.wrapper.innerHTML = div.innerHTML; audio.element = this.helpers.getSwf(id); }, // ## Helper functions helpers: { // **Merge two objects, with `obj2` overwriting `obj1`** // The merge is shallow, but that's all that is required for our purposes. merge: function(obj1, obj2) { for (attr in obj2) { if (obj1.hasOwnProperty(attr) || obj2.hasOwnProperty(attr)) { obj1[attr] = obj2[attr]; } } }, // **Clone a javascript object (recursively)** clone: function(obj){ if (obj == null || typeof(obj) !== 'object') return obj; var temp = new obj.constructor(); for (var key in obj) temp[key] = arguments.callee(obj[key]); return temp; }, // **Adding/removing classnames from elements** addClass: function(element, className) { var re = new RegExp('(\\s|^)'+className+'(\\s|$)'); if (re.test(element.className)) return; element.className += ' ' + className; }, removeClass: function(element, className) { var re = new RegExp('(\\s|^)'+className+'(\\s|$)'); element.className = element.className.replace(re,' '); }, // **Dynamic CSS injection** // Takes a string of css, inserts it into a `<style>`, then injects it in at the very top of the `<head>`. This ensures any user-defined styles will take precedence. injectCss: function(audio, string) { // If an `audiojs` `<style>` tag already exists, then append to it rather than creating a whole new `<style>`. var prepend = '', styles = document.getElementsByTagName('style'), css = string.replace(/\$1/g, audio.settings.imageLocation); for (var i = 0, ii = styles.length; i < ii; i++) { var title = styles[i].getAttribute('title'); if (title && ~title.indexOf('audiojs')) { style = styles[i]; if (style.innerHTML === css) return; prepend = style.innerHTML; break; } }; var head = document.getElementsByTagName('head')[0], firstchild = head.firstChild, style = document.createElement('style'); if (!head) return; style.setAttribute('type', 'text/css'); style.setAttribute('title', 'audiojs'); if (style.styleSheet) style.styleSheet.cssText = prepend + css; else style.appendChild(document.createTextNode(prepend + css)); if (firstchild) head.insertBefore(style, firstchild); else head.appendChild(styleElement); }, // **Handle all the IE6+7 requirements for cloning `<audio>` nodes** // Create a html5-safe document fragment by injecting an `<audio>` element into the document fragment. cloneHtml5Node: function(audioTag) { var fragment = document.createDocumentFragment(), doc = fragment.createElement ? fragment : document; doc.createElement('audio'); var div = doc.createElement('div'); fragment.appendChild(div); div.innerHTML = audioTag.outerHTML; return div.firstChild; }, // **Cross-browser `<object>` / `<embed>` element selection** getSwf: function(name) { var swf = document[name] || window[name]; return swf.length > 1 ? swf[swf.length - 1] : swf; } }, // ## Event-handling events: { memoryLeaking: false, listeners: [], // **A simple cross-browser event handler abstraction** addListener: function(element, eventName, func) { // For modern browsers use the standard DOM-compliant `addEventListener`. if (element.addEventListener) { element.addEventListener(eventName, func, false); // For older versions of Internet Explorer, use `attachEvent`. // Also provide a fix for scoping `this` to the calling element and register each listener so the containing elements can be purged on page unload. } else if (element.attachEvent) { this.listeners.push(element); if (!this.memoryLeaking) { window.attachEvent('onunload', function() { if(this.listeners) { for (var i = 0, ii = this.listeners.length; i < ii; i++) { container[audiojs].events.purge(this.listeners[i]); } } }); this.memoryLeaking = true; } element.attachEvent('on' + eventName, function() { func.call(element, window.event); }); } }, trackLoadProgress: function(audio) { // If `preload` has been set to `none`, then we don't want to start loading the track yet. if (!audio.settings.preload) return; var readyTimer, loadTimer, audio = audio, ios = (/(ipod|iphone|ipad)/i).test(navigator.userAgent); // Use timers here rather than the official `progress` event, as Chrome has issues calling `progress` when loading mp3 files from cache. readyTimer = setInterval(function() { if (audio.element.readyState > -1) { // iOS doesn't start preloading the mp3 until the user interacts manually, so this stops the loader being displayed prematurely. if (!ios) audio.init.apply(audio); } if (audio.element.readyState > 1) { if (audio.settings.autoplay) audio.play.apply(audio); clearInterval(readyTimer); // Once we have data, start tracking the load progress. loadTimer = setInterval(function() { audio.loadProgress.apply(audio); if (audio.loadedPercent >= 1) clearInterval(loadTimer); }); } }, 10); audio.readyTimer = readyTimer; audio.loadTimer = loadTimer; }, // **Douglas Crockford's IE6 memory leak fix** // <http://javascript.crockford.com/memory/leak.html> // This is used to release the memory leak created by the circular references created when fixing `this` scoping for IE. It is called on page unload. purge: function(d) { var a = d.attributes, i; if (a) { for (i = 0; i < a.length; i += 1) { if (typeof d[a[i].name] === 'function') d[a[i].name] = null; } } a = d.childNodes; if (a) { for (i = 0; i < a.length; i += 1) purge(d.childNodes[i]); } }, // **DOMready function** // As seen here: <https://github.com/dperini/ContentLoaded/>. ready: (function() { return function(fn) { var win = window, done = false, top = true, doc = win.document, root = doc.documentElement, add = doc.addEventListener ? 'addEventListener' : 'attachEvent', rem = doc.addEventListener ? 'removeEventListener' : 'detachEvent', pre = doc.addEventListener ? '' : 'on', init = function(e) { if (e.type == 'readystatechange' && doc.readyState != 'complete') return; (e.type == 'load' ? win : doc)[rem](pre + e.type, init, false); if (!done && (done = true)) fn.call(win, e.type || e); }, poll = function() { try { root.doScroll('left'); } catch(e) { setTimeout(poll, 50); return; } init('poll'); }; if (doc.readyState == 'complete') fn.call(win, 'lazy'); else { if (doc.createEventObject && root.doScroll) { try { top = !win.frameElement; } catch(e) { } if (top) poll(); } doc[add](pre + 'DOMContentLoaded', init, false); doc[add](pre + 'readystatechange', init, false); win[add](pre + 'load', init, false); } } })() } } // ## The audiojs class // We create one of these per `<audio>` and then push them into `audiojs['instances']`. container[audiojsInstance] = function(element, settings) { // Each audio instance returns an object which contains an API back into the `<audio>` element. this.element = element; this.wrapper = element.parentNode; this.source = element.getElementsByTagName('source')[0] || element; // First check the `<audio>` element directly for a src and if one is not found, look for a `<source>` element. this.mp3 = (function(element) { var source = element.getElementsByTagName('source')[0]; return element.getAttribute('src') || (source ? source.getAttribute('src') : null); })(element); this.settings = settings; this.loadStartedCalled = false; this.loadedPercent = 0; this.duration = 1; this.playing = false; } container[audiojsInstance].prototype = { // API access events: // Each of these do what they need do and then call the matching methods defined in the settings object. updatePlayhead: function() { var percent = this.element.currentTime / this.duration; this.settings.updatePlayhead.apply(this, [percent]); }, skipTo: function(percent) { if (percent > this.loadedPercent) return; this.element.currentTime = this.duration * percent; this.updatePlayhead(); }, load: function(mp3) { this.loadStartedCalled = false; this.source.setAttribute('src', mp3); // The now outdated `load()` method is required for Safari 4 this.element.load(); this.mp3 = mp3; container[audiojs].events.trackLoadProgress(this); }, loadError: function() { this.settings.loadError.apply(this); }, init: function() { this.settings.init.apply(this); }, loadStarted: function() { // Wait until `element.duration` exists before setting up the audio player. if (!this.element.duration) return false; this.duration = this.element.duration; this.updatePlayhead(); this.settings.loadStarted.apply(this); }, loadProgress: function() { if (this.element.buffered != null && this.element.buffered.length) { // Ensure `loadStarted()` is only called once. if (!this.loadStartedCalled) { this.loadStartedCalled = this.loadStarted(); } var durationLoaded = this.element.buffered.end(this.element.buffered.length - 1); this.loadedPercent = durationLoaded / this.duration; this.settings.loadProgress.apply(this, [this.loadedPercent]); } }, playPause: function() { if (this.playing) this.pause(); else this.play(); }, play: function() { var ios = (/(ipod|iphone|ipad)/i).test(navigator.userAgent); // On iOS this interaction will trigger loading the mp3, so run `init()`. if (ios && this.element.readyState == 0) this.init.apply(this); // If the audio hasn't started preloading, then start it now. // Then set `preload` to `true`, so that any tracks loaded in subsequently are loaded straight away. if (!this.settings.preload) { this.settings.preload = true; this.element.setAttribute('preload', 'auto'); container[audiojs].events.trackLoadProgress(this); } this.playing = true; this.element.play(); this.settings.play.apply(this); }, pause: function() { this.playing = false; this.element.pause(); this.settings.pause.apply(this); }, setVolume: function(v) { this.element.volume = v; }, trackEnded: function(e) { this.skipTo.apply(this, [0]); if (!this.settings.loop) this.pause.apply(this); this.settings.trackEnded.apply(this); } } // **getElementsByClassName** // Having to rely on `getElementsByTagName` is pretty inflexible internally, so a modified version of Dustin Diaz's `getElementsByClassName` has been included. // This version cleans things up and prefers the native DOM method if it's available. var getByClass = function(searchClass, node) { var matches = []; node = node || document; if (node.getElementsByClassName) { matches = node.getElementsByClassName(searchClass); } else { var i, l, els = node.getElementsByTagName("*"), pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"); for (i = 0, l = els.length; i < l; i++) { if (pattern.test(els[i].className)) { matches.push(els[i]); } } } return matches.length > 1 ? matches : matches[0]; }; // The global variable names are passed in here and can be changed if they conflict with anything else. })('audiojs', 'audiojsInstance', this);
OdeArmasSR/scsofficials.com
public/js/lib/audio.js
JavaScript
mit
31,933
/*----------------------------------------------------------------------------*\ MODULE NAME: math.cpp PROJECT: F3DB AUTHOR: Evert Bauwens DATE: september 8 2003 DESCRIPTION: \*----------------------------------------------------------------------------*/ #include "math.h" #include <stdlib.h> #include <time.h> #include <math.h> #include <stdio.h> namespace F3DB { void InitMath() { int32 seed; FILE *fp = fopen("randseed", "rb"); if(fp) { fread((void*)&seed, 2, 1, fp); fclose(fp); } else { seed = time(null); } srand(seed); fp = fopen("randseed", "wb"); if(fp) { seed = Random((int32)0, (int32)INT32_MAX); fwrite((void*)&seed, 2, 1, fp); fclose(fp); } } int32 Random(int32 min, int32 max) { return (int32)floor((double)min + ((double)max - (double)min)*(double)rand()/(double)RAND_MAX + 0.5); } float Random(float min, float max) { return (float)floor((double)min + ((double)max - (double)min)*(double)rand()/(double)RAND_MAX + 0.5); } }
everbuild/f3db
src/math.cpp
C++
mit
1,020
/* * Cloud Foundry API module * Service connection module helper */ var app = require("./properties"); function ServiceClient () { } exports.ServiceClient = ServiceClient; ServiceClient.prototype.create = function () { if (!this.type) return false; var svcNames = app.serviceNamesOfType[this.type]; if (!svcNames) return false; if (svcNames.length !== 1) { throw new Error("Expected 1 service of " + this.type + " type, " + "but found " + svcNames.length + ". " + "Consider using createFromSvc(name) instead."); } var args = Array.prototype.slice.call(arguments); args.unshift(svcNames[0]); return this.createFromSvc.apply(this, args); }; ServiceClient.prototype.createFromSvc = function (name) { var handler = this._create; if (!handler) return false; var props = app.serviceProps[name]; if (!props) return false; switch (arguments.length) { case 2: return handler.call(this, props, arguments[1]); case 3: return handler.call(this, props, arguments[1], arguments[2]); default: return handler.call(this, props); } };
chinshr/foundry-node
node_modules/cf-autoconfig/node_modules/cf-runtime/lib/service.js
JavaScript
mit
1,115
import string import random def random_secret(n=45): chars = string.ascii_letters + string.digits return ''.join(random.choice(chars) for _ in range(n))
Wiredcraft/pipelines
pipelines/pipeline/utils.py
Python
mit
162
<?php namespace Ociosos\UsuarioBundle\DependencyInjection; use Symfony\Component\Config\Definition\Builder\TreeBuilder; use Symfony\Component\Config\Definition\ConfigurationInterface; /** * This is the class that validates and merges configuration from your app/config files * * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/extension.html#cookbook-bundles-extension-config-class} */ class Configuration implements ConfigurationInterface { /** * {@inheritDoc} */ public function getConfigTreeBuilder() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder->root('usuario'); // Here you should define the parameters that are allowed to // configure your bundle. See the documentation linked above for // more information on that topic. return $treeBuilder; } }
jorgemunoz8807/ociosos
src/Ociosos/UsuarioBundle/DependencyInjection/Configuration.php
PHP
mit
877
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Log_monitoring extends MY_Controller { public function __construct() { parent::__construct(); $this->load->model(array("Log_monitoring_model")); $this->data['html_css'] = ''; $this->data['html_js'] = ' <script> $(document).ready(function() { App.init(); }); </script>'; $this->data['csrf'] = array( 'name' => $this->security->get_csrf_token_name(), 'hash' => $this->security->get_csrf_hash() ); $this->data['error_message'] = $this->session->flashdata("error_message"); } public function index() { $this->data['title'] = "Log Monitoring"; $this->load->view('admin/header',$this->data); $this->load->view('log_monitoring_view',$this->data); $this->load->view('admin/footer',$this->data); } public function page_list_rest() { $query = $this->Log_monitoring_model->get_all_items(); $json_object = new stdClass(); $json_object->total = @$query->num_rows(); $json_object->rows = @$query->result(); header('Content-Type: application/json'); echo json_encode($json_object); } }
fajarlabs/sucofindo
application/admin/log_monitoring/controllers/Log_monitoring.php
PHP
mit
1,129
package com.birdbraintechnologies.birdblox.httpservice.RequestHandlers; import android.app.AlertDialog; import android.bluetooth.BluetoothGatt; import android.bluetooth.le.ScanFilter; import android.content.DialogInterface; import android.content.Intent; import android.net.Uri; import android.os.Handler; import android.os.ParcelUuid; import android.util.Log; import android.widget.Toast; import com.birdbraintechnologies.birdblox.Bluetooth.BluetoothHelper; import com.birdbraintechnologies.birdblox.Bluetooth.UARTConnection; import com.birdbraintechnologies.birdblox.Bluetooth.UARTSettings; import com.birdbraintechnologies.birdblox.Robots.Hummingbird; import com.birdbraintechnologies.birdblox.Robots.Hummingbit; import com.birdbraintechnologies.birdblox.Robots.Microbit; import com.birdbraintechnologies.birdblox.Robots.Robot; import com.birdbraintechnologies.birdblox.Robots.RobotType; import com.birdbraintechnologies.birdblox.httpservice.HttpService; import com.birdbraintechnologies.birdblox.httpservice.RequestHandler; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.UUID; import fi.iki.elonen.NanoHTTPD; import static com.birdbraintechnologies.birdblox.MainWebView.bbxEncode; import static com.birdbraintechnologies.birdblox.MainWebView.mainWebViewContext; import static com.birdbraintechnologies.birdblox.MainWebView.runJavascript; import static com.birdbraintechnologies.birdblox.Robots.RobotType.robotTypeFromString; import static fi.iki.elonen.NanoHTTPD.MIME_PLAINTEXT; /** * @author AppyFizz (Shreyan Bakshi) * @author Zhendong Yuan (yzd1998111) */ public class RobotRequestHandler implements RequestHandler { private final String TAG = this.getClass().getName(); private static final String FIRMWARE_UPDATE_URL = "http://www.hummingbirdkit.com/learning/installing-birdblox#BurnFirmware"; /* UUIDs for different Hummingbird features */ private static final String DEVICE_UUID = "6E400001-B5A3-F393-E0A9-E50E24DCCA9E"; private static final UUID HB_UART_UUID = UUID.fromString("6E400001-B5A3-F393-E0A9-E50E24DCCA9E"); private static final UUID HB_TX_UUID = UUID.fromString("6E400002-B5A3-F393-E0A9-E50E24DCCA9E"); private static final UUID HB_RX_UUID = UUID.fromString("6E400003-B5A3-F393-E0A9-E50E24DCCA9E"); // TODO: Remove this, it is the same across devices private static final UUID RX_CONFIG_UUID = UUID.fromString("00002902-0000-1000-8000-00805f9b34fb"); public static HashSet<String> hummingbirdsToConnect = new HashSet<>(); public static HashSet<String> hummingbitsToConnect = new HashSet<>(); public static HashSet<String> microbitsToConnect = new HashSet<>(); HttpService service; private static BluetoothHelper btHelper; private static HashMap<String, Thread> threadMap; private static UARTSettings HBUARTSettings; private static HashMap<String, Hummingbird> connectedHummingbirds; private static UARTSettings HBitUARTSettings; private static HashMap<String, Hummingbit> connectedHummingbits; private static UARTSettings MBitUARTSettings; private static HashMap<String, Microbit> connectedMicrobits; private AlertDialog.Builder builder; private AlertDialog robotInfoDialog; public static HashMap<String, BluetoothGatt> deviceGatt; public RobotRequestHandler(HttpService service) { this.service = service; btHelper = service.getBluetoothHelper(); threadMap = new HashMap<>(); connectedHummingbirds = new HashMap<>(); connectedHummingbits = new HashMap<>(); connectedMicrobits = new HashMap<>(); deviceGatt = new HashMap<>(); // Build Hummingbird UART settings HBUARTSettings = (new UARTSettings.Builder()) .setUARTServiceUUID(HB_UART_UUID) .setRxCharacteristicUUID(HB_RX_UUID) .setTxCharacteristicUUID(HB_TX_UUID) .setRxConfigUUID(RX_CONFIG_UUID) .build(); HBitUARTSettings = (new UARTSettings.Builder()) .setUARTServiceUUID(HB_UART_UUID) .setRxCharacteristicUUID(HB_RX_UUID) .setTxCharacteristicUUID(HB_TX_UUID) .setRxConfigUUID(RX_CONFIG_UUID) .build(); MBitUARTSettings = (new UARTSettings.Builder()) .setUARTServiceUUID(HB_UART_UUID) .setRxCharacteristicUUID(HB_RX_UUID) .setTxCharacteristicUUID(HB_TX_UUID) .setRxConfigUUID(RX_CONFIG_UUID) .build(); } @Override public NanoHTTPD.Response handleRequest(NanoHTTPD.IHTTPSession session, List<String> args) { String[] path = args.get(0).split("/"); Map<String, List<String>> m = session.getParameters(); // Generate response body String responseBody = ""; Robot robot; switch (path[0]) { case "startDiscover": responseBody = startScan(); break; case "stopDiscover": responseBody = stopDiscover(); break; case "totalStatus": responseBody = getTotalStatus(robotTypeFromString(m.get("type").get(0))); break; case "connect": responseBody = connectToRobot(robotTypeFromString(m.get("type").get(0)), m.get("id").get(0)); break; case "disconnect": responseBody = disconnectFromRobot(robotTypeFromString(m.get("type").get(0)), m.get("id").get(0)); break; case "out": robot = getRobotFromId(robotTypeFromString(m.get("type").get(0)), m.get("id").get(0)); if (robot == null) { runJavascript("CallbackManager.robot.updateStatus('" + m.get("id").get(0) + "', false);"); return NanoHTTPD.newFixedLengthResponse( NanoHTTPD.Response.Status.NOT_FOUND, MIME_PLAINTEXT, "Robot " + m.get("id").get(0) + " was not found."); } else if (!robot.setOutput(path[1], m)) { //TODO: Is it really true that when you fail to set output it always means not connected? runJavascript("CallbackManager.robot.updateStatus('" + m.get("id").get(0) + "', false);"); return NanoHTTPD.newFixedLengthResponse( NanoHTTPD.Response.Status.EXPECTATION_FAILED, MIME_PLAINTEXT, "Failed to send to robot " + m.get("id").get(0) + "."); } else { runJavascript("CallbackManager.robot.updateStatus('" + m.get("id").get(0) + "', true);"); responseBody = "Sent to robot " + m.get("type").get(0) + " successfully."; } break; case "in": robot = getRobotFromId(robotTypeFromString(m.get("type").get(0)), m.get("id").get(0)); if (robot == null) { runJavascript("CallbackManager.robot.updateStatus('" + m.get("id").get(0) + "', false);"); return NanoHTTPD.newFixedLengthResponse( NanoHTTPD.Response.Status.NOT_FOUND, MIME_PLAINTEXT, "Robot " + m.get("id").get(0) + " was not found."); } else { String sensorPort = null; String sensorAxis = null; if (m.get("port") != null) { sensorPort = m.get("port").get(0); } if (m.get("axis") != null) { sensorAxis = m.get("axis").get(0); } String sensorValue = robot.readSensor(m.get("sensor").get(0), sensorPort, sensorAxis); if (sensorValue == null) { runJavascript("CallbackManager.robot.updateStatus('" + m.get("id").get(0) + "', false);"); return NanoHTTPD.newFixedLengthResponse( NanoHTTPD.Response.Status.NO_CONTENT, MIME_PLAINTEXT, "Failed to read sensors from robot " + m.get("id").get(0) + "."); } else { runJavascript("CallbackManager.robot.updateStatus('" + m.get("id").get(0) + "', true);"); responseBody = sensorValue; } } break; case "showInfo": responseBody = showRobotInfo(robotTypeFromString(m.get("type").get(0)), m.get("id").get(0)); break; case "showUpdateInstructions": showFirmwareUpdateInstructions(); break; case "stopAll": stopAll(); break; } return NanoHTTPD.newFixedLengthResponse( NanoHTTPD.Response.Status.OK, MIME_PLAINTEXT, responseBody); } // TODO: Properly define Robot Object // TODO: Synchronization of below functions // TODO: Finish implementing new Robot commands and callbacks private static String startScan() { final List deviceFilter = generateDeviceFilter(); if (BluetoothHelper.currentlyScanning) { return ""; } if (BluetoothHelper.currentlyScanning) { stopDiscover(); } new Thread() { @Override public void run() { btHelper.scanDevices(deviceFilter); } }.start(); return ""; } /** * Finds a robotId in the list of connected robots. Null if it does not exist. * * @param robotType The type of the robot to be found. Must be 'hummingbird' or 'hummingbit' or 'microbit'. * @param robotId Robot ID to find. * @return The connected Robot if it exists, null otherwise. */ private static Robot getRobotFromId(RobotType robotType, String robotId) { if (robotType == RobotType.Hummingbird) { return connectedHummingbirds.get(robotId); } else if (robotType == RobotType.Hummingbit) { return connectedHummingbits.get(robotId); } else { return connectedMicrobits.get(robotId); } } /** * Creates a Bluetooth scan Robot filter that only matches the required 'type' of Robot. * * @return List of scan filters. */ private static List<ScanFilter> generateDeviceFilter() { String ROBOT_UUID = DEVICE_UUID; ScanFilter scanFilter = (new ScanFilter.Builder()) .setServiceUuid(ParcelUuid.fromString(ROBOT_UUID)) .build(); List<ScanFilter> robotFilters = new ArrayList<>(); robotFilters.add(scanFilter); return robotFilters; } /** * @param robotType * @param robotId * @return */ public static String connectToRobot(RobotType robotType, String robotId) { if (robotType == RobotType.Hummingbird) { connectToHummingbird(robotId); } else if (robotType == RobotType.Hummingbit) { connectToHummingbit(robotId); } else { connectToMicrobit(robotId); } return ""; } private static void connectToHummingbird(final String hummingbirdId) { if (connectedHummingbirds.containsKey(hummingbirdId) == false) { final UARTSettings HBUART = HBUARTSettings; if (hummingbirdsToConnect.contains(hummingbirdId)) { hummingbirdsToConnect.remove(hummingbirdId); } try { Thread hbConnectionThread = new Thread() { @Override public void run() { UARTConnection hbConn = btHelper.connectToDeviceUART(hummingbirdId, HBUART); if (hbConn != null && hbConn.isConnected() && connectedHummingbirds != null) { Hummingbird hummingbird = new Hummingbird(hbConn); connectedHummingbirds.put(hummingbirdId, hummingbird); hummingbird.setConnected(); } } }; hbConnectionThread.start(); final Thread oldThread = threadMap.put(hummingbirdId, hbConnectionThread); if (oldThread != null) { new Thread() { @Override public void run() { super.run(); oldThread.interrupt(); } }.start(); } } catch (Exception e) { Log.e("ConnectHB", " Error while connecting to HB " + e.getMessage()); } } } private static void connectToHummingbit(final String hummingbitId) { if (connectedHummingbits.containsKey(hummingbitId) == false) { final UARTSettings HBitUART = HBitUARTSettings; if (hummingbitsToConnect.contains(hummingbitId)) { hummingbitsToConnect.remove(hummingbitId); } try { Thread hbitConnectionThread = new Thread() { @Override public void run() { UARTConnection hbitConn = btHelper.connectToDeviceUART(hummingbitId, HBitUART); if (hbitConn != null && hbitConn.isConnected() && connectedHummingbits != null) { Hummingbit hummingbit = new Hummingbit(hbitConn); connectedHummingbits.put(hummingbitId, hummingbit); hummingbit.setConnected(); } } }; hbitConnectionThread.start(); final Thread oldThread = threadMap.put(hummingbitId, hbitConnectionThread); if (oldThread != null) { new Thread() { @Override public void run() { super.run(); oldThread.interrupt(); } }.start(); } } catch (Exception e) { Log.e("ConnectHBit", " Error while connecting to HBit " + e.getMessage()); } } } private static void connectToMicrobit(final String microbitId) { if (connectedMicrobits.containsKey(microbitId) == false) { final UARTSettings MBitUART = MBitUARTSettings; if (microbitsToConnect.contains(microbitId)) { microbitsToConnect.remove(microbitId); } try { Thread mbitConnectionThread = new Thread() { @Override public void run() { UARTConnection mbitConn = btHelper.connectToDeviceUART(microbitId, MBitUART); if (mbitConn != null && mbitConn.isConnected() && connectedMicrobits != null) { Microbit microbit = new Microbit(mbitConn); connectedMicrobits.put(microbitId, microbit); microbit.setConnected(); } } }; mbitConnectionThread.start(); final Thread oldThread = threadMap.put(microbitId, mbitConnectionThread); if (oldThread != null) { new Thread() { @Override public void run() { super.run(); oldThread.interrupt(); } }.start(); } } catch (Exception e) { Log.e("ConnectHBit", " Error while connecting to HBit " + e.getMessage()); } } } /** * @param robotType * @param robotId * @return */ private String disconnectFromRobot(RobotType robotType, final String robotId) { new Thread() { @Override public void run() { super.run(); Thread connThread = threadMap.get(robotId); if (connThread != null) connThread.interrupt(); } }.start(); if (robotType == RobotType.Hummingbird) { disconnectFromHummingbird(robotId); } else if (robotType == RobotType.Hummingbit) { disconnectFromHummingbit(robotId); } else { disconnectFromMicrobit(robotId); } hummingbirdsToConnect = new HashSet<>(); hummingbitsToConnect = new HashSet<>(); microbitsToConnect = new HashSet<>(); btHelper.stopScan(); runJavascript("CallbackManager.robot.updateStatus('" + bbxEncode(robotId) + "', false);"); Log.d("TotStat", "Connected Hummingbirds: " + connectedHummingbirds.toString()); Log.d("TotStat", "Connected Hummingbits: " + connectedHummingbits.toString()); Log.d("TotStat", "Connected Hummingbits: " + connectedMicrobits.toString()); return robotType.toString() + " disconnected successfully."; } /** * @param hummingbirdId */ public static void disconnectFromHummingbird(String hummingbirdId) { try { Hummingbird hummingbird = (Hummingbird) getRobotFromId(RobotType.Hummingbird, hummingbirdId); if (hummingbird != null) { hummingbird.disconnect(); if (hummingbird.getDisconnected()) { connectedHummingbirds.remove(hummingbirdId); } Log.d("TotStat", "Removing hummingbird: " + hummingbirdId); } else { BluetoothGatt curDeviceGatt = deviceGatt.get(hummingbirdId); if (curDeviceGatt != null) { curDeviceGatt.disconnect(); curDeviceGatt.close(); curDeviceGatt = null; if (deviceGatt.containsKey(hummingbirdId)) { deviceGatt.remove(hummingbirdId); } } } } catch (Exception e) { Log.e("ConnectHB", " Error while disconnecting from HB " + e.getMessage()); } } /** * @param hummingbitId */ public static void disconnectFromHummingbit(String hummingbitId) { try { Hummingbit hummingbit = (Hummingbit) getRobotFromId(RobotType.Hummingbit, hummingbitId); if (hummingbit != null) { hummingbit.disconnect(); if (hummingbit.getDisconnected()) { connectedHummingbits.remove(hummingbitId); } Log.d("TotStat", "Removing hummingbit: " + hummingbitId); } else { BluetoothGatt curDeviceGatt = deviceGatt.get(hummingbitId); if (curDeviceGatt != null) { curDeviceGatt.disconnect(); curDeviceGatt.close(); curDeviceGatt = null; if (deviceGatt.containsKey(hummingbitId)) { deviceGatt.remove(hummingbitId); } } } } catch (Exception e) { Log.e("ConnectHB", " Error while disconnecting from HB " + e.getMessage()); } } /** * @param microbitId */ public static void disconnectFromMicrobit(String microbitId) { try { Microbit microbit = (Microbit) getRobotFromId(RobotType.Microbit, microbitId); if (microbit != null) { microbit.disconnect(); if (microbit.getDisconnected()) { connectedMicrobits.remove(microbitId); } Log.d("TotStat", "Removing microbit: " + microbitId); } else { BluetoothGatt curDeviceGatt = deviceGatt.get(microbitId); if (curDeviceGatt != null) { curDeviceGatt.disconnect(); curDeviceGatt.close(); curDeviceGatt = null; if (deviceGatt.containsKey(microbitId)) { deviceGatt.remove(microbitId); } } } } catch (Exception e) { Log.e("ConnectHB", " Error while disconnecting from MB " + e.getMessage()); } } public static void disconnectAll() { hummingbirdsToConnect = null; hummingbitsToConnect = null; microbitsToConnect = null; if (connectedHummingbirds != null) { for (String individualHummingBird : connectedHummingbirds.keySet()) { disconnectFromHummingbird(individualHummingBird); } } if (connectedHummingbits != null) { for (String individualHummingBit : connectedHummingbits.keySet()) { disconnectFromHummingbit(individualHummingBit); } } if (connectedMicrobits != null) { for (String individualMicroBit : connectedMicrobits.keySet()) { disconnectFromMicrobit(individualMicroBit); } } } /** * @param robotType * @return */ private String getTotalStatus(RobotType robotType) { if (robotType == RobotType.Hummingbird) { return getTotalHBStatus(); } else if (robotType == RobotType.Hummingbit) { return getTotalHBitStatus(); } else { return getTotalMBitStatus(); } } /** * @return */ private String getTotalHBStatus() { Log.d("TotStat", "Connected Hummingbirds: " + connectedHummingbirds.toString()); if (connectedHummingbirds.size() == 0) { return "2"; // No hummingbirds connected } for (Hummingbird hummingbird : connectedHummingbirds.values()) { if (!hummingbird.isConnected()) { return "0"; // Some hummingbird is disconnected } } return "1"; // All hummingbirds are OK } /** * @return */ private String getTotalHBitStatus() { Log.d("TotStat", "Connected Hummingbits: " + connectedHummingbits.toString()); if (connectedHummingbits.size() == 0) { return "2"; // No hummingbits connected } for (Hummingbit hummingbit : connectedHummingbits.values()) { if (!hummingbit.isConnected()) { return "0"; // Some hummingbit is disconnected } } return "1"; // All hummingbits are OK } /** * @return */ private String getTotalMBitStatus() { Log.d("TotStat", "Connected Microbits: " + connectedMicrobits.toString()); if (connectedMicrobits.size() == 0) { return "2"; // No hummingbits connected } for (Microbit microbit : connectedMicrobits.values()) { if (!microbit.isConnected()) { return "0"; // Some hummingbit is disconnected } } return "1"; // All hummingbits are OK } private static String stopDiscover() { if (btHelper != null) btHelper.stopScan(); runJavascript("CallbackManager.robot.stopDiscover();"); return "Bluetooth discovery stopped."; } private String showRobotInfo(RobotType robotType, String robotId) { builder = new AlertDialog.Builder(mainWebViewContext); // Get details Robot robot = getRobotFromId(robotType, robotId); String name = robot.getName(); String macAddress = robot.getMacAddress(); String gapName = robot.getGAPName(); String hardwareVersion = ""; String firmwareVersion = ""; if (robotType == RobotType.Hummingbird) { hardwareVersion = ((Hummingbird) robot).getHardwareVersion(); firmwareVersion = ((Hummingbird) robot).getFirmwareVersion(); } else if (robotType == RobotType.Hummingbit) { hardwareVersion = ((Hummingbit) robot).getHardwareVersion(); firmwareVersion = "microBit: " + ((Hummingbit) robot).getMicroBitVersion() + "SMD: " + ((Hummingbit) robot).getSMDVersion(); } else if (robotType == RobotType.Microbit) { hardwareVersion = ((Microbit) robot).getHardwareVersion(); firmwareVersion = "microBit: " + ((Microbit) robot).getMicroBitVersion(); } builder.setTitle(robotType.toString() + " Peripheral"); String message = ""; if (name != null) message += ("Name: " + name + "\n"); if (macAddress != null) message += ("MAC Address: " + macAddress + "\n"); if (gapName != null) message += ("Bluetooth Name: " + gapName + "\n"); if (hardwareVersion != null) message += ("Hardware Version: " + hardwareVersion + "\n"); if (firmwareVersion != null) message += ("Firmware Version: " + firmwareVersion + "\n"); if (!robot.hasLatestFirmware()) message += ("\nFirmware update available."); builder.setMessage(message); builder.setCancelable(true); if (!robot.hasLatestFirmware()) { builder.setPositiveButton( "Update Firmware", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); showFirmwareUpdateInstructions(); } }); builder.setNegativeButton( "Dismiss", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); } }); } else { builder.setNeutralButton( "Dismiss", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { dialog.cancel(); } }); } new Thread() { @Override public void run() { super.run(); new Handler(mainWebViewContext.getMainLooper()).post(new Runnable() { @Override public void run() { robotInfoDialog = builder.create(); robotInfoDialog.show(); } }); } }.start(); return "Successfully showed robot info."; } private static void showFirmwareUpdateInstructions() { mainWebViewContext.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(FIRMWARE_UPDATE_URL))); } /** * Resets the values of the peripherals of all connected hummingbirds * and microbits and hummingbits to their default values. */ private void stopAll() { for (Hummingbird hummingbird : connectedHummingbirds.values()) hummingbird.stopAll(); for (Hummingbit hummingbit : connectedHummingbits.values()) hummingbit.stopAll(); for (Microbit microbit : connectedMicrobits.values()) microbit.stopAll(); } }
BirdBrainTechnologies/BirdBlox-Android-Support
app/src/main/java/com/birdbraintechnologies/birdblox/httpservice/RequestHandlers/RobotRequestHandler.java
Java
mit
27,668
package org.xdevs23.management.config; public class SharedPreferenceArray { public static String getPreferenceString(String[] array) { if(array == null) return ""; if(array.length == 0) return ""; StringBuilder sb = new StringBuilder(); for ( String s : array) { String aps; if(s == null) return ""; else aps = s; if(s.contains(":")) aps = s.replace(":", "::"); if(s.contains("|")) aps = aps.replace("|", "||"); sb.append(aps).append("|:|"); } sb.delete(sb.length() - 3, sb.length()); return sb.toString(); } public static String[] getStringArray(String preferenceString) { if(preferenceString == null || preferenceString.isEmpty()) return new String[] {""}; String[] array = preferenceString.split("([|][:][|])"); for ( int i = 0; i < array.length; i++ ) { String aps = array[i]; if(aps.contains(":")) aps = aps.replace("::", ":"); if(aps.contains("|")) aps = aps.replace("||", "|"); array[i] = aps; } return array; } }
xdevs23/Cornowser
app/src/main/java/org/xdevs23/management/config/SharedPreferenceArray.java
Java
mit
1,173
<div class="col-md-6 col-md-offset-3"> <div class="panel panel-default"> <div class="panel-body"> <form role="form" class="form-group" style=""> <!-- username --> <input type="text" id="user" class="form-control" placeholder="Username. (Exp: John13)" /> <br /> <!-- enmail --> <input type="text" id="email" class="form-control" placeholder="E-Mail. (Exp: yourself@gmail.com)" /> <br /> <!-- phone no --> <input type="text" id="phone" class="form-control" placeholder="Phone No. (Exp: 0199737578)" /> </form> <center> <button class="btn btn-success" id="btn_reg">Register</button> </p> <button class="btn btn-info" id="btn_reset">Reset</button> </center> </div> </div> </div> <!-- start controller jquery --> <script> $(document).ready(function () { $("#btn_reset").click(function () { $("#user").val(""); $("#email").val(""); $("#phone").val(""); }); $("#btn_reg").click(function () { var user = $("#user").val(); var email = $("#email").val(); var phone = $("#phone").val(); var account_type = 1; if (user == '' || email == '' || phone == '') { msg_alert('Do not leave blank!', 4); return; } $.ajax({ url: URL_SERVER + "login/daftar_members", timeout: 10000, method: "POST", data: { me_username: user, me_email: email, me_whatsapp_no: phone, me_account_type: account_type }, error: function (jqXHR) { if (jqXHR.status == 0) { msg_alert('Opss! Fail to connect,<br />please check your connection settings!!', 4); } }, success: function () { }, statusCode: { 404: function () { msg_alert('Opss! Page not found!!', 4); } } }).done(function (data) { var d = get_pecah(data); if (d[0] == '1' || d[0] == 1) { msg_alert(d[1], 4); } else { msg_alert('Register success. Please check your email for account verification.', 1); } }); msg_alert('Connecting ...', 2); }); }); </script> <!-- end controller jquery -->
mohamedaliff/dpapps
www/reg_personal.html
HTML
mit
2,772
package com.github.ddth.djs.message.queue; import java.util.HashMap; import java.util.Map; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import com.fasterxml.jackson.annotation.JsonIgnore; import com.github.ddth.djs.message.BaseJobMessage; import com.github.ddth.djs.utils.DjsConstants; /** * This message is put to queue when a job task is finished. * * @author Thanh Nguyen <btnguyen2k@gmail.com> * @since 0.1.3 */ public class TaskFinishMessage extends BaseJobMessage { private static final long serialVersionUID = 1L; public final long finishTimestamp = System.currentTimeMillis(); public final int status; public final String message, error; public final byte[] output; public TaskFinishMessage() { super(null); status = DjsConstants.TASK_STATUS_FINISHED_OK; message = null; error = null; output = null; } public TaskFinishMessage(TaskFireoffMessage taskFireoffMessage, int status, String message, String error, byte[] output) { super(taskFireoffMessage.id, taskFireoffMessage.jobInfo); this.status = status; this.message = message; this.error = error; this.output = output; } /** * {@inheritDoc} */ @Override public int hashCode() { HashCodeBuilder hcb = new HashCodeBuilder(19, 81); hcb.append(finishTimestamp).append(status).append(message).append(error).append(output) .appendSuper(super.hashCode()); return hcb.hashCode(); } /** * {@inheritDoc} */ @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof TaskFinishMessage) { TaskFinishMessage another = (TaskFinishMessage) obj; EqualsBuilder eq = new EqualsBuilder(); eq.appendSuper(super.equals(obj)).append(finishTimestamp, another.finishTimestamp) .append(status, another.status).append(message, another.message) .append(error, another.error).append(output, another.output); } return false; } protected final static String ATTR_FINISH_TIMESTAMP = "finish_timestamp"; protected final static String ATTR_STATUS = "status"; protected final static String ATTR_MESSAGE = "message"; protected final static String ATTR_ERROR = "error"; protected final static String ATTR_OUTPUT = "output"; @JsonIgnore private Lock LOCK = new ReentrantLock(); @JsonIgnore private Map<String, Object> dataAsMap = null; /** * Serializes mesage's attributes as a {@link Map}. * * @return */ public Map<String, Object> toMap() { if (dataAsMap == null) { LOCK.lock(); if (dataAsMap == null) { try { dataAsMap = new HashMap<>(); dataAsMap.putAll(super.toMap()); dataAsMap.put(ATTR_FINISH_TIMESTAMP, finishTimestamp); dataAsMap.put(ATTR_STATUS, status); dataAsMap.put(ATTR_MESSAGE, message); dataAsMap.put(ATTR_ERROR, error); dataAsMap.put(ATTR_OUTPUT, output); } finally { LOCK.unlock(); } } } return dataAsMap; } }
DDTH/djs-commons
src/main/java/com/github/ddth/djs/message/queue/TaskFinishMessage.java
Java
mit
3,552
/* * Minecraft Dev for IntelliJ * * https://minecraftdev.org * * Copyright (c) 2020 minecraft-dev * * MIT License */ package com.demonwav.mcdev.platform.mcp.gradle.tooling; import java.util.Set; public interface McpModelFG2 extends McpModel { String getMinecraftVersion(); Set<String> getMappingFiles(); }
DemonWav/MinecraftDevIntelliJ
src/gradle-tooling-extension/java/com/demonwav/mcdev/platform/mcp/gradle/tooling/McpModelFG2.java
Java
mit
325
#!/usr/bin/env python # coding=utf-8 __author__ = 'Jayin Ton' from flask import Flask, request, session, redirect, url_for app = Flask(__name__) host = '127.0.0.1' port = 8000 # 使用session 必须设置secret_key # set the secret key. keep this really secret: app.secret_key = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT' @app.route('/') def index(): print session.__dict__ print session if 'username' in session: return 'Logged in as %s' % session['username'] return 'You are not logged in' @app.route('/login', methods=['GET', 'POST']) def login(): if request.method == 'POST': session['username'] = request.form['username'] return redirect(url_for('index')) return ''' <form action="" method="post"> <p><input type=text name=username> <p><input type=submit value=Login> </form> ''' @app.route('/see',methods=['GET']) def see(): print session.__dict__ print session return "see" @app.route('/logout') def logout(): if 'username' in session: # remove the username from the session if it's there session.pop('username', None) return redirect(url_for('index')) else: return ''' <p> Not logint yet</p> <p> Click</p><a href="./login">Here</a> to login! ''' if __name__ == '__main__': app.run(host=host, port=port, debug=True)
jayinton/FlaskDemo
simple/sessionTest.py
Python
mit
1,407
using StankinsInterfaces; using System; using System.Collections.Generic; using System.Text; namespace StanskinsImplementation { public class CommonData : ICommonData { public CommonData() { this.UTCDateReceived = DateTime.UtcNow; this.LocalDateReceived = DateTime.Now; this.DeviceName = Environment.MachineName; //this.UserName = Environment.UserDomainName; } public DateTime UTCDateReceived { get; protected set; } public DateTime LocalDateReceived { get; protected set; } public string UserName { get; protected set; } public string DeviceName { get; protected set; } public string DeviceType { get; protected set; } } }
ignatandrei/stankins
stankinsV1/StanskinsImplementation/CommonData.cs
C#
mit
768
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE78_OS_Command_Injection__char_environment_w32_spawnlp_66a.c Label Definition File: CWE78_OS_Command_Injection.strings.label.xml Template File: sources-sink-66a.tmpl.c */ /* * @description * CWE: 78 OS Command Injection * BadSource: environment Read input from an environment variable * GoodSource: Fixed string * Sinks: w32_spawnlp * BadSink : execute command with spawnlp * Flow Variant: 66 Data flow: data passed in an array from one function to another in different source files * * */ #include "std_testcase.h" #include <wchar.h> #ifdef _WIN32 #define COMMAND_INT_PATH "%WINDIR%\\system32\\cmd.exe" #define COMMAND_INT "cmd.exe" #define COMMAND_ARG1 "/c" #define COMMAND_ARG2 "dir" #define COMMAND_ARG3 data #else /* NOT _WIN32 */ #include <unistd.h> #define COMMAND_INT_PATH "/bin/sh" #define COMMAND_INT "sh" #define COMMAND_ARG1 "ls" #define COMMAND_ARG2 "-la" #define COMMAND_ARG3 data #endif #define ENV_VARIABLE "ADD" #ifdef _WIN32 #define GETENV getenv #else #define GETENV getenv #endif #include <process.h> #ifndef OMITBAD /* bad function declaration */ void CWE78_OS_Command_Injection__char_environment_w32_spawnlp_66b_badSink(char * dataArray[]); void CWE78_OS_Command_Injection__char_environment_w32_spawnlp_66_bad() { char * data; char * dataArray[5]; char dataBuffer[100] = ""; data = dataBuffer; { /* Append input from an environment variable to data */ size_t dataLen = strlen(data); char * environment = GETENV(ENV_VARIABLE); /* If there is data in the environment variable */ if (environment != NULL) { /* POTENTIAL FLAW: Read data from an environment variable */ strncat(data+dataLen, environment, 100-dataLen-1); } } /* put data in array */ dataArray[2] = data; CWE78_OS_Command_Injection__char_environment_w32_spawnlp_66b_badSink(dataArray); } #endif /* OMITBAD */ #ifndef OMITGOOD /* goodG2B uses the GoodSource with the BadSink */ void CWE78_OS_Command_Injection__char_environment_w32_spawnlp_66b_goodG2BSink(char * dataArray[]); static void goodG2B() { char * data; char * dataArray[5]; char dataBuffer[100] = ""; data = dataBuffer; /* FIX: Append a fixed string to data (not user / external input) */ strcat(data, "*.*"); dataArray[2] = data; CWE78_OS_Command_Injection__char_environment_w32_spawnlp_66b_goodG2BSink(dataArray); } void CWE78_OS_Command_Injection__char_environment_w32_spawnlp_66_good() { goodG2B(); } #endif /* OMITGOOD */ /* Below is the main(). It is only used when building this testcase on * its own for testing or for building a binary to use in testing binary * analysis tools. It is not used when compiling all the testcases as one * application, which is how source code analysis tools are tested. */ #ifdef INCLUDEMAIN int main(int argc, char * argv[]) { /* seed randomness */ srand( (unsigned)time(NULL) ); #ifndef OMITGOOD printLine("Calling good()..."); CWE78_OS_Command_Injection__char_environment_w32_spawnlp_66_good(); printLine("Finished good()"); #endif /* OMITGOOD */ #ifndef OMITBAD printLine("Calling bad()..."); CWE78_OS_Command_Injection__char_environment_w32_spawnlp_66_bad(); printLine("Finished bad()"); #endif /* OMITBAD */ return 0; } #endif
maurer/tiamat
samples/Juliet/testcases/CWE78_OS_Command_Injection/s03/CWE78_OS_Command_Injection__char_environment_w32_spawnlp_66a.c
C
mit
3,510
class TrueClass def present? true end def blank? false end end
joshwetzel/existence
lib/existence/true_class.rb
Ruby
mit
80
/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ''; content: none; } table { border-collapse: collapse; border-spacing: 0; } /* LAYOUT STYLES */ body { font-weight: 300; font-size: 1.3em; line-height: 1.5; background: #e7e7e7 url(../images/body-bg.png) 0 0 repeat; font-family: 'Helvetica Neue', Helvetica, Arial, serif; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8); color: #5d5d5d; } b { font-weight: 600; color: #4d4d4d } a { color: #5d5d5d; /*color: #d5000d;*/ } a:hover { color: #c5000c; } header { padding-top: 35px; padding-bottom: 5px; } header h1 { font-family: 'Helvetica'; font-weight: 900; letter-spacing: 0px; font-size: 120px; color: #303030; line-height: 0.9; } header h2 { font-family: 'Helvetica'; font-weight: 900; letter-spacing: 0px; font-size: 80px; color: #303030; line-height: 0.9; } header h3 { font-family: 'Helvetica'; font-weight: 900; letter-spacing: 0px; font-size: 40px; color: #303030; line-height: 0.9; } #container { background: transparent url(../images/highlight-bg.jpg) 50% 0 no-repeat; min-height: 595px; } #main_content { padding-top: 15px; } .inner { width: 800px; margin: 0 auto; } #container .inner img { max-width: 100%; } #downloads { margin-bottom: 40px; } a.button { -moz-border-radius: 30px; -webkit-border-radius: 30px; border-radius: 30px; border-top: solid 1px #cbcbcb; border-left: solid 1px #b7b7b7; border-right: solid 1px #b7b7b7; border-bottom: solid 1px #b3b3b3; color: #303030; line-height: 25px; font-weight: bold; font-size: 15px; padding: 12px 8px 12px 8px; display: block; float: left; width: 179px; margin-right: 14px; background: #fdfdfd; /* Old browsers */ background: -moz-linear-gradient(top, #fdfdfd 0%, #f2f2f2 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fdfdfd), color-stop(100%,#f2f2f2)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* IE10+ */ background: linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fdfdfd', endColorstr='#f2f2f2',GradientType=0 ); /* IE6-9 */ -webkit-box-shadow: 10px 10px 5px #888; -moz-box-shadow: 10px 10px 5px #888; box-shadow: 0px 1px 5px #e8e8e8; } a.button:hover { border-top: solid 1px #b7b7b7; border-left: solid 1px #b3b3b3; border-right: solid 1px #b3b3b3; border-bottom: solid 1px #b3b3b3; background: #fafafa; /* Old browsers */ background: -moz-linear-gradient(top, #fdfdfd 0%, #f6f6f6 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fdfdfd), color-stop(100%,#f6f6f6)); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, #fdfdfd 0%,#f6f6f6 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, #fdfdfd 0%,#f6f6f6 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, #fdfdfd 0%,#f6f6f6 100%); /* IE10+ */ background: linear-gradient(top, #fdfdfd 0%,#f6f6f6, 100%); /* W3C */ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fdfdfd', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-9 */ } a.button span { padding-left: 50px; display: block; height: 23px; } #download-zip span { background: transparent url(../images/zip-icon.png) 12px 50% no-repeat; } #download-tar-gz span { background: transparent url(../images/tar-gz-icon.png) 12px 50% no-repeat; } #view-on-github span { background: transparent url(../images/octocat-icon.png) 12px 50% no-repeat; } #view-on-github { margin-right: 0; } tt { font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal; } code, pre { font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal; color: #222; margin-bottom: 30px; font-size: 14px; } code { background-color: #f2f2f2; border: solid 1px #ddd; padding: 0 3px; } pre { padding: 20px; background: #303030; color: #f2f2f2; text-shadow: none; overflow: auto; } pre code { color: #f2f2f2; background-color: #303030; border: none; padding: 0; } ul, ol, dl { margin-bottom: 20px; } /* COMMON STYLES */ hr { height: 1px; line-height: 1px; margin-top: 1em; padding-bottom: 1em; border: none; background: transparent url('../images/hr.png') 50% 0 no-repeat; } strong { font-weight: bold; } em { font-style: italic; } table { width: 100%; border: 1px solid #ebebeb; } th { font-weight: 500; } td { border: 1px solid #ebebeb; text-align: center; font-weight: 300; } form { background: #f2f2f2; padding: 20px; } /* GENERAL ELEMENT TYPE STYLES */ h1 { font-size: 32px; } h2 { font-family: 'Helvetica'; font-weight: 900; letter-spacing: 0px; font-size: 40px; color: #303030; line-height: 0.9; } h3 { color: deeppink; font-size: 30px; font-weight: bold; margin-bottom: 8px; } h4 { font-size: 16px; color: #303030; font-weight: bold; } h5 { font-size: 1em; color: #303030; } h6 { font-size: .8em; color: #303030; } p { font-weight: 300; margin-bottom: 20px; } a { text-decoration: none; } p a { font-weight: 600; } header a { font-weight: 600; } blockquote { font-size: 1.6em; border-left: 10px solid #e9e9e9; margin-bottom: 20px; padding: 0 0 0 30px; } ul li { list-style: disc inside; padding-left: 20px; } ol li { list-style: decimal inside; padding-left: 3px; } dl dt { color: #303030; } footer { background: transparent url('../images/hr.png') 0 0 no-repeat; margin-top: 40px; padding-top: 20px; padding-bottom: 40px; font-size: 13px; color: #999; } footer a { color: #666; } footer a:hover { color: #444; } /* MISC */ .clearfix:after { clear: both; content: '.'; display: block; visibility: hidden; height: 0; } .clearfix {display: inline-block;} * html .clearfix {height: 1%;} .clearfix {display: block;} /* #Media Queries ================================================== */ /* Smaller than standard 960 (devices and browsers) */ @media only screen and (max-width: 959px) {} /* Tablet Portrait size to standard 960 (devices and browsers) */ @media only screen and (min-width: 768px) and (max-width: 959px) {} /* All Mobile Sizes (devices and browser) */ @media only screen and (max-width: 767px) { header { padding-top: 10px; padding-bottom: 10px; } #downloads { margin-bottom: 25px; } #download-zip, #download-tar-gz { display: none; } .inner { width: 94%; margin: 0 auto; } } /* Mobile Landscape Size to Tablet Portrait (devices and browsers) */ @media only screen and (min-width: 480px) and (max-width: 767px) {} /* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */ @media only screen and (max-width: 479px) {}
lfranchi/bangbangcon.github.io
stylesheets/stylesheet.css
CSS
mit
8,038
# Setup 1. Install wine (and xquartz), instructions [here](http://www.davidbaumgold.com/tutorials/wine-mac/). # How to make a release First, it's a good idea to download the latest build of p5 and examples: ``` gulp p5 gulp getExamples ``` Update the version number in `package.json` and `public/package.json` ``` "version": "0.5.7", ``` **Very important: do NOT push to master yet!** Next, run the build task. ``` gulp build ``` This should create a new folder `dist/p5 - v[VERSION_NUMBER]` with your build. Test it out and make sure that nothing is busted. Things that should always be tested manually are: * playing mp4s/mp3s * serial communication * the version number in the about window Zip the release: ``` gulp latest ``` This will create zip files of the Mac and Windows releases and put them in `dist/latest`. Then, make a new release on github. * Make the tag look like this: `v0.5.8` * And the title look like this: `p5.js Editor v0.5.8` * Upload the zips to the release * Save Finally, push to github. Again, it's very important that you only push AFTER you make the release. The editor reads the version number from github to determine when users should be prompted to download a new version. There is probably a smarter way to do this, but that's how it works now.
nucliweb/p5.js-editor
release-howto.md
Markdown
mit
1,296
<?php namespace ac\DataBundle\Controller; use Symfony\Bundle\FrameworkBundle\Controller\Controller; class DefaultController extends Controller { public function indexAction($name) { return $this->render('acDataBundle:Default:index.html.twig', array('name' => $name)); } }
Codeperitus/cms
src/ac/DataBundle/Controller/DefaultController.php
PHP
mit
295
#ifndef _STDLIB_H #define _STDLIB_H 1 #include <stddef.h> /* for size_t */ #include <sys/cdefs.h> #ifdef __cplusplus extern "C" { #endif #define EXIT_FAILURE (1) #define EXIT_SUCCESS (0) #define NULL ((void *)0) void abort(void); void *malloc(const size_t size); void *calloc(const size_t num, const size_t size); void *realloc(void *ptr, const size_t size); void free(void *ptr); #ifdef __cplusplus } #endif #endif
cormac-obrien/os-0
src/libc/include/stdlib.h
C
mit
424
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="refresh" content="0;URL=primitive.bool.html"> </head> <body> <p>Redirecting to <a href="primitive.bool.html">primitive.bool.html</a>...</p> <script>location.replace("primitive.bool.html" + location.search + location.hash);</script> </body> </html>
liigo/liigo.github.io
tmp/rust/inline-sidebar-items/std/bool.t.html
HTML
mit
317
{-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TupleSections #-} -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html module Stratosphere.Resources.ApplicationAutoScalingScalableTarget where import Stratosphere.ResourceImports import Stratosphere.ResourceProperties.ApplicationAutoScalingScalableTargetScheduledAction -- | Full data type definition for ApplicationAutoScalingScalableTarget. See -- 'applicationAutoScalingScalableTarget' for a more convenient constructor. data ApplicationAutoScalingScalableTarget = ApplicationAutoScalingScalableTarget { _applicationAutoScalingScalableTargetMaxCapacity :: Val Integer , _applicationAutoScalingScalableTargetMinCapacity :: Val Integer , _applicationAutoScalingScalableTargetResourceId :: Val Text , _applicationAutoScalingScalableTargetRoleARN :: Val Text , _applicationAutoScalingScalableTargetScalableDimension :: Val Text , _applicationAutoScalingScalableTargetScheduledActions :: Maybe [ApplicationAutoScalingScalableTargetScheduledAction] , _applicationAutoScalingScalableTargetServiceNamespace :: Val Text } deriving (Show, Eq) instance ToResourceProperties ApplicationAutoScalingScalableTarget where toResourceProperties ApplicationAutoScalingScalableTarget{..} = ResourceProperties { resourcePropertiesType = "AWS::ApplicationAutoScaling::ScalableTarget" , resourcePropertiesProperties = hashMapFromList $ catMaybes [ (Just . ("MaxCapacity",) . toJSON) _applicationAutoScalingScalableTargetMaxCapacity , (Just . ("MinCapacity",) . toJSON) _applicationAutoScalingScalableTargetMinCapacity , (Just . ("ResourceId",) . toJSON) _applicationAutoScalingScalableTargetResourceId , (Just . ("RoleARN",) . toJSON) _applicationAutoScalingScalableTargetRoleARN , (Just . ("ScalableDimension",) . toJSON) _applicationAutoScalingScalableTargetScalableDimension , fmap (("ScheduledActions",) . toJSON) _applicationAutoScalingScalableTargetScheduledActions , (Just . ("ServiceNamespace",) . toJSON) _applicationAutoScalingScalableTargetServiceNamespace ] } -- | Constructor for 'ApplicationAutoScalingScalableTarget' containing -- required fields as arguments. applicationAutoScalingScalableTarget :: Val Integer -- ^ 'aasstMaxCapacity' -> Val Integer -- ^ 'aasstMinCapacity' -> Val Text -- ^ 'aasstResourceId' -> Val Text -- ^ 'aasstRoleARN' -> Val Text -- ^ 'aasstScalableDimension' -> Val Text -- ^ 'aasstServiceNamespace' -> ApplicationAutoScalingScalableTarget applicationAutoScalingScalableTarget maxCapacityarg minCapacityarg resourceIdarg roleARNarg scalableDimensionarg serviceNamespacearg = ApplicationAutoScalingScalableTarget { _applicationAutoScalingScalableTargetMaxCapacity = maxCapacityarg , _applicationAutoScalingScalableTargetMinCapacity = minCapacityarg , _applicationAutoScalingScalableTargetResourceId = resourceIdarg , _applicationAutoScalingScalableTargetRoleARN = roleARNarg , _applicationAutoScalingScalableTargetScalableDimension = scalableDimensionarg , _applicationAutoScalingScalableTargetScheduledActions = Nothing , _applicationAutoScalingScalableTargetServiceNamespace = serviceNamespacearg } -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-maxcapacity aasstMaxCapacity :: Lens' ApplicationAutoScalingScalableTarget (Val Integer) aasstMaxCapacity = lens _applicationAutoScalingScalableTargetMaxCapacity (\s a -> s { _applicationAutoScalingScalableTargetMaxCapacity = a }) -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-mincapacity aasstMinCapacity :: Lens' ApplicationAutoScalingScalableTarget (Val Integer) aasstMinCapacity = lens _applicationAutoScalingScalableTargetMinCapacity (\s a -> s { _applicationAutoScalingScalableTargetMinCapacity = a }) -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-resourceid aasstResourceId :: Lens' ApplicationAutoScalingScalableTarget (Val Text) aasstResourceId = lens _applicationAutoScalingScalableTargetResourceId (\s a -> s { _applicationAutoScalingScalableTargetResourceId = a }) -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-rolearn aasstRoleARN :: Lens' ApplicationAutoScalingScalableTarget (Val Text) aasstRoleARN = lens _applicationAutoScalingScalableTargetRoleARN (\s a -> s { _applicationAutoScalingScalableTargetRoleARN = a }) -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-scalabledimension aasstScalableDimension :: Lens' ApplicationAutoScalingScalableTarget (Val Text) aasstScalableDimension = lens _applicationAutoScalingScalableTargetScalableDimension (\s a -> s { _applicationAutoScalingScalableTargetScalableDimension = a }) -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-scheduledactions aasstScheduledActions :: Lens' ApplicationAutoScalingScalableTarget (Maybe [ApplicationAutoScalingScalableTargetScheduledAction]) aasstScheduledActions = lens _applicationAutoScalingScalableTargetScheduledActions (\s a -> s { _applicationAutoScalingScalableTargetScheduledActions = a }) -- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html#cfn-applicationautoscaling-scalabletarget-servicenamespace aasstServiceNamespace :: Lens' ApplicationAutoScalingScalableTarget (Val Text) aasstServiceNamespace = lens _applicationAutoScalingScalableTargetServiceNamespace (\s a -> s { _applicationAutoScalingScalableTargetServiceNamespace = a })
frontrowed/stratosphere
library-gen/Stratosphere/Resources/ApplicationAutoScalingScalableTarget.hs
Haskell
mit
6,217
<!DOCTYPE html> <html lang="en" > <head> <title>Angular Material - Starter App</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="description" content=""> <meta name="viewport" content="initial-scale=1" /> <link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Roboto:400,700'> <link rel="stylesheet" href="../node_modules/angular-material/angular-material.css"/> <link rel="stylesheet" href="assets/app.css"/> </head> <!-- Add Responsive features Add SideNav toggle features --> <body ng-app="starterApp" layout="column" ng-controller="UserController as ul"> <md-toolbar layout="row"> <md-button hide-gt-sm class="menu" ng-click="ul.toggleList()" > <md-icon md-svg-icon="menu" ></md-icon> </md-button> <h3>Angular Material - Starter App</h3> </md-toolbar> <div flex layout="row"> <md-sidenav md-component-id="left" md-is-locked-open="$mdMedia('gt-sm')" ng-click="ul.toggleList()" class="md-whiteframe-4dp" > <md-list> <md-list-item ng-repeat="u in ul.users"> <md-button ng-click="ul.selectUser(u)" ng-class="{'selected' : u === ul.selected }"> <md-icon md-svg-icon="{{u.avatar}}" class="avatar"></md-icon> {{u.name}} </md-button> </md-list-item> </md-list> </md-sidenav> <md-content flex id="content"> <md-icon md-svg-icon="{{ul.selected.avatar}}" class="avatar"></md-icon> <h2>{{ul.selected.name}}</h2> <p>{{ul.selected.content}}</p> <md-button class="share" md-no-ink ng-click="ul.makeContact(ul.selected)" > <md-icon md-svg-icon="share"></md-icon> </md-button> </md-content> </div> <script src="../node_modules/angular/angular.js"></script> <script src="../node_modules/angular-animate/angular-animate.js"></script> <script src="../node_modules/angular-aria/angular-aria.js"></script> <script src="../node_modules/angular-material/angular-material.js"></script> <script src="./src/users/Users.js"></script> <script src="./src/users/UserService.js"></script> <script src="./src/users/UserController_6.js"></script> <script type="text/javascript"> angular .module('starterApp', ['ngMaterial', 'users']) .config(function( $mdIconProvider ){ $mdIconProvider .defaultIconSet("./assets/svg/avatars.svg", 128) .icon("menu" , "./assets/svg/menu.svg" , 24) .icon("share" , "./assets/svg/share.svg" , 24) .icon("google_plus", "./assets/svg/google_plus.svg" , 512) .icon("hangouts" , "./assets/svg/hangouts.svg" , 512) .icon("twitter" , "./assets/svg/twitter.svg" , 512) .icon("phone" , "./assets/svg/phone.svg" , 512); }); </script> </body> </html>
cgonul/prototypes
material-start/app/tutorial_6.html
HTML
mit
3,197
@charset "UTF-8"; :root { --surface-a: #191919; --surface-b: #191919; --surface-c: #4c4c4c; --surface-d: #4b4b4b; --surface-e: #323232; --surface-f: #323232; --text-color: #dedede; --text-color-secondary: #888888; --primary-color: #C5E1A5; --primary-color-text: #212529; --font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; } * { box-sizing: border-box; } .p-component { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 1rem; font-weight: normal; } .p-component-overlay { background-color: rgba(0, 0, 0, 0.4); transition-duration: 0.2s; } .p-disabled, .p-component:disabled { opacity: 0.5; } .p-invalid { color: #e57373; } .p-text-secondary { color: #888888; } .pi { font-size: 1rem; } .p-link { font-size: 1rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; border-radius: 3px; } .p-link:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-autocomplete .p-autocomplete-loader { right: 0.429rem; } .p-autocomplete.p-autocomplete-dd .p-autocomplete-loader { right: 2.786rem; } .p-autocomplete .p-autocomplete-multiple-container { padding: 0.2145rem 0.429rem; } .p-autocomplete .p-autocomplete-multiple-container:not(.p-disabled):hover { border-color: #C5E1A5; } .p-autocomplete .p-autocomplete-multiple-container:not(.p-disabled).p-focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; border-color: #C5E1A5; } .p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-input-token { padding: 0.2145rem 0; } .p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-input-token input { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 1rem; color: #dedede; padding: 0; margin: 0; } .p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-token { padding: 0.2145rem 0.429rem; margin-right: 0.5rem; background: #C5E1A5; color: #212529; border-radius: 3px; } .p-autocomplete .p-autocomplete-multiple-container .p-autocomplete-token .p-autocomplete-token-icon { margin-left: 0.5rem; } .p-autocomplete.p-invalid.p-component > .p-inputtext { border-color: #e57373; } .p-autocomplete-panel { background: #323232; color: #dedede; border: 1px solid #191919; border-radius: 3px; box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); } .p-autocomplete-panel .p-autocomplete-items { padding: 0; } .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item { margin: 0; padding: 0.429rem 0.857rem; border: 0 none; color: #dedede; background: transparent; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 0; } .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover { color: #dedede; background: #4c4c4c; } .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight { color: #212529; background: #C5E1A5; } .p-calendar.p-invalid.p-component > .p-inputtext { border-color: #e57373; } .p-datepicker { padding: 0.857rem; background: #323232; color: #dedede; border: 1px solid #4b4b4b; border-radius: 3px; } .p-datepicker:not(.p-datepicker-inline) { background: #323232; border: 1px solid #191919; box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); } .p-datepicker:not(.p-datepicker-inline) .p-datepicker-header { background: #252525; } .p-datepicker .p-datepicker-header { padding: 0.5rem; color: #dedede; background: #323232; font-weight: 700; margin: 0; border-bottom: 0 none; border-top-right-radius: 3px; border-top-left-radius: 3px; } .p-datepicker .p-datepicker-header .p-datepicker-prev, .p-datepicker .p-datepicker-header .p-datepicker-next { width: 2rem; height: 2rem; color: #8888; border: 0 none; background: transparent; border-radius: 50%; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; } .p-datepicker .p-datepicker-header .p-datepicker-prev:enabled:hover, .p-datepicker .p-datepicker-header .p-datepicker-next:enabled:hover { color: #dedede; border-color: transparent; background: transparent; } .p-datepicker .p-datepicker-header .p-datepicker-prev:focus, .p-datepicker .p-datepicker-header .p-datepicker-next:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-datepicker .p-datepicker-header .p-datepicker-title { line-height: 2rem; } .p-datepicker .p-datepicker-header .p-datepicker-title select { transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-datepicker .p-datepicker-header .p-datepicker-title select:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; border-color: #C5E1A5; } .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month { margin-right: 0.5rem; } .p-datepicker table { font-size: 1rem; margin: 0.857rem 0; } .p-datepicker table th { padding: 0.5rem; } .p-datepicker table th > span { width: 2.5rem; height: 2.5rem; } .p-datepicker table td { padding: 0.5rem; } .p-datepicker table td > span { width: 2.5rem; height: 2.5rem; border-radius: 3px; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; border: 1px solid transparent; } .p-datepicker table td > span.p-highlight { color: #212529; background: #C5E1A5; } .p-datepicker table td > span:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-datepicker table td.p-datepicker-today > span { background: #9CCC65; color: #212529; border-color: transparent; } .p-datepicker table td.p-datepicker-today > span.p-highlight { color: #212529; background: #C5E1A5; } .p-datepicker .p-datepicker-buttonbar { padding: 0.857rem 0 0.429rem 0; border-top: 1px solid #4b4b4b; } .p-datepicker .p-datepicker-buttonbar .p-button { width: auto; } .p-datepicker .p-timepicker { border-top: 1px solid #4b4b4b; padding: 0.857rem 0 0.429rem 0; } .p-datepicker .p-timepicker button { width: 2rem; height: 2rem; color: #8888; border: 0 none; background: transparent; border-radius: 50%; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; } .p-datepicker .p-timepicker button:enabled:hover { color: #dedede; border-color: transparent; background: transparent; } .p-datepicker .p-timepicker button:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-datepicker .p-timepicker button:last-child { margin-top: 0.2em; } .p-datepicker .p-timepicker span { font-size: 1.286rem; } .p-datepicker .p-timepicker > div { padding: 0 0.429rem; } .p-datepicker.p-datepicker-timeonly .p-timepicker { border-top: 0 none; } .p-datepicker .p-monthpicker { margin: 0.857rem 0; } .p-datepicker .p-monthpicker .p-monthpicker-month { padding: 0.5rem; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 3px; } .p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight { color: #212529; background: #C5E1A5; } .p-datepicker.p-datepicker-multiple-month .p-datepicker-group { border-right: 1px solid #4b4b4b; padding-right: 0.857rem; padding-left: 0.857rem; padding-top: 0; padding-bottom: 0; } .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child { padding-left: 0; } .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child { padding-right: 0; border-right: 0 none; } .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):hover { background: #4c4c4c; } .p-datepicker:not(.p-disabled) table td span:not(.p-highlight):not(.p-disabled):focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):hover { background: #4c4c4c; } .p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-datepicker-mask.p-component-overlay { background: rgba(0, 0, 0, 0.4); } @media screen and (max-width: 769px) { .p-datepicker table th, .p-datepicker table td { padding: 0; } } .p-cascadeselect { background: #191919; border: 1px solid #4b4b4b; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 3px; } .p-cascadeselect:not(.p-disabled):hover { border-color: #C5E1A5; } .p-cascadeselect:not(.p-disabled).p-focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; border-color: #C5E1A5; } .p-cascadeselect .p-cascadeselect-label { background: transparent; border: 0 none; padding: 0.429rem 0.429rem; } .p-cascadeselect .p-cascadeselect-label.p-placeholder { color: #9b9b9b; } .p-cascadeselect .p-cascadeselect-label:enabled:focus { outline: 0 none; box-shadow: none; } .p-cascadeselect .p-cascadeselect-trigger { background: transparent; color: #888888; width: 2.357rem; border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .p-cascadeselect.p-invalid { border-color: #e57373; } .p-cascadeselect-panel { background: #323232; color: #dedede; border: 1px solid #191919; border-radius: 3px; box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); } .p-cascadeselect-panel .p-cascadeselect-items { padding: 0; } .p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item { margin: 0; border: 0 none; color: #dedede; background: transparent; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 0; } .p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-item-content { padding: 0.429rem 0.857rem; } .p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-item-content:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item.p-highlight { color: #212529; background: #C5E1A5; } .p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item:not(.p-highlight):not(.p-disabled):hover { color: #dedede; background: #4c4c4c; } .p-cascadeselect-panel .p-cascadeselect-items .p-cascadeselect-item .p-cascadeselect-group-icon { font-size: 0.875rem; } .p-input-filled .p-cascadeselect { background: #4b4b4b; } .p-input-filled .p-cascadeselect:not(.p-disabled):hover { background-color: #4b4b4b; } .p-input-filled .p-cascadeselect:not(.p-disabled).p-focus { background-color: #4b4b4b; } .p-checkbox { width: 20px; height: 20px; } .p-checkbox .p-checkbox-box { border: 1px solid #4b4b4b; background: #191919; width: 20px; height: 20px; color: #dedede; border-radius: 3px; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-checkbox .p-checkbox-box .p-checkbox-icon { transition-duration: 0.2s; color: #212529; font-size: 14px; } .p-checkbox .p-checkbox-box.p-highlight { border-color: #C5E1A5; background: #C5E1A5; } .p-checkbox .p-checkbox-box.p-highlight:not(.p-disabled):hover { border-color: #9CCC65; background: #9CCC65; color: #212529; } .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box:hover { border-color: #C5E1A5; } .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; border-color: #C5E1A5; } .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-highlight:hover { border-color: #9CCC65; background: #9CCC65; color: #212529; } .p-checkbox.p-invalid > .p-checkbox-box { border-color: #e57373; } .p-input-filled .p-checkbox .p-checkbox-box { background-color: #4b4b4b; } .p-input-filled .p-checkbox .p-checkbox-box.p-highlight { background: #C5E1A5; } .p-input-filled .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box:hover { background-color: #4b4b4b; } .p-input-filled .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-highlight:hover { background: #9CCC65; } .p-highlight .p-checkbox .p-checkbox-box { border-color: #212529; } .p-chips .p-chips-multiple-container { padding: 0.2145rem 0.429rem; } .p-chips .p-chips-multiple-container:not(.p-disabled):hover { border-color: #C5E1A5; } .p-chips .p-chips-multiple-container:not(.p-disabled).p-focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; border-color: #C5E1A5; } .p-chips .p-chips-multiple-container .p-chips-token { padding: 0.2145rem 0.429rem; margin-right: 0.5rem; background: #C5E1A5; color: #212529; border-radius: 3px; } .p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon { margin-left: 0.5rem; } .p-chips .p-chips-multiple-container .p-chips-input-token { padding: 0.2145rem 0; } .p-chips .p-chips-multiple-container .p-chips-input-token input { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 1rem; color: #dedede; padding: 0; margin: 0; } .p-chips.p-invalid.p-component > .p-inputtext { border-color: #e57373; } .p-colorpicker-preview { width: 2rem; height: 2rem; } .p-colorpicker-panel { background: #323232; border-color: #191919; } .p-colorpicker-panel .p-colorpicker-color-handle, .p-colorpicker-panel .p-colorpicker-hue-handle { border-color: #ffffff; } .p-colorpicker-overlay-panel { box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); } .p-dropdown { background: #191919; border: 1px solid #4b4b4b; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 3px; } .p-dropdown:not(.p-disabled):hover { border-color: #C5E1A5; } .p-dropdown:not(.p-disabled).p-focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; border-color: #C5E1A5; } .p-dropdown.p-dropdown-clearable .p-dropdown-label { padding-right: 1.429rem; } .p-dropdown .p-dropdown-label { background: transparent; border: 0 none; } .p-dropdown .p-dropdown-label.p-placeholder { color: #9b9b9b; } .p-dropdown .p-dropdown-label:enabled:focus { outline: 0 none; box-shadow: none; } .p-dropdown .p-dropdown-trigger { background: transparent; color: #888888; width: 2.357rem; border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .p-dropdown .p-dropdown-clear-icon { color: #888888; right: 2.357rem; } .p-dropdown.p-invalid.p-component { border-color: #e57373; } .p-dropdown-panel { background: #323232; color: #dedede; border: 1px solid #191919; border-radius: 3px; box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); } .p-dropdown-panel .p-dropdown-header { padding: 0.429rem 0.857rem; border-bottom: 1px solid #191919; color: #dedede; background: #252525; margin: 0; border-top-right-radius: 3px; border-top-left-radius: 3px; } .p-dropdown-panel .p-dropdown-header .p-dropdown-filter { padding-right: 1.429rem; } .p-dropdown-panel .p-dropdown-header .p-dropdown-filter-icon { right: 0.429rem; color: #888888; } .p-dropdown-panel .p-dropdown-items { padding: 0; } .p-dropdown-panel .p-dropdown-items .p-dropdown-item { margin: 0; padding: 0.429rem 0.857rem; border: 0 none; color: #dedede; background: transparent; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 0; } .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight { color: #212529; background: #C5E1A5; } .p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover { color: #dedede; background: #4c4c4c; } .p-dropdown-panel .p-dropdown-items .p-dropdown-empty-message { padding: 0.429rem 0.857rem; color: #dedede; background: transparent; } .p-input-filled .p-dropdown { background: #4b4b4b; } .p-input-filled .p-dropdown:not(.p-disabled):hover { background-color: #4b4b4b; } .p-input-filled .p-dropdown:not(.p-disabled).p-focus { background-color: #4b4b4b; } .p-editor-container .p-editor-toolbar { background: #191919; border-top-right-radius: 3px; border-top-left-radius: 3px; } .p-editor-container .p-editor-toolbar.ql-snow { border: 1px solid #191919; } .p-editor-container .p-editor-toolbar.ql-snow .ql-stroke { stroke: #888888; } .p-editor-container .p-editor-toolbar.ql-snow .ql-fill { fill: #888888; } .p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label { border: 0 none; color: #888888; } .p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover { color: #dedede; } .p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-stroke { stroke: #dedede; } .p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-fill { fill: #dedede; } .p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label { color: #dedede; } .p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke { stroke: #dedede; } .p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill { fill: #dedede; } .p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options { background: #323232; border: 1px solid #191919; box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); border-radius: 3px; padding: 0; } .p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item { color: #dedede; } .p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item:hover { color: #dedede; background: #4c4c4c; } .p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded:not(.ql-icon-picker) .ql-picker-item { padding: 0.429rem 0.857rem; } .p-editor-container .p-editor-content { border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .p-editor-container .p-editor-content.ql-snow { border: 1px solid #191919; } .p-editor-container .p-editor-content .ql-editor { background: #191919; color: #dedede; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .p-editor-container .ql-snow.ql-toolbar button:hover, .p-editor-container .ql-snow.ql-toolbar button:focus { color: #dedede; } .p-editor-container .ql-snow.ql-toolbar button:hover .ql-stroke, .p-editor-container .ql-snow.ql-toolbar button:focus .ql-stroke { stroke: #dedede; } .p-editor-container .ql-snow.ql-toolbar button:hover .ql-fill, .p-editor-container .ql-snow.ql-toolbar button:focus .ql-fill { fill: #dedede; } .p-editor-container .ql-snow.ql-toolbar button.ql-active, .p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active, .p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected { color: #C5E1A5; } .p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-stroke, .p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke, .p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke { stroke: #C5E1A5; } .p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-fill, .p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill, .p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill { fill: #C5E1A5; } .p-editor-container .ql-snow.ql-toolbar button.ql-active .ql-picker-label, .p-editor-container .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-picker-label, .p-editor-container .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-picker-label { color: #C5E1A5; } .p-inputgroup-addon { background: #252525; color: #888888; border-top: 1px solid #4b4b4b; border-left: 1px solid #4b4b4b; border-bottom: 1px solid #4b4b4b; padding: 0.429rem 0.429rem; min-width: 2.357rem; } .p-inputgroup-addon:last-child { border-right: 1px solid #4b4b4b; } .p-inputgroup > .p-component, .p-inputgroup > .p-inputwrapper > .p-inputtext, .p-inputgroup > .p-float-label > .p-component { border-radius: 0; margin: 0; } .p-inputgroup > .p-component + .p-inputgroup-addon, .p-inputgroup > .p-inputwrapper > .p-inputtext + .p-inputgroup-addon, .p-inputgroup > .p-float-label > .p-component + .p-inputgroup-addon { border-left: 0 none; } .p-inputgroup > .p-component:focus, .p-inputgroup > .p-inputwrapper > .p-inputtext:focus, .p-inputgroup > .p-float-label > .p-component:focus { z-index: 1; } .p-inputgroup > .p-component:focus ~ label, .p-inputgroup > .p-inputwrapper > .p-inputtext:focus ~ label, .p-inputgroup > .p-float-label > .p-component:focus ~ label { z-index: 1; } .p-inputgroup-addon:first-child, .p-inputgroup button:first-child, .p-inputgroup input:first-child, .p-inputgroup > .p-inputwrapper:first-child, .p-inputgroup > .p-inputwrapper:first-child > .p-inputtext { border-top-left-radius: 3px; border-bottom-left-radius: 3px; } .p-inputgroup .p-float-label:first-child input { border-top-left-radius: 3px; border-bottom-left-radius: 3px; } .p-inputgroup-addon:last-child, .p-inputgroup button:last-child, .p-inputgroup input:last-child, .p-inputgroup > .p-inputwrapper:last-child, .p-inputgroup > .p-inputwrapper:last-child > .p-inputtext { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .p-inputgroup .p-float-label:last-child input { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .p-fluid .p-inputgroup .p-button { width: auto; } .p-fluid .p-inputgroup .p-button.p-button-icon-only { width: 2.357rem; } .p-inputnumber.p-invalid.p-component > .p-inputtext { border-color: #e57373; } .p-inputswitch { width: 3rem; height: 1.75rem; } .p-inputswitch .p-inputswitch-slider { background: #4b4b4b; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 30px; } .p-inputswitch .p-inputswitch-slider:before { background: #323232; width: 1.25rem; height: 1.25rem; left: 0.25rem; margin-top: -0.625rem; border-radius: 50%; transition-duration: 0.2s; } .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before { transform: translateX(1.25rem); } .p-inputswitch.p-focus .p-inputswitch-slider { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-inputswitch:not(.p-disabled):hover .p-inputswitch-slider { background: #4b4b4b; } .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider { background: #C5E1A5; } .p-inputswitch.p-inputswitch-checked .p-inputswitch-slider:before { background: #323232; } .p-inputswitch.p-inputswitch-checked:not(.p-disabled):hover .p-inputswitch-slider { background: #AED581; } .p-inputswitch.p-invalid { border-color: #e57373; } .p-inputtext { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 1rem; color: #dedede; background: #191919; padding: 0.429rem 0.429rem; border: 1px solid #4b4b4b; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; appearance: none; border-radius: 3px; } .p-inputtext:enabled:hover { border-color: #C5E1A5; } .p-inputtext:enabled:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; border-color: #C5E1A5; } .p-inputtext.p-invalid.p-component { border-color: #e57373; } .p-inputtext.p-inputtext-sm { font-size: 0.875rem; padding: 0.375375rem 0.375375rem; } .p-inputtext.p-inputtext-lg { font-size: 1.25rem; padding: 0.53625rem 0.53625rem; } .p-float-label > label { left: 0.429rem; color: #9b9b9b; transition-duration: 0.2s; } .p-input-icon-left > i:first-of-type { left: 0.429rem; color: #888888; } .p-input-icon-left > .p-inputtext { padding-left: 1.858rem; } .p-input-icon-left.p-float-label > label { left: 1.858rem; } .p-input-icon-right > i:last-of-type { right: 0.429rem; color: #888888; } .p-input-icon-right > .p-inputtext { padding-right: 1.858rem; } ::-webkit-input-placeholder { color: #9b9b9b; } :-moz-placeholder { color: #9b9b9b; } ::-moz-placeholder { color: #9b9b9b; } :-ms-input-placeholder { color: #9b9b9b; } .p-input-filled .p-inputtext { background-color: #4b4b4b; } .p-input-filled .p-inputtext:enabled:hover { background-color: #4b4b4b; } .p-input-filled .p-inputtext:enabled:focus { background-color: #4b4b4b; } .p-inputtext-sm .p-inputtext { font-size: 0.875rem; padding: 0.375375rem 0.375375rem; } .p-inputtext-lg .p-inputtext { font-size: 1.25rem; padding: 0.53625rem 0.53625rem; } .p-listbox { background: #323232; color: #dedede; border: 1px solid #4b4b4b; border-radius: 3px; } .p-listbox .p-listbox-header { padding: 0.429rem 0.857rem; border-bottom: 1px solid #191919; color: #dedede; background: #252525; margin: 0; border-top-right-radius: 3px; border-top-left-radius: 3px; } .p-listbox .p-listbox-header .p-listbox-filter { padding-right: 1.429rem; } .p-listbox .p-listbox-header .p-listbox-filter-icon { right: 0.429rem; color: #888888; } .p-listbox .p-listbox-list { padding: 0; } .p-listbox .p-listbox-list .p-listbox-item { margin: 0; padding: 0.429rem 0.857rem; border: 0 none; color: #dedede; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 0; } .p-listbox .p-listbox-list .p-listbox-item.p-highlight { color: #212529; background: #C5E1A5; } .p-listbox .p-listbox-list .p-listbox-item:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-listbox .p-listbox-list .p-listbox-empty-message { padding: 0.429rem 0.857rem; color: #dedede; background: transparent; } .p-listbox:not(.p-disabled) .p-listbox-item:not(.p-highlight):not(.p-disabled):hover { color: #dedede; background: #4c4c4c; } .p-listbox.p-invalid { border-color: #e57373; } .p-multiselect { background: #191919; border: 1px solid #4b4b4b; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 3px; } .p-multiselect:not(.p-disabled):hover { border-color: #C5E1A5; } .p-multiselect:not(.p-disabled).p-focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; border-color: #C5E1A5; } .p-multiselect.p-multiselect-clearable .p-multiselect-label { padding-right: 1.429rem; } .p-multiselect .p-multiselect-label { padding: 0.429rem 0.429rem; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-multiselect .p-multiselect-label.p-placeholder { color: #9b9b9b; } .p-multiselect.p-multiselect-chip .p-multiselect-token { padding: 0.2145rem 0.429rem; margin-right: 0.5rem; background: #C5E1A5; color: #212529; border-radius: 3px; } .p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon { margin-left: 0.5rem; } .p-multiselect .p-multiselect-trigger { background: transparent; color: #888888; width: 2.357rem; border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .p-multiselect .p-multiselect-clear-icon { color: #888888; right: 2.357rem; } .p-multiselect.p-invalid.p-component { border-color: #e57373; } .p-inputwrapper-filled.p-multiselect.p-multiselect-chip .p-multiselect-label { padding: 0.2145rem 0.429rem; } .p-inputwrapper-filled.p-multiselect.p-multiselect-clearable .p-multiselect-label { padding-right: 1.429rem; } .p-multiselect-panel { background: #323232; color: #dedede; border: 1px solid #191919; border-radius: 3px; box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); } .p-multiselect-panel .p-multiselect-header { padding: 0.429rem 0.857rem; border-bottom: 1px solid #191919; color: #dedede; background: #252525; margin: 0; border-top-right-radius: 3px; border-top-left-radius: 3px; } .p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-inputtext { padding-right: 1.429rem; } .p-multiselect-panel .p-multiselect-header .p-multiselect-filter-container .p-multiselect-filter-icon { right: 0.429rem; color: #888888; } .p-multiselect-panel .p-multiselect-header .p-checkbox { margin-right: 0.5rem; } .p-multiselect-panel .p-multiselect-header .p-multiselect-close { margin-left: 0.5rem; width: 2rem; height: 2rem; color: #8888; border: 0 none; background: transparent; border-radius: 50%; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; } .p-multiselect-panel .p-multiselect-header .p-multiselect-close:enabled:hover { color: #dedede; border-color: transparent; background: transparent; } .p-multiselect-panel .p-multiselect-header .p-multiselect-close:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-multiselect-panel .p-multiselect-items { padding: 0; } .p-multiselect-panel .p-multiselect-items .p-multiselect-item { margin: 0; padding: 0.429rem 0.857rem; border: 0 none; color: #dedede; background: transparent; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 0; } .p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight { color: #212529; background: #C5E1A5; } .p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover { color: #dedede; background: #4c4c4c; } .p-multiselect-panel .p-multiselect-items .p-multiselect-item:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox { margin-right: 0.5rem; } .p-multiselect-panel .p-multiselect-items .p-multiselect-empty-message { padding: 0.429rem 0.857rem; color: #dedede; background: transparent; } .p-input-filled .p-multiselect { background: #4b4b4b; } .p-input-filled .p-multiselect:not(.p-disabled):hover { background-color: #4b4b4b; } .p-input-filled .p-multiselect:not(.p-disabled).p-focus { background-color: #4b4b4b; } .p-password-panel { padding: 0.571rem 1rem; background: #323232; color: #dedede; border: 1px solid #191919; box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); border-radius: 3px; } .p-password-panel .p-password-meter { margin-bottom: 0.5rem; background: #eaeaea; } .p-password-panel .p-password-meter .p-password-strength.weak { background: #E57373; } .p-password-panel .p-password-meter .p-password-strength.medium { background: #FFB74D; } .p-password-panel .p-password-meter .p-password-strength.strong { background: #AED581; } .p-radiobutton { width: 20px; height: 20px; } .p-radiobutton .p-radiobutton-box { border: 1px solid #4b4b4b; background: #191919; width: 20px; height: 20px; color: #dedede; border-radius: 50%; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-radiobutton .p-radiobutton-box:not(.p-disabled):not(.p-highlight):hover { border-color: #C5E1A5; } .p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; border-color: #C5E1A5; } .p-radiobutton .p-radiobutton-box .p-radiobutton-icon { width: 12px; height: 12px; transition-duration: 0.2s; background-color: #212529; } .p-radiobutton .p-radiobutton-box.p-highlight { border-color: #C5E1A5; background: #C5E1A5; } .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover { border-color: #9CCC65; background: #9CCC65; color: #212529; } .p-radiobutton.p-invalid > .p-radiobutton-box { border-color: #e57373; } .p-radiobutton:focus { outline: 0 none; } .p-input-filled .p-radiobutton .p-radiobutton-box { background-color: #4b4b4b; } .p-input-filled .p-radiobutton .p-radiobutton-box:not(.p-disabled):hover { background-color: #4b4b4b; } .p-input-filled .p-radiobutton .p-radiobutton-box.p-highlight { background: #C5E1A5; } .p-input-filled .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover { background: #9CCC65; } .p-highlight .p-radiobutton .p-radiobutton-box { border-color: #212529; } .p-rating .p-rating-icon { color: #dedede; margin-left: 0.5rem; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; font-size: 1.143rem; } .p-rating .p-rating-icon.p-rating-cancel { color: #e4018d; } .p-rating .p-rating-icon:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-rating .p-rating-icon:first-child { margin-left: 0; } .p-rating .p-rating-icon.pi-star { color: #C5E1A5; } .p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon:hover { color: #C5E1A5; } .p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon.p-rating-cancel:hover { color: #b5019f; } .p-highlight .p-rating .p-rating-icon { color: #212529; } .p-selectbutton .p-button { background: #252525; border: 1px solid #252525; color: #dedede; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-selectbutton .p-button .p-button-icon-left, .p-selectbutton .p-button .p-button-icon-right { color: #888888; } .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover { background: #4c4c4c; border-color: #4c4c4c; color: #dedede; } .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-left, .p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-right { color: #dedede; } .p-selectbutton .p-button.p-highlight { background: #C5E1A5; border-color: #C5E1A5; color: #212529; } .p-selectbutton .p-button.p-highlight .p-button-icon-left, .p-selectbutton .p-button.p-highlight .p-button-icon-right { color: #212529; } .p-selectbutton .p-button.p-highlight:hover { background: #AED581; border-color: #AED581; color: #212529; } .p-selectbutton .p-button.p-highlight:hover .p-button-icon-left, .p-selectbutton .p-button.p-highlight:hover .p-button-icon-right { color: #212529; } .p-selectbutton.p-invalid > .p-button { border-color: #e57373; } .p-slider { background: #4b4b4b; border: 0 none; border-radius: 3px; } .p-slider.p-slider-horizontal { height: 0.286rem; } .p-slider.p-slider-horizontal .p-slider-handle { margin-top: -0.5715rem; margin-left: -0.5715rem; } .p-slider.p-slider-vertical { width: 0.286rem; } .p-slider.p-slider-vertical .p-slider-handle { margin-left: -0.5715rem; margin-bottom: -0.5715rem; } .p-slider .p-slider-handle { height: 1.143rem; width: 1.143rem; background: #4c4c4c; border: 2px solid #C5E1A5; border-radius: 100%; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-slider .p-slider-handle:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-slider .p-slider-range { background: #C5E1A5; } .p-slider:not(.p-disabled) .p-slider-handle:hover { background: #C5E1A5; border-color: #C5E1A5; } .p-togglebutton.p-button { background: #252525; border: 1px solid #252525; color: #dedede; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-togglebutton.p-button .p-button-icon-left, .p-togglebutton.p-button .p-button-icon-right { color: #888888; } .p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover { background: #4c4c4c; border-color: #4c4c4c; color: #dedede; } .p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-left, .p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover .p-button-icon-right { color: #dedede; } .p-togglebutton.p-button.p-highlight { background: #C5E1A5; border-color: #C5E1A5; color: #212529; } .p-togglebutton.p-button.p-highlight .p-button-icon-left, .p-togglebutton.p-button.p-highlight .p-button-icon-right { color: #212529; } .p-togglebutton.p-button.p-highlight:hover { background: #AED581; border-color: #AED581; color: #212529; } .p-togglebutton.p-button.p-highlight:hover .p-button-icon-left, .p-togglebutton.p-button.p-highlight:hover .p-button-icon-right { color: #212529; } .p-togglebutton.p-button.p-invalid > .p-button { border-color: #e57373; } .p-button { color: #212529; background: #C5E1A5; border: 1px solid #C5E1A5; padding: 0.429rem 1rem; font-size: 1rem; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 3px; } .p-button:enabled:hover { background: #AED581; color: #212529; border-color: #AED581; } .p-button:enabled:active { background: #9CCC65; color: #212529; border-color: #9CCC65; } .p-button.p-button-outlined { background-color: transparent; color: #C5E1A5; border: 1px solid; } .p-button.p-button-outlined:enabled:hover { background: rgba(197, 225, 165, 0.04); color: #C5E1A5; border: 1px solid; } .p-button.p-button-outlined:enabled:active { background: rgba(197, 225, 165, 0.16); color: #C5E1A5; border: 1px solid; } .p-button.p-button-outlined.p-button-plain { color: #888888; border-color: #888888; } .p-button.p-button-outlined.p-button-plain:enabled:hover { background: #4c4c4c; color: #888888; } .p-button.p-button-outlined.p-button-plain:enabled:active { background: #3c3c3c; color: #888888; } .p-button.p-button-text { background-color: transparent; color: #C5E1A5; border-color: transparent; } .p-button.p-button-text:enabled:hover { background: rgba(197, 225, 165, 0.04); color: #C5E1A5; border-color: transparent; } .p-button.p-button-text:enabled:active { background: rgba(197, 225, 165, 0.16); color: #C5E1A5; border-color: transparent; } .p-button.p-button-text.p-button-plain { color: #888888; } .p-button.p-button-text.p-button-plain:enabled:hover { background: #4c4c4c; color: #888888; } .p-button.p-button-text.p-button-plain:enabled:active { background: #3c3c3c; color: #888888; } .p-button:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-button .p-button-icon-left { margin-right: 0.5rem; } .p-button .p-button-icon-right { margin-left: 0.5rem; } .p-button .p-button-icon-bottom { margin-top: 0.5rem; } .p-button .p-button-icon-top { margin-bottom: 0.5rem; } .p-button .p-badge { margin-left: 0.5rem; min-width: 1rem; height: 1rem; line-height: 1rem; color: #C5E1A5; background-color: #212529; } .p-button.p-button-raised { box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); } .p-button.p-button-rounded { border-radius: 2rem; } .p-button.p-button-icon-only { width: 2.357rem; padding: 0.429rem 0; } .p-button.p-button-icon-only .p-button-icon-left, .p-button.p-button-icon-only .p-button-icon-right { margin: 0; } .p-button.p-button-icon-only.p-button-rounded { border-radius: 50%; height: 2.357rem; } .p-button.p-button-sm { font-size: 0.875rem; padding: 0.375375rem 0.875rem; } .p-button.p-button-sm .p-button-icon { font-size: 0.875rem; } .p-button.p-button-lg { font-size: 1.25rem; padding: 0.53625rem 1.25rem; } .p-button.p-button-lg .p-button-icon { font-size: 1.25rem; } .p-fluid .p-button { width: 100%; } .p-fluid .p-button-icon-only { width: 2.357rem; } .p-fluid .p-buttonset { display: flex; } .p-fluid .p-buttonset .p-button { flex: 1; } .p-button.p-button-secondary, .p-buttonset.p-button-secondary > .p-button, .p-splitbutton.p-button-secondary > .p-button { color: #121212; background: #B0BEC5; border: 1px solid #B0BEC5; } .p-button.p-button-secondary:enabled:hover, .p-buttonset.p-button-secondary > .p-button:enabled:hover, .p-splitbutton.p-button-secondary > .p-button:enabled:hover { background: #90A4AE; color: #121212; border-color: #90A4AE; } .p-button.p-button-secondary:enabled:focus, .p-buttonset.p-button-secondary > .p-button:enabled:focus, .p-splitbutton.p-button-secondary > .p-button:enabled:focus { box-shadow: 0 0 0 0.1rem #CFD8DC; } .p-button.p-button-secondary:enabled:active, .p-buttonset.p-button-secondary > .p-button:enabled:active, .p-splitbutton.p-button-secondary > .p-button:enabled:active { background: #78909C; color: #121212; border-color: #78909C; } .p-button.p-button-secondary.p-button-outlined, .p-buttonset.p-button-secondary > .p-button.p-button-outlined, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined { background-color: transparent; color: #B0BEC5; border: 1px solid; } .p-button.p-button-secondary.p-button-outlined:enabled:hover, .p-buttonset.p-button-secondary > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined:enabled:hover { background: rgba(176, 190, 197, 0.04); color: #B0BEC5; border: 1px solid; } .p-button.p-button-secondary.p-button-outlined:enabled:active, .p-buttonset.p-button-secondary > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-secondary > .p-button.p-button-outlined:enabled:active { background: rgba(176, 190, 197, 0.16); color: #B0BEC5; border: 1px solid; } .p-button.p-button-secondary.p-button-text, .p-buttonset.p-button-secondary > .p-button.p-button-text, .p-splitbutton.p-button-secondary > .p-button.p-button-text { background-color: transparent; color: #B0BEC5; border-color: transparent; } .p-button.p-button-secondary.p-button-text:enabled:hover, .p-buttonset.p-button-secondary > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-secondary > .p-button.p-button-text:enabled:hover { background: rgba(176, 190, 197, 0.04); border-color: transparent; color: #B0BEC5; } .p-button.p-button-secondary.p-button-text:enabled:active, .p-buttonset.p-button-secondary > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-secondary > .p-button.p-button-text:enabled:active { background: rgba(176, 190, 197, 0.16); border-color: transparent; color: #B0BEC5; } .p-button.p-button-info, .p-buttonset.p-button-info > .p-button, .p-splitbutton.p-button-info > .p-button { color: #212529; background: #4FC3F7; border: 1px solid #4FC3F7; } .p-button.p-button-info:enabled:hover, .p-buttonset.p-button-info > .p-button:enabled:hover, .p-splitbutton.p-button-info > .p-button:enabled:hover { background: #29B6F6; color: #212529; border-color: #29B6F6; } .p-button.p-button-info:enabled:focus, .p-buttonset.p-button-info > .p-button:enabled:focus, .p-splitbutton.p-button-info > .p-button:enabled:focus { box-shadow: 0 0 0 0.1rem #E1F5FE; } .p-button.p-button-info:enabled:active, .p-buttonset.p-button-info > .p-button:enabled:active, .p-splitbutton.p-button-info > .p-button:enabled:active { background: #03A9F4; color: #212529; border-color: #03A9F4; } .p-button.p-button-info.p-button-outlined, .p-buttonset.p-button-info > .p-button.p-button-outlined, .p-splitbutton.p-button-info > .p-button.p-button-outlined { background-color: transparent; color: #4FC3F7; border: 1px solid; } .p-button.p-button-info.p-button-outlined:enabled:hover, .p-buttonset.p-button-info > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-info > .p-button.p-button-outlined:enabled:hover { background: rgba(79, 195, 247, 0.04); color: #4FC3F7; border: 1px solid; } .p-button.p-button-info.p-button-outlined:enabled:active, .p-buttonset.p-button-info > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-info > .p-button.p-button-outlined:enabled:active { background: rgba(79, 195, 247, 0.16); color: #4FC3F7; border: 1px solid; } .p-button.p-button-info.p-button-text, .p-buttonset.p-button-info > .p-button.p-button-text, .p-splitbutton.p-button-info > .p-button.p-button-text { background-color: transparent; color: #4FC3F7; border-color: transparent; } .p-button.p-button-info.p-button-text:enabled:hover, .p-buttonset.p-button-info > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-info > .p-button.p-button-text:enabled:hover { background: rgba(79, 195, 247, 0.04); border-color: transparent; color: #4FC3F7; } .p-button.p-button-info.p-button-text:enabled:active, .p-buttonset.p-button-info > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-info > .p-button.p-button-text:enabled:active { background: rgba(79, 195, 247, 0.16); border-color: transparent; color: #4FC3F7; } .p-button.p-button-success, .p-buttonset.p-button-success > .p-button, .p-splitbutton.p-button-success > .p-button { color: #212529; background: #AED581; border: 1px solid #AED581; } .p-button.p-button-success:enabled:hover, .p-buttonset.p-button-success > .p-button:enabled:hover, .p-splitbutton.p-button-success > .p-button:enabled:hover { background: #9CCC65; color: #212529; border-color: #9CCC65; } .p-button.p-button-success:enabled:focus, .p-buttonset.p-button-success > .p-button:enabled:focus, .p-splitbutton.p-button-success > .p-button:enabled:focus { box-shadow: 0 0 0 0.1rem #F1F8E9; } .p-button.p-button-success:enabled:active, .p-buttonset.p-button-success > .p-button:enabled:active, .p-splitbutton.p-button-success > .p-button:enabled:active { background: #8BC34A; color: #212529; border-color: #8BC34A; } .p-button.p-button-success.p-button-outlined, .p-buttonset.p-button-success > .p-button.p-button-outlined, .p-splitbutton.p-button-success > .p-button.p-button-outlined { background-color: transparent; color: #AED581; border: 1px solid; } .p-button.p-button-success.p-button-outlined:enabled:hover, .p-buttonset.p-button-success > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-success > .p-button.p-button-outlined:enabled:hover { background: rgba(174, 213, 129, 0.04); color: #AED581; border: 1px solid; } .p-button.p-button-success.p-button-outlined:enabled:active, .p-buttonset.p-button-success > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-success > .p-button.p-button-outlined:enabled:active { background: rgba(174, 213, 129, 0.16); color: #AED581; border: 1px solid; } .p-button.p-button-success.p-button-text, .p-buttonset.p-button-success > .p-button.p-button-text, .p-splitbutton.p-button-success > .p-button.p-button-text { background-color: transparent; color: #AED581; border-color: transparent; } .p-button.p-button-success.p-button-text:enabled:hover, .p-buttonset.p-button-success > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-success > .p-button.p-button-text:enabled:hover { background: rgba(174, 213, 129, 0.04); border-color: transparent; color: #AED581; } .p-button.p-button-success.p-button-text:enabled:active, .p-buttonset.p-button-success > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-success > .p-button.p-button-text:enabled:active { background: rgba(174, 213, 129, 0.16); border-color: transparent; color: #AED581; } .p-button.p-button-warning, .p-buttonset.p-button-warning > .p-button, .p-splitbutton.p-button-warning > .p-button { color: #212529; background: #FFB74D; border: 1px solid #FFB74D; } .p-button.p-button-warning:enabled:hover, .p-buttonset.p-button-warning > .p-button:enabled:hover, .p-splitbutton.p-button-warning > .p-button:enabled:hover { background: #FFA726; color: #212529; border-color: #FFA726; } .p-button.p-button-warning:enabled:focus, .p-buttonset.p-button-warning > .p-button:enabled:focus, .p-splitbutton.p-button-warning > .p-button:enabled:focus { box-shadow: 0 0 0 0.1rem #FFFDE7; } .p-button.p-button-warning:enabled:active, .p-buttonset.p-button-warning > .p-button:enabled:active, .p-splitbutton.p-button-warning > .p-button:enabled:active { background: #FF9800; color: #212529; border-color: #FF9800; } .p-button.p-button-warning.p-button-outlined, .p-buttonset.p-button-warning > .p-button.p-button-outlined, .p-splitbutton.p-button-warning > .p-button.p-button-outlined { background-color: transparent; color: #FFB74D; border: 1px solid; } .p-button.p-button-warning.p-button-outlined:enabled:hover, .p-buttonset.p-button-warning > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-warning > .p-button.p-button-outlined:enabled:hover { background: rgba(255, 183, 77, 0.04); color: #FFB74D; border: 1px solid; } .p-button.p-button-warning.p-button-outlined:enabled:active, .p-buttonset.p-button-warning > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-warning > .p-button.p-button-outlined:enabled:active { background: rgba(255, 183, 77, 0.16); color: #FFB74D; border: 1px solid; } .p-button.p-button-warning.p-button-text, .p-buttonset.p-button-warning > .p-button.p-button-text, .p-splitbutton.p-button-warning > .p-button.p-button-text { background-color: transparent; color: #FFB74D; border-color: transparent; } .p-button.p-button-warning.p-button-text:enabled:hover, .p-buttonset.p-button-warning > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-warning > .p-button.p-button-text:enabled:hover { background: rgba(255, 183, 77, 0.04); border-color: transparent; color: #FFB74D; } .p-button.p-button-warning.p-button-text:enabled:active, .p-buttonset.p-button-warning > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-warning > .p-button.p-button-text:enabled:active { background: rgba(255, 183, 77, 0.16); border-color: transparent; color: #FFB74D; } .p-button.p-button-help, .p-buttonset.p-button-help > .p-button, .p-splitbutton.p-button-help > .p-button { color: #121212; background: #CE93D8; border: 1px solid #CE93D8; } .p-button.p-button-help:enabled:hover, .p-buttonset.p-button-help > .p-button:enabled:hover, .p-splitbutton.p-button-help > .p-button:enabled:hover { background: #BA68C8; color: #121212; border-color: #BA68C8; } .p-button.p-button-help:enabled:focus, .p-buttonset.p-button-help > .p-button:enabled:focus, .p-splitbutton.p-button-help > .p-button:enabled:focus { box-shadow: 0 0 0 1px #CE93D8; } .p-button.p-button-help:enabled:active, .p-buttonset.p-button-help > .p-button:enabled:active, .p-splitbutton.p-button-help > .p-button:enabled:active { background: #AB47BC; color: #121212; border-color: #AB47BC; } .p-button.p-button-help.p-button-outlined, .p-buttonset.p-button-help > .p-button.p-button-outlined, .p-splitbutton.p-button-help > .p-button.p-button-outlined { background-color: transparent; color: #CE93D8; border: 1px solid; } .p-button.p-button-help.p-button-outlined:enabled:hover, .p-buttonset.p-button-help > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-help > .p-button.p-button-outlined:enabled:hover { background: rgba(206, 147, 216, 0.04); color: #CE93D8; border: 1px solid; } .p-button.p-button-help.p-button-outlined:enabled:active, .p-buttonset.p-button-help > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-help > .p-button.p-button-outlined:enabled:active { background: rgba(206, 147, 216, 0.16); color: #CE93D8; border: 1px solid; } .p-button.p-button-help.p-button-text, .p-buttonset.p-button-help > .p-button.p-button-text, .p-splitbutton.p-button-help > .p-button.p-button-text { background-color: transparent; color: #CE93D8; border-color: transparent; } .p-button.p-button-help.p-button-text:enabled:hover, .p-buttonset.p-button-help > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-help > .p-button.p-button-text:enabled:hover { background: rgba(206, 147, 216, 0.04); border-color: transparent; color: #CE93D8; } .p-button.p-button-help.p-button-text:enabled:active, .p-buttonset.p-button-help > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-help > .p-button.p-button-text:enabled:active { background: rgba(206, 147, 216, 0.16); border-color: transparent; color: #CE93D8; } .p-button.p-button-danger, .p-buttonset.p-button-danger > .p-button, .p-splitbutton.p-button-danger > .p-button { color: #212529; background: #E57373; border: 1px solid #E57373; } .p-button.p-button-danger:enabled:hover, .p-buttonset.p-button-danger > .p-button:enabled:hover, .p-splitbutton.p-button-danger > .p-button:enabled:hover { background: #EF5350; color: #212529; border-color: #EF5350; } .p-button.p-button-danger:enabled:focus, .p-buttonset.p-button-danger > .p-button:enabled:focus, .p-splitbutton.p-button-danger > .p-button:enabled:focus { box-shadow: 0 0 0 0.1rem #FFEBEE; } .p-button.p-button-danger:enabled:active, .p-buttonset.p-button-danger > .p-button:enabled:active, .p-splitbutton.p-button-danger > .p-button:enabled:active { background: #F44336; color: #212529; border-color: #F44336; } .p-button.p-button-danger.p-button-outlined, .p-buttonset.p-button-danger > .p-button.p-button-outlined, .p-splitbutton.p-button-danger > .p-button.p-button-outlined { background-color: transparent; color: #E57373; border: 1px solid; } .p-button.p-button-danger.p-button-outlined:enabled:hover, .p-buttonset.p-button-danger > .p-button.p-button-outlined:enabled:hover, .p-splitbutton.p-button-danger > .p-button.p-button-outlined:enabled:hover { background: rgba(229, 115, 115, 0.04); color: #E57373; border: 1px solid; } .p-button.p-button-danger.p-button-outlined:enabled:active, .p-buttonset.p-button-danger > .p-button.p-button-outlined:enabled:active, .p-splitbutton.p-button-danger > .p-button.p-button-outlined:enabled:active { background: rgba(229, 115, 115, 0.16); color: #E57373; border: 1px solid; } .p-button.p-button-danger.p-button-text, .p-buttonset.p-button-danger > .p-button.p-button-text, .p-splitbutton.p-button-danger > .p-button.p-button-text { background-color: transparent; color: #E57373; border-color: transparent; } .p-button.p-button-danger.p-button-text:enabled:hover, .p-buttonset.p-button-danger > .p-button.p-button-text:enabled:hover, .p-splitbutton.p-button-danger > .p-button.p-button-text:enabled:hover { background: rgba(229, 115, 115, 0.04); border-color: transparent; color: #E57373; } .p-button.p-button-danger.p-button-text:enabled:active, .p-buttonset.p-button-danger > .p-button.p-button-text:enabled:active, .p-splitbutton.p-button-danger > .p-button.p-button-text:enabled:active { background: rgba(229, 115, 115, 0.16); border-color: transparent; color: #E57373; } .p-button.p-button-link { color: #C5E1A5; background: transparent; border: transparent; } .p-button.p-button-link:enabled:hover { background: transparent; color: #C5E1A5; border-color: transparent; } .p-button.p-button-link:enabled:hover .p-button-label { text-decoration: underline; } .p-button.p-button-link:enabled:focus { background: transparent; box-shadow: 0 0 0 0.2rem white; border-color: transparent; } .p-button.p-button-link:enabled:active { background: transparent; color: #C5E1A5; border-color: transparent; } .p-carousel .p-carousel-content .p-carousel-prev, .p-carousel .p-carousel-content .p-carousel-next { width: 2rem; height: 2rem; color: #8888; border: 0 none; background: transparent; border-radius: 50%; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; margin: 0.5rem; } .p-carousel .p-carousel-content .p-carousel-prev:enabled:hover, .p-carousel .p-carousel-content .p-carousel-next:enabled:hover { color: #dedede; border-color: transparent; background: transparent; } .p-carousel .p-carousel-content .p-carousel-prev:focus, .p-carousel .p-carousel-content .p-carousel-next:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-carousel .p-carousel-indicators { padding: 1rem; } .p-carousel .p-carousel-indicators .p-carousel-indicator { margin-right: 0.5rem; margin-bottom: 0.5rem; } .p-carousel .p-carousel-indicators .p-carousel-indicator button { background-color: #4b4b4b; width: 2rem; height: 0.5rem; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; border-radius: 0; } .p-carousel .p-carousel-indicators .p-carousel-indicator button:hover { background: #4c4c4c; } .p-carousel .p-carousel-indicators .p-carousel-indicator.p-highlight button { background: #C5E1A5; color: #212529; } .p-datatable .p-paginator-top { border-width: 1px 1px 0 1px; border-radius: 0; } .p-datatable .p-paginator-bottom { border-width: 0 1px 1px 1px; border-radius: 0; } .p-datatable .p-datatable-header { background: #191919; color: #dedede; border: 1px solid #191919; border-width: 1px 1px 0 1px; padding: 0.857rem 1rem; font-weight: 700; } .p-datatable .p-datatable-footer { background: #323232; color: #dedede; border: 1px solid #191919; border-width: 0 1px 1px 1px; padding: 0.571rem 1rem; font-weight: normal; } .p-datatable .p-datatable-thead > tr > th { text-align: left; padding: 0.571rem 0.857rem; border: 1px solid #191919; border-width: 1px 1px 1px 1px; font-weight: 700; color: #dedede; background: #252525; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-datatable .p-datatable-tfoot > tr > td { text-align: left; padding: 0.571rem 0.857rem; border: 1px solid #191919; border-width: 1px; font-weight: 700; color: #dedede; background: #252525; } .p-datatable .p-sortable-column .p-sortable-column-icon { color: #888888; margin-left: 0.5rem; } .p-datatable .p-sortable-column .p-sortable-column-badge { border-radius: 50%; height: 1.143rem; min-width: 1.143rem; line-height: 1.143rem; color: #212529; background: #C5E1A5; margin-left: 0.5rem; } .p-datatable .p-sortable-column:not(.p-highlight):hover { background: #4c4c4c; color: #dedede; } .p-datatable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon { color: #dedede; } .p-datatable .p-sortable-column.p-highlight { background: #C5E1A5; color: #212529; } .p-datatable .p-sortable-column.p-highlight .p-sortable-column-icon { color: #212529; } .p-datatable .p-sortable-column.p-highlight:hover { background: #C5E1A5; color: #212529; } .p-datatable .p-sortable-column.p-highlight:hover .p-sortable-column-icon { color: #212529; } .p-datatable .p-sortable-column:focus { box-shadow: inset 0 0 0 0.2rem white; outline: 0 none; } .p-datatable .p-datatable-tbody > tr { background: #323232; color: #dedede; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; outline-color: white; } .p-datatable .p-datatable-tbody > tr > td { text-align: left; border: 1px solid #191919; border-width: 1px; padding: 0.571rem 0.857rem; } .p-datatable .p-datatable-tbody > tr > td .p-row-toggler, .p-datatable .p-datatable-tbody > tr > td .p-row-editor-init, .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save, .p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel { width: 2rem; height: 2rem; color: #8888; border: 0 none; background: transparent; border-radius: 50%; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; } .p-datatable .p-datatable-tbody > tr > td .p-row-toggler:enabled:hover, .p-datatable .p-datatable-tbody > tr > td .p-row-editor-init:enabled:hover, .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save:enabled:hover, .p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel:enabled:hover { color: #dedede; border-color: transparent; background: transparent; } .p-datatable .p-datatable-tbody > tr > td .p-row-toggler:focus, .p-datatable .p-datatable-tbody > tr > td .p-row-editor-init:focus, .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save:focus, .p-datatable .p-datatable-tbody > tr > td .p-row-editor-cancel:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-datatable .p-datatable-tbody > tr > td .p-row-editor-save { margin-right: 0.5rem; } .p-datatable .p-datatable-tbody > tr.p-highlight { background: #C5E1A5; color: #212529; } .p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-top > td { box-shadow: inset 0 2px 0 0 #C5E1A5; } .p-datatable .p-datatable-tbody > tr.p-datatable-dragpoint-bottom > td { box-shadow: inset 0 -2px 0 0 #C5E1A5; } .p-datatable.p-datatable-hoverable-rows .p-datatable-tbody > tr:not(.p-highlight):hover { background: #4c4c4c; color: #dedede; } .p-datatable .p-column-resizer-helper { background: #C5E1A5; } .p-datatable .p-datatable-scrollable-header, .p-datatable .p-datatable-scrollable-footer { background: #191919; } .p-datatable .p-datatable-loading-icon { font-size: 2rem; } .p-datatable.p-datatable-gridlines .p-datatable-header { border-width: 1px 1px 0 1px; } .p-datatable.p-datatable-gridlines .p-datatable-footer { border-width: 0 1px 1px 1px; } .p-datatable.p-datatable-gridlines .p-paginator-top { border-width: 0 1px 0 1px; } .p-datatable.p-datatable-gridlines .p-paginator-bottom { border-width: 0 1px 1px 1px; } .p-datatable.p-datatable-gridlines .p-datatable-thead > tr > th { border-width: 1px 1px 1px 1px; } .p-datatable.p-datatable-gridlines .p-datatable-tbody > tr > td { border-width: 1px; } .p-datatable.p-datatable-gridlines .p-datatable-tfoot > tr > td { border-width: 1px; } .p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even) { background: #323232; } .p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight { background: #C5E1A5; color: #212529; } .p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight .p-row-toggler { color: #212529; } .p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight .p-row-toggler:hover { color: #212529; } .p-datatable.p-datatable-sm .p-datatable-header { padding: 0.72845rem 0.85rem; } .p-datatable.p-datatable-sm .p-datatable-thead > tr > th { padding: 0.48535rem 0.72845rem; } .p-datatable.p-datatable-sm .p-datatable-tbody > tr > td { padding: 0.48535rem 0.72845rem; } .p-datatable.p-datatable-sm .p-datatable-tfoot > tr > td { padding: 0.48535rem 0.85rem; } .p-datatable.p-datatable-sm .p-datatable-footer { padding: 0.48535rem 0.85rem; } .p-datatable.p-datatable-lg .p-datatable-header { padding: 1.07125rem 1.25rem; } .p-datatable.p-datatable-lg .p-datatable-thead > tr > th { padding: 0.71375rem 1.07125rem; } .p-datatable.p-datatable-lg .p-datatable-tbody > tr > td { padding: 0.71375rem 1.07125rem; } .p-datatable.p-datatable-lg .p-datatable-tfoot > tr > td { padding: 0.71375rem 1.25rem; } .p-datatable.p-datatable-lg .p-datatable-footer { padding: 0.71375rem 1.25rem; } .p-dataview .p-paginator-top { border-width: 1px 1px 0 1px; border-radius: 0; } .p-dataview .p-paginator-bottom { border-width: 0 1px 1px 1px; border-radius: 0; } .p-dataview .p-dataview-header { background: #191919; color: #dedede; border: 1px solid #191919; border-width: 1px 1px 0 1px; padding: 0.857rem 1rem; font-weight: 700; } .p-dataview .p-dataview-content { background: #323232; color: #dedede; border: 0 none; padding: 0; } .p-dataview.p-dataview-list .p-dataview-content > .p-grid > div { border: 1px solid #4b4b4b; border-width: 1px; } .p-dataview .p-dataview-footer { background: #323232; color: #dedede; border: 1px solid #191919; border-width: 0 1px 1px 1px; padding: 0.571rem 1rem; font-weight: normal; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; } .p-dataview .p-dataview-loading-icon { font-size: 2rem; } .p-datascroller .p-paginator-top { border-width: 1px 1px 0 1px; border-radius: 0; } .p-datascroller .p-paginator-bottom { border-width: 0 1px 1px 1px; border-radius: 0; } .p-datascroller .p-datascroller-header { background: #191919; color: #dedede; border: 1px solid #191919; border-width: 1px 1px 0 1px; padding: 0.857rem 1rem; font-weight: 700; } .p-datascroller .p-datascroller-content { background: #323232; color: #dedede; border: 0 none; padding: 0; } .p-datascroller.p-datascroller-inline .p-datascroller-list > li { border: 1px solid #4b4b4b; border-width: 1px; } .p-datascroller .p-datascroller-footer { background: #323232; color: #dedede; border: 1px solid #191919; border-width: 0 1px 1px 1px; padding: 0.571rem 1rem; font-weight: normal; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; } .fc .fc-view-container th { background: #191919; border: 1px solid #191919; color: #dedede; } .fc .fc-view-container td.fc-widget-content { background: #323232; border: 1px solid #191919; color: #dedede; } .fc .fc-view-container td.fc-head-container { border: 1px solid #191919; } .fc .fc-view-container .fc-row { border-right: 1px solid #191919; } .fc .fc-view-container .fc-event { background: #AED581; border: 1px solid #AED581; color: #212529; } .fc .fc-view-container .fc-divider { background: #191919; border: 1px solid #191919; } .fc .fc-toolbar .fc-button { color: #212529; background: #C5E1A5; border: 1px solid #C5E1A5; font-size: 1rem; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 3px; display: flex; align-items: center; } .fc .fc-toolbar .fc-button:enabled:hover { background: #AED581; color: #212529; border-color: #AED581; } .fc .fc-toolbar .fc-button:enabled:active { background: #9CCC65; color: #212529; border-color: #9CCC65; } .fc .fc-toolbar .fc-button:enabled:active:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .fc .fc-toolbar .fc-button .fc-icon-chevron-left { font-family: "PrimeIcons" !important; text-indent: 0; font-size: 1rem; } .fc .fc-toolbar .fc-button .fc-icon-chevron-left:before { content: ""; } .fc .fc-toolbar .fc-button .fc-icon-chevron-right { font-family: "PrimeIcons" !important; text-indent: 0; font-size: 1rem; } .fc .fc-toolbar .fc-button .fc-icon-chevron-right:before { content: ""; } .fc .fc-toolbar .fc-button:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .fc .fc-toolbar .fc-button.fc-dayGridMonth-button, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button, .fc .fc-toolbar .fc-button.fc-timeGridDay-button { background: #252525; border: 1px solid #252525; color: #dedede; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } .fc .fc-toolbar .fc-button.fc-dayGridMonth-button:hover, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button:hover, .fc .fc-toolbar .fc-button.fc-timeGridDay-button:hover { background: #4c4c4c; border-color: #4c4c4c; color: #dedede; } .fc .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active, .fc .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active { background: #C5E1A5; border-color: #C5E1A5; color: #212529; } .fc .fc-toolbar .fc-button.fc-dayGridMonth-button.fc-button-active:hover, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button.fc-button-active:hover, .fc .fc-toolbar .fc-button.fc-timeGridDay-button.fc-button-active:hover { background: #AED581; border-color: #AED581; color: #212529; } .fc .fc-toolbar .fc-button.fc-dayGridMonth-button:focus, .fc .fc-toolbar .fc-button.fc-timeGridWeek-button:focus, .fc .fc-toolbar .fc-button.fc-timeGridDay-button:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; z-index: 1; } .fc .fc-toolbar .fc-button-group .fc-button { border-radius: 0; } .fc .fc-toolbar .fc-button-group .fc-button:first-child { border-top-left-radius: 3px; border-bottom-left-radius: 3px; } .fc .fc-toolbar .fc-button-group .fc-button:last-child { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .p-orderlist .p-orderlist-controls { padding: 0.571rem 1rem; } .p-orderlist .p-orderlist-controls .p-button { margin-bottom: 0.5rem; } .p-orderlist .p-orderlist-header { background: #191919; color: #dedede; border: 1px solid #191919; padding: 0.857rem 1rem; font-weight: 700; border-bottom: 0 none; border-top-right-radius: 3px; border-top-left-radius: 3px; } .p-orderlist .p-orderlist-list { border: 1px solid #191919; background: #323232; color: #dedede; padding: 0; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .p-orderlist .p-orderlist-list .p-orderlist-item { padding: 0.429rem 0.857rem; margin: 0; border: 0 none; color: #dedede; background: transparent; transition: transform 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-orderlist .p-orderlist-list .p-orderlist-item:not(.p-highlight):hover { background: #4c4c4c; color: #dedede; } .p-orderlist .p-orderlist-list .p-orderlist-item:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-orderlist .p-orderlist-list .p-orderlist-item.p-highlight { color: #212529; background: #C5E1A5; } @media screen and (max-width: 960px) { .p-orderlist { flex-direction: column; } .p-orderlist .p-orderlist-controls { padding: 0.571rem 1rem; flex-direction: row; } .p-orderlist .p-orderlist-controls .p-button { margin-right: 0.5rem; margin-bottom: 0; } .p-orderlist .p-orderlist-controls .p-button:last-child { margin-right: 0; } } .p-organizationchart .p-organizationchart-node-content.p-organizationchart-selectable-node:not(.p-highlight):hover { background: #4c4c4c; color: #dedede; } .p-organizationchart .p-organizationchart-node-content.p-highlight { background: #C5E1A5; color: #212529; } .p-organizationchart .p-organizationchart-node-content.p-highlight .p-node-toggler i { color: #87c145; } .p-organizationchart .p-organizationchart-line-down { background: #191919; } .p-organizationchart .p-organizationchart-line-left { border-right: 1px solid #191919; border-color: #191919; } .p-organizationchart .p-organizationchart-line-top { border-top: 1px solid #191919; border-color: #191919; } .p-organizationchart .p-organizationchart-node-content { border: 1px solid #191919; background: #323232; color: #dedede; padding: 0.571rem 1rem; } .p-organizationchart .p-organizationchart-node-content .p-node-toggler { background: inherit; color: inherit; border-radius: 50%; } .p-organizationchart .p-organizationchart-node-content .p-node-toggler:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-paginator { background: #252525; color: #dedede; border: solid #191919; border-width: 1px; padding: 0; border-radius: 3px; } .p-paginator .p-paginator-first, .p-paginator .p-paginator-prev, .p-paginator .p-paginator-next, .p-paginator .p-paginator-last { background-color: transparent; border: 0 none; color: #dedede; min-width: 2.357rem; height: 2.357rem; margin: 0; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 0; } .p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover, .p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover, .p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover, .p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover { background: #e0e0e0; border-color: transparent; color: #4c4c4c; } .p-paginator .p-paginator-first { border-top-left-radius: 3px; border-bottom-left-radius: 3px; } .p-paginator .p-paginator-last { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .p-paginator .p-dropdown { margin-left: 0.5rem; height: 2.357rem; } .p-paginator .p-dropdown .p-dropdown-label { padding-right: 0; } .p-paginator .p-paginator-current { background-color: transparent; border: 0 none; color: #dedede; min-width: 2.357rem; height: 2.357rem; margin: 0; padding: 0 0.5rem; } .p-paginator .p-paginator-pages .p-paginator-page { background-color: transparent; border: 0 none; color: #dedede; min-width: 2.357rem; height: 2.357rem; margin: 0; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 0; } .p-paginator .p-paginator-pages .p-paginator-page.p-highlight { background: #C5E1A5; border-color: #C5E1A5; color: #212529; } .p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover { background: #e0e0e0; border-color: transparent; color: #4c4c4c; } .p-picklist .p-picklist-buttons { padding: 0.571rem 1rem; } .p-picklist .p-picklist-buttons .p-button { margin-bottom: 0.5rem; } .p-picklist .p-picklist-header { background: #191919; color: #dedede; border: 1px solid #191919; padding: 0.857rem 1rem; font-weight: 700; border-bottom: 0 none; border-top-right-radius: 3px; border-top-left-radius: 3px; } .p-picklist .p-picklist-list { border: 1px solid #191919; background: #323232; color: #dedede; padding: 0; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .p-picklist .p-picklist-list .p-picklist-item { padding: 0.429rem 0.857rem; margin: 0; border: 0 none; color: #dedede; background: transparent; transition: transform 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-picklist .p-picklist-list .p-picklist-item:not(.p-highlight):hover { background: #4c4c4c; color: #dedede; } .p-picklist .p-picklist-list .p-picklist-item:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-picklist .p-picklist-list .p-picklist-item.p-highlight { color: #212529; background: #C5E1A5; } @media screen and (max-width: 960px) { .p-picklist { flex-direction: column; } .p-picklist .p-picklist-buttons { padding: 0.571rem 1rem; flex-direction: row; } .p-picklist .p-picklist-buttons .p-button { margin-right: 0.5rem; margin-bottom: 0; } .p-picklist .p-picklist-buttons .p-button:last-child { margin-right: 0; } .p-picklist .p-picklist-transfer-buttons .pi-angle-right:before { content: ""; } .p-picklist .p-picklist-transfer-buttons .pi-angle-double-right:before { content: ""; } .p-picklist .p-picklist-transfer-buttons .pi-angle-left:before { content: ""; } .p-picklist .p-picklist-transfer-buttons .pi-angle-double-left:before { content: ""; } } .p-tree { border: 1px solid #191919; background: #323232; color: #dedede; padding: 0.571rem 1rem; border-radius: 3px; } .p-tree .p-tree-container .p-treenode { padding: 0.143rem; } .p-tree .p-tree-container .p-treenode .p-treenode-content { border-radius: 3px; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; padding: 0.429rem; } .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler { margin-right: 0.5rem; width: 2rem; height: 2rem; color: #8888; border: 0 none; background: transparent; border-radius: 50%; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; } .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:enabled:hover { color: #dedede; border-color: transparent; background: transparent; } .p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-tree .p-tree-container .p-treenode .p-treenode-content .p-treenode-icon { margin-right: 0.5rem; color: #888888; } .p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox { margin-right: 0.5rem; } .p-tree .p-tree-container .p-treenode .p-treenode-content .p-checkbox .p-indeterminate .p-checkbox-icon { color: #dedede; } .p-tree .p-tree-container .p-treenode .p-treenode-content:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight { background: #C5E1A5; color: #212529; } .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler, .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon { color: #212529; } .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-tree-toggler:hover, .p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight .p-treenode-icon:hover { color: #212529; } .p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-selectable:not(.p-highlight):hover { background: #4c4c4c; color: #dedede; } .p-tree .p-tree-filter-container { margin-bottom: 0.5rem; } .p-tree .p-tree-filter-container .p-tree-filter { width: 100%; padding-right: 1.429rem; } .p-tree .p-tree-filter-container .p-tree-filter-icon { right: 0.429rem; color: #888888; } .p-tree .p-treenode-children { padding: 0 0 0 1rem; } .p-tree .p-tree-loading-icon { font-size: 2rem; } .p-treetable .p-paginator-top { border-width: 1px 1px 0 1px; border-radius: 0; } .p-treetable .p-paginator-bottom { border-width: 0 1px 1px 1px; border-radius: 0; } .p-treetable .p-treetable-header { background: #191919; color: #dedede; border: 1px solid #191919; border-width: 1px 1px 0 1px; padding: 0.857rem 1rem; font-weight: 700; } .p-treetable .p-treetable-footer { background: #323232; color: #dedede; border: 1px solid #191919; border-width: 0 1px 1px 1px; padding: 0.571rem 1rem; font-weight: normal; } .p-treetable .p-treetable-thead > tr > th { text-align: left; padding: 0.571rem 0.857rem; border: 1px solid #191919; border-width: 1px 1px 1px 1px; font-weight: 700; color: #dedede; background: #252525; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-treetable .p-treetable-tfoot > tr > td { text-align: left; padding: 0.571rem 0.857rem; border: 1px solid #191919; border-width: 1px; font-weight: 700; color: #dedede; background: #252525; } .p-treetable .p-sortable-column { outline-color: white; } .p-treetable .p-sortable-column .p-sortable-column-icon { color: #888888; margin-left: 0.5rem; } .p-treetable .p-sortable-column .p-sortable-column-badge { border-radius: 50%; height: 1.143rem; min-width: 1.143rem; line-height: 1.143rem; color: #212529; background: #C5E1A5; margin-left: 0.5rem; } .p-treetable .p-sortable-column:not(.p-highlight):hover { background: #4c4c4c; color: #dedede; } .p-treetable .p-sortable-column:not(.p-highlight):hover .p-sortable-column-icon { color: #dedede; } .p-treetable .p-sortable-column.p-highlight { background: #C5E1A5; color: #212529; } .p-treetable .p-sortable-column.p-highlight .p-sortable-column-icon { color: #212529; } .p-treetable .p-treetable-tbody > tr { background: #323232; color: #dedede; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; outline-color: white; } .p-treetable .p-treetable-tbody > tr > td { text-align: left; border: 1px solid #191919; border-width: 1px; padding: 0.571rem 0.857rem; } .p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler { width: 2rem; height: 2rem; color: #8888; border: 0 none; background: transparent; border-radius: 50%; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; margin-right: 0.5rem; } .p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler:enabled:hover { color: #dedede; border-color: transparent; background: transparent; } .p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler + .p-checkbox { margin-right: 0.5rem; } .p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler + .p-checkbox .p-indeterminate .p-checkbox-icon { color: #dedede; } .p-treetable .p-treetable-tbody > tr.p-highlight { background: #C5E1A5; color: #212529; } .p-treetable .p-treetable-tbody > tr.p-highlight .p-treetable-toggler { color: #212529; } .p-treetable .p-treetable-tbody > tr.p-highlight .p-treetable-toggler:hover { color: #212529; } .p-treetable.p-treetable-hoverable-rows .p-treetable-tbody > tr:not(.p-highlight):hover { background: #4c4c4c; color: #dedede; } .p-treetable.p-treetable-hoverable-rows .p-treetable-tbody > tr:not(.p-highlight):hover .p-treetable-toggler { color: #dedede; } .p-treetable .p-column-resizer-helper { background: #C5E1A5; } .p-treetable .p-treetable-scrollable-header, .p-treetable .p-treetable-scrollable-footer { background: #191919; } .p-treetable .p-treetable-loading-icon { font-size: 2rem; } .p-treetable.p-treetable-gridlines .p-datatable-header { border-width: 1px 1px 0 1px; } .p-treetable.p-treetable-gridlines .p-treetable-footer { border-width: 0 1px 1px 1px; } .p-treetable.p-treetable-gridlines .p-treetable-top { border-width: 0 1px 0 1px; } .p-treetable.p-treetable-gridlines .p-treetable-bottom { border-width: 0 1px 1px 1px; } .p-treetable.p-treetable-gridlines .p-treetable-thead > tr > th { border-width: 1px; } .p-treetable.p-treetable-gridlines .p-treetable-tbody > tr > td { border-width: 1px; } .p-treetable.p-treetable-gridlines .p-treetable-tfoot > tr > td { border-width: 1px; } .p-treetable.p-treetable-sm .p-treetable-header { padding: 0.749875rem 0.875rem; } .p-treetable.p-treetable-sm .p-treetable-thead > tr > th { padding: 0.48535rem 0.72845rem; } .p-treetable.p-treetable-sm .p-treetable-tbody > tr > td { padding: 0.48535rem 0.72845rem; } .p-treetable.p-treetable-sm .p-treetable-tfoot > tr > td { padding: 0.48535rem 0.85rem; } .p-treetable.p-treetable-sm .p-treetable-footer { padding: 0.48535rem 0.85rem; } .p-treetable.p-treetable-lg .p-treetable-header { padding: 1.07125rem 1.25rem; } .p-treetable.p-treetable-lg .p-treetable-thead > tr > th { padding: 0.71375rem 1.07125rem; } .p-treetable.p-treetable-lg .p-treetable-tbody > tr > td { padding: 0.71375rem 1.07125rem; } .p-treetable.p-treetable-lg .p-treetable-tfoot > tr > td { padding: 0.71375rem 1.25rem; } .p-treetable.p-treetable-lg .p-treetable-footer { padding: 0.71375rem 1.25rem; } .p-timeline .p-timeline-event-marker { border: 0 none; border-radius: 50%; width: 1rem; height: 1rem; background-color: #C5E1A5; } .p-timeline .p-timeline-event-connector { background-color: #191919; } .p-timeline.p-timeline-vertical .p-timeline-event-opposite, .p-timeline.p-timeline-vertical .p-timeline-event-content { padding: 0 1rem; } .p-timeline.p-timeline-vertical .p-timeline-event-connector { width: 2px; } .p-timeline.p-timeline-horizontal .p-timeline-event-opposite, .p-timeline.p-timeline-horizontal .p-timeline-event-content { padding: 1rem 0; } .p-timeline.p-timeline-horizontal .p-timeline-event-connector { height: 2px; } .p-accordion .p-accordion-header .p-accordion-header-link { padding: 0.857rem 1rem; border: 1px solid #191919; color: #dedede; background: #191919; font-weight: 700; border-radius: 3px; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-accordion .p-accordion-header .p-accordion-header-link .p-accordion-toggle-icon { margin-right: 0.5rem; } .p-accordion .p-accordion-header:not(.p-disabled) .p-accordion-header-link:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-accordion .p-accordion-header:not(.p-highlight):not(.p-disabled):hover .p-accordion-header-link { background: #191919; border-color: #191919; color: #C5E1A5; } .p-accordion .p-accordion-header:not(.p-disabled).p-highlight .p-accordion-header-link { background: #C5E1A5; border-color: #C5E1A5; color: #212529; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .p-accordion .p-accordion-header:not(.p-disabled).p-highlight:hover .p-accordion-header-link { border-color: #9CCC65; background: #9CCC65; color: #212529; } .p-accordion .p-accordion-content { padding: 0.571rem 1rem; border: 1px solid #191919; background: #323232; color: #dedede; border-top: 0; border-top-right-radius: 0; border-top-left-radius: 0; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .p-accordion .p-accordion-tab { margin-bottom: 2px; } .p-card { background: #323232; color: #dedede; box-shadow: 0 2px 1px -1px rgba(0, 0, 0, 0.2), 0 1px 1px 0 rgba(0, 0, 0, 0.14), 0 1px 3px 0 rgba(0, 0, 0, 0.12); border-radius: 3px; } .p-card .p-card-body { padding: 1rem; } .p-card .p-card-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; } .p-card .p-card-subtitle { font-weight: 700; margin-bottom: 0.5rem; color: #888888; } .p-card .p-card-content { padding: 1rem 0; } .p-card .p-card-footer { padding: 1rem 0 0 0; } .p-fieldset { border: 1px solid #191919; background: #323232; color: #dedede; border-radius: 3px; } .p-fieldset .p-fieldset-legend { padding: 0.857rem 1rem; border: 1px solid #191919; color: #dedede; background: #191919; font-weight: 700; border-radius: 3px; } .p-fieldset.p-fieldset-toggleable .p-fieldset-legend { padding: 0; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; } .p-fieldset.p-fieldset-toggleable .p-fieldset-legend a { padding: 0.857rem 1rem; color: #dedede; border-radius: 3px; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-fieldset.p-fieldset-toggleable .p-fieldset-legend a .p-fieldset-toggler { margin-right: 0.5rem; } .p-fieldset.p-fieldset-toggleable .p-fieldset-legend a:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-fieldset.p-fieldset-toggleable .p-fieldset-legend:hover { background: #191919; border-color: #191919; color: #C5E1A5; } .p-fieldset .p-fieldset-content { padding: 0.571rem 1rem; } .p-divider .p-divider-content { background-color: #323232; } .p-divider.p-divider-horizontal { margin: 1rem 0; padding: 0 1rem; } .p-divider.p-divider-horizontal:before { border-top: 1px #4b4b4b; } .p-divider.p-divider-horizontal .p-divider-content { padding: 0 0.5rem; } .p-divider.p-divider-vertical { margin: 0 1rem; padding: 1rem 0; } .p-divider.p-divider-vertical:before { border-left: 1px #4b4b4b; } .p-divider.p-divider-vertical .p-divider-content { padding: 0.5rem 0; } .p-panel .p-panel-header { border: 1px solid #191919; padding: 0.857rem 1rem; background: #191919; color: #dedede; border-top-right-radius: 3px; border-top-left-radius: 3px; } .p-panel .p-panel-header .p-panel-title { font-weight: 700; } .p-panel .p-panel-header .p-panel-header-icon { width: 2rem; height: 2rem; color: #8888; border: 0 none; background: transparent; border-radius: 50%; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; } .p-panel .p-panel-header .p-panel-header-icon:enabled:hover { color: #dedede; border-color: transparent; background: transparent; } .p-panel .p-panel-header .p-panel-header-icon:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-panel.p-panel-toggleable .p-panel-header { padding: 0.857rem 1rem; } .p-panel .p-panel-content { padding: 0.571rem 1rem; border: 1px solid #191919; background: #323232; color: #dedede; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; border-top: 0 none; } .p-panel .p-panel-footer { padding: 0.571rem 1rem; border: 1px solid #191919; background: #323232; color: #dedede; border-top: 0 none; } .p-splitter { border: 1px solid #191919; background: #323232; border-radius: 3px; color: #dedede; } .p-splitter .p-splitter-gutter { transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; background: #191919; } .p-splitter .p-splitter-gutter .p-splitter-gutter-handle { background: #4b4b4b; } .p-splitter .p-splitter-gutter-resizing { background: #4b4b4b; } .p-scrollpanel .p-scrollpanel-bar { background: #3f3f3f; border: 0 none; } .p-tabview .p-tabview-nav { background: transparent; border: 0 none; border-width: 1px; } .p-tabview .p-tabview-nav li { margin-right: 2px; } .p-tabview .p-tabview-nav li .p-tabview-nav-link { border: 1px solid #191919; border-width: 1px; border-color: #191919; background: #191919; color: #dedede; padding: 0.857rem 1rem; font-weight: 700; border-top-right-radius: 3px; border-top-left-radius: 3px; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; margin: 0 0 -1px 0; } .p-tabview .p-tabview-nav li .p-tabview-nav-link:not(.p-disabled):focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-tabview .p-tabview-nav li:not(.p-highlight):not(.p-disabled):hover .p-tabview-nav-link { background: #191919; border-color: #191919; color: #C5E1A5; } .p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link { background: #C5E1A5; border-color: #C5E1A5; color: #212529; } .p-tabview .p-tabview-panels { background: #323232; padding: 0.571rem 1rem; border: 1px solid #191919; color: #dedede; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .p-toolbar { background: #191919; border: 1px solid #191919; padding: 0.857rem 1rem; border-radius: 3px; } .p-toolbar .p-toolbar-separator { margin: 0 0.5rem; } .p-confirm-popup { background: #323232; color: #dedede; border: 1px solid #191919; border-radius: 3px; box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.16); } .p-confirm-popup .p-confirm-popup-content { padding: 0.571rem 1rem; } .p-confirm-popup .p-confirm-popup-footer { text-align: right; padding: 0 1rem 0.571rem 1rem; } .p-confirm-popup .p-confirm-popup-footer button { margin: 0 0.5rem 0 0; width: auto; } .p-confirm-popup .p-confirm-popup-footer button:last-child { margin: 0; } .p-confirm-popup:after { border: solid transparent; border-color: rgba(50, 50, 50, 0); border-bottom-color: #323232; } .p-confirm-popup:before { border: solid transparent; border-color: rgba(25, 25, 25, 0); border-bottom-color: #191919; } .p-confirm-popup.p-confirm-popup-flipped:after { border-top-color: #323232; } .p-confirm-popup.p-confirm-popup-flipped:before { border-top-color: #191919; } .p-confirm-popup .p-confirm-popup-icon { font-size: 1.5rem; } .p-confirm-popup .p-confirm-popup-message { margin-left: 1rem; } .p-dialog { border-radius: 3px; box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.16); border: 1px solid #191919; } .p-dialog .p-dialog-header { border-bottom: 1px solid #191919; background: #191919; color: #dedede; padding: 1rem; border-top-right-radius: 3px; border-top-left-radius: 3px; } .p-dialog .p-dialog-header .p-dialog-title { font-weight: 700; font-size: 1rem; } .p-dialog .p-dialog-header .p-dialog-header-icon { width: 2rem; height: 2rem; color: #8888; border: 0 none; background: transparent; border-radius: 50%; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; margin-right: 0.5rem; } .p-dialog .p-dialog-header .p-dialog-header-icon:enabled:hover { color: #dedede; border-color: transparent; background: transparent; } .p-dialog .p-dialog-header .p-dialog-header-icon:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-dialog .p-dialog-header .p-dialog-header-icon:last-child { margin-right: 0; } .p-dialog .p-dialog-content { background: #323232; color: #dedede; padding: 1rem; } .p-dialog .p-dialog-footer { border-top: 1px solid #191919; background: #323232; color: #dedede; padding: 0.571rem 1rem; text-align: right; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .p-dialog .p-dialog-footer button { margin: 0 0.5rem 0 0; width: auto; } .p-dialog.p-confirm-dialog .p-confirm-dialog-icon { font-size: 2rem; } .p-dialog.p-confirm-dialog .p-confirm-dialog-message { margin-left: 1rem; } .p-dialog-mask.p-component-overlay { background-color: rgba(0, 0, 0, 0.4); } .p-overlaypanel { background: #323232; color: #dedede; border: 1px solid #191919; border-radius: 3px; box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.16); } .p-overlaypanel .p-overlaypanel-content { padding: 0.571rem 1rem; } .p-overlaypanel .p-overlaypanel-close { background: #C5E1A5; color: #212529; width: 2rem; height: 2rem; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; border-radius: 50%; position: absolute; top: -1rem; right: -1rem; } .p-overlaypanel .p-overlaypanel-close:enabled:hover { background: #AED581; color: #212529; } .p-overlaypanel:after { border: solid transparent; border-color: rgba(50, 50, 50, 0); border-bottom-color: #323232; } .p-overlaypanel:before { border: solid transparent; border-color: rgba(25, 25, 25, 0); border-bottom-color: #191919; } .p-overlaypanel.p-overlaypanel-flipped:after { border-top-color: #323232; } .p-overlaypanel.p-overlaypanel-flipped:before { border-top-color: #191919; } .p-sidebar { background: #323232; color: #dedede; padding: 0.571rem 1rem; border: 1px solid #191919; box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.16); } .p-sidebar .p-sidebar-close, .p-sidebar .p-sidebar-icon { width: 2rem; height: 2rem; color: #8888; border: 0 none; background: transparent; border-radius: 50%; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; } .p-sidebar .p-sidebar-close:enabled:hover, .p-sidebar .p-sidebar-icon:enabled:hover { color: #dedede; border-color: transparent; background: transparent; } .p-sidebar .p-sidebar-close:focus, .p-sidebar .p-sidebar-icon:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-sidebar-mask.p-component-overlay { background: rgba(0, 0, 0, 0.4); } .p-tooltip .p-tooltip-text { background: #4c4c4c; color: #dedede; padding: 0.429rem 0.429rem; box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); border-radius: 3px; } .p-tooltip.p-tooltip-right .p-tooltip-arrow { border-right-color: #4c4c4c; } .p-tooltip.p-tooltip-left .p-tooltip-arrow { border-left-color: #4c4c4c; } .p-tooltip.p-tooltip-top .p-tooltip-arrow { border-top-color: #4c4c4c; } .p-tooltip.p-tooltip-bottom .p-tooltip-arrow { border-bottom-color: #4c4c4c; } .p-fileupload .p-fileupload-buttonbar { background: #191919; padding: 0.857rem 1rem; border: 1px solid #191919; color: #dedede; border-bottom: 0 none; border-top-right-radius: 3px; border-top-left-radius: 3px; } .p-fileupload .p-fileupload-buttonbar .p-button { margin-right: 0.5rem; } .p-fileupload .p-fileupload-buttonbar .p-button.p-fileupload-choose.p-focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-fileupload .p-fileupload-content { background: #323232; padding: 0.571rem 1rem; border: 1px solid #191919; color: #dedede; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .p-fileupload .p-progressbar { height: 0.25rem; } .p-fileupload .p-fileupload-row > div { padding: 0.571rem 0.857rem; } .p-fileupload.p-fileupload-advanced .p-message { margin-top: 0; } .p-fileupload-choose:not(.p-disabled):hover { background: #AED581; color: #212529; border-color: #AED581; } .p-fileupload-choose:not(.p-disabled):active { background: #9CCC65; color: #212529; border-color: #9CCC65; } .p-breadcrumb { background: #252525; border: 1px solid #191919; border-radius: 3px; padding: 0.571rem 1rem; } .p-breadcrumb ul li .p-menuitem-link { transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 3px; } .p-breadcrumb ul li .p-menuitem-link:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-breadcrumb ul li .p-menuitem-link .p-menuitem-text { color: #dedede; } .p-breadcrumb ul li .p-menuitem-link .p-menuitem-icon { color: #dedede; } .p-breadcrumb ul li.p-breadcrumb-chevron { margin: 0 0.5rem 0 0.5rem; color: #dedede; } .p-breadcrumb ul li:last-child .p-menuitem-text { color: #dedede; } .p-breadcrumb ul li:last-child .p-menuitem-icon { color: #dedede; } .p-contextmenu { padding: 0; background: #252525; color: #dedede; border: 1px solid #191919; box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16); width: 12.5rem; } .p-contextmenu .p-menuitem-link { padding: 0.857rem; color: #dedede; border-radius: 0; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; user-select: none; } .p-contextmenu .p-menuitem-link .p-menuitem-text { color: #dedede; } .p-contextmenu .p-menuitem-link .p-menuitem-icon { color: #dedede; margin-right: 0.5rem; } .p-contextmenu .p-menuitem-link .p-submenu-icon { color: #dedede; } .p-contextmenu .p-menuitem-link:not(.p-disabled):hover { background: #4c4c4c; } .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text { color: #dedede; } .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon { color: #dedede; } .p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon { color: #dedede; } .p-contextmenu .p-menuitem-link:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-contextmenu .p-submenu-list { padding: 0; background: #252525; border: 1px solid #191919; box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16); } .p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link { background: #C5E1A5; } .p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text { color: #212529; } .p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon { color: #212529; } .p-contextmenu .p-menu-separator { border-top: 1px solid #4b4b4b; margin: 0; } .p-contextmenu .p-submenu-icon { font-size: 0.875rem; } .p-megamenu { padding: 0.5rem; background: #252525; color: #dedede; border: 1px solid #191919; border-radius: 3px; } .p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link { padding: 0.857rem; color: #dedede; border-radius: 3px; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; user-select: none; } .p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text { color: #dedede; } .p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon { color: #dedede; margin-right: 0.5rem; } .p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon { color: #dedede; margin-left: 0.5rem; } .p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover { background: #4c4c4c; } .p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text { color: #dedede; } .p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon { color: #dedede; } .p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon { color: #dedede; } .p-megamenu .p-megamenu-root-list > .p-menuitem > .p-menuitem-link:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link, .p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover { background: #C5E1A5; } .p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text, .p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text { color: #212529; } .p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon { color: #212529; } .p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon, .p-megamenu .p-megamenu-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon { color: #212529; } .p-megamenu .p-menuitem-link { padding: 0.857rem; color: #dedede; border-radius: 0; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; user-select: none; } .p-megamenu .p-menuitem-link .p-menuitem-text { color: #dedede; } .p-megamenu .p-menuitem-link .p-menuitem-icon { color: #dedede; margin-right: 0.5rem; } .p-megamenu .p-menuitem-link .p-submenu-icon { color: #dedede; } .p-megamenu .p-menuitem-link:not(.p-disabled):hover { background: #4c4c4c; } .p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text { color: #dedede; } .p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon { color: #dedede; } .p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon { color: #dedede; } .p-megamenu .p-menuitem-link:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-megamenu .p-megamenu-panel { background: #252525; color: #dedede; border: 1px solid #191919; box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16); } .p-megamenu .p-megamenu-submenu-header { margin: 0; padding: 0.857rem; color: #dedede; background: #191919; font-weight: 700; border-top-right-radius: 3px; border-top-left-radius: 3px; } .p-megamenu .p-megamenu-submenu { padding: 0; width: 12.5rem; } .p-megamenu .p-megamenu-submenu .p-menu-separator { border-top: 1px solid #4b4b4b; margin: 0; } .p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link { background: #C5E1A5; } .p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text { color: #212529; } .p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon { color: #212529; } .p-megamenu.p-megamenu-vertical { width: 12.5rem; padding: 0; } .p-menu { padding: 0; background: #252525; color: #dedede; border: 1px solid #191919; border-radius: 3px; width: 12.5rem; } .p-menu .p-menuitem-link { padding: 0.857rem; color: #dedede; border-radius: 0; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; user-select: none; } .p-menu .p-menuitem-link .p-menuitem-text { color: #dedede; } .p-menu .p-menuitem-link .p-menuitem-icon { color: #dedede; margin-right: 0.5rem; } .p-menu .p-menuitem-link .p-submenu-icon { color: #dedede; } .p-menu .p-menuitem-link:not(.p-disabled):hover { background: #4c4c4c; } .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text { color: #dedede; } .p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon { color: #dedede; } .p-menu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon { color: #dedede; } .p-menu .p-menuitem-link:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-menu.p-menu-overlay { background: #252525; border: 1px solid #191919; box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16); } .p-menu .p-submenu-header { margin: 0; padding: 0.857rem; color: #dedede; background: #191919; font-weight: 700; border-top-right-radius: 3px; border-top-left-radius: 3px; } .p-menu .p-menu-separator { border-top: 1px solid #4b4b4b; margin: 0; } .p-menubar { padding: 0.5rem; background: #252525; color: #dedede; border: 1px solid #191919; border-radius: 3px; } .p-menubar .p-menuitem-link { padding: 0.857rem; color: #dedede; border-radius: 0; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; user-select: none; } .p-menubar .p-menuitem-link .p-menuitem-text { color: #dedede; } .p-menubar .p-menuitem-link .p-menuitem-icon { color: #dedede; margin-right: 0.5rem; } .p-menubar .p-menuitem-link .p-submenu-icon { color: #dedede; } .p-menubar .p-menuitem-link:not(.p-disabled):hover { background: #4c4c4c; } .p-menubar .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text { color: #dedede; } .p-menubar .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon { color: #dedede; } .p-menubar .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon { color: #dedede; } .p-menubar .p-menuitem-link:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link { padding: 0.857rem; color: #dedede; border-radius: 3px; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; user-select: none; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text { color: #dedede; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon { color: #dedede; margin-right: 0.5rem; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon { color: #dedede; margin-left: 0.5rem; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover { background: #4c4c4c; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text { color: #dedede; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon { color: #dedede; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon { color: #dedede; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link, .p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover { background: #C5E1A5; } .p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text, .p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text { color: #212529; } .p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon { color: #212529; } .p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon, .p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon { color: #212529; } .p-menubar .p-submenu-list { padding: 0; background: #252525; border: 1px solid #191919; box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16); width: 12.5rem; } .p-menubar .p-submenu-list .p-menu-separator { border-top: 1px solid #4b4b4b; margin: 0; } .p-menubar .p-submenu-list .p-submenu-icon { font-size: 0.875rem; } .p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link { background: #C5E1A5; } .p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text { color: #212529; } .p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon { color: #212529; } @media screen and (max-width: 960px) { .p-menubar { position: relative; } .p-menubar .p-menubar-button { display: flex; width: 2rem; height: 2rem; color: #dedede; border-radius: 50%; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; } .p-menubar .p-menubar-button:hover { color: #dedede; background: #4c4c4c; } .p-menubar .p-menubar-button:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-menubar .p-menubar-root-list { position: absolute; display: none; padding: 0; background: #252525; border: 1px solid #191919; box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16); width: 100%; } .p-menubar .p-menubar-root-list .p-menu-separator { border-top: 1px solid #4b4b4b; margin: 0; } .p-menubar .p-menubar-root-list .p-submenu-icon { font-size: 0.875rem; } .p-menubar .p-menubar-root-list > .p-menuitem { width: 100%; position: static; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link { padding: 0.857rem; color: #dedede; border-radius: 0; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; user-select: none; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text { color: #dedede; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon { color: #dedede; margin-right: 0.5rem; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon { color: #dedede; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover { background: #4c4c4c; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text { color: #dedede; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon { color: #dedede; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon { color: #dedede; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link > .p-submenu-icon { margin-left: auto; transition: transform 0.2s; } .p-menubar .p-menubar-root-list > .p-menuitem.p-menuitem-active > .p-menuitem-link > .p-submenu-icon { transform: rotate(-180deg); } .p-menubar .p-menubar-root-list .p-submenu-list { width: 100%; position: static; box-shadow: none; border: 0 none; } .p-menubar .p-menubar-root-list .p-submenu-list .p-submenu-icon { transition: transform 0.2s; transform: rotate(90deg); } .p-menubar .p-menubar-root-list .p-submenu-list .p-menuitem-active > .p-menuitem-link > .p-submenu-icon { transform: rotate(-90deg); } .p-menubar .p-menubar-root-list .p-menuitem { width: 100%; position: static; } .p-menubar .p-menubar-root-list ul li a { padding-left: 2.571rem; } .p-menubar .p-menubar-root-list ul li ul li a { padding-left: 4.285rem; } .p-menubar .p-menubar-root-list ul li ul li ul li a { padding-left: 5.999rem; } .p-menubar .p-menubar-root-list ul li ul li ul li ul li a { padding-left: 7.713rem; } .p-menubar .p-menubar-root-list ul li ul li ul li ul li ul li a { padding-left: 9.427rem; } .p-menubar.p-menubar-mobile-active .p-menubar-root-list { display: flex; flex-direction: column; top: 100%; left: 0; z-index: 1; } } .p-panelmenu .p-panelmenu-header > a { padding: 0.857rem 1rem; border: 1px solid #191919; color: #dedede; background: #191919; font-weight: 700; border-radius: 3px; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-panelmenu .p-panelmenu-header > a .p-panelmenu-icon { margin-right: 0.5rem; } .p-panelmenu .p-panelmenu-header > a .p-menuitem-icon { margin-right: 0.5rem; } .p-panelmenu .p-panelmenu-header > a:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-panelmenu .p-panelmenu-header:not(.p-highlight):not(.p-disabled) > a:hover { background: #191919; border-color: #191919; color: #C5E1A5; } .p-panelmenu .p-panelmenu-header.p-highlight { margin-bottom: 0; } .p-panelmenu .p-panelmenu-header.p-highlight > a { background: #C5E1A5; border-color: #C5E1A5; color: #212529; border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .p-panelmenu .p-panelmenu-header.p-highlight:not(.p-disabled) > a:hover { border-color: #9CCC65; background: #9CCC65; color: #212529; } .p-panelmenu .p-panelmenu-content { padding: 0; border: 1px solid #191919; background: #323232; color: #dedede; margin-bottom: 2px; border-top: 0; border-top-right-radius: 0; border-top-left-radius: 0; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } .p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link { padding: 0.857rem; color: #dedede; border-radius: 0; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; user-select: none; } .p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-menuitem-text { color: #dedede; } .p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-menuitem-icon { color: #dedede; margin-right: 0.5rem; } .p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-submenu-icon { color: #dedede; } .p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover { background: #4c4c4c; } .p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text { color: #dedede; } .p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon { color: #dedede; } .p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon { color: #dedede; } .p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-panelmenu-icon { margin-right: 0.5rem; } .p-panelmenu .p-panelmenu-content .p-submenu-list:not(.p-panelmenu-root-submenu) { padding: 0 0 0 1rem; } .p-panelmenu .p-panelmenu-panel { margin-bottom: 2px; } .p-slidemenu { padding: 0; background: #252525; color: #dedede; border: 1px solid #191919; border-radius: 3px; width: 12.5rem; } .p-slidemenu .p-menuitem-link { padding: 0.857rem; color: #dedede; border-radius: 0; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; user-select: none; } .p-slidemenu .p-menuitem-link .p-menuitem-text { color: #dedede; } .p-slidemenu .p-menuitem-link .p-menuitem-icon { color: #dedede; margin-right: 0.5rem; } .p-slidemenu .p-menuitem-link .p-submenu-icon { color: #dedede; } .p-slidemenu .p-menuitem-link:not(.p-disabled):hover { background: #4c4c4c; } .p-slidemenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text { color: #dedede; } .p-slidemenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon { color: #dedede; } .p-slidemenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon { color: #dedede; } .p-slidemenu .p-menuitem-link:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-slidemenu.p-slidemenu-overlay { background: #252525; border: 1px solid #191919; box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16); } .p-slidemenu .p-slidemenu-list { padding: 0; background: #252525; border: 1px solid #191919; box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16); } .p-slidemenu .p-slidemenu.p-slidemenu-active > .p-slidemenu-link { background: #C5E1A5; } .p-slidemenu .p-slidemenu.p-slidemenu-active > .p-slidemenu-link .p-slidemenu-text { color: #212529; } .p-slidemenu .p-slidemenu.p-slidemenu-active > .p-slidemenu-link .p-slidemenu-icon, .p-slidemenu .p-slidemenu.p-slidemenu-active > .p-slidemenu-link .p-slidemenu-icon { color: #212529; } .p-slidemenu .p-slidemenu-separator { border-top: 1px solid #4b4b4b; margin: 0; } .p-slidemenu .p-slidemenu-icon { font-size: 0.875rem; } .p-slidemenu .p-slidemenu-backward { padding: 0.857rem; color: #dedede; } .p-steps .p-steps-item .p-menuitem-link { background: transparent; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; border-radius: 3px; background: #191919; } .p-steps .p-steps-item .p-menuitem-link .p-steps-number { color: #dedede; border: 1px solid #191919; background: #191919; min-width: 2rem; height: 2rem; line-height: 2rem; font-size: 1.143rem; z-index: 1; border-radius: 50%; } .p-steps .p-steps-item .p-menuitem-link .p-steps-title { margin-top: 0.5rem; color: #888888; } .p-steps .p-steps-item .p-menuitem-link:not(.p-disabled):focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-steps .p-steps-item.p-highlight .p-steps-number { background: #C5E1A5; color: #212529; } .p-steps .p-steps-item.p-highlight .p-steps-title { font-weight: 700; color: #dedede; } .p-steps .p-steps-item:before { content: " "; border-top: 1px solid #4b4b4b; width: 100%; top: 50%; left: 0; display: block; position: absolute; margin-top: -1rem; } .p-tabmenu .p-tabmenu-nav { background: transparent; border: 0 none; border-width: 1px; } .p-tabmenu .p-tabmenu-nav .p-tabmenuitem { margin-right: 2px; } .p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link { border: 1px solid #191919; border-width: 1px; border-color: #191919; background: #191919; color: #dedede; padding: 0.857rem 1rem; font-weight: 700; border-top-right-radius: 3px; border-top-left-radius: 3px; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; margin: 0 0 -1px 0; } .p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link .p-menuitem-icon { margin-right: 0.5rem; } .p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link:not(.p-disabled):focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-tabmenu .p-tabmenu-nav .p-tabmenuitem:not(.p-highlight):not(.p-disabled):hover .p-menuitem-link { background: #191919; border-color: #191919; color: #C5E1A5; } .p-tabmenu .p-tabmenu-nav .p-tabmenuitem.p-highlight .p-menuitem-link { background: #C5E1A5; border-color: #C5E1A5; color: #212529; } .p-tieredmenu { padding: 0; background: #252525; color: #dedede; border: 1px solid #191919; border-radius: 3px; width: 12.5rem; } .p-tieredmenu .p-menuitem-link { padding: 0.857rem; color: #dedede; border-radius: 0; transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; user-select: none; } .p-tieredmenu .p-menuitem-link .p-menuitem-text { color: #dedede; } .p-tieredmenu .p-menuitem-link .p-menuitem-icon { color: #dedede; margin-right: 0.5rem; } .p-tieredmenu .p-menuitem-link .p-submenu-icon { color: #dedede; } .p-tieredmenu .p-menuitem-link:not(.p-disabled):hover { background: #4c4c4c; } .p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text { color: #dedede; } .p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon { color: #dedede; } .p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon { color: #dedede; } .p-tieredmenu .p-menuitem-link:focus { outline: 0 none; outline-offset: 0; box-shadow: inset 0 0 0 0.2rem white; } .p-tieredmenu.p-tieredmenu-overlay { background: #252525; border: 1px solid #191919; box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16); } .p-tieredmenu .p-submenu-list { padding: 0; background: #252525; border: 1px solid #191919; box-shadow: 0 0px 6px 0 rgba(0, 0, 0, 0.16); } .p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link { background: #C5E1A5; } .p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text { color: #212529; } .p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon, .p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon { color: #212529; } .p-tieredmenu .p-menu-separator { border-top: 1px solid #4b4b4b; margin: 0; } .p-tieredmenu .p-submenu-icon { font-size: 0.875rem; } .p-inline-message { padding: 0.5rem; margin: 0; border-radius: 3px; } .p-inline-message.p-inline-message-info { background: #7fbcec; border: 0 none; border-width: 0; color: #212121; } .p-inline-message.p-inline-message-info .p-inline-message-icon { color: #212121; } .p-inline-message.p-inline-message-success { background: #b7d8b7; border: 0 none; border-width: 0; color: #212121; } .p-inline-message.p-inline-message-success .p-inline-message-icon { color: #212121; } .p-inline-message.p-inline-message-warn { background: #ffe399; border: 0 none; border-width: 0; color: #212121; } .p-inline-message.p-inline-message-warn .p-inline-message-icon { color: #212121; } .p-inline-message.p-inline-message-error { background: #f8b7bd; border: 0 none; border-width: 0; color: #212121; } .p-inline-message.p-inline-message-error .p-inline-message-icon { color: #212121; } .p-inline-message .p-inline-message-icon { font-size: 1rem; margin-right: 0.5rem; } .p-inline-message .p-inline-message-text { font-size: 1rem; } .p-inline-message.p-inline-message-icon-only .p-inline-message-icon { margin-right: 0; } .p-message { margin: 1rem 0; border-radius: 3px; } .p-message .p-message-wrapper { padding: 1rem; } .p-message .p-message-close { width: 2rem; height: 2rem; border-radius: 50%; background: transparent; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; } .p-message .p-message-close:hover { background: rgba(255, 255, 255, 0.3); } .p-message .p-message-close:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-message.p-message-info { background: #7fbcec; border: 0 none; border-width: 0; color: #212121; } .p-message.p-message-info .p-message-icon { color: #212121; } .p-message.p-message-info .p-message-close { color: #212121; } .p-message.p-message-success { background: #b7d8b7; border: 0 none; border-width: 0; color: #212121; } .p-message.p-message-success .p-message-icon { color: #212121; } .p-message.p-message-success .p-message-close { color: #212121; } .p-message.p-message-warn { background: #ffe399; border: 0 none; border-width: 0; color: #212121; } .p-message.p-message-warn .p-message-icon { color: #212121; } .p-message.p-message-warn .p-message-close { color: #212121; } .p-message.p-message-error { background: #f8b7bd; border: 0 none; border-width: 0; color: #212121; } .p-message.p-message-error .p-message-icon { color: #212121; } .p-message.p-message-error .p-message-close { color: #212121; } .p-message .p-message-text { font-size: 1rem; font-weight: normal; } .p-message .p-message-icon { font-size: 1.5rem; margin-right: 0.5rem; } .p-toast { opacity: 0.9; } .p-toast .p-toast-message { margin: 0 0 1rem 0; box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); border-radius: 3px; } .p-toast .p-toast-message .p-toast-message-content { padding: 1rem; border-width: 0; } .p-toast .p-toast-message .p-toast-message-content .p-toast-message-text { margin: 0 0 0 0.5rem; } .p-toast .p-toast-message .p-toast-message-content .p-toast-message-icon { font-size: 2rem; } .p-toast .p-toast-message .p-toast-message-content .p-toast-summary { font-weight: 700; } .p-toast .p-toast-message .p-toast-message-content .p-toast-detail { margin: 0.5rem 0 0 0; } .p-toast .p-toast-message .p-toast-icon-close { width: 2rem; height: 2rem; border-radius: 50%; background: transparent; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; } .p-toast .p-toast-message .p-toast-icon-close:hover { background: rgba(255, 255, 255, 0.3); } .p-toast .p-toast-message .p-toast-icon-close:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-toast .p-toast-message.p-toast-message-info { background: #7fbcec; border: 0 none; border-width: 0; color: #212121; } .p-toast .p-toast-message.p-toast-message-info .p-toast-message-icon, .p-toast .p-toast-message.p-toast-message-info .p-toast-icon-close { color: #212121; } .p-toast .p-toast-message.p-toast-message-success { background: #b7d8b7; border: 0 none; border-width: 0; color: #212121; } .p-toast .p-toast-message.p-toast-message-success .p-toast-message-icon, .p-toast .p-toast-message.p-toast-message-success .p-toast-icon-close { color: #212121; } .p-toast .p-toast-message.p-toast-message-warn { background: #ffe399; border: 0 none; border-width: 0; color: #212121; } .p-toast .p-toast-message.p-toast-message-warn .p-toast-message-icon, .p-toast .p-toast-message.p-toast-message-warn .p-toast-icon-close { color: #212121; } .p-toast .p-toast-message.p-toast-message-error { background: #f8b7bd; border: 0 none; border-width: 0; color: #212121; } .p-toast .p-toast-message.p-toast-message-error .p-toast-message-icon, .p-toast .p-toast-message.p-toast-message-error .p-toast-icon-close { color: #212121; } .p-galleria .p-galleria-close { margin: 0.5rem; background: transparent; color: #ebedef; width: 4rem; height: 4rem; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; border-radius: 50%; } .p-galleria .p-galleria-close .p-galleria-close-icon { font-size: 2rem; } .p-galleria .p-galleria-close:hover { background: rgba(255, 255, 255, 0.1); color: #ebedef; } .p-galleria .p-galleria-item-nav { background: rgba(0, 0, 0, 0.2); color: #aeb6bf; width: 4rem; height: 4rem; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; border-radius: 3px; margin: 0 0.5rem; } .p-galleria .p-galleria-item-nav .p-galleria-item-prev-icon, .p-galleria .p-galleria-item-nav .p-galleria-item-next-icon { font-size: 2rem; } .p-galleria .p-galleria-item-nav:not(.p-disabled):hover { background: rgba(0, 0, 0, 0.3); color: #ebedef; } .p-galleria .p-galleria-caption { background: rgba(0, 0, 0, 0.5); color: #ebedef; padding: 1rem; } .p-galleria .p-galleria-indicators { padding: 1rem; } .p-galleria .p-galleria-indicators .p-galleria-indicator button { background-color: #4b4b4b; width: 1rem; height: 1rem; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; border-radius: 50%; } .p-galleria .p-galleria-indicators .p-galleria-indicator button:hover { background: #4c4c4c; } .p-galleria .p-galleria-indicators .p-galleria-indicator.p-highlight button { background: #C5E1A5; color: #212529; } .p-galleria.p-galleria-indicators-bottom .p-galleria-indicator, .p-galleria.p-galleria-indicators-top .p-galleria-indicator { margin-right: 0.5rem; } .p-galleria.p-galleria-indicators-left .p-galleria-indicator, .p-galleria.p-galleria-indicators-right .p-galleria-indicator { margin-bottom: 0.5rem; } .p-galleria.p-galleria-indicator-onitem .p-galleria-indicators { background: rgba(0, 0, 0, 0.5); } .p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator button { background: rgba(255, 255, 255, 0.4); } .p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator button:hover { background: rgba(255, 255, 255, 0.6); } .p-galleria.p-galleria-indicator-onitem .p-galleria-indicators .p-galleria-indicator.p-highlight button { background: #C5E1A5; color: #212529; } .p-galleria .p-galleria-thumbnail-container { background: rgba(0, 0, 0, 0.9); padding: 1rem 0.25rem; } .p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-prev, .p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-next { margin: 0.5rem; background-color: transparent; color: #aeb6bf; width: 2rem; height: 2rem; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; border-radius: 50%; } .p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-prev:hover, .p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-next:hover { background: rgba(255, 255, 255, 0.1); color: #aeb6bf; } .p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-item-content { transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-galleria .p-galleria-thumbnail-container .p-galleria-thumbnail-item-content:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-galleria-mask.p-component-overlay { background-color: rgba(0, 0, 0, 0.9); } .p-avatar { background-color: #4b4b4b; border-radius: 3px; } .p-avatar.p-avatar-lg { width: 3rem; height: 3rem; font-size: 1.5rem; } .p-avatar.p-avatar-lg .p-avatar-icon { font-size: 1.5rem; } .p-avatar.p-avatar-xl { width: 4rem; height: 4rem; font-size: 2rem; } .p-avatar.p-avatar-xl .p-avatar-icon { font-size: 2rem; } .p-avatar-group .p-avatar { border: 2px solid #323232; } .p-chip { background-color: #4b4b4b; color: #dedede; border-radius: 16px; padding: 0 0.429rem; } .p-chip .p-chip-text { line-height: 1.5; margin-top: 0.2145rem; margin-bottom: 0.2145rem; } .p-chip .p-chip-icon { margin-right: 0.5rem; } .p-chip img { width: 1.929rem; height: 1.929rem; margin-left: -0.429rem; margin-right: 0.5rem; } .p-chip .p-chip-remove-icon { border-radius: 3px; transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; margin-left: 0.5rem; } .p-chip .p-chip-remove-icon:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-scrolltop { width: 3rem; height: 3rem; border-radius: 50%; box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); transition: background-color 0.2s, color 0.2s, box-shadow 0.2s; } .p-scrolltop.p-link { background: #C5E1A5; } .p-scrolltop.p-link:hover { background: #AED581; } .p-scrolltop .p-scrolltop-icon { font-size: 1.5rem; color: #212529; } .p-skeleton { background-color: rgba(255, 255, 255, 0.06); border-radius: 3px; } .p-skeleton:after { background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)); } .p-tag { background: #C5E1A5; color: #212529; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.4rem; border-radius: 3px; } .p-tag.p-tag-success { background-color: #AED581; color: #212529; } .p-tag.p-tag-info { background-color: #4FC3F7; color: #212529; } .p-tag.p-tag-warning { background-color: #FFB74D; color: #212529; } .p-tag.p-tag-danger { background-color: #E57373; color: #212529; } .p-tag .p-tag-icon { margin-right: 0.25rem; font-size: 0.75rem; } .p-inplace .p-inplace-display { padding: 0.429rem 0.429rem; border-radius: 3px; transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s; } .p-inplace .p-inplace-display:not(.p-disabled):hover { background: #4c4c4c; color: #dedede; } .p-inplace .p-inplace-display:focus { outline: 0 none; outline-offset: 0; box-shadow: 0 0 0 0.1rem white; } .p-progressbar { border: 0 none; height: 24px; background: #eaeaea; border-radius: 3px; } .p-progressbar .p-progressbar-value { border: 0 none; margin: 0; background: #C5E1A5; } .p-progressbar .p-progressbar-label { color: #dedede; line-height: 24px; } .p-terminal { background: #323232; color: #dedede; border: 1px solid #191919; padding: 0.571rem 1rem; } .p-terminal .p-terminal-input { font-size: 1rem; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; } .p-blockui.p-component-overlay { background: rgba(0, 0, 0, 0.4); } .p-badge { background: #C5E1A5; color: #212529; font-size: 0.75rem; font-weight: 700; min-width: 1.5rem; height: 1.5rem; line-height: 1.5rem; } .p-badge.p-badge-secondary { background-color: #B0BEC5; color: #121212; } .p-badge.p-badge-success { background-color: #AED581; color: #212529; } .p-badge.p-badge-info { background-color: #4FC3F7; color: #212529; } .p-badge.p-badge-warning { background-color: #FFB74D; color: #212529; } .p-badge.p-badge-danger { background-color: #E57373; color: #212529; } .p-badge.p-badge-lg { font-size: 1.125rem; min-width: 2.25rem; height: 2.25rem; line-height: 2.25rem; } .p-badge.p-badge-xl { font-size: 1.5rem; min-width: 3rem; height: 3rem; line-height: 3rem; } .p-tag { background: #C5E1A5; color: #212529; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.4rem; border-radius: 3px; } .p-tag.p-tag-success { background-color: #AED581; color: #212529; } .p-tag.p-tag-info { background-color: #4FC3F7; color: #212529; } .p-tag.p-tag-warning { background-color: #FFB74D; color: #212529; } .p-tag.p-tag-danger { background-color: #E57373; color: #212529; } /* Customizations to the designer theme should be defined here */
cdnjs/cdnjs
ajax/libs/primereact/6.0.0/resources/themes/luna-green/theme.css
CSS
mit
132,211
import {combineReducers} from 'redux'; import postValuesReducer from './post_values'; import ListReducer from './list_reducer'; import ForeignListReducer from './foreign_list_reducer'; import FuelReducer from './fuel_reducer'; import {reducer as formReducer} from 'redux-form'; const rootReducer = combineReducers({ postValues: postValuesReducer, routePoints: ListReducer, routeForeignPoints: ForeignListReducer, fuel: FuelReducer, form: formReducer }); export default rootReducer;
nadzins/riepas-react-redux
src/reducers/index.js
JavaScript
mit
504
require 'spec_helper' describe HolidayList::Params do before(:all) do Time.zone = 'Central Time (US & Canada)' new_time = Time.zone.local(2014, 1, 29, 12, 0, 0) Timecop.freeze(new_time) end after(:all) do Timecop.return end subject { HolidayList::Params.new('12345', options) } let(:options) { Hash.new } describe '#to_s' do before do subject.should_receive(:params_hash).and_return Hash.new end it 'calls #params_hash' do subject.to_s end end describe '#params_hash' do let(:params_hash) { subject.params_hash } it 'uses the passed in key' do expect(params_hash[:key]).to eq '12345' end it 'orders by startTime' do expect(params_hash[:orderBy]).to eq 'startTime' end it 'uses single events' do expect(params_hash[:singleEvents]).to be true end describe 'time ranges' do shared_examples 'customizable start and stop dates' do it 'uses a default start date of today' do expect(params_hash[:timeMin]).to eq start end it 'uses a default stop date of 1 year from now' do expect(params_hash[:timeMax]).to eq stop end end context 'with default start and stop dates' do let(:start) { DateTime.new(2014, 1, 29, 12, 0, 0, '-6') } let(:stop) { DateTime.new(2015, 1, 29, 12, 0, 0, '-6') } it_behaves_like 'customizable start and stop dates' end context 'with custom start and stop dates' do let(:start) { DateTime.new(2014, 2, 1) } let(:stop) { DateTime.new(2014, 2, 15) } let(:options) do { 'start' => start, 'stop' => stop } end it_behaves_like 'customizable start and stop dates' end context 'with invalid dates' do let(:start) { 'foo' } let(:stop) { 'bar' } let(:options) do { 'start' => start, 'stop' => stop } end it 'throws an error' do expect { params_hash[:timeMin] }.to raise_error ArgumentError end end context 'with stop date after start date' do let(:start) { DateTime.new(2014, 1, 29, 12, 0, 0, '-6') } let(:stop) { DateTime.new(2014, 1, 28, 18, 5, 10, '-6') } let(:options) do { 'start' => start, 'stop' => stop } end it 'throws an error' do expect { params_hash[:timeMin] }.to raise_error ArgumentError end end end end end
bhicks/holiday_list
spec/holiday_list/params_spec.rb
Ruby
mit
2,599
unless defined?(NameAndEmailValidator) class NameAndEmailValidator < ActiveModel::EachValidator def validate_each(record, attribute, value) unless value =~ /\A(.+)?\s<([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})?>\Z/i record.errors[attribute] << (options[:message] || "is not a valid email address. Proper format is 'Name First <email@second.com>' separated by commas ") end end end end
AnnArborTees/acts_as_warnable
app/validators/name_and_email_validator.rb
Ruby
mit
413
#pragma once class Time { public: Time(); int frame(); // returns previous frame time in ms private: int lastFrame; // timestamp in ms };
robertpogue/SpacePirates
Time.h
C
mit
160
// MusicXML Class Library // Copyright (c) by Matthew James Briggs // Distributed under the MIT License #include "mxtest/control/CompileControl.h" #ifdef MX_COMPILE_CORE_TESTS #include "cpul/cpulTestHarness.h" #include "mxtest/core/HelperFunctions.h" #include "mxtest/core/SystemLayoutTest.h" #include "mxtest/core/SystemMarginsTest.h" #include "mxtest/core/SystemDividersTest.h" using namespace mx::core; using namespace std; using namespace mxtest; TEST( Test01, SystemLayout ) { TestMode v = TestMode::one; SystemLayoutPtr object = tgenSystemLayout( v ); stringstream expected; tgenSystemLayoutExpected( expected, 1, v ); stringstream actual; // object->toStream( std::cout, 1 ); object->toStream( actual, 1 ); CHECK_EQUAL( expected.str(), actual.str() ) CHECK( ! object->hasAttributes() ) CHECK( ! object->hasContents() ) } TEST( Test02, SystemLayout ) { TestMode v = TestMode::two; SystemLayoutPtr object = tgenSystemLayout( v ); stringstream expected; tgenSystemLayoutExpected( expected, 1, v ); stringstream actual; // object->toStream( std::cout, 1 ); object->toStream( actual, 1 ); CHECK_EQUAL( expected.str(), actual.str() ) CHECK( ! object->hasAttributes() ) CHECK( object->hasContents() ) } TEST( Test03, SystemLayout ) { TestMode v = TestMode::three; SystemLayoutPtr object = tgenSystemLayout( v ); stringstream expected; tgenSystemLayoutExpected( expected, 1, v ); stringstream actual; // object->toStream( std::cout, 1 ); object->toStream( actual, 1 ); CHECK_EQUAL( expected.str(), actual.str() ) CHECK( ! object->hasAttributes() ) CHECK( object->hasContents() ) } namespace mxtest { SystemLayoutPtr tgenSystemLayout( TestMode v ) { SystemLayoutPtr o = makeSystemLayout(); switch ( v ) { case TestMode::one: { } break; case TestMode::two: { o->setHasSystemMargins( true ); o->setSystemMargins( tgenSystemMargins( v ) ); o->setHasTopSystemDistance( true ); o->getTopSystemDistance()->setValue( TenthsValue( 1.1 ) ); o->setHasSystemDistance( true ); o->getSystemDistance()->setValue( TenthsValue( 2.2 ) ); o->setHasSystemDividers( true ); o->setSystemDividers( tgenSystemDividers( v ) ); } break; case TestMode::three: { o->setHasSystemMargins( true ); o->setSystemMargins( tgenSystemMargins( v ) ); o->setHasTopSystemDistance( true ); o->getTopSystemDistance()->setValue( TenthsValue( 3.3 ) ); o->setHasSystemDistance( true ); o->getSystemDistance()->setValue( TenthsValue( 4.4 ) ); } break; default: break; } return o; } void tgenSystemLayoutExpected(std::ostream& os, int i, TestMode v ) { switch ( v ) { case TestMode::one: { streamLine( os, i, R"(<system-layout/>)", false ); } break; case TestMode::two: { streamLine( os, i, R"(<system-layout>)" ); tgenSystemMarginsExpected( os, i+1, v ); os << std::endl; streamLine( os, i+1, R"(<system-distance>2.2</system-distance>)" ); streamLine( os, i+1, R"(<top-system-distance>1.1</top-system-distance>)" ); tgenSystemDividersExpected( os, i+1, v ); os << std::endl; streamLine( os, i, R"(</system-layout>)", false ); } break; case TestMode::three: { streamLine( os, i, R"(<system-layout>)" ); tgenSystemMarginsExpected( os, i+1, v ); os << std::endl; streamLine( os, i+1, R"(<system-distance>4.4</system-distance>)" ); streamLine( os, i+1, R"(<top-system-distance>3.3</top-system-distance>)" ); streamLine( os, i, R"(</system-layout>)", false ); } break; default: break; } } } #endif
Webern/MusicXML-Class-Library
Sourcecode/private/mxtest/core/SystemLayoutTest.cpp
C++
mit
4,339
#pragma once #include <QWidget> #include <QListWidget> #include <QMainWindow> #include <QMenu> #include "../data/array.hpp" #include "../data/data_source.hpp" #include "../json/json.hpp" #include <list> namespace datavis { using std::list; using nlohmann::json; class DataSet; class PlotView; class PlotGridView; class Plot; class LinePlot; class DataLibrary; class DataLibraryView; class PlotDataSettingsView; class MainWindow : public QMainWindow { public: MainWindow(QWidget * parent = 0); void openFile(const QString & path); void openData(); void openDataFile(const QString & file_path); void saveProject(); void saveProjectAs(); void saveProjectFile(const QString & path); void openProject(); void openProjectFile(const QString & file_path); bool closeProject(); protected: virtual void dragEnterEvent(QDragEnterEvent *event); virtual void dropEvent(QDropEvent *event); virtual void closeEvent(QCloseEvent *event); private: void makeMenu(); void onOpenFailed(const QString & path, const QString & reason); void onSelectedDataChanged(); bool hasSelectedObject(); void plotSelectedObject(); PlotGridView * addPlotView(); void removePlotView(PlotGridView*); void plot(DataSource *, const string & id); Plot * makePlot(DataSource *, const string & datasetId); void restorePlot(PlotGridView *, const json & state); void removeSelectedPlot(); void onDatasetDroppedOnPlotView(const QVariant &); bool eventFilter(QObject*, QEvent*) override; void showPlotContextMenu(Plot*, const QPoint & pos); QString m_project_file_path; DataLibrary * m_lib = nullptr; DataLibraryView * m_lib_view = nullptr; list<PlotGridView*> m_plot_views; PlotGridView * m_selected_plot_view = nullptr; Plot * m_selected_plot = nullptr; QMenu * m_plot_context_menu = nullptr; }; }
jleben/datavis
app/main_window.hpp
C++
mit
1,907
# example_atom_package ### a project by: Yochem ---
yochem/kwik-build
examples/example_atom_package/README.md
Markdown
mit
52
// File generated from our OpenAPI spec package com.stripe.param; import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import lombok.Getter; @Getter public class InvoiceItemListParams extends ApiRequestParams { @SerializedName("created") Object created; /** * The identifier of the customer whose invoice items to return. If none is provided, all invoice * items will be returned. */ @SerializedName("customer") String customer; /** * A cursor for use in pagination. {@code ending_before} is an object ID that defines your place * in the list. For instance, if you make a list request and receive 100 objects, starting with * {@code obj_bar}, your subsequent call can include {@code ending_before=obj_bar} in order to * fetch the previous page of the list. */ @SerializedName("ending_before") String endingBefore; /** Specifies which fields in the response should be expanded. */ @SerializedName("expand") List<String> expand; /** * Map of extra parameters for custom features not available in this client library. The content * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each * key/value pair is serialized as if the key is a root-level field (serialized) name in this * param object. Effectively, this map is flattened to its parent instance. */ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map<String, Object> extraParams; /** * Only return invoice items belonging to this invoice. If none is provided, all invoice items * will be returned. If specifying an invoice, no customer identifier is needed. */ @SerializedName("invoice") String invoice; /** * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the * default is 10. */ @SerializedName("limit") Long limit; /** * Set to {@code true} to only show pending invoice items, which are not yet attached to any * invoices. Set to {@code false} to only show invoice items already attached to invoices. If * unspecified, no filter is applied. */ @SerializedName("pending") Boolean pending; /** * A cursor for use in pagination. {@code starting_after} is an object ID that defines your place * in the list. For instance, if you make a list request and receive 100 objects, ending with * {@code obj_foo}, your subsequent call can include {@code starting_after=obj_foo} in order to * fetch the next page of the list. */ @SerializedName("starting_after") String startingAfter; private InvoiceItemListParams( Object created, String customer, String endingBefore, List<String> expand, Map<String, Object> extraParams, String invoice, Long limit, Boolean pending, String startingAfter) { this.created = created; this.customer = customer; this.endingBefore = endingBefore; this.expand = expand; this.extraParams = extraParams; this.invoice = invoice; this.limit = limit; this.pending = pending; this.startingAfter = startingAfter; } public static Builder builder() { return new Builder(); } public static class Builder { private Object created; private String customer; private String endingBefore; private List<String> expand; private Map<String, Object> extraParams; private String invoice; private Long limit; private Boolean pending; private String startingAfter; /** Finalize and obtain parameter instance from this builder. */ public InvoiceItemListParams build() { return new InvoiceItemListParams( this.created, this.customer, this.endingBefore, this.expand, this.extraParams, this.invoice, this.limit, this.pending, this.startingAfter); } public Builder setCreated(Created created) { this.created = created; return this; } public Builder setCreated(Long created) { this.created = created; return this; } /** * The identifier of the customer whose invoice items to return. If none is provided, all * invoice items will be returned. */ public Builder setCustomer(String customer) { this.customer = customer; return this; } /** * A cursor for use in pagination. {@code ending_before} is an object ID that defines your place * in the list. For instance, if you make a list request and receive 100 objects, starting with * {@code obj_bar}, your subsequent call can include {@code ending_before=obj_bar} in order to * fetch the previous page of the list. */ public Builder setEndingBefore(String endingBefore) { this.endingBefore = endingBefore; return this; } /** * Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and * subsequent calls adds additional elements to the original list. See {@link * InvoiceItemListParams#expand} for the field documentation. */ public Builder addExpand(String element) { if (this.expand == null) { this.expand = new ArrayList<>(); } this.expand.add(element); return this; } /** * Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and * subsequent calls adds additional elements to the original list. See {@link * InvoiceItemListParams#expand} for the field documentation. */ public Builder addAllExpand(List<String> elements) { if (this.expand == null) { this.expand = new ArrayList<>(); } this.expand.addAll(elements); return this; } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` * call, and subsequent calls add additional key/value pairs to the original map. See {@link * InvoiceItemListParams#extraParams} for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { this.extraParams = new HashMap<>(); } this.extraParams.put(key, value); return this; } /** * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. * See {@link InvoiceItemListParams#extraParams} for the field documentation. */ public Builder putAllExtraParam(Map<String, Object> map) { if (this.extraParams == null) { this.extraParams = new HashMap<>(); } this.extraParams.putAll(map); return this; } /** * Only return invoice items belonging to this invoice. If none is provided, all invoice items * will be returned. If specifying an invoice, no customer identifier is needed. */ public Builder setInvoice(String invoice) { this.invoice = invoice; return this; } /** * A limit on the number of objects to be returned. Limit can range between 1 and 100, and the * default is 10. */ public Builder setLimit(Long limit) { this.limit = limit; return this; } /** * Set to {@code true} to only show pending invoice items, which are not yet attached to any * invoices. Set to {@code false} to only show invoice items already attached to invoices. If * unspecified, no filter is applied. */ public Builder setPending(Boolean pending) { this.pending = pending; return this; } /** * A cursor for use in pagination. {@code starting_after} is an object ID that defines your * place in the list. For instance, if you make a list request and receive 100 objects, ending * with {@code obj_foo}, your subsequent call can include {@code starting_after=obj_foo} in * order to fetch the next page of the list. */ public Builder setStartingAfter(String startingAfter) { this.startingAfter = startingAfter; return this; } } @Getter public static class Created { /** * Map of extra parameters for custom features not available in this client library. The content * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each * key/value pair is serialized as if the key is a root-level field (serialized) name in this * param object. Effectively, this map is flattened to its parent instance. */ @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map<String, Object> extraParams; /** Minimum value to filter by (exclusive). */ @SerializedName("gt") Long gt; /** Minimum value to filter by (inclusive). */ @SerializedName("gte") Long gte; /** Maximum value to filter by (exclusive). */ @SerializedName("lt") Long lt; /** Maximum value to filter by (inclusive). */ @SerializedName("lte") Long lte; private Created(Map<String, Object> extraParams, Long gt, Long gte, Long lt, Long lte) { this.extraParams = extraParams; this.gt = gt; this.gte = gte; this.lt = lt; this.lte = lte; } public static Builder builder() { return new Builder(); } public static class Builder { private Map<String, Object> extraParams; private Long gt; private Long gte; private Long lt; private Long lte; /** Finalize and obtain parameter instance from this builder. */ public Created build() { return new Created(this.extraParams, this.gt, this.gte, this.lt, this.lte); } /** * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` * call, and subsequent calls add additional key/value pairs to the original map. See {@link * InvoiceItemListParams.Created#extraParams} for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { this.extraParams = new HashMap<>(); } this.extraParams.put(key, value); return this; } /** * Add all map key/value pairs to `extraParams` map. A map is initialized for the first * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. * See {@link InvoiceItemListParams.Created#extraParams} for the field documentation. */ public Builder putAllExtraParam(Map<String, Object> map) { if (this.extraParams == null) { this.extraParams = new HashMap<>(); } this.extraParams.putAll(map); return this; } /** Minimum value to filter by (exclusive). */ public Builder setGt(Long gt) { this.gt = gt; return this; } /** Minimum value to filter by (inclusive). */ public Builder setGte(Long gte) { this.gte = gte; return this; } /** Maximum value to filter by (exclusive). */ public Builder setLt(Long lt) { this.lt = lt; return this; } /** Maximum value to filter by (inclusive). */ public Builder setLte(Long lte) { this.lte = lte; return this; } } } }
stripe/stripe-java
src/main/java/com/stripe/param/InvoiceItemListParams.java
Java
mit
11,499
#region License // Pomona is open source software released under the terms of the LICENSE specified in the // project's repository, or alternatively at http://pomona.io/ #endregion namespace Pomona.Common.Serialization { public enum DeserializerNodeOperation { Default, Post, Patch, Delete, Put } }
Pomona/Pomona
app/Pomona.Common/Serialization/DeserializerNodeOperation.cs
C#
mit
353
<?php namespace Hotfix\Datatables; use DateTime; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Filesystem\Filesystem; use Illuminate\Support\Str; use Illuminate\View\Compilers\BladeCompiler; class Helper { /** * Places item of extra columns into results by care of their order. * * @param $item * @param $array * @return array */ public static function includeInArray($item, $array) { if ($item['order'] === false) { return array_merge($array, [$item['name'] => $item['content']]); } else { $count = 0; $last = $array; $first = []; foreach ($array as $key => $value) { if ($count == $item['order']) { return array_merge($first, [$item['name'] => $item['content']], $last); } unset($last[$key]); $first[$key] = $value; $count++; } } } /** * Determines if content is callable or blade string, processes and returns. * * @param string|callable $content Pre-processed content * @param array $data data to use with blade template * @param mixed $param parameter to call with callable * @return string Processed content */ public static function compileContent($content, array $data, $param) { if (is_string($content)) { return static::compileBlade($content, static::getMixedValue($data, $param)); } elseif (is_callable($content)) { return $content($param); } return $content; } /** * Parses and compiles strings by using Blade Template System. * * @param string $str * @param array $data * @return string * @throws \Exception */ public static function compileBlade($str, $data = []) { if (view()->exists($str)) { return view($str, $data)->render(); } $empty_filesystem_instance = new Filesystem(); $blade = new BladeCompiler($empty_filesystem_instance, 'datatables'); $parsed_string = $blade->compileString($str); ob_start() && extract($data, EXTR_SKIP); try { eval('?>' . $parsed_string); } catch (\Exception $e) { ob_end_clean(); throw $e; } $str = ob_get_contents(); ob_end_clean(); return $str; } /** * @param array $data * @param mixed $param * @return array */ public static function getMixedValue(array $data, $param) { $param = self::castToArray($param); foreach ($data as $key => $value) { if (isset($param[$key])) { $data[$key] = $param[$key]; } } return $data; } /** * @param $param * @return array */ public static function castToArray($param) { if ($param instanceof \stdClass) { $param = (array) $param; return $param; } return $param; } /** * Get equivalent or method of query builder. * * @param string $method * @return string */ public static function getOrMethod($method) { if (! Str::contains(Str::lower($method), 'or')) { return 'or' . ucfirst($method); } return $method; } /** * Wrap value depending on database type. * * @param string $database * @param string $value * @return string */ public static function wrapDatabaseValue($database, $value) { $parts = explode('.', $value); $column = ''; foreach ($parts as $key) { $column = static::wrapDatabaseColumn($database, $key, $column); } return substr($column, 0, strlen($column) - 1); } /** * Database column wrapper * * @param string $database * @param string $key * @param string $column * @return string */ public static function wrapDatabaseColumn($database, $key, $column) { switch ($database) { case 'mysql': $column .= '`' . str_replace('`', '``', $key) . '`' . '.'; break; case 'sqlsrv': $column .= '[' . str_replace(']', ']]', $key) . ']' . '.'; break; case 'pgsql': case 'sqlite': $column .= '"' . str_replace('"', '""', $key) . '"' . '.'; break; default: $column .= $key . '.'; } return $column; } /** * Converts array object values to associative array. * * @param mixed $row * @return array */ public static function convertToArray($row) { $data = $row instanceof Arrayable ? $row->toArray() : (array) $row; foreach (array_keys($data) as $key) { if (is_object($data[$key]) || is_array($data[$key])) { $data[$key] = self::convertToArray($data[$key]); } } return $data; } /** * @param array $data * @return array */ public static function transform(array $data) { return array_map(function ($row) { return self::transformRow($row); }, $data); } /** * @param $row * @return mixed */ protected static function transformRow($row) { foreach ($row as $key => $value) { if ($value instanceof DateTime) { $row[$key] = $value->format('Y-m-d H:i:s'); } else { if (is_string($value)) { $row[$key] = (string) $value; } else { $row[$key] = $value; } } } return $row; } /** * Build parameters depending on # of arguments passed. * * @param array $args * @return array */ public static function buildParameters(array $args) { $parameters = []; if (count($args) > 2) { $parameters[] = $args[0]; foreach ($args[1] as $param) { $parameters[] = $param; } } else { foreach ($args[0] as $param) { $parameters[] = $param; } } return $parameters; } /** * Replace all pattern occurrences with keyword * * @param array $subject * @param string $keyword * @param string $pattern * @return array */ public static function replacePatternWithKeyword(array $subject, $keyword, $pattern = '$1') { $parameters = []; foreach ($subject as $param) { if (is_array($param)) { $parameters[] = self::replacePatternWithKeyword($param, $keyword, $pattern); } else { $parameters[] = str_replace($pattern, $keyword, $param); } } return $parameters; } }
hotfix31/lumen-datatables
src/Helper.php
PHP
mit
7,124
using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity.ModelConfiguration; using BolfTracker.Models; namespace BolfTracker.Infrastructure.EntityFramework { public class PlayerGameStatisticsConfiguration : EntityTypeConfiguration<PlayerGameStatistics> { public PlayerGameStatisticsConfiguration() { HasKey(pgs => pgs.Id); Property(pgs => pgs.Id).HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity); Property(pgs => pgs.ShootingPercentage).HasPrecision(18, 3); HasRequired(pgs => pgs.Game).WithMany(g => g.PlayerGameStatistics).Map(pgs => pgs.MapKey("GameId")); HasRequired(pgs => pgs.Player).WithMany(p => p.PlayerGameStatistics).Map(pgs => pgs.MapKey("PlayerId")); ToTable("PlayerGameStatistics"); } } }
mkchandler/bolf-tracker-mvc
src/BolfTracker.Infrastructure.EntityFramework/Configuration/PlayerGameStatisticsConfiguration.cs
C#
mit
874
<?php /** * Author: Nil Portugués Calderó <contact@nilportugues.com> * Date: 29/03/16 * Time: 23:03. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace NilPortugues\Tests\MessageBus\EventBus; use NilPortugues\MessageBus\EventBus\EventBusMiddleware; use NilPortugues\MessageBus\EventBus\Resolver\SimpleArrayResolver; use NilPortugues\MessageBus\EventBus\Translator\EventFullyQualifiedClassNameStrategy; class EventBusMiddlewareTest extends \PHPUnit_Framework_TestCase { /** @var EventBusMiddleware */ protected $eventBus; public function setUp() { $handlers = [ DummyEventHandler::class => function () { return new DummyEventHandler(); }, ]; $this->eventBus = new EventBusMiddleware( new EventFullyQualifiedClassNameStrategy([DummyEventHandler::class]), new SimpleArrayResolver($handlers) ); } public function testItCanHandle() { $this->eventBus->__invoke(new DummyEvent(), function () { return; }); $this->assertTrue(true); } }
PHPMessageBus/messagebus
tests/EventBus/EventBusMiddlewareTest.php
PHP
mit
1,196
<?php namespace Pingpp; /** * 结算账户对象 * Class SettleAccount * @package Pingpp */ class SettleAccount extends UserBase { public static function classUrlWithUserId($user_id) { return User::instanceUrlWithId($user_id) . '/settle_accounts'; } public static function instanceUrlWithSettleAccountId($user_id, $settle_account_id) { $user_id = Util\Util::utf8($user_id); $base = static::classUrlWithUserId($user_id); $settle_account_id = urlencode($settle_account_id); return $base . '/' . $settle_account_id; } /** * 创建结算账户对象 * @param $user_id * @param $params * @param $options * @return SettleAccount */ public static function create($user_id, $params, $options = null) { $url = static::classUrlWithUserId($user_id); return static::_directRequest('post', $url, $params, $options); } /** * 查询结算账户对象 * @param $user_id * @param $settle_account_id * @param null $params * @return SettleAccount */ public static function retrieve($user_id, $settle_account_id, $params = null, $options = null) { $url = static::instanceUrlWithSettleAccountId($user_id, $settle_account_id); return static::_directRequest('get', $url, $params, $options); } /** * 删除结算账户对象 * @param $user_id * @param $settle_account_id * @param $params * @return SettleAccount */ public static function delete($user_id, $settle_account_id) { $url = static::instanceUrlWithSettleAccountId($user_id, $settle_account_id); return static::_directRequest('delete', $url); } /** * 查询结算账户对象列表 * @param $user_id * @param null $params * @return SettleAccount */ public static function all($user_id, $params = null) { $url = static::classUrlWithUserId($user_id); return static::_directRequest('get', $url, $params); } /** * 更新结算账户对象(存管相关) * * @param string $user_id 用户 ID * @param string $settle_account_id 结算账户 ID * @param array $params 需要更新的数据 * @return SettleAccount */ public static function update($user_id, $settle_account_id, $params, $options = null) { $url = static::instanceUrlWithSettleAccountId($user_id, $settle_account_id); return static::_directRequest('put', $url, $params, $options); } /** * 更新手机号(存管相关) * * @param string $user_id 用户 ID * @param string $settle_account_id 结算账户 ID * @param array $params 手机号数据 * @return SettleAccount */ public static function updateMobile($user_id, $settle_account_id, $params, $options = null) { $url = static::instanceUrlWithSettleAccountId($user_id, $settle_account_id) . "/mobile"; return static::_directRequest('put', $url, $params, $options); } /** * 打款验证(存管相关) * * @param string $user_id 用户 ID * @param string $settle_account_id 结算账户 ID * @param array $params 验证数据 * @return SettleAccount */ public static function verify($user_id, $settle_account_id, $params, $options = null) { $url = static::instanceUrlWithSettleAccountId($user_id, $settle_account_id) . "/verify"; return static::_directRequest('post', $url, $params, $options); } }
PingPlusPlus/pingpp-php
lib/SettleAccount.php
PHP
mit
3,574
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for // license information. // // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. namespace Fixtures.Azure.AcceptanceTestsHead { using System; using System.Linq; using System.Collections.Generic; using System.Diagnostics; using System.Net; using System.Net.Http; using System.Net.Http.Headers; using System.Text; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; using Microsoft.Rest; using Microsoft.Rest.Serialization; using Newtonsoft.Json; using Microsoft.Rest.Azure; /// <summary> /// Test Infrastructure for AutoRest /// </summary> public partial class AutoRestHeadTestService : ServiceClient<AutoRestHeadTestService>, IAutoRestHeadTestService, IAzureClient { /// <summary> /// The base URI of the service. /// </summary> public Uri BaseUri { get; set; } /// <summary> /// Gets or sets json serialization settings. /// </summary> public JsonSerializerSettings SerializationSettings { get; private set; } /// <summary> /// Gets or sets json deserialization settings. /// </summary> public JsonSerializerSettings DeserializationSettings { get; private set; } /// <summary> /// Credentials needed for the client to connect to Azure. /// </summary> public ServiceClientCredentials Credentials { get; private set; } /// <summary> /// Gets or sets the preferred language for the response. /// </summary> public string AcceptLanguage { get; set; } /// <summary> /// Gets or sets the retry timeout in seconds for Long Running Operations. /// Default value is 30. /// </summary> public int? LongRunningOperationRetryTimeout { get; set; } /// <summary> /// When set to true a unique x-ms-client-request-id value is generated and /// included in each request. Default is true. /// </summary> public bool? GenerateClientRequestId { get; set; } /// <summary> /// Gets the IHttpSuccessOperations. /// </summary> public virtual IHttpSuccessOperations HttpSuccess { get; private set; } /// <summary> /// Initializes a new instance of the AutoRestHeadTestService class. /// </summary> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> protected AutoRestHeadTestService(params DelegatingHandler[] handlers) : base(handlers) { this.Initialize(); } /// <summary> /// Initializes a new instance of the AutoRestHeadTestService class. /// </summary> /// <param name='rootHandler'> /// Optional. The http client handler used to handle http transport. /// </param> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> protected AutoRestHeadTestService(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) { this.Initialize(); } /// <summary> /// Initializes a new instance of the AutoRestHeadTestService class. /// </summary> /// <param name='baseUri'> /// Optional. The base URI of the service. /// </param> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> /// <exception cref="ArgumentNullException"> /// Thrown when a required parameter is null /// </exception> protected AutoRestHeadTestService(Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) { if (baseUri == null) { throw new ArgumentNullException("baseUri"); } this.BaseUri = baseUri; } /// <summary> /// Initializes a new instance of the AutoRestHeadTestService class. /// </summary> /// <param name='baseUri'> /// Optional. The base URI of the service. /// </param> /// <param name='rootHandler'> /// Optional. The http client handler used to handle http transport. /// </param> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> /// <exception cref="ArgumentNullException"> /// Thrown when a required parameter is null /// </exception> protected AutoRestHeadTestService(Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (baseUri == null) { throw new ArgumentNullException("baseUri"); } this.BaseUri = baseUri; } /// <summary> /// Initializes a new instance of the AutoRestHeadTestService class. /// </summary> /// <param name='credentials'> /// Required. Credentials needed for the client to connect to Azure. /// </param> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> /// <exception cref="ArgumentNullException"> /// Thrown when a required parameter is null /// </exception> public AutoRestHeadTestService(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { if (credentials == null) { throw new ArgumentNullException("credentials"); } this.Credentials = credentials; if (this.Credentials != null) { this.Credentials.InitializeServiceClient(this); } } /// <summary> /// Initializes a new instance of the AutoRestHeadTestService class. /// </summary> /// <param name='credentials'> /// Required. Credentials needed for the client to connect to Azure. /// </param> /// <param name='rootHandler'> /// Optional. The http client handler used to handle http transport. /// </param> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> /// <exception cref="ArgumentNullException"> /// Thrown when a required parameter is null /// </exception> public AutoRestHeadTestService(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (credentials == null) { throw new ArgumentNullException("credentials"); } this.Credentials = credentials; if (this.Credentials != null) { this.Credentials.InitializeServiceClient(this); } } /// <summary> /// Initializes a new instance of the AutoRestHeadTestService class. /// </summary> /// <param name='baseUri'> /// Optional. The base URI of the service. /// </param> /// <param name='credentials'> /// Required. Credentials needed for the client to connect to Azure. /// </param> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> /// <exception cref="ArgumentNullException"> /// Thrown when a required parameter is null /// </exception> public AutoRestHeadTestService(Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) { if (baseUri == null) { throw new ArgumentNullException("baseUri"); } if (credentials == null) { throw new ArgumentNullException("credentials"); } this.BaseUri = baseUri; this.Credentials = credentials; if (this.Credentials != null) { this.Credentials.InitializeServiceClient(this); } } /// <summary> /// Initializes a new instance of the AutoRestHeadTestService class. /// </summary> /// <param name='baseUri'> /// Optional. The base URI of the service. /// </param> /// <param name='credentials'> /// Required. Credentials needed for the client to connect to Azure. /// </param> /// <param name='rootHandler'> /// Optional. The http client handler used to handle http transport. /// </param> /// <param name='handlers'> /// Optional. The delegating handlers to add to the http client pipeline. /// </param> /// <exception cref="ArgumentNullException"> /// Thrown when a required parameter is null /// </exception> public AutoRestHeadTestService(Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) { if (baseUri == null) { throw new ArgumentNullException("baseUri"); } if (credentials == null) { throw new ArgumentNullException("credentials"); } this.BaseUri = baseUri; this.Credentials = credentials; if (this.Credentials != null) { this.Credentials.InitializeServiceClient(this); } } /// <summary> /// An optional partial-method to perform custom initialization. /// </summary> partial void CustomInitialize(); /// <summary> /// Initializes client properties. /// </summary> private void Initialize() { this.HttpSuccess = new HttpSuccessOperations(this); this.BaseUri = new Uri("http://localhost"); this.AcceptLanguage = "en-US"; this.LongRunningOperationRetryTimeout = 30; this.GenerateClientRequestId = true; SerializationSettings = new JsonSerializerSettings { Formatting = Formatting.Indented, DateFormatHandling = DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = DateTimeZoneHandling.Utc, NullValueHandling = NullValueHandling.Ignore, ReferenceLoopHandling = ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List<JsonConverter> { new Iso8601TimeSpanConverter() } }; DeserializationSettings = new JsonSerializerSettings { DateFormatHandling = DateFormatHandling.IsoDateFormat, DateTimeZoneHandling = DateTimeZoneHandling.Utc, NullValueHandling = NullValueHandling.Ignore, ReferenceLoopHandling = ReferenceLoopHandling.Serialize, ContractResolver = new ReadOnlyJsonContractResolver(), Converters = new List<JsonConverter> { new Iso8601TimeSpanConverter() } }; CustomInitialize(); DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); } } }
John-Hart/autorest
src/generator/AutoRest.CSharp.Azure.Tests/Expected/AcceptanceTests/Head/AutoRestHeadTestService.cs
C#
mit
12,059
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; var angular2_1 = require("angular2/angular2"); var GdgHeader = (function () { function GdgHeader() { } GdgHeader = __decorate([ angular2_1.Component({ selector: "gdg-header", properties: ["title"] }), angular2_1.View({ templateUrl: "./app/components/header/header.html" }), __metadata('design:paramtypes', []) ], GdgHeader); return GdgHeader; })(); exports.GdgHeader = GdgHeader;
GDGAracaju/gdg.ninjas
src/app/components/header/header.js
JavaScript
mit
1,252
using UnityEngine; public interface IDamageable { void TakeHit(float damage, Vector3 hitPoint, Vector3 hitDirection); void TakeDamage(float damage); }
daltonbr/TopDownShooter
Assets/Scripts/IDamageable.cs
C#
mit
161
FROM node:5.2.0-slim MAINTAINER px3l@tuta.io RUN \ curl -sS http://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \ echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \ apt-get update && \ apt-get install -y yarn && \ apt-get autoremove -y && \ apt-get clean all
px3l/yarn-slim-base
Dockerfile
Dockerfile
mit
324
--- categories: - ephemera - type date: 2016-08-21T20:29:20Z plugin: lightense tags: - type title: type 20160821 url: /2016/08/21/type-20160821/ --- ![type](/images/type20160821.jpg "type")
stephenscott/sscott2
site/content/posts/2016-08-21-type-20160821.md
Markdown
mit
192
module Houdini module PostbackProcessor EnvironmentMismatchError = Class.new RuntimeError APIKeyMistmatchError = Class.new RuntimeError def self.process(class_name, model_id, params) task_manager = params.delete(:task_manager) || TaskManager if params[:environment] != Houdini.environment raise EnvironmentMismatchError, "Environment received does not match Houdini.environment" end if params[:api_key] != Houdini.api_key raise APIKeyMistmatchError, "API key received doesn't match our API key." end task_manager.process class_name, model_id, params[:blueprint], params[:output], params[:verbose_output] end end end
chrisconley/houdini-gem
lib/houdini/postback_processor.rb
Ruby
mit
696
<?php namespace AppBundle\Entity; use PUGX\MultiUserBundle\Validator\Constraints\UniqueEntity; use Symfony\Component\Validator\Constraints as Assert; use Vich\UploaderBundle\Mapping\Annotation as Vich; use Doctrine\Common\Collections\ArrayCollection; use Symfony\Component\HttpFoundation\File\File; use Doctrine\ORM\Mapping as ORM; use DateTime; /** * @ORM\Entity * @ORM\Table(name="user_employer") * @ORM\Entity(repositoryClass="AppBundle\Repository\UserEmployerRepository") * @UniqueEntity(fields = "username", targetClass = "AppBundle\Entity\User", message="fos_user.username.already_used") * @UniqueEntity(fields = "email", targetClass = "AppBundle\Entity\User", message="Vartotojas su tokiu adresu jau yra") * @Vich\Uploadable */ class UserEmployer extends User { /** * @ORM\Id * @ORM\Column(type="integer") * @ORM\GeneratedValue(strategy="AUTO") */ protected $id; /** * @ORM\Column(type="string") * @Assert\NotBlank(message = "Įrašykite įmonės pavadinimą") * @Assert\Length(max=55) */ private $title; /** * @ORM\Column(type="text", nullable=true) */ private $description; /** * Many UserEmployer has One Sector. * @ORM\ManyToOne(targetEntity="Sector") * @ORM\JoinColumn(name="sector", referencedColumnName="id") */ private $sector; /** * @ORM\Column(type="string", nullable=true) * @Assert\Length(max=12) */ private $phone; /** * NOTE: This is not a mapped field of entity metadata, just a simple property. * @Vich\UploadableField(mapping="employer_logo", fileNameProperty="photo") * @var File * * @Assert\Image( * maxSize = "1660Ki" * ) */ private $imageFile; /** * @ORM\Column(type="string", nullable=true) */ private $photo; /** * @ORM\Column(type="string", nullable=true) * @Assert\Length(max=55) */ private $city; /** * @ORM\Column(type="datetime", nullable=true) * * @var \DateTime */ private $updatedAt; /** * One UserEmployer has Many JobAd. * @ORM\OneToMany(targetEntity="JobAd", mappedBy="employer") * * @var ArrayCollection|JobAd[] */ private $jobAds; /** * @ORM\Column(name="legal_code", type="string") * @Assert\NotBlank() * @Assert\Length( * min=7, * max=9 * ) */ private $legalEntitysCode; public function __construct() { parent::__construct(); $this->jobAds = new ArrayCollection(); } // *** Getters and setters *** /** * @return int */ public function getId() { return $this->id; } /** * @return string */ public function getTitle() { return $this->title; } /** * @param string $title * @return UserEmployer */ public function setTitle($title) { $this->title = $title; return $this; } /** * @return string */ public function getDescription() { return $this->description; } /** * @param string $description * @return UserEmployer */ public function setDescription($description) { $this->description = $description; return $this; } /** * @return string */ public function getSector() { return $this->sector; } /** * @param string $sector * @return UserEmployer */ public function setSector($sector) { $this->sector = $sector; return $this; } /** * @return string */ public function getPhone() { return $this->phone; } /** * @param string $phone * @return UserEmployer */ public function setPhone($phone) { $this->phone = $phone; return $this; } /** * @return string */ public function getPhoto() { return $this->photo; } /** * @param string $photo * @return UserEmployer */ public function setPhoto($photo) { $this->photo = $photo; return $this; } /** * @return string */ public function getCity() { return $this->city; } /** * @param string $city * @return UserEmployer */ public function setCity($city) { $this->city = $city; return $this; } // File upload /** * @param File|\Symfony\Component\HttpFoundation\File\UploadedFile $image * * @return UserEmployer */ public function setImageFile(File $image = null) { $this->imageFile = $image; if ($image) { // It is required that at least one field changes if you are using doctrine // otherwise the event listeners won't be called and the file is lost $this->updatedAt = new \DateTimeImmutable(); } return $this; } /** * @return File|null */ public function getImageFile() { return $this->imageFile; } /** * @return DateTime */ public function getUpdatedAt() { return $this->updatedAt; } /** * @param DateTime $updatedAt * @return UserEmployer */ public function setUpdatedAt($updatedAt) { $this->updatedAt = $updatedAt; return $this; } /** * @return ArrayCollection */ public function getJobAd() { return $this->jobAds; } /** * @param JobAd $jobAd * @return UserEmployer */ public function setJobAd($jobAd) { $this->jobAds = $jobAd; return $this; } /** * @param string $legalEntitysCode * @return UserEmployer */ public function setlegalEntitysCode($legalEntitysCode) { $this->legalEntitysCode = $legalEntitysCode; return $this; } /** * @return string */ public function getlegalEntitysCode() { return $this->legalEntitysCode; } }
arvyjaar/cv
src/AppBundle/Entity/UserEmployer.php
PHP
mit
6,131
// // CustomSliderTheme.h // UIWork // // Created by Jared Carlson on 11/10/10. // Copyright 2010 GoToTheBoard. All rights reserved. // #import <UIKit/UIKit.h> typedef enum CustomSliderEnumerator { kCSThemeNone = 0, kCSThemeBlack, kCSThemeWhite, } CustomSliderEnumerator; @interface CustomSliderTheme : NSObject { UIColor * lineColor; UIColor * textColor; UIColor * borderColor; UIColor * indicatorColor; NSArray * gradientColors; UIColor * backgroundColor; } @property(nonatomic,retain) UIColor * lineColor; @property(nonatomic,retain) UIColor * textColor; @property(nonatomic,retain) UIColor * borderColor; @property(nonatomic,retain) UIColor * indicatorColor; @property(nonatomic,retain) NSArray * gradientColors; @property(nonatomic,retain) UIColor * backgroundColor; + (CustomSliderTheme*) buildTheme:(CustomSliderEnumerator)enumerator; @end
jcarlson23/sliderule
Classes/CustomSliderTheme.h
C
mit
872
libpara ======= library for parallel shell programming
dominikr/libpara
README.md
Markdown
mit
56
--- layout: post title: Testing 1-2 --- Hot mic? Hot mic. Somewhere along the line this just kept going. Where to? This is down below the break.
bentuckian/bentuckian.github.io
_posts/2014-3-3-Hello-World.md
Markdown
mit
148