answer stringlengths 15 1.25M |
|---|
'use strict';
describe('Relations', function() {
var Todo = client.backbone.LocalTodo;
var User = client.backbone.LocalUser;
Todo.Collection.prototype.comparator = 'created';
var user, collection;
var ids = {};
var json;
before(function reset(done) {
localStorage.clear();
client.models.LocalTodo.destroyAll(function() {
client.models.LocalUser.destroyAll(done);
});
});
it('should save Backbone.Model instance - user', function(done) {
user = new User({ id: 1, name: 'fred' });
user.todos.should.be.instanceof(Todo.Collection);
user.save().done(function() {
user.toJSON().should.eql({name: 'fred', id: 1});
done();
});
});
it('should save Backbone.Model instance - orphan todo', function(done) {
var todo = new Todo({ title: 'Orphan' }); // for verification
todo.save().done(function() { done(); });
});
describe('multiple', function() {
it('should return a new collection for a relation', function() {
var todos = user.todos;
todos.should.be.instanceof(Todo.Collection);
todos.length.should.equal(0);
todos.model.should.equal(Todo);
todos.instance.should.equal(user);
todos.relation.name.should.equal('todos');
todos.rel.should.be.a.function;
todos.resolved.should.be.false;
collection = todos;
});
it('should resolve a collection for a relation - callback', function(done) {
user.todos.resolve(function(err, todos) {
should.not.exist(err);
todos.should.equal(collection); // cached
todos.should.be.instanceof(Todo.Collection);
todos.model.should.equal(Todo);
todos.length.should.equal(0);
done();
});
});
it('should resolve a collection for a relation - promise', function(done) {
user.todos.reset();
user.todos.resolved.should.be.false;
user.todos.resolve().done(function(todos) {
todos.should.equal(collection); // cached
todos.should.be.instanceof(Todo.Collection);
todos.model.should.equal(Todo);
todos.length.should.equal(0);
todos.resolved.should.be.true;
done();
});
});
it('should resolve a collection for a relation - fetch', function(done) {
user.todos.fetch().done(function(todos) {
todos.should.equal(collection); // cached
todos.should.be.instanceof(Todo.Collection);
todos.model.should.equal(Todo);
todos.length.should.equal(0);
todos.resolved.should.be.true;
done();
});
});
it('should implement `build` on a relation collection', function() {
var todos = user.todos;
todos.should.equal(collection); // cached
todos.should.be.instanceof(Todo.Collection);
todos.build.should.be.a.function;
var todo = todos.build({ title: 'Todo 1' });
todo.should.be.instanceof(Todo);
should.not.exist(todo.id);
todo.get('userId').should.equal(user.id);
todo.get('title').should.equal('Todo 1');
todo.get('completed').should.equal(false);
String(todo.get('created')).should.match(/^\d{13,}$/);
todos.length.should.equal(0); // not inserted (yet)
todos.resolved.should.be.true; // not added
});
it('should implement `create` on a relation collection - wait/promise', function(done) {
user.todos.create({ title: 'Todo 1' }, { wait: true }).done(function(todo) {
ids.todo1 = todo.id;
todo.should.be.instanceof(Todo);
todo.isNew().should.be.false;
todo.id.should.match(/^t-(\d+)$/);
todo.get('userId').should.equal(user.id);
todo.get('title').should.equal('Todo 1');
todo.get('completed').should.equal(false);
String(todo.get('created')).should.match(/^\d{13,}$/);
user.todos.length.should.equal(1);
user.todos.contains(todo).should.be.true;
user.todos.resolved.should.be.false;
done();
});
});
it('should implement `create` on a relation collection - callback', function(done) {
user.todos.create({ title: 'Todo 2' }, { success: function(todo) {
todo.should.be.instanceof(Todo);
todo.isNew().should.be.false;
todo.id.should.match(/^t-(\d+)$/);
todo.get('userId').should.equal(user.id);
todo.get('title').should.equal('Todo 2');
todo.get('completed').should.equal(false);
String(todo.get('created')).should.match(/^\d{13,}$/);
user.todos.length.should.equal(2);
user.todos.contains(todo).should.be.true;
user.todos.resolved.should.be.false;
done();
} });
});
it('should fetch a relation collection - promise', function(done) {
User.findById(user.id).done(function(u) {
user = u;
user.todos.fetch().done(function(todos) {
collection = todos;
todos.should.be.instanceof(Todo.Collection);
todos.model.should.equal(Todo);
todos.length.should.equal(2);
todos.at(0).get('title').should.equal('Todo 1');
todos.at(1).get('title').should.equal('Todo 2');
todos.resolved.should.be.true;
done();
});
});
});
it('should include relations in toJSON - include: true', function() {
json = user.toJSON({ include: true });
json.name.should.equal('fred');
json.todos.should.be.an.array;
json.todos.should.have.length(2);
json.todos[0].title.should.equal('Todo 1');
json.todos[1].title.should.equal('Todo 2');
});
it('should populate relations - round-trip', function() {
var fred = new User(json);
fred.toJSON({ include: true }).should.eql(json);
});
it('should update a related item', function(done) {
var todo = user.todos.at(1);
todo.get('title').should.equal('Todo 2');
todo.save({ completed: true }).done(function(resp) {
todo.get('completed').should.be.true;
todo.dao.completed.should.be.true;
done();
});
});
it('should implement `findOne` on a relation collection - callback', function(done) {
user.todos.findOne({ where: { completed: true } }).done(function(todo) {
todo.should.be.instanceof(Todo);
todo.get('title').should.equal('Todo 2');
done();
});
});
it('should query a relation collection - promise', function(done) {
user.todos.query({ where: { completed: true } }).done(function(todos) {
todos.should.not.equal(collection); // new, independent collection
todos.should.not.equal(user.todos);
todos.instance.should.equal(user);
todos.relation.name.should.equal('todos');
todos.should.be.instanceof(Todo.Collection);
todos.model.should.equal(Todo);
todos.length.should.equal(1);
todos.at(0).get('title').should.equal('Todo 2');
done();
});
});
it('should reset and fetch relation collection - promise', function(done) {
user.todos.fetch().done(function(todos) {
todos.should.equal(collection); // still cached
todos.should.equal(user.todos);
todos.should.be.instanceof(Todo.Collection);
todos.model.should.equal(Todo);
todos.length.should.equal(2);
todos.at(0).get('title').should.equal('Todo 1');
todos.at(1).get('title').should.equal('Todo 2');
done();
});
});
it('should fetch and order relation collection - callback', function(done) {
user.todos.query({ order: 'title DESC' }).done(function(todos) {
todos.should.not.equal(collection); // new, independent collection
todos.should.not.equal(user.todos);
todos.should.be.instanceof(Todo.Collection);
todos.model.should.equal(Todo);
todos.length.should.equal(2);
should.not.exist(todos.comparator);
todos.at(0).get('title').should.equal('Todo 2');
todos.at(1).get('title').should.equal('Todo 1');
done();
});
});
it('should allow findById to include related items', function(done) {
User.findById(user.id, { include: 'todos' }).done(function(user) {
var json = user.toJSON({ include: true });
json.name.should.equal('fred');
json.todos.should.be.an.array;
json.todos.should.have.length(2);
json.todos[0].title.should.equal('Todo 1');
json.todos[1].title.should.equal('Todo 2');
user.todos.at(0).get('title').should.equal('Todo 1');
user.todos.at(1).get('title').should.equal('Todo 2');
done();
});
});
it('should implement findOne - inclusion', function(done) {
Todo.findOne({ where: { completed: true }, include: 'user' }).done(function(todo) {
todo.should.be.instanceof(Todo);
todo.get('title').should.equal('Todo 2');
json = todo.toJSON({ include: true });
json.title.should.equal('Todo 2');
json.user.should.eql({ id: user.id, name: 'fred' });
done();
});
});
});
describe('singular', function() {
var todo, cached;
it('should return a proxy for a relation - promise', function(done) {
Todo.findById(ids.todo1, function(err, t) {
todo = t;
todo.user.model.should.equal(User);
todo.user.instance.should.equal(todo);
todo.user.relation.name.should.equal('user');
todo.user.rel.should.be.a.function;
todo.user.resolved.should.be.false;
done();
});
});
it('should resolve a relation - promise', function(done) {
todo.user.fetch().done(function(user) {
cached = user;
user.should.be.instanceof(User);
user.get('name').should.equal('fred');
done();
});
});
it('should resolve a relation from cache - callback cached', function(done) {
todo.user.resolve(function(err, user) {
user.should.equal(cached); // cached
should.not.exist(err);
user.should.be.instanceof(User);
user.get('name').should.equal('fred');
done();
});
});
it('should resolve a relation - reset', function(done) {
todo.user.resolve({ reset: true }).done(function(user) {
user.should.not.equal(cached); // not cached
cached = user;
user.should.be.instanceof(User);
user.get('name').should.equal('fred');
done();
});
});
it('should include a relation in JSON', function(done) {
todo.user.fetch().done(function(user) {
user.should.equal(cached); // cached
var json = todo.toJSON({ include: true });
json.title.should.equal('Todo 1');
json.user.should.eql({ id: user.id, name: 'fred' });
done();
});
});
it('should allow findById to include related items', function(done) {
Todo.findById(todo.id, { include: 'user' }).done(function(todo) {
var json = todo.toJSON({ include: ['user'] });
json.title.should.equal('Todo 1');
json.user.should.eql({ id: user.id, name: 'fred' });
done();
});
});
it('should implement `build` on a relation', function() {
var user = new Todo().user.build({ name: 'Wilma' });
user.isNew().should.be.true;
user.should.be.instanceof(User);
});
it('should implement `create` on a relation - wait/promise', function(done) {
todo = new Todo({ title: 'Some task' });
todo.save().done(function(todo) {
todo.isNew().should.be.false;
todo.user.create({ name: 'Wilma' }, { wait: true }).done(function(user) {
user.isNew().should.be.false;
user.should.be.instanceof(User);
user.id.should.not.be.empty;
user.get('name').should.equal('Wilma');
ids.user = user.id;
done();
});
});
});
it('should have created a related entry - verify', function(done) {
User.findById(ids.user, function(err, user) {
user.should.be.instanceof(User);
user.get('name').should.equal('Wilma');
user.todos.fetch().done(function(todos) {
todos.should.be.instanceof(Todo.Collection);
todos.length.should.equal(1);
todos.pluck('id').should.eql([todo.id]);
todos.pluck('title').should.eql(['Some task']);
done();
});
});
});
});
}); |
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Net.Http.Headers;
using System.Web.Http.Description;
using Aglaia.API.Areas.HelpPage.ModelDescriptions;
namespace Aglaia.API.Areas.HelpPage.Models
{
<summary>
The model that represents an API displayed on the help page.
</summary>
public class HelpPageApiModel
{
<summary>
Initializes a new instance of the <see cref="HelpPageApiModel"/> class.
</summary>
public HelpPageApiModel()
{
UriParameters = new Collection<<API key>>();
SampleRequests = new Dictionary<<API key>, object>();
SampleResponses = new Dictionary<<API key>, object>();
ErrorMessages = new Collection<string>();
}
<summary>
Gets or sets the <see cref="ApiDescription"/> that describes the API.
</summary>
public ApiDescription ApiDescription { get; set; }
<summary>
Gets or sets the <see cref="<API key>"/> collection that describes the URI parameters for the API.
</summary>
public Collection<<API key>> UriParameters { get; private set; }
<summary>
Gets or sets the documentation for the request.
</summary>
public string <API key> { get; set; }
<summary>
Gets or sets the <see cref="ModelDescription"/> that describes the request body.
</summary>
public ModelDescription <API key> { get; set; }
<summary>
Gets the request body parameter descriptions.
</summary>
public IList<<API key>> <API key>
{
get
{
return <API key>(<API key>);
}
}
<summary>
Gets or sets the <see cref="ModelDescription"/> that describes the resource.
</summary>
public ModelDescription ResourceDescription { get; set; }
<summary>
Gets the resource property descriptions.
</summary>
public IList<<API key>> ResourceProperties
{
get
{
return <API key>(ResourceDescription);
}
}
<summary>
Gets the sample requests associated with the API.
</summary>
public IDictionary<<API key>, object> SampleRequests { get; private set; }
<summary>
Gets the sample responses associated with the API.
</summary>
public IDictionary<<API key>, object> SampleResponses { get; private set; }
<summary>
Gets the error messages associated with this model.
</summary>
public Collection<string> ErrorMessages { get; private set; }
private static IList<<API key>> <API key>(ModelDescription modelDescription)
{
<API key> <API key> = modelDescription as <API key>;
if (<API key> != null)
{
return <API key>.Properties;
}
<API key> <API key> = modelDescription as <API key>;
if (<API key> != null)
{
<API key> = <API key>.ElementDescription as <API key>;
if (<API key> != null)
{
return <API key>.Properties;
}
}
return null;
}
}
} |
module Subscribem
class DashboardController < Subscribem::<API key>
end
end |
<?xml version="1.0" ?><!DOCTYPE TS><TS language="fi" version="2.0">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name>AboutDialog</name>
<message>
<location filename="../forms/aboutdialog.ui" line="14"/>
<source>About Bitcoin</source>
<translation>Tietoa Bitcoinista</translation>
</message>
<message>
<location filename="../forms/aboutdialog.ui" line="53"/>
<source><b>Bitcoin</b> version</source>
<translation><b>Bitcoin</b> versio</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:
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http:
<translation>Copyright © 2009-2012 Bitcoin Developers
This is experimental software.
Distributed under the MIT/X11 software license, see the accompanying file license.txt or http:
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http:
</message>
</context>
<context>
<name>AddressBookPage</name>
<message>
<location filename="../forms/addressbookpage.ui" line="14"/>
<source>Address Book</source>
<translation>Osoitekirja</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>Nämä ovat sinun Bitcoin-osoitteesi suoritusten vastaanottamiseen. Voit halutessasi antaa kullekin lähettäjälle eri osoitteen, jotta voit seurata kuka sinulle maksaa.</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="36"/>
<source>Double-click to edit address or label</source>
<translation>Kaksoisnapauta muokataksesi osoitetta tai nimeä</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="63"/>
<source>Create a new address</source>
<translation>Luo uusi osoite</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="77"/>
<source>Copy the currently selected address to the system clipboard</source>
<translation>Kopioi valittu osoite leikepöydälle</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="66"/>
<source>&New Address</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="80"/>
<source>&Copy Address</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="91"/>
<source>Show &QR Code</source>
<translation>Näytä &QR-koodi</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="102"/>
<source>Sign a message to prove you own this address</source>
<translation>Allekirjoita viesti millä todistat omistavasi tämän osoitteen</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="105"/>
<source>&Sign Message</source>
<translation>&Allekirjoita viesti</translation>
</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>Poista valittuna oleva osoite listasta. Vain lähettämiseen käytettäviä osoitteita voi poistaa.</translation>
</message>
<message>
<location filename="../forms/addressbookpage.ui" line="119"/>
<source>&Delete</source>
<translation>&Poista</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="63"/>
<source>Copy &Label</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../addressbookpage.cpp" line="65"/>
<source>&Edit</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../addressbookpage.cpp" line="292"/>
<source>Export Address Book Data</source>
<translation>Vie osoitekirja</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="293"/>
<source>Comma separated file (*.csv)</source>
<translation>Comma separated file (*.csv)</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="306"/>
<source>Error exporting</source>
<translation>Virhe viedessä osoitekirjaa</translation>
</message>
<message>
<location filename="../addressbookpage.cpp" line="306"/>
<source>Could not write to file %1.</source>
<translation>Ei voida kirjoittaa tiedostoon %1.</translation>
</message>
</context>
<context>
<name>AddressTableModel</name>
<message>
<location filename="../addresstablemodel.cpp" line="142"/>
<source>Label</source>
<translation>Nimi</translation>
</message>
<message>
<location filename="../addresstablemodel.cpp" line="142"/>
<source>Address</source>
<translation>Osoite</translation>
</message>
<message>
<location filename="../addresstablemodel.cpp" line="178"/>
<source>(no label)</source>
<translation>(ei nimeä)</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>Anna tunnuslause</translation>
</message>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="61"/>
<source>New passphrase</source>
<translation>Uusi tunnuslause</translation>
</message>
<message>
<location filename="../forms/askpassphrasedialog.ui" line="75"/>
<source>Repeat new passphrase</source>
<translation>Toista uusi tunnuslause</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="33"/>
<source>Enter the new passphrase to the wallet.<br/>Please use a passphrase of <b>10 or more random characters</b>, or <b>eight or more words</b>.</source>
<translation>Anna lompakolle uusi tunnuslause.<br/>Käytä tunnuslausetta, jossa on ainakin <b>10 satunnaista mekkiä</b> tai <b>kahdeksan sanaa</b>.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="34"/>
<source>Encrypt wallet</source>
<translation>Salaa lompakko</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="37"/>
<source>This operation needs your wallet passphrase to unlock the wallet.</source>
<translation>Tätä toimintoa varten sinun täytyy antaa lompakon tunnuslause sen avaamiseksi.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="42"/>
<source>Unlock wallet</source>
<translation>Avaa lompakko</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="45"/>
<source>This operation needs your wallet passphrase to decrypt the wallet.</source>
<translation>Tätä toimintoa varten sinun täytyy antaa lompakon tunnuslause salauksen purkuun.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="50"/>
<source>Decrypt wallet</source>
<translation>Pura lompakon salaus</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="53"/>
<source>Change passphrase</source>
<translation>Vaihda tunnuslause</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="54"/>
<source>Enter the old and new passphrase to the wallet.</source>
<translation>Anna vanha ja uusi tunnuslause.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="100"/>
<source>Confirm wallet encryption</source>
<translation>Hyväksy lompakon salaus</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="101"/>
<source>WARNING: If you encrypt your wallet and lose your passphrase, you will <b>LOSE ALL OF YOUR GOODBYECOINS</b>!
Are you sure you wish to encrypt your wallet?</source>
<translation>VAROITUS: Mikäli salaat lompakkosi ja unohdat tunnuslauseen, <b>MENETÄT LOMPAKON KOKO SISÄLLÖN</b>!
Tahdotko varmasti salata lompakon?</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="110"/>
<location filename="../askpassphrasedialog.cpp" line="159"/>
<source>Wallet encrypted</source>
<translation>Lompakko salattu</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>Bitcoin sulkeutuu lopettaakseen salausprosessin. Muista, että salattu lompakko ei täysin suojaa sitä haittaohjelmien aiheuttamilta varkauksilta.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="207"/>
<location filename="../askpassphrasedialog.cpp" line="231"/>
<source>Warning: The Caps Lock key is on.</source>
<translation>Varoitus: Caps Lock on päällä.</translation>
</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>Lompakon salaus epäonnistui</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>Lompakon salaaminen epäonnistui sisäisen virheen vuoksi. Lompakkoa ei salattu.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="124"/>
<location filename="../askpassphrasedialog.cpp" line="172"/>
<source>The supplied passphrases do not match.</source>
<translation>Annetut tunnuslauseet eivät täsmää.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="135"/>
<source>Wallet unlock failed</source>
<translation>Lompakon avaaminen epäonnistui.</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>Annettu tunnuslause oli väärä.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="146"/>
<source>Wallet decryption failed</source>
<translation>Lompakon salauksen purku epäonnistui.</translation>
</message>
<message>
<location filename="../askpassphrasedialog.cpp" line="160"/>
<source>Wallet passphrase was succesfully changed.</source>
<translation>Lompakon tunnuslause on vaihdettu.</translation>
</message>
</context>
<context>
<name>BitcoinGUI</name>
<message>
<location filename="../bitcoingui.cpp" line="73"/>
<source>Bitcoin Wallet</source>
<translation>Bitcoin-lompakko</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="215"/>
<source>Sign &message...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoingui.cpp" line="248"/>
<source>Show/Hide &Bitcoin</source>
<translation>Näytä/Kätke &Bitcoin</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="515"/>
<source>Synchronizing with network...</source>
<translation>Synkronoidaan verkon kanssa...</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="185"/>
<source>&Overview</source>
<translation>&Yleisnäkymä</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="186"/>
<source>Show general overview of wallet</source>
<translation>Näyttää kokonaiskatsauksen lompakon tilanteesta</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="191"/>
<source>&Transactions</source>
<translation>&Rahansiirrot</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="192"/>
<source>Browse transaction history</source>
<translation>Selaa <API key></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="197"/>
<source>&Address Book</source>
<translation>&Osoitekirja</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="198"/>
<source>Edit the list of stored addresses and labels</source>
<translation>Muokkaa tallennettujen nimien ja osoitteiden listaa</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="203"/>
<source>&Receive coins</source>
<translation>&Vastaanota Bitcoineja</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="204"/>
<source>Show the list of addresses for receiving payments</source>
<translation>Näytä Bitcoinien vastaanottamiseen käytetyt osoitteet</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="209"/>
<source>&Send coins</source>
<translation>&Lähetä Bitcoineja</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="216"/>
<source>Prove you control an address</source>
<translation>Todista että hallitset osoitetta</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="235"/>
<source>E&xit</source>
<translation>L&opeta</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="236"/>
<source>Quit application</source>
<translation>Lopeta ohjelma</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="239"/>
<source>&About %1</source>
<translation>&Tietoja %1</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="240"/>
<source>Show information about Bitcoin</source>
<translation>Näytä tietoa Bitcoin-projektista</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="242"/>
<source>About &Qt</source>
<translation>Tietoja &Qt</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="243"/>
<source>Show information about Qt</source>
<translation>Näytä tietoja QT:ta</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="245"/>
<source>&Options...</source>
<translation>&Asetukset...</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="252"/>
<source>&Encrypt Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoingui.cpp" line="255"/>
<source>&Backup Wallet...</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoingui.cpp" line="257"/>
<source>&Change Passphrase...</source>
<translation type="unfinished"/>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="517"/>
<source>~%n block(s) remaining</source>
<translation><numerusform>~%n lohko jäljellä</numerusform><numerusform>~%n lohkoja jäljellä</numerusform></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="528"/>
<source>Downloaded %1 of %2 blocks of transaction history (%3% done).</source>
<translation>Ladattu %1 / %2 lohkoista <API key> (%3% suoritettu).</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="250"/>
<source>&Export...</source>
<translation>&Vie...</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>Näytä tai piillota Bitcoin-ikkuna</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="251"/>
<source>Export the data in the current tab to a file</source>
<translation>Vie auki olevan välilehden tiedot tiedostoon</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="253"/>
<source>Encrypt or decrypt wallet</source>
<translation>Salaa tai poista salaus lompakosta</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="256"/>
<source>Backup wallet to another location</source>
<translation>Varmuuskopioi lompakko toiseen sijaintiin</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="258"/>
<source>Change the passphrase used for wallet encryption</source>
<translation>Vaihda lompakon salaukseen käytettävä tunnuslause</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="259"/>
<source>&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>&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>&File</source>
<translation>&Tiedosto</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="296"/>
<source>&Settings</source>
<translation>&Asetukset</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="302"/>
<source>&Help</source>
<translation>&Apua</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="311"/>
<source>Tabs toolbar</source>
<translation>Välilehtipalkki</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="322"/>
<source>Actions toolbar</source>
<translation>Toimintopalkki</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="334"/>
<location filename="../bitcoingui.cpp" line="343"/>
<source>[testnet]</source>
<translation>[testnet]</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="343"/>
<location filename="../bitcoingui.cpp" line="399"/>
<source>Bitcoin client</source>
<translation>Bitcoin-asiakas</translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="492"/>
<source>%n active connection(s) to Bitcoin network</source>
<translation><numerusform>%n aktiivinen yhteys Bitcoin-verkkoon</numerusform><numerusform>%n aktiivista yhteyttä Bitcoin-verkkoon</numerusform></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="540"/>
<source>Downloaded %1 blocks of transaction history.</source>
<translation>Ladattu %1 lohkoa rahansiirron historiasta.</translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="555"/>
<source>%n second(s) ago</source>
<translation><numerusform>%n sekunti sitten</numerusform><numerusform>%n sekuntia sitten</numerusform></translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="559"/>
<source>%n minute(s) ago</source>
<translation><numerusform>%n minuutti sitten</numerusform><numerusform>%n minuuttia sitten</numerusform></translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="563"/>
<source>%n hour(s) ago</source>
<translation><numerusform>%n tunti sitten</numerusform><numerusform>%n tuntia sitten</numerusform></translation>
</message>
<message numerus="yes">
<location filename="../bitcoingui.cpp" line="567"/>
<source>%n day(s) ago</source>
<translation><numerusform>%n päivä sitten</numerusform><numerusform>%n päivää sitten</numerusform></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="573"/>
<source>Up to date</source>
<translation>Rahansiirtohistoria on ajan tasalla</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="580"/>
<source>Catching up...</source>
<translation>Kurotaan kiinni...</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="590"/>
<source>Last received block was generated %1.</source>
<translation>Viimeisin vastaanotettu lohko tuotettu %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>Tämä rahansiirto ylittää kokorajoituksen. Voit siitä huolimatta lähettää sen %1 siirtopalkkion mikä menee solmuille jotka käsittelevät rahansiirtosi tämä auttaa myös verkostoa. Haluatko maksaa siirtopalkkion? </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>Lähetetyt rahansiirrot</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="682"/>
<source>Incoming transaction</source>
<translation>Saapuva rahansiirto</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="683"/>
<source>Date: %1
Amount: %2
Type: %3
Address: %4
</source>
<translation>Päivä: %1
Määrä: %2
Tyyppi: %3
Osoite: %4</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="804"/>
<source>Wallet is <b>encrypted</b> and currently <b>unlocked</b></source>
<translation>Lompakko on <b>salattu</b> ja tällä hetkellä <b>avoinna</b></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="812"/>
<source>Wallet is <b>encrypted</b> and currently <b>locked</b></source>
<translation>Lompakko on <b>salattu</b> ja tällä hetkellä <b>lukittuna</b></translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="835"/>
<source>Backup Wallet</source>
<translation>Varmuuskopioi lompakko</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="835"/>
<source>Wallet Data (*.dat)</source>
<translation>Lompakkodata (*.dat)</translation>
</message>
<message>
<location filename="../bitcoingui.cpp" line="838"/>
<source>Backup Failed</source>
<translation>Varmuuskopio epäonnistui</translation>
</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>Virhe tallennettaessa lompakkodataa uuteen sijaintiin.</translation>
</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>Näyttö</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 &Language:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="273"/>
<source>&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>Valitse oletus lisämääre mikä näkyy käyttöliittymässä ja kun lähetät kolikoita</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="284"/>
<source>&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>Muokkaa osoitetta</translation>
</message>
<message>
<location filename="../forms/editaddressdialog.ui" line="25"/>
<source>&Label</source>
<translation>&Nimi</translation>
</message>
<message>
<location filename="../forms/editaddressdialog.ui" line="35"/>
<source>The label associated with this address book entry</source>
<translation>Tähän osoitteeseen liitetty nimi</translation>
</message>
<message>
<location filename="../forms/editaddressdialog.ui" line="42"/>
<source>&Address</source>
<translation>&Osoite</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>Osoite, joka liittyy tämän osoitekirjan merkintään. Tätä voidaan muuttaa vain lähtevissä osoitteissa.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="20"/>
<source>New receiving address</source>
<translation>Uusi vastaanottava osoite</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="24"/>
<source>New sending address</source>
<translation>Uusi lähettävä osoite</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="27"/>
<source>Edit receiving address</source>
<translation>Muokkaa vastaanottajan osoitetta</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="31"/>
<source>Edit sending address</source>
<translation>Muokkaa lähtevää osoitetta</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="91"/>
<source>The entered address "%1" is already in the address book.</source>
<translation>Osoite "%1" on jo osoitekirjassa.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="96"/>
<source>The entered address "%1" 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>Lompakkoa ei voitu avata.</translation>
</message>
<message>
<location filename="../editaddressdialog.cpp" line="106"/>
<source>New key generation failed.</source>
<translation>Uuden avaimen luonti epäonnistui.</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>Käyttö:</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 "de_DE" (default: system locale)</source>
<translation>Set language, for example "de_DE" (default: system locale)</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="140"/>
<source>Start minimized</source>
<translation>Käynnistä pienennettynä</translation>
</message>
<message>
<location filename="../bitcoin.cpp" line="141"/>
<source>Show splash screen on startup (default: 1)</source>
<translation>Näytä aloitusruutu käynnistettäessä (oletus: 1)</translation>
</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 &fee</source>
<translation>Maksa rahansiirtopalkkio</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="204"/>
<source>Main</source>
<translation>Yleiset</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>Vapaaehtoinen rahansiirtopalkkio per kB auttaa nopeuttamaan siirtoja. Useimmat rahansiirrot ovat 1 kB. 0.01 palkkio on suositeltava.</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="222"/>
<source>&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>&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>Voit allekirjoittaa viestit omalla osoitteellasi todistaaksesi että omistat ne. Ole huolellinen, että et allekirjoita mitään epämääräistä, phishing-hyökkääjät voivat huijata sinua allekirjoittamaan luovuttamalla henkilöllisyytesi. Allekirjoita selvitys täysin yksityiskohtaisesti mihin olet sitoutunut.</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="38"/>
<source>The address to sign the message with (e.g. <API key>)</source>
<translation>Osoite millä viesti allekirjoitetaan (esim.
<API key>)</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="48"/>
<source>Choose adress from address book</source>
<translation>Valitse osoite osoitekirjasta</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>Liitä osoite leikepöydältä</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>Kirjoita tähän viesti minkä haluat allekirjoittaa</translation>
</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>&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 &All</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../messagepage.cpp" line="31"/>
<source>Click "Sign Message" to get signature</source>
<translation>Klikkaa "Allekirjoita viesti" saadaksesi allekirjoituksen</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="114"/>
<source>Sign a message to prove you own this address</source>
<translation>Allekirjoita viesti millä todistat omistavasi tämän osoitteen</translation>
</message>
<message>
<location filename="../forms/messagepage.ui" line="117"/>
<source>&Sign Message</source>
<translation>&Allekirjoita viesti</translation>
</message>
<message>
<location filename="../messagepage.cpp" line="30"/>
<source>Enter a Bitcoin address (e.g. <API key>)</source>
<translation>Anna Bitcoin-osoite (esim. <API key>)</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>Virhe allekirjoitettaessa</translation>
</message>
<message>
<location filename="../messagepage.cpp" line="83"/>
<source>%1 is not a valid address.</source>
<translation>%1 ei ole kelvollinen osoite.</translation>
</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>Yksityisavain %1 :lle ei ole saatavilla.</translation>
</message>
<message>
<location filename="../messagepage.cpp" line="117"/>
<source>Sign failed</source>
<translation>Allekirjoittaminen epäonnistui</translation>
</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 &UPnP</source>
<translation>Portin uudelleenohjaus &UPnP:llä</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>Avaa <API key> portti reitittimellä automaattisesti. Tämä toimii vain, jos reitittimesi tukee UPnP:tä ja se on käytössä.</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="351"/>
<source>&Connect through SOCKS4 proxy:</source>
<translation>&Yhdistä SOCKS4-välityspalvelimen kautta:</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>Yhdistä Bitcoin-verkkoon SOCKS4-välityspalvelimen kautta (esimerkiksi käyttäessä Tor:ia)</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="357"/>
<source>Proxy &IP:</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../optionsdialog.cpp" line="366"/>
<source>&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>Välityspalvelimen IP-osoite (esim. 127.0.0.1)</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="372"/>
<source>Port of the proxy (e.g. 1234)</source>
<translation>Portti, johon <API key> yhdistää (esim. 1234)</translation>
</message>
</context>
<context>
<name>OptionsDialog</name>
<message>
<location filename="../optionsdialog.cpp" line="135"/>
<source>Options</source>
<translation>Asetukset</translation>
</message>
</context>
<context>
<name>OverviewPage</name>
<message>
<location filename="../forms/overviewpage.ui" line="14"/>
<source>Form</source>
<translation>Lomake</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>Saldo:</translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="147"/>
<source>Number of transactions:</source>
<translation>Rahansiirtojen lukumäärä:</translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="118"/>
<source>Unconfirmed:</source>
<translation>Vahvistamatta:</translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="40"/>
<source>Wallet</source>
<translation>Lompakko</translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="197"/>
<source><b>Recent transactions</b></source>
<translation><b>Viimeisimmät rahansiirrot</b></translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="105"/>
<source>Your current balance</source>
<translation>Tililläsi tällä hetkellä olevien Bitcoinien määrä</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>Niiden saapuvien rahansiirtojen määrä, joita Bitcoin-verkko ei vielä ole ehtinyt vahvistaa ja siten eivät vielä näy saldossa.</translation>
</message>
<message>
<location filename="../forms/overviewpage.ui" line="154"/>
<source>Total number of transactions in wallet</source>
<translation>Lompakolla tehtyjen rahansiirtojen yhteismäärä</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>QR-koodi</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="55"/>
<source>Request Payment</source>
<translation>Vastaanota maksu</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="70"/>
<source>Amount:</source>
<translation>Määrä:</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="105"/>
<source>BTC</source>
<translation>BTC</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="121"/>
<source>Label:</source>
<translation>Tunniste:</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="144"/>
<source>Message:</source>
<translation>Viesti:</translation>
</message>
<message>
<location filename="../forms/qrcodedialog.ui" line="186"/>
<source>&Save As...</source>
<translation>&Tallenna nimellä...</translation>
</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>Tuloksen URI liian pitkä, yritä lyhentää otsikon tekstiä / viestiä.</translation>
</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>PNG kuvat (*png)</translation>
</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>&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>&Open</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/rpcconsole.ui" line="323"/>
<source>&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 <b>Ctrl-L</b> to clear screen.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../rpcconsole.cpp" line="214"/>
<source>Type <b>help</b> 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>Lähetä Bitcoineja</translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="64"/>
<source>Send to multiple recipients at once</source>
<translation>Lähetä monelle vastaanottajalle</translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="67"/>
<source>&Add Recipient</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="84"/>
<source>Remove all transaction fields</source>
<translation>Poista kaikki rahansiirtokentät</translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="87"/>
<source>Clear &All</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="106"/>
<source>Balance:</source>
<translation>Saldo:</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>Vahvista lähetys</translation>
</message>
<message>
<location filename="../forms/sendcoinsdialog.ui" line="147"/>
<source>&Send</source>
<translation>&Lähetä</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="94"/>
<source><b>%1</b> to %2 (%3)</source>
<translation><b>%1</b> to %2 (%3)</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="99"/>
<source>Confirm send coins</source>
<translation>Hyväksy Bitcoinien lähettäminen</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="100"/>
<source>Are you sure you want to send %1?</source>
<translation>Haluatko varmasti lähettää %1?</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="100"/>
<source> and </source>
<translation> ja </translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="123"/>
<source>The recepient address is not valid, please recheck.</source>
<translation>Vastaanottajan osoite ei kelpaa, ole hyvä ja tarkista</translation>
</message>
<message>
<location filename="../sendcoinsdialog.cpp" line="128"/>
<source>The amount to pay must be larger than 0.</source>
<translation>Maksettavan summan tulee olla suurempi kuin 0 Bitcoinia.</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>Lomake</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="29"/>
<source>A&mount:</source>
<translation>M&äärä:</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="42"/>
<source>Pay &To:</source>
<translation>Maksun saaja:</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>Anna nimi tälle osoitteelle, jos haluat lisätä sen osoitekirjaan</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="75"/>
<source>&Label:</source>
<translation>&Nimi:</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="93"/>
<source>The address to send the payment to (e.g. <API key>)</source>
<translation>Osoite, johon Bitcoinit lähetetään (esim. <API key>)</translation>
</message>
<message>
<location filename="../forms/sendcoinsentry.ui" line="103"/>
<source>Choose address from address book</source>
<translation>Valitse osoite osoitekirjasta</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>Liitä osoite leikepöydältä</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>Poista </translation>
</message>
<message>
<location filename="../sendcoinsentry.cpp" line="26"/>
<source>Enter a Bitcoin address (e.g. <API key>)</source>
<translation>Anna Bitcoin-osoite (esim. <API key>)</translation>
</message>
</context>
<context>
<name>TransactionDesc</name>
<message>
<location filename="../transactiondesc.cpp" line="21"/>
<source>Open for %1 blocks</source>
<translation>Avoinna %1 lohkolle</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="23"/>
<source>Open until %1</source>
<translation>Avoinna %1 asti</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="29"/>
<source>%1/offline?</source>
<translation>%1/ei linjalla?</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="31"/>
<source>%1/unconfirmed</source>
<translation>%1/vahvistamaton</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="33"/>
<source>%1 confirmations</source>
<translation>%1 vahvistusta</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="51"/>
<source><b>Status:</b> </source>
<translation><b>Tila:</b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="56"/>
<source>, has not been successfully broadcast yet</source>
<translation>, ei ole vielä onnistuneesti lähetetty</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="58"/>
<source>, broadcast through %1 node</source>
<translation>, lähetetään %1 solmun kautta</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="60"/>
<source>, broadcast through %1 nodes</source>
<translation>, lähetetään %1 solmun kautta</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="64"/>
<source><b>Date:</b> </source>
<translation><b>Päivä:</b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="71"/>
<source><b>Source:</b> Generated<br></source>
<translation><b>Lähde:</b> Generoitu<br></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="77"/>
<location filename="../transactiondesc.cpp" line="94"/>
<source><b>From:</b> </source>
<translation><b>Lähettäjä:</b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="94"/>
<source>unknown</source>
<translation>tuntematon</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="95"/>
<location filename="../transactiondesc.cpp" line="118"/>
<location filename="../transactiondesc.cpp" line="178"/>
<source><b>To:</b> </source>
<translation><b>Vast. ott.:</b></translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="98"/>
<source> (yours, label: </source>
<translation>(sinun, tunniste: </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="100"/>
<source> (yours)</source>
<translation>(sinun)</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><b>Credit:</b> </source>
<translation><b>Krediitti:</b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="138"/>
<source>(%1 matures in %2 more blocks)</source>
<translation>(%1 erääntyy %2 useammassa lohkossa)</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="142"/>
<source>(not accepted)</source>
<translation>(ei hyväksytty)</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="186"/>
<location filename="../transactiondesc.cpp" line="194"/>
<location filename="../transactiondesc.cpp" line="209"/>
<source><b>Debit:</b> </source>
<translation><b>Debit:</b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="200"/>
<source><b>Transaction fee:</b> </source>
<translation><b>Rahansiirtomaksu:</b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="216"/>
<source><b>Net amount:</b> </source>
<translation><b>Nettomäärä:</b> </translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="222"/>
<source>Message:</source>
<translation>Viesti:</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="224"/>
<source>Comment:</source>
<translation>Kommentti:</translation>
</message>
<message>
<location filename="../transactiondesc.cpp" line="226"/>
<source>Transaction ID:</source>
<translation>Rahansiirron ID:</translation>
</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 "not accepted" and not be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.</source>
<translation>Luotujen kolikoiden on odotettava 120 lohkoa ennen kuin ne voidaan käyttää. Kun loit tämän lohkon, se lähetettiin verkkoon lisättäväksi lohkoketjuun. Jos se epäonnistuu ketjuun liittymisessä, sen tila muuttuu "ei hyväksytty" eikä sitä voi käyttää. Tätä voi silloin tällöin esiintyä jos toinen solmu luo lohkon muutamia sekunteja omastasi.</translation>
</message>
</context>
<context>
<name><API key></name>
<message>
<location filename="../forms/<API key>.ui" line="14"/>
<source>Transaction details</source>
<translation>Rahansiirron yksityiskohdat</translation>
</message>
<message>
<location filename="../forms/<API key>.ui" line="20"/>
<source>This pane shows a detailed description of the transaction</source>
<translation>Tämä ruutu näyttää yksityiskohtaisen tiedon rahansiirrosta</translation>
</message>
</context>
<context>
<name><API key></name>
<message>
<location filename="../<API key>.cpp" line="226"/>
<source>Date</source>
<translation>Päivämäärä</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="226"/>
<source>Type</source>
<translation>Laatu</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="226"/>
<source>Address</source>
<translation>Osoite</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="226"/>
<source>Amount</source>
<translation>Määrä</translation>
</message>
<message numerus="yes">
<location filename="../<API key>.cpp" line="281"/>
<source>Open for %n block(s)</source>
<translation><numerusform>Auki %n lohkolle</numerusform><numerusform>Auki %n lohkoille</numerusform></translation>
</message>
<message>
<location filename="../<API key>.cpp" line="284"/>
<source>Open until %1</source>
<translation>Avoinna %1 asti</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="287"/>
<source>Offline (%1 confirmations)</source>
<translation>Ei yhteyttä verkkoon (%1 vahvistusta)</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="290"/>
<source>Unconfirmed (%1 of %2 confirmations)</source>
<translation>Vahvistamatta (%1/%2 vahvistusta)</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="293"/>
<source>Confirmed (%1 confirmations)</source>
<translation>Vahvistettu (%1 vahvistusta)</translation>
</message>
<message numerus="yes">
<location filename="../<API key>.cpp" line="301"/>
<source>Mined balance will be available in %n more blocks</source>
<translation><numerusform>Louhittu saldo tulee saataville %n lohkossa</numerusform><numerusform>Louhittu saldo tulee saataville %n lohkossa</numerusform></translation>
</message>
<message>
<location filename="../<API key>.cpp" line="307"/>
<source>This block was not received by any other nodes and will probably not be accepted!</source>
<translation>Tätä lohkoa ei vastaanotettu mistään muusta solmusta ja sitä ei mahdollisesti hyväksytä!</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="310"/>
<source>Generated but not accepted</source>
<translation>Generoitu mutta ei hyväksytty</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="353"/>
<source>Received with</source>
<translation>Vastaanotettu osoitteella</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="355"/>
<source>Received from</source>
<translation>Vastaanotettu</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="358"/>
<source>Sent to</source>
<translation>Saaja</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="360"/>
<source>Payment to yourself</source>
<translation>Maksu itsellesi</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="362"/>
<source>Mined</source>
<translation>Louhittu</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="400"/>
<source>(n/a)</source>
<translation>(ei saatavilla)</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="599"/>
<source>Transaction status. Hover over this field to show number of confirmations.</source>
<translation>Rahansiirron tila. Siirrä osoitin kentän päälle nähdäksesi vahvistusten lukumäärä.</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="601"/>
<source>Date and time that the transaction was received.</source>
<translation>Rahansiirron vastaanottamisen päivämäärä ja aika.</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="603"/>
<source>Type of transaction.</source>
<translation>Rahansiirron laatu.</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="605"/>
<source>Destination address of transaction.</source>
<translation>Rahansiirron kohteen Bitcoin-osoite</translation>
</message>
<message>
<location filename="../<API key>.cpp" line="607"/>
<source>Amount removed from or added to balance.</source>
<translation>Saldoon lisätty tai siitä vähennetty määrä.</translation>
</message>
</context>
<context>
<name>TransactionView</name>
<message>
<location filename="../transactionview.cpp" line="55"/>
<location filename="../transactionview.cpp" line="71"/>
<source>All</source>
<translation>Kaikki</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="56"/>
<source>Today</source>
<translation>Tänään</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="57"/>
<source>This week</source>
<translation>Tällä viikolla</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="58"/>
<source>This month</source>
<translation>Tässä kuussa</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="59"/>
<source>Last month</source>
<translation>Viime kuussa</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="60"/>
<source>This year</source>
<translation>Tänä vuonna</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="61"/>
<source>Range...</source>
<translation>Alue...</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="72"/>
<source>Received with</source>
<translation>Vastaanotettu osoitteella</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="74"/>
<source>Sent to</source>
<translation>Saaja</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="76"/>
<source>To yourself</source>
<translation>Itsellesi</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="77"/>
<source>Mined</source>
<translation>Louhittu</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="78"/>
<source>Other</source>
<translation>Muu</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="85"/>
<source>Enter address or label to search</source>
<translation>Anna etsittävä osoite tai tunniste</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="92"/>
<source>Min amount</source>
<translation>Minimimäärä</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="126"/>
<source>Copy address</source>
<translation>Kopioi osoite</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="127"/>
<source>Copy label</source>
<translation>Kopioi nimi</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="128"/>
<source>Copy amount</source>
<translation>Kopioi määrä</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="129"/>
<source>Edit label</source>
<translation>Muokkaa nimeä</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>Vie rahansiirron tiedot</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="271"/>
<source>Comma separated file (*.csv)</source>
<translation>Comma separated file (*.csv)</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="279"/>
<source>Confirmed</source>
<translation>Vahvistettu</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="280"/>
<source>Date</source>
<translation>Aika</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="281"/>
<source>Type</source>
<translation>Laatu</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="282"/>
<source>Label</source>
<translation>Nimi</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="283"/>
<source>Address</source>
<translation>Osoite</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="284"/>
<source>Amount</source>
<translation>Määrä</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="285"/>
<source>ID</source>
<translation>ID</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="289"/>
<source>Error exporting</source>
<translation>Virhe tietojen viennissä</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="289"/>
<source>Could not write to file %1.</source>
<translation>Ei voida kirjoittaa tiedostoon %1.</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="384"/>
<source>Range:</source>
<translation>Alue:</translation>
</message>
<message>
<location filename="../transactionview.cpp" line="392"/>
<source>to</source>
<translation>kenelle</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>&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>Kopioi valittu osoite leikepöydälle</translation>
</message>
<message>
<location filename="../forms/verifymessagedialog.ui" line="82"/>
<source>&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 &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 "Verify Message" 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>Lähetetään...</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>&Minimize to the tray instead of the taskbar</source>
<translation>&Pienennä ilmaisinalueelle työkalurivin sijasta</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="317"/>
<source>Show only a tray icon after minimizing the window</source>
<translation>Näytä ainoastaan pikkukuvake ikkunan pienentämisen jälkeen</translation>
</message>
<message>
<location filename="../optionsdialog.cpp" line="320"/>
<source>M&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>Ikkunaa suljettaessa vain pienentää Bitcoin-ohjelman ikkunan lopettamatta itse ohjelmaa. Kun tämä asetus on valittuna, ohjelman voi sulkea vain valitsemalla Lopeta ohjelman valikosta.</translation>
</message>
</context>
<context>
<name>bitcoin-core</name>
<message>
<location filename="../bitcoinstrings.cpp" line="43"/>
<source>Bitcoin version</source>
<translation>Bitcoinin versio</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="44"/>
<source>Usage:</source>
<translation>Käyttö:</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="45"/>
<source>Send command to -server or bitcoind</source>
<translation>Lähetä käsky palvelimelle tai bitcoind:lle</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="46"/>
<source>List commands</source>
<translation>Lista komennoista</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="47"/>
<source>Get help for a command</source>
<translation>Hanki apua käskyyn</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="49"/>
<source>Options:</source>
<translation>Asetukset:</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="50"/>
<source>Specify configuration file (default: bitcoin.conf)</source>
<translation>Määritä asetustiedosto (oletus: bitcoin.conf)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="51"/>
<source>Specify pid file (default: bitcoind.pid)</source>
<translation>Määritä pid-tiedosto (oletus: bitcoin.pid)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="52"/>
<source>Generate coins</source>
<translation>Generoi kolikoita</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="53"/>
<source>Don't generate coins</source>
<translation>Älä generoi kolikoita</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="54"/>
<source>Specify data directory</source>
<translation>Määritä data-hakemisto</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="55"/>
<source>Set database cache size in megabytes (default: 25)</source>
<translation>Aseta tietokannan välimuistin koko megatavuina (oletus: 25)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="56"/>
<source>Set database disk log size in megabytes (default: 100)</source>
<translation>Aseta tietokannan lokitiedoston koko megatavuina (oletus: 100)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="57"/>
<source>Specify connection timeout (in milliseconds)</source>
<translation>Määritä yhteyden aikakatkaisu (millisekunneissa)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="63"/>
<source>Listen for connections on <port> (default: 8333 or testnet: 18333)</source>
<translation>Kuuntele yhteyksiä portista <port> (oletus: 8333 tai testnet: 18333)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="64"/>
<source>Maintain at most <n> connections to peers (default: 125)</source>
<translation>Pidä enintään <n> yhteyttä verkkoihin (oletus: 125)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="66"/>
<source>Connect only to the specified node</source>
<translation>Muodosta yhteys vain tiettyyn solmuun</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 <net> (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>Kynnysarvo aikakatkaisulle heikosti toimiville verkoille (oletus: 100)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="76"/>
<source>Number of seconds to keep misbehaving peers from reconnecting (default: 86400)</source>
<translation>Sekuntien määrä, kuinka kauan uudelleenkytkeydytään verkkoihin (oletus: 86400)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="79"/>
<source>Maximum per-connection receive buffer, <n>*1000 bytes (default: 10000)</source>
<translation>Maksimi verkkoyhteyden vastaanottopuskuri, <n>*1000 tavua (oletus: 10000)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="80"/>
<source>Maximum per-connection send buffer, <n>*1000 bytes (default: 10000)</source>
<translation>Maksimi verkkoyhteyden lähetyspuskuri, <n>*1000 tavua (oletus: 10000)</translation>
</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>Hyväksy merkkipohjaiset- ja JSON-RPC-käskyt</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="87"/>
<source>Run in the background as a daemon and accept commands</source>
<translation>Aja taustalla daemonina ja hyväksy komennot</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="88"/>
<source>Use the test network</source>
<translation>Käytä test -verkkoa</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="89"/>
<source>Output extra debugging information</source>
<translation>Tulosta ylimääräistä debuggaustietoa</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="90"/>
<source>Prepend debug output with timestamp</source>
<translation>Lisää debuggaustiedon tulostukseen aikaleima</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="91"/>
<source>Send trace/debug info to console instead of debug.log file</source>
<translation>Lähetä jäljitys/debug-tieto konsoliin, debug.log-tiedoston sijaan</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="92"/>
<source>Send trace/debug info to debugger</source>
<translation>Lähetä jäljitys/debug-tieto debuggeriin</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="93"/>
<source>Username for JSON-RPC connections</source>
<translation>Käyttäjätunnus <API key></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="94"/>
<source>Password for JSON-RPC connections</source>
<translation>Salasana <API key></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="95"/>
<source>Listen for JSON-RPC connections on <port> (default: 8332)</source>
<translation>Kuuntele JSON-RPC -yhteyksiä portista <port> (oletus: 8332)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="96"/>
<source>Allow JSON-RPC connections from specified IP address</source>
<translation>Salli JSON-RPC yhteydet tietystä ip-osoitteesta</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="97"/>
<source>Send commands to node running on <ip> (default: 127.0.0.1)</source>
<translation>Lähetä käskyjä solmuun osoitteessa <ip> (oletus: 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>Suorita käsky kun paras lohko muuttuu (%s cmd on vaihdettu block hashin kanssa)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="101"/>
<source>Upgrade wallet to latest format</source>
<translation>Päivitä lompakko uusimpaan formaattiin</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="102"/>
<source>Set key pool size to <n> (default: 100)</source>
<translation>Aseta avainpoolin koko arvoon <n> (oletus: 100)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="103"/>
<source>Rescan the block chain for missing wallet transactions</source>
<translation>Skannaa uudelleen lohkoketju lompakon puuttuvien rahasiirtojen vuoksi</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="104"/>
<source>How many blocks to check at startup (default: 2500, 0 = all)</source>
<translation>Kuinka monta lohkoa tarkistetaan käynnistettäessä (oletus: 2500, 0 = kaikki)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="105"/>
<source>How thorough the block verification is (0-6, default: 1)</source>
<translation>Kuinka tiukka lohkovarmistus on (0-6, oletus: 1)</translation>
</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-asetukset: (lisätietoja Bitcoin-Wikistä)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="111"/>
<source>Use OpenSSL (https) for JSON-RPC connections</source>
<translation>Käytä OpenSSL:ää (https) <API key></translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="112"/>
<source>Server certificate file (default: server.cert)</source>
<translation>Palvelimen <API key> (oletus: server.cert)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="113"/>
<source>Server private key (default: server.pem)</source>
<translation>Palvelimen yksityisavain (oletus: 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>Hyväksyttävä salaus (oletus:
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>Tämä ohjeviesti</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>En pääse käsiksi data-hakemiston lukitukseen %s. Bitcoin on todennäköisesti jo käynnistetty.</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 <net> (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>Ladataan osoitteita...</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="132"/>
<source>Error loading blkindex.dat</source>
<translation>Virhe ladattaessa blkindex.dat-tiedostoa</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="134"/>
<source>Error loading wallet.dat: Wallet corrupted</source>
<translation>Virhe ladattaessa wallet.dat-tiedostoa: Lompakko vioittunut</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="135"/>
<source>Error loading wallet.dat: Wallet requires newer version of Bitcoin</source>
<translation>Virhe ladattaessa wallet.dat-tiedostoa: Tarvitset uudemman version Bitcoinista</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="136"/>
<source>Wallet needed to be rewritten: restart Bitcoin to complete</source>
<translation>Lompakko tarvitsee uudelleenkirjoittaa: käynnistä Bitcoin uudelleen</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="137"/>
<source>Error loading wallet.dat</source>
<translation>Virhe ladattaessa wallet.dat-tiedostoa</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="124"/>
<source>Invalid -proxy address: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="125"/>
<source>Unknown network specified in -noproxy: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="127"/>
<source>Unknown network specified in -onlynet: '%s'</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: '%s'</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: '%s'</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="117"/>
<source>Invalid amount for -paytxfee=<amount>: '%s'</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>Virhe: Lompakko on lukittu, rahansiirtoa ei voida luoda</translation>
</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>Virhe: Tämä rahansiirto vaatii rahansiirtopalkkion vähintään %s johtuen sen määrästä, monimutkaisuudesta tai hiljattain vastaanotettujen summien käytöstä</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="35"/>
<source>Error: Transaction creation failed </source>
<translation>Virhe: Rahansiirron luonti epäonnistui</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="36"/>
<source>Sending...</source>
<translation>Lähetetään...</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>Virhe: Rahansiirto hylättiin. Tämä voi tapahtua jos jotkin bitcoineistasi on jo käytetty, esimerkiksi jos olet käyttänyt kopiota wallet.<API key> ja bitcoinit on merkitty käytetyksi vain kopiossa.</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="41"/>
<source>Invalid amount</source>
<translation>Virheellinen määrä</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="42"/>
<source>Insufficient funds</source>
<translation>Lompakon saldo ei riitä</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="131"/>
<source>Loading block index...</source>
<translation>Ladataan lohkoindeksiä...</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>Linää solmu mihin liittyä pitääksesi yhteyden auki</translation>
</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>Etsi solmuja käyttäen internet relay chatia (oletus: 0)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="72"/>
<source>Accept connections from outside (default: 1)</source>
<translation>Hyväksytään ulkopuoliset yhteydet (oletus: 1)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="74"/>
<source>Find peers using DNS lookup (default: 1)</source>
<translation>Etsi solmuja käyttämällä DNS hakua (oletus: 1)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="81"/>
<source>Use Universal Plug and Play to map the listening port (default: 1)</source>
<translation>Käytä Plug and Play kartoitusta kuunnellaksesi porttia (oletus: 1)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="82"/>
<source>Use Universal Plug and Play to map the listening port (default: 0)</source>
<translation>Käytä Plug and Play kartoitusta kuunnellaksesi porttia (oletus: 0)</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="85"/>
<source>Fee per KB to add to transactions you send</source>
<translation>Rahansiirtopalkkio per KB lisätään lähettämääsi rahansiirtoon</translation>
</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>Ladataan lompakkoa...</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="138"/>
<source>Cannot downgrade wallet</source>
<translation>Et voi päivittää lompakkoasi vanhempaan versioon</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="139"/>
<source>Cannot initialize keypool</source>
<translation>Avainvarastoa ei voi alustaa</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="140"/>
<source>Cannot write default address</source>
<translation>Oletusosoitetta ei voi kirjoittaa</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="141"/>
<source>Rescanning...</source>
<translation>Skannataan uudelleen...</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="144"/>
<source>Done loading</source>
<translation>Lataus on valmis</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="8"/>
<source>To use the %s option</source>
<translation>Käytä %s optiota</translation>
</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>%s, sinun täytyy asettaa rpc<API key>:
%s
On suositeltavaa käyttää seuraavaan satunnaista salasanaa:
rpcuser=bitcoinrpc
rpcpassword=%s
(sinun ei tarvitse muistaa tätä salasanaa)
Jos tiedostoa ei ole, niin luo se ainoastaan omistajan kirjoitusoikeuksin.
</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="18"/>
<source>Error</source>
<translation>Virhe</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="19"/>
<source>An error occured while setting up the RPC port %i for listening: %s</source>
<translation>Virhe asetettaessa RCP-porttia %i kuunteluun: %s</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="20"/>
<source>You must set rpcpassword=<password> in the configuration file:
%s
If the file does not exist, create it with owner-readable-only file permissions.</source>
<translation>Sinun täytyy asettaa rpcpassword=<password> asetustiedostoon:
%s
Jos tiedostoa ei ole, niin luo se ainoastaan omistajan kirjoitusoikeuksin.</translation>
</message>
<message>
<location filename="../bitcoinstrings.cpp" line="25"/>
<source>Warning: Please check that your computer's date and time are correct. If your clock is wrong Bitcoin will not work properly.</source>
<translation>Varoitus: Tarkista, ovatko tietokoneesi päivämäärä ja aika oikein. Mikäli aika on väärin, Bitcoin-ohjelma ei toimi oikein.</translation>
</message>
</context>
</TS> |
using System;
using System.Windows;
using System.Windows.Media.Animation;
using Ccr.Std.Introspective.Extensions;
using Ccr.Std.Introspective.Infrastructure;
using Ccr.PresentationCore.Helpers;
using Ccr.Std.Extensions;
namespace Ccr.PresentationCore.Animation.Timelines
{
public class CornerAnimation
: CornerAnimationBase
{
private CornerRadius[] _keyValues;
private AnimationMode _AnimationMode;
private bool <API key>;
public static readonly DependencyProperty FromProperty;
public static readonly DependencyProperty ToProperty;
public static readonly DependencyProperty ByProperty;
public static readonly DependencyProperty <API key>;
internal void <API key>(
DependencyProperty property,
object value)
{
//TODO xzthis.<API key><DependencyProperty, object>("SetValueInternal", property, value);
}
public CornerRadius? From
{
get
{
return (CornerRadius?)GetValue(FromProperty);
}
set
{
this.<API key>(FromProperty, value);
}
}
public CornerRadius? To
{
get
{
return (CornerRadius?)GetValue(ToProperty);
}
set
{
this.<API key>(ToProperty, value);
}
}
public CornerRadius? By
{
get
{
return (CornerRadius?)GetValue(ByProperty);
}
set
{
this.<API key>(ByProperty, value);
}
}
public IEasingFunction EasingFunction
{
get
{
return (IEasingFunction)GetValue(<API key>);
}
set
{
this.<API key>(<API key>, value);
}
}
public bool IsAdditive
{
get
{
return (bool)GetValue(IsAdditiveProperty);
}
set
{
this.<API key>(IsAdditiveProperty, BoolBoxes.Box(value));
}
}
public bool IsCumulative
{
get
{
return (bool)GetValue(<API key>);
}
set
{
this.<API key>(<API key>, BoolBoxes.Box(value));
}
}
static CornerAnimation()
{
var propertyType = typeof(CornerRadius?);
var ownerType = typeof(CornerAnimation);
<API key> <API key> = <API key>;
<API key> <API key> = <API key>;
FromProperty = DependencyProperty.Register("From", propertyType, ownerType,
new PropertyMetadata(null, <API key>), <API key>);
ToProperty = DependencyProperty.Register("To", propertyType, ownerType, new PropertyMetadata(null, <API key>), <API key>);
ByProperty = DependencyProperty.Register("By", propertyType, ownerType, new PropertyMetadata(null, <API key>), <API key>);
<API key> = DependencyProperty.Register("EasingFunction", typeof(IEasingFunction), ownerType);
}
<summary>
Initializes a new instance of the <see cref="T:System.Windows.Media.Animation.ThicknessAnimation"/> class.
</summary>
public CornerAnimation()
{
}
<summary>
Initializes a new instance of the <see cref="T:System.Windows.Media.Animation.ThicknessAnimation"/> class that animates to the specified value over the specified duration. The starting value for the animation is the base value of the property being animated or the output from another animation.
</summary>
<param name="toValue">The destination value of the animation. </param><param name="duration">The length of time the animation takes to play from start to finish, once. See the <see cref="P:System.Windows.Media.Animation.Timeline.Duration"/> property for more information.</param>
public CornerAnimation(
CornerRadius toValue,
Duration duration)
: this()
{
To = toValue;
Duration = duration;
}
<summary>
Initializes a new instance of the <see cref="T:System.Windows.Media.Animation.ThicknessAnimation"/> class that animates to the specified value over the specified duration and has the specified fill behavior. The starting value for the animation is the base value of the property being animated or the output from another animation.
</summary>
<param name="toValue">The destination value of the animation. </param><param name="duration">The length of time the animation takes to play from start to finish, once. See the <see cref="P:System.Windows.Media.Animation.Timeline.Duration"/> property for more information.</param><param name="fillBehavior">Specifies how the animation behaves when it is not active.</param>
public CornerAnimation(CornerRadius toValue, Duration duration, FillBehavior fillBehavior)
: this()
{
this.To = new CornerRadius?(toValue);
this.Duration = duration;
this.FillBehavior = fillBehavior;
}
<summary>
Initializes a new instance of the <see cref="T:System.Windows.Media.Animation.ThicknessAnimation"/> class that animates from the specified starting value to the specified destination value over the specified duration.
</summary>
<param name="fromValue">The starting value of the animation.</param><param name="toValue">The destination value of the animation. </param><param name="duration">The length of time the animation takes to play from start to finish, once. See the <see cref="P:System.Windows.Media.Animation.Timeline.Duration"/> property for more information.</param>
public CornerAnimation(CornerRadius fromValue, CornerRadius toValue, Duration duration)
: this()
{
this.From = new CornerRadius?(fromValue);
this.To = new CornerRadius?(toValue);
this.Duration = duration;
}
<summary>
Initializes a new instance of the <see cref="T:System.Windows.Media.Animation.ThicknessAnimation"/> class that animates from the specified starting value to the specified destination value over the specified duration and has the specified fill behavior.
</summary>
<param name="fromValue">The starting value of the animation.</param><param name="toValue">The destination value of the animation. </param><param name="duration">The length of time the animation takes to play from start to finish, once. See the <see cref="P:System.Windows.Media.Animation.Timeline.Duration"/> property for more information.</param><param name="fillBehavior">Specifies how the animation behaves when it is not active.</param>
public CornerAnimation(CornerRadius fromValue, CornerRadius toValue, Duration duration, FillBehavior fillBehavior)
: this()
{
this.From = new CornerRadius?(fromValue);
this.To = new CornerRadius?(toValue);
this.Duration = duration;
this.FillBehavior = fillBehavior;
}
<summary>
Creates a modifiable clone of this <see cref="T:System.Windows.Media.Animation.ThicknessAnimation"/>, making deep copies of this object's values. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.
</summary>
<returns>
A modifiable clone of the current object. The cloned object's <see cref="P:System.Windows.Freezable.IsFrozen"/> property will be false even if the source's <see cref="P:System.Windows.Freezable.IsFrozen"/> property was true.
</returns>
public new CornerAnimation Clone()
{
return (CornerAnimation)base.Clone();
}
<summary>
Creates a new instance of the <see cref="T:System.Windows.Media.Animation.ThicknessAnimation"/>.
</summary>
<returns>
The new instance.
</returns>
protected override Freezable CreateInstanceCore()
{
return new CornerAnimation();
}
<summary>
Calculates a value that represents the current value of the property being animated, as determined by the <see cref="T:System.Windows.Media.Animation.ThicknessAnimation"/>.
</summary>
<returns>
The calculated value of the property, as determined by the current animation.
</returns>
<param name="defaultOriginValue">The suggested origin value, used if the animation does not have its own explicitly set start value.</param><param name="<API key>">The suggested destination value, used if the animation does not have its own explicitly set end value.</param><param name="animationClock">An <see cref="T:System.Windows.Media.Animation.AnimationClock"/> that generates the <see cref="P:System.Windows.Media.Animation.Clock.CurrentTime"/> or <see cref="P:System.Windows.Media.Animation.Clock.CurrentProgress"/> used by the animation.</param>
protected override CornerRadius GetCurrentValueCore(CornerRadius defaultOriginValue, CornerRadius <API key>, AnimationClock animationClock)
{
if (!this.<API key>)
this.<API key>();
double num1 = animationClock.CurrentProgress.Value;
IEasingFunction easingFunction = this.EasingFunction;
if (easingFunction != null)
num1 = easingFunction.Ease(num1);
var from = new CornerRadius();
var to = new CornerRadius();
var thickness1 = new CornerRadius();
var thickness2 = new CornerRadius();
bool flag1 = false;
bool flag2 = false;
switch (this._AnimationMode)
{
case AnimationMode.Automatic:
from = defaultOriginValue;
to = <API key>;
flag1 = true;
flag2 = true;
break;
case AnimationMode.From:
from = this._keyValues[0];
to = <API key>;
flag2 = true;
break;
case AnimationMode.To:
from = defaultOriginValue;
to = this._keyValues[0];
flag1 = true;
break;
case AnimationMode.By:
to = this._keyValues[0];
thickness2 = defaultOriginValue;
flag1 = true;
break;
case AnimationMode.FromTo:
from = this._keyValues[0];
to = this._keyValues[1];
if (this.IsAdditive)
{
thickness2 = defaultOriginValue;
flag1 = true;
break;
}
break;
case AnimationMode.FromBy:
from = this._keyValues[0];
to = AnimationHelpers.AddCornerRadius(this._keyValues[0], this._keyValues[1]);
if (this.IsAdditive)
{
thickness2 = defaultOriginValue;
flag1 = true;
break;
}
break;
}
if (flag1 && !AnimationHelpers.<API key>(defaultOriginValue))
throw new <API key>("<API key>");
if (flag2 && !AnimationHelpers.<API key>(<API key>))
throw new <API key>("<API key>");
if (this.IsCumulative)
{
int? currentIteration = animationClock.CurrentIteration;
int num2 = 1;
double factor = (double)(currentIteration.HasValue ? new int?(currentIteration.GetValueOrDefault() - num2) : new int?()).Value;
if (factor > 0.0)
thickness1 = AnimationHelpers.ScaleCornerRadius(AnimationHelpers.<API key>(to, from), factor);
}
return AnimationHelpers.AddCornerRadius(thickness2, AnimationHelpers.AddCornerRadius(thickness1, AnimationHelpers.<API key>(from, to, num1)));
}
private void <API key>()
{
this._AnimationMode = AnimationMode.Automatic;
this._keyValues = (CornerRadius[])null;
if (this.From.HasValue)
{
if (this.To.HasValue)
{
this._AnimationMode = AnimationMode.FromTo;
this._keyValues = new CornerRadius[2];
this._keyValues[0] = this.From.Value;
this._keyValues[1] = this.To.Value;
}
else if (this.By.HasValue)
{
this._AnimationMode = AnimationMode.FromBy;
this._keyValues = new CornerRadius[2];
this._keyValues[0] = this.From.Value;
this._keyValues[1] = this.By.Value;
}
else
{
this._AnimationMode = AnimationMode.From;
this._keyValues = new CornerRadius[1];
this._keyValues[0] = this.From.Value;
}
}
else if (this.To.HasValue)
{
this._AnimationMode = AnimationMode.To;
this._keyValues = new CornerRadius[1];
this._keyValues[0] = this.To.Value;
}
else if (this.By.HasValue)
{
this._AnimationMode = AnimationMode.By;
this._keyValues = new CornerRadius[1];
this._keyValues[0] = this.By.Value;
}
this.<API key> = true;
}
private const string <API key> = "PropertyChanged";
private static void <API key>(DependencyObject d, <API key> e)
{
var thicknessAnimation = (CornerAnimation)d;
int num = 0;
thicknessAnimation.<API key> = num != 0;
DependencyProperty property = e.Property;
thicknessAnimation
.Reflect()
.InvokeMethod(MemberDescriptor.NonPublic, <API key>, property);
//<API key>(<API key>, property))
// throw new <API key>(nameof(CornerAnimation), <API key>);
//thicknessAnimation.PropertyChanged(property);
}
private static bool <API key>(object value)
{
CornerRadius? nullable = (CornerRadius?)value;
if (nullable.HasValue)
return AnimationHelpers.<API key>(nullable.Value);
return true;
}
}
} |
// To check if a library is compiled with CocoaPods you
// can use the `COCOAPODS` macro definition which is
// defined in the xcconfigs so it is available in
// headers also when they are imported in the client
// project.
// <API key>
#define <API key>
#define <API key> 0
#define <API key> 0
#define <API key> 1
// <API key>
#define <API key>
#define <API key> 0
#define <API key> 0
#define <API key> 1
// fmemopen
#define <API key>
#define <API key> 0
#define <API key> 0
#define <API key> 1 |
import PropTypes from 'prop-types';
import React from 'react';
import cloneDeep from 'lodash.clonedeep';
let <API key> = (plotlyInstance) => class Plotly extends React.Component {
static propTypes = {
data: PropTypes.array,
layout: PropTypes.object,
config: PropTypes.object,
onClick: PropTypes.func,
onBeforeHover: PropTypes.func,
onHover: PropTypes.func,
onUnHover: PropTypes.func,
onSelected: PropTypes.func,
onRelayout: PropTypes.func,
};
attachListeners() {
if (this.props.onClick)
this.container.on('plotly_click', this.props.onClick);
if (this.props.onBeforeHover)
this.container.on('plotly_beforehover', this.props.onBeforeHover);
if (this.props.onHover)
this.container.on('plotly_hover', this.props.onHover);
if (this.props.onUnHover)
this.container.on('plotly_unhover', this.props.onUnHover);
if (this.props.onSelected)
this.container.on('plotly_selected', this.props.onSelected);
if (this.props.onRelayout) {
this.container.on('plotly_relayout', this.props.onRelayout);
}
}
<API key>(nextProps) {
//TODO logic for detecting change in props
return true;
}
componentDidMount() {
let {data, layout, config} = this.props;
plotlyInstance.newPlot(this.container, data, cloneDeep(layout), config); //We clone the layout as plotly mutates it.
this.attachListeners();
}
componentDidUpdate(prevProps) {
//TODO use minimal update for given changes
if (prevProps.data !== this.props.data || prevProps.layout !== this.props.layout || prevProps.config !== this.props.config) {
let {data, layout, config} = this.props;
plotlyInstance.newPlot(this.container, data, cloneDeep(layout), config); //We clone the layout as plotly mutates it.
this.attachListeners();
}
}
<API key>() {
plotlyInstance.purge(this.container);
}
resize() {
plotlyInstance.Plots.resize(this.container);
}
render() {
let {data, layout, config, ...other } = this.props;
//Remove props that would cause React to warn for unknown props.
delete other.onClick;
delete other.onBeforeHover;
delete other.onHover;
delete other.onUnHover;
delete other.onSelected;
delete other.onRelayout;
return <div {...other} ref={(node) => this.container=node} />
}
};
export default <API key>; |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Vintage VR</title>
<link rel="stylesheet" media="screen" href="http://openfontlibrary.org/face/coelacanth" type="text/css" />
<link rel="stylesheet" media="screen" href="http://openfontlibrary.org/face/chicagoflf" type="text/css" />
<link rel="stylesheet" media="screen" href="style.css" type="text/css" />
<script type="text/javascript" src="js/cardlist.js"></script>
<script type="text/javascript" src="js/distort.js"></script>
</head>
<body>
<div id="page">
<canvas id="stereoview"></canvas>
<div id="pageInfo">
<h2>Vintage VR Examples</h2>
<h3>(tap to advance)</h3>
<h4>for best results: view landscape via DYI-VR, or parallel freeview.</h4>
</div>
<audio id="click" preload="auto">
<source src="slide_advance.m4a" type="audio/mp4" /> Your browser does not support mp4 files in the audio element.
</audio>
<div class="captionText" id="textLeft"></div>
<div class="captionText" id="textRight"></div>
<div id="captionBox" class="clear"></div>
</div>
<script type="text/javascript" src="js/slideAdvance.js"></script>
</body>
</html> |
#include "stdafx.h"
extern "C" {
#include "jinclude.h"
#include "jpeglib.h"
#include "jerror.h"
}
#include "FgStdLibs.hpp"
struct <API key>
{
<API key> pub;
JOCTET * buffer;
std::vector<JOCTET> * target;
};
typedef <API key> * my_dest_ptr_t;
static const size_t OUTPUT_BUF_SIZE=4096;
METHODDEF(void)
init_destination(j_compress_ptr cinfo)
{
my_dest_ptr_t dest = (my_dest_ptr_t) cinfo->dest;
dest->buffer = (JOCTET *)
(*cinfo->mem->alloc_small)((j_common_ptr) cinfo, JPOOL_IMAGE,
OUTPUT_BUF_SIZE * sizeof(JOCTET));
dest->pub.next_output_byte = dest->buffer;
dest->pub.free_in_buffer = OUTPUT_BUF_SIZE;
}
METHODDEF(boolean)
empty_output_buffer (j_compress_ptr cinfo)
{
my_dest_ptr_t dest = (my_dest_ptr_t) cinfo->dest;
try
{
dest->target->insert(dest->target->end(),
dest->buffer,
dest->buffer + OUTPUT_BUF_SIZE);
dest->pub.next_output_byte = dest->buffer;
dest->pub.free_in_buffer = OUTPUT_BUF_SIZE;
}
catch(std::exception const &)
{
ERREXIT(cinfo,JERR_FILE_WRITE);
}
return TRUE;
}
METHODDEF(void)
term_destination(j_compress_ptr cinfo)
{
my_dest_ptr_t dest = (my_dest_ptr_t) cinfo->dest;
size_t datacount = OUTPUT_BUF_SIZE - dest->pub.free_in_buffer;
// Write remaining data
if(datacount > 0)
{
try
{
dest->target->insert(dest->target->end(),
dest->buffer,
dest->buffer + datacount);
}
catch(std::exception const &)
{
ERREXIT(cinfo,JERR_FILE_WRITE);
}
}
}
// The target buffer can be sized to prevent unnecessary resizing.
// This is optional. The target buffer must stay in scope until
// encoding is complete!
GLOBAL(void)
jpeg_mem_dest(j_compress_ptr cinfo,
std::vector<JOCTET> & target)
{
if(cinfo->dest == NULL)
{
cinfo->dest = (struct <API key> *)
(*cinfo->mem->alloc_small)((j_common_ptr) cinfo, JPOOL_IMAGE,
SIZEOF(<API key>));
}
my_dest_ptr_t dest = (my_dest_ptr_t) cinfo->dest;
dest->pub.init_destination = init_destination;
dest->pub.empty_output_buffer = empty_output_buffer;
dest->pub.term_destination = term_destination;
dest->target = ⌖
} |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LCOV - lcov.info - lib/batch-get-items.js - functions</title>
<link rel="stylesheet" type="text/css" href="../gcov.css">
</head>
<body>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="title">LCOV - code coverage report</td></tr>
<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
<tr>
<td width="100%">
<table cellpadding=1 border=0 width="100%">
<tr>
<td width="10%" class="headerItem">Current view:</td>
<td width="35%" class="headerValue"><a href="../index.html">top level</a> - <a href="index.html">lib</a> - batch-get-items.js<span style="font-size: 80%;"> (<a href="batch-get-items.js.gcov.html">source</a> / functions)</span></td>
<td width="5%"></td>
<td width="15%"></td>
<td width="10%" class="headerCovTableHead">Hit</td>
<td width="10%" class="headerCovTableHead">Total</td>
<td width="15%" class="headerCovTableHead">Coverage</td>
</tr>
<tr>
<td class="headerItem">Test:</td>
<td class="headerValue">lcov.info</td>
<td></td>
<td class="headerItem">Lines:</td>
<td class="headerCovTableEntry">6</td>
<td class="headerCovTableEntry">6</td>
<td class="<API key>">100.0 %</td>
</tr>
<tr>
<td class="headerItem">Date:</td>
<td class="headerValue">2016-01-02 20:20:03</td>
<td></td>
<td class="headerItem">Functions:</td>
<td class="headerCovTableEntry">1</td>
<td class="headerCovTableEntry">1</td>
<td class="<API key>">100.0 %</td>
</tr>
<tr><td><img src="../glass.png" width=3 height=3 alt=""></td></tr>
</table>
</td>
</tr>
<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
</table>
<center>
<table width="60%" cellpadding=1 cellspacing=1 border=0>
<tr><td><br></td></tr>
<tr>
<td width="80%" class="tableHead">Function Name <span class="tableHeadSort"><img src="../glass.png" width=10 height=14 alt="Sort by function name" title="Sort by function name" border=0></span></td>
<td width="20%" class="tableHead">Hit count <span class="tableHeadSort"><a href="batch-get-items.js.func-sort-c.html"><img src="../updown.png" width=10 height=14 alt="Sort by hit count" title="Sort by hit count" border=0></a></span></td>
</tr>
<tr>
<td class="coverFn"><a href="batch-get-items.js.gcov.html#1">(anonymous_1)</a></td>
<td class="coverFnHi">3</td>
</tr>
</table>
<br>
</center>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
<tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LCOV version 1.12</a></td></tr>
</table>
<br>
</body>
</html> |
import EmberPerfService from 'ember-perf/services/ember-perf';
import RouterExt from 'ember-perf/ext/router';
import RouteExt from 'ember-perf/ext/route';
import config from '../config/environment';
const {
Router, Route
} = Ember;
function <API key>(emberPerf, container, application) {
const {
injectionFactories
} = emberPerf;
application.register('config:ember-perf', emberPerf, {
instantiate: false
});
application.register('service:ember-perf', EmberPerfService);
application.inject('service:ember-perf', 'defaults', 'config:ember-perf');
injectionFactories.forEach(factory => {
application.inject(factory, 'perfService', 'service:ember-perf');
});
}
export function initialize() {
const application = arguments[1] || arguments[0];
const container = application.__container__;
const {
emberPerf
} = config;
<API key>(emberPerf, container, application);
Route.reopen(RouteExt);
Router.reopen(RouterExt);
Ember.subscribe("render", {
before(name, timestamp, payload) {
container.lookup('service:ember-perf').renderBefore(name, timestamp, payload);
},
after(name, timestamp, payload) {
container.lookup('service:ember-perf').renderAfter(name, timestamp, payload);
}
});
};
export default {
name: 'ember-perf-setup',
initialize: initialize
}; |
Example
javascript
/* ES6 Rest parameters vs ES5 arguments keyword */
(function () {
/* ES5 arguments keyword example */
var personalInfo = function (name, cellNumber, address, twitterHandle) {
// The arguments keyword provides access to the functions parameters using array like syntax
// Note: Not all array methods are available to arguments as arguments is "array like"
console.log(arguments); // Output:
// { '0': 'Bob Dole', '1': '555-555-5555', '2': '123 Main St. Chicago, IL 87654', '3': '@bobdole' }
console.log(arguments[0]); // Bob Dole
console.log(arguments[3]); // @bobdole
console.log(arguments.length);
}
personalInfo('Bob Dole', '555-555-1234', '123 Main St. Chicago, IL 87654', '@bobdole');
/* ES6 Rest parameters example */
const personalInfo2 = (name, ...<API key>) => {
// Arrow functions cannot use the arguments keyword.
console.log(arguments);
// Rest parameters are literally "The rest of the parameters"
console.log(name, <API key>); // Output:
// 'Bob Dole', ['555-555-1234', '123 Main St. Chicago, IL 87654','@bobdole']
console.log(name, <API key>[1]); // 'Bob Dole' '123 Main St. Chicago, IL 87654'
}
// Notice in the function declartion I have one named parameter
// then a Rest Parameter to grab the rest of values passed to this function.
personalInfo2('Bob Dole', '555-555-1234', '123 Main St. Chicago, IL 87654','@bobdole');
})();
Tweet
<blockquote class="twitter-tweet" data-lang="en"><p lang="es" dir="ltr">ES6 Rest Parameters - js Video Tutorial <a href="https://twitter.com/hashtag/pro?src=hash">
Github Contributor
[@sgroff04](https://github.com/sgroff04) :koala:
## Date - 03/16/2017
___ |
package com.hanmote.service;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.hanmote.dao.<API key>;
import com.hanmote.entity.CompanyBaseInfo;
@Service("<API key>")
public class <API key> implements <API key>{
private <API key> supplierBaseInfoDao;
public <API key> <API key>() {
return supplierBaseInfoDao;
}
@Resource
public void <API key>(<API key> supplierBaseInfoDao) {
this.supplierBaseInfoDao = supplierBaseInfoDao;
}
@Override
public void save(CompanyBaseInfo sbi) {
supplierBaseInfoDao.save(sbi);
}
@Override
public CompanyBaseInfo find(String supplierName) {
return null;
}
} |
import React, { Fragment, Component } from 'react'
import PropTypes from 'prop-types'
import {
TrapApiError,
Widget,
WidgetHeader,
WidgetBody,
WidgetLoader,
ExternalLink,
UsersIcon,
} from '@mozaik/ui'
import ProjectMembersItem from './ProjectMembersItem'
export default class ProjectMembers extends Component {
static propTypes = {
project: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
title: PropTypes.string,
apiData: PropTypes.shape({
project: PropTypes.shape({
name: PropTypes.string.isRequired,
web_url: PropTypes.string.isRequired,
}).isRequired,
members: PropTypes.shape({
items: PropTypes.array.isRequired,
pagination: PropTypes.shape({
total: PropTypes.number.isRequired,
}).isRequired,
}).isRequired,
}),
apiError: PropTypes.object,
}
static getApiRequest({ project }) {
return {
id: `gitlab.projectMembers.${project}`,
params: { project },
}
}
render() {
const { title, apiData, apiError } = this.props
let body = <WidgetLoader />
let subject = null
let count
if (apiData) {
const { project, members } = apiData
count = members.pagination.total
subject = <ExternalLink href={project.web_url}>{project.name}</ExternalLink>
body = (
<Fragment>
{members.items.map(member => (
<ProjectMembersItem key={`member.${member.id}`} member={member} />
))}
</Fragment>
)
}
return (
<Widget>
<WidgetHeader
title={title || 'Members'}
subject={title ? null : subject}
count={count}
icon={UsersIcon}
/>
<WidgetBody disablePadding={true}>
<TrapApiError error={apiError}>{body}</TrapApiError>
</WidgetBody>
</Widget>
)
}
} |
<div class="am-vertical-align" id="interface">
<div class="<API key>">
<div class="am-g-collapse">
<form class="am-form" role="form" action="{{ projHomeURI }}">
<div class="am-u-sm-1" style="height: 10px;"></div>
<div class="am-u-sm-8">
<div class="am-form-group am-form-icon am-form-group-md " id="functional-area">
<i class="am-icon-link am-icon-fw"></i>
<input id="uri" type="text" class="am-form-field am-input-md" placeholder="Something important to remind" name="request">
</div>
</div>
<div class="am-u-sm-2">
<button id="submit-btn" type="submit" class="am-btn am-btn-primary am-btn-lg"><i
class="am-icon-download"></i>
</button>
</div>
</form>
</div>
</div>
</div> |
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// copies or substantial portions of the Software.
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// 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.
package server
import (
"sync/atomic"
"github.com/berkaroad/saashard/admin"
"github.com/berkaroad/saashard/config"
"github.com/berkaroad/saashard/proxy"
)
const (
// Offline = 0
Offline = iota
// Online = 1
Online
// Unknown = 2
Unknown
)
// Server is startup endpoint.
type Server struct {
cfg *config.Config
statusIndex int32
status [2]int32
running bool
proxy *proxy.Server
admin *admin.Server
}
// NewServer is to create a server.
func NewServer(cfg *config.Config) (*Server, error) {
var err error
s := new(Server)
s.cfg = cfg
atomic.StoreInt32(&s.statusIndex, 0)
s.status[s.statusIndex] = Online
s.proxy, err = proxy.NewServer(cfg)
s.admin, err = admin.NewServer(cfg)
return s, err
}
// Run server.
func (s *Server) Run() {
s.running = true
// proxy
go s.proxy.Run()
// admin
s.admin.Run()
}
// Status of server.
func (s *Server) Status() string {
var status string
switch s.status[s.statusIndex] {
case Online:
status = "online"
case Offline:
status = "offline"
case Unknown:
status = "unknown"
default:
status = "unknown"
}
return status
}
// Close server.
func (s *Server) Close() {
s.running = false
s.proxy.Close()
s.admin.Close()
} |
/**
*
* food.js
*
* @description
* @author Fantasy <fantasyshao@icloud.com>
* @create 2014-12-01
* @update 2014-12-04
*/
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var FoodSchema = new Schema({
name: { type: String },
price: { type: Number },
shopId: { type: Number }
});
mongoose.model('Food', FoodSchema); |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="GENERATOR" content="VSdocman - documentation generator; https:
<link rel="icon" href="favicon.ico">
<title>SubscriptionsDto.Currency Property</title>
<link rel="stylesheet" type="text/css" href="msdn2019/toc.css" />
<script src="msdn2019/toc.js"></script>
<link rel="stylesheet" type="text/css" href="msdn2019/msdn2019.css"></link>
<script src="msdn2019/msdn2019.js" type="text/javascript"></script>
<script src="SyntaxHighlighter/scripts/shCore_helixoft.js" type="text/javascript"></script>
<script src="SyntaxHighlighter/scripts/shBrushVb.js" type="text/javascript"></script>
<script src="SyntaxHighlighter/scripts/shBrushCSharp.js" type="text/javascript"></script>
<script src="SyntaxHighlighter/scripts/shBrushFSharp.js" type="text/javascript"></script>
<script src="SyntaxHighlighter/scripts/shBrushCpp.js" type="text/javascript"></script>
<script src="SyntaxHighlighter/scripts/shBrushJScript.js" type="text/javascript"></script>
<link href="SyntaxHighlighter/styles/shCore.css" rel="stylesheet" type="text/css" />
<link href="SyntaxHighlighter/styles/shThemeMsdnLW.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
SyntaxHighlighter.all();
</script>
<link rel="stylesheet" type="text/css" href="vsdocman_overrides.css"></link>
</head>
<body style="direction: ltr;">
<div id="topic">
<!--HEADER START
<div id="header">
<div id="<API key>">
<div id="<API key>">
<div id="<API key>">
<div id="runningHeaderText1"><a id="headerLogo" href="#" onclick="window.location.href = <API key>('--headerLogoLink'); return false;">logo</a></div>
<div id="runningHeaderText1b"><script>
document.write(<API key>('--<API key>'));
</script></div>
</div>
</div>
<div id="<API key>">
<div id="runningHeaderText">SOLUTION-WIDE PROPERTIES Reference</div>
<div id="<API key>">
<form id="search-bar" action="search--.html">
<input id="HeaderSearchInput" type="search" name="search" placeholder="Search" >
<button id="btn-search" class="c-glyph" title="Search">
<span>Search</span>
</button>
</form>
<button id="cancel-search" class="cancel-search" title="Cancel">
<span>Cancel</span>
</button>
</div>
</div>
</div>
<hr />
<div id="header-breadcrumbs"></div>
<div id="headerLinks">
</div>
<hr />
</div>
<!--HEADER END
<div id="mainSection">
<div id="toc-area">
<div id="toc-container" class="stickthis full-height">
<div id="-1"></div>
<div id="c-1">
<div id="ci-1" class="inner-for-height"></div>
</div>
</div>
</div>
<div id="mainBody">
<h1 class="title">SubscriptionsDto.Currency Property</h1>
<div class="metadata">
Namespace:
<a href="<API key>.html">Tlece.Recruitment.Models.Subscriptions</a>
<br />Assembly: Tlece.Recruitment (in Tlece.Recruitment.dll)
</div>
<div class="section_container">
<div id="syntaxSection" class="section">
<div id="syntaxCodeBlocks">
<div class="<API key>">
<div class="codeSnippetTabs">
<div class="<API key>">
</div>
<div class="codeSnippetTab csFirstTab csActiveTab codeVB">
<a>VB</a>
</div>
<div class="codeSnippetTab csNaTab codeCsharp">
<a href="javascript: <API key>('Csharp');">C
</div>
<div class="codeSnippetTab csNaTab codeFsharp">
<a href="javascript: <API key>('Fsharp');">F
</div>
<div class="codeSnippetTab csNaTab codeCpp">
<a href="javascript: <API key>('Cpp');">C++</a>
</div>
<div class="codeSnippetTab csLastTab csNaTab codeJScript">
<a href="javascript: <API key>('JScript');">JScript</a>
</div>
<div class="<API key>">
</div>
<div style="clear:both;">
</div>
</div>
<div class="<API key>">
<div class="codeSnippetToolbar">
<a title="Copy to clipboard." href="javascript:void(0)" onclick="CopyCode(this);">Copy</a>
</div>
<div class="codeSnippetCode codeVB">
<pre xml:space="preserve" class="brush: vb">Public Property Currency() As <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">String</a></pre>
</div>
<div class="codeSnippetCode codeNA">
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
</div>
</div>
</div>
<div class="<API key>">
<div class="codeSnippetTabs">
<div class="<API key>">
</div>
<div class="codeSnippetTab csFirstTab csNaTab codeVB">
<a>VB</a>
</div>
<div class="codeSnippetTab csActiveTab codeCsharp">
<a href="javascript: <API key>('Csharp');">C
</div>
<div class="codeSnippetTab csNaTab codeFsharp">
<a href="javascript: <API key>('Fsharp');">F
</div>
<div class="codeSnippetTab csNaTab codeCpp">
<a href="javascript: <API key>('Cpp');">C++</a>
</div>
<div class="codeSnippetTab csLastTab csNaTab codeJScript">
<a href="javascript: <API key>('JScript');">JScript</a>
</div>
<div class="<API key>">
</div>
<div style="clear:both;">
</div>
</div>
<div class="<API key>">
<div class="codeSnippetToolbar">
<a title="Copy to clipboard." href="javascript:void(0)" onclick="CopyCode(this);">Copy</a>
</div>
<div class="codeSnippetCode codeCsharp">
<pre xml:space="preserve" class="brush: csharp">public <a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">string</a> Currency {get; set;}</pre>
</div>
<div class="codeSnippetCode codeNA">
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
</div>
</div>
</div>
<div class="<API key>">
<div class="codeSnippetTabs">
<div class="<API key>">
</div>
<div class="codeSnippetTab csFirstTab csNaTab codeVB">
<a>VB</a>
</div>
<div class="codeSnippetTab csNaTab codeCsharp">
<a href="javascript: <API key>('Csharp');">C
</div>
<div class="codeSnippetTab csNaTab codeFsharp">
<a href="javascript: <API key>('Fsharp');">F
</div>
<div class="codeSnippetTab csActiveTab codeCpp">
<a href="javascript: <API key>('Cpp');">C++</a>
</div>
<div class="codeSnippetTab csLastTab csNaTab codeJScript">
<a href="javascript: <API key>('JScript');">JScript</a>
</div>
<div class="<API key>">
</div>
<div style="clear:both;">
</div>
</div>
<div class="<API key>">
<div class="codeSnippetToolbar">
<a title="Copy to clipboard." href="javascript:void(0)" onclick="CopyCode(this);">Copy</a>
</div>
<div class="codeSnippetCode codeCpp">
<pre xml:space="preserve" class="brush: cpp">public: <br />property <a target="_top" href="https:
</div>
<div class="codeSnippetCode codeNA">
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
</div>
</div>
</div>
<div class="<API key>">
<div class="codeSnippetTabs">
<div class="<API key>">
</div>
<div class="codeSnippetTab csFirstTab csNaTab codeVB">
<a>VB</a>
</div>
<div class="codeSnippetTab csNaTab codeCsharp">
<a href="javascript: <API key>('Csharp');">C
</div>
<div class="codeSnippetTab csNaTab codeFsharp">
<a href="javascript: <API key>('Fsharp');">F
</div>
<div class="codeSnippetTab csNaTab codeCpp">
<a href="javascript: <API key>('Cpp');">C++</a>
</div>
<div class="codeSnippetTab csActiveTab csLastTab codeJScript">
<a href="javascript: <API key>('JScript');">JScript</a>
</div>
<div class="<API key>">
</div>
<div style="clear:both;">
</div>
</div>
<div class="<API key>">
<div class="codeSnippetToolbar">
<a title="Copy to clipboard." href="javascript:void(0)" onclick="CopyCode(this);">Copy</a>
</div>
<div class="codeSnippetCode codeJScript">
<pre xml:space="preserve" class="brush: js">public function get Currency() : <a target="_top" href="https:
</div>
<div class="codeSnippetCode codeNA">
<pre xml:space="preserve">This language is not supported or no code example is available.</pre>
</div>
</div>
</div>
</div>
<h4 class="subHeading">
Property Value</h4>
<a target="_top" href="https://docs.microsoft.com/en-us/dotnet/api/system.string">string</a>
</div>
</div>
<div class="section_container">
<div class="section_heading">
<span><a href="javascript:void(0)" title="Collapse" onclick="toggleSection(this);">Applies to</a></span>
<div> </div>
</div>
<div id="frameworksSection" class="section">
<h4 class="subHeading">.NET Framework</h4>Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1<br />
</div>
</div>
<div class="section_container">
<div class="section_heading">
<span><a href="javascript:void(0)" title="Collapse" onclick="toggleSection(this);">See Also</a></span>
<div> </div>
</div>
<div id="seeAlsoSection" class="section">
<div>
<a href="<API key>.html">SubscriptionsDto Class</a><br />
<a href="<API key>.html">Tlece.Recruitment.Models.Subscriptions Namespace</a><br />
</div>
</div>
</div>
</div>
<div id="internal-toc-area">
<div id="<API key>" class="stickthis">
<h3 id="<API key>">In this article</h3>
<span id="<API key>">Definition</span>
</div>
</div>
</div>
<div id="footer">
<div id="footer-container">
<p><span style="color:
</div>
</div>
</div>
</body>
</html> |
import Posts from "meteor/vulcan:posts";
import { addCallback, getSetting } from 'meteor/vulcan:core';
function getEmbedlyData(url) {
var data = {};
var extractBase = 'https://EmbedAPI.com/api/embed';
var embedlyKey = getSetting('embedAPIKey');
var thumbnailWidth = getSetting('thumbnailWidth', 200);
var thumbnailHeight = getSetting('thumbnailHeight', 125);
if(!embedlyKey) {
// fail silently to still let the post be submitted as usual
console.log("Couldn't find an Embedly API key! Please add it to your Vulcan settings or remove the Embedly module."); // eslint-disable-line
return null;
}
try {
var result = Meteor.http.get(extractBase, {
params: {
key: embedlyKey,
url: url,
image_width: thumbnailWidth,
image_height: thumbnailHeight,
image_method: 'crop'
}
});
console.log("RESULT" ,result.content);
result.content = JSON.parse(result.content);
var embedData = {title: result.content.title ,description: result.content.description };
if ( !_.isEmpty(result.content.pics) )
embedData.thumbnailUrl = result.content.pics[0];
if ( !!result.content.media )
embedData.media = result.content.media;
if ( !_.isEmpty(result.content.authors) ) {
embedData.sourceName = result.content.authors[0].name;
embedData.sourceUrl = result.content.authors[0].url;
}
console.log("embedData",embedData)
return embedData;
} catch (error) {
console.log(error); // eslint-disable-line
// the first 13 characters of the Embedly errors are "failed [400] ", so remove them and parse the rest
var errorObject = JSON.parse(error.message.substring(13));
throw new Error(errorObject.error_code, errorObject.error_message);
}
}
// For security reason, we make the media property non-modifiable by the client and
// we use a separate server-side API call to set it (and the thumbnail object if it hasn't already been set)
// Async variant that directly modifies the post object with update()
function addMediaAfterSubmit (post) {
var set = {};
if(post.url){
var data = getEmbedlyData(post.url);
if (!!data) {
// only add a thumbnailUrl if there isn't one already
if (!post.thumbnailUrl && !!data.thumbnailUrl) {
set.thumbnailUrl = data.thumbnailUrl;
}
// add media if necessary
if (!!data.media.html) {
set.media = data.media;
}
// add source name & url if they exist
if (!!data.sourceName && !!data.sourceUrl) {
set.sourceName = data.sourceName;
set.sourceUrl = data.sourceUrl;
}
}
// make sure set object is not empty (Embedly call could have failed)
if(!_.isEmpty(set)) {
Posts.update(post._id, {$set: set});
}
}
}
addCallback("posts.new.async", addMediaAfterSubmit);
function updateMediaOnEdit (modifier, post) {
var newUrl = modifier.$set.url;
if(newUrl && newUrl !== post.url){
var data = getEmbedlyData(newUrl);
if(!!data) {
if (!!data.media.html) {
if (modifier.$unset.media) {
delete modifier.$unset.media
}
modifier.$set.media = data.media;
}
// add source name & url if they exist
if (!!data.sourceName && !!data.sourceUrl) {
modifier.$set.sourceName = data.sourceName;
modifier.$set.sourceUrl = data.sourceUrl;
}
}
}
return modifier;
}
addCallback("posts.edit.sync", updateMediaOnEdit);
var regenerateThumbnail = function (post) {
delete post.thumbnailUrl;
delete post.media;
delete post.sourceName;
delete post.sourceUrl;
addMediaAfterSubmit(post);
};
export { getEmbedlyData, addMediaAfterSubmit, updateMediaOnEdit, regenerateThumbnail } |
#include "atom/common/api/atom_bindings.h"
#include <algorithm>
#include <iostream>
#include <string>
#include "atom/common/atom_version.h"
#include "atom/common/chrome_version.h"
#include "atom/common/<API key>/string16_converter.h"
#include "atom/common/node_includes.h"
#include "base/logging.h"
#include "base/process/process_metrics.h"
#include "native_mate/dictionary.h"
namespace atom {
namespace {
// Dummy class type that used for crashing the program.
struct DummyClass { bool crash; };
void Hang() {
for (;;)
base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1));
}
v8::Local<v8::Value> <API key>(v8::Isolate* isolate) {
std::unique_ptr<base::ProcessMetrics> metrics(
base::ProcessMetrics::<API key>());
mate::Dictionary dict = mate::Dictionary::CreateEmpty(isolate);
dict.Set("workingSetSize",
static_cast<double>(metrics->GetWorkingSetSize() >> 10));
dict.Set("peakWorkingSetSize",
static_cast<double>(metrics-><API key>() >> 10));
size_t private_bytes, shared_bytes;
if (metrics->GetMemoryBytes(&private_bytes, &shared_bytes)) {
dict.Set("privateBytes", static_cast<double>(private_bytes >> 10));
dict.Set("sharedBytes", static_cast<double>(shared_bytes >> 10));
}
return dict.GetHandle();
}
v8::Local<v8::Value> GetSystemMemoryInfo(v8::Isolate* isolate,
mate::Arguments* args) {
base::SystemMemoryInfoKB mem_info;
if (!base::GetSystemMemoryInfo(&mem_info)) {
args->ThrowError("Unable to retrieve system memory information");
return v8::Undefined(isolate);
}
mate::Dictionary dict = mate::Dictionary::CreateEmpty(isolate);
dict.Set("total", mem_info.total);
dict.Set("free", mem_info.free);
// NB: These return bogus values on macOS
#if !defined(OS_MACOSX)
dict.Set("swapTotal", mem_info.swap_total);
dict.Set("swapFree", mem_info.swap_free);
#endif
return dict.GetHandle();
}
// Called when there is a fatal error in V8, we just crash the process here so
// we can get the stack trace.
void FatalErrorCallback(const char* location, const char* message) {
LOG(ERROR) << "Fatal error in V8: " << location << " " << message;
AtomBindings::Crash();
}
} // namespace
AtomBindings::AtomBindings() {
uv_async_init(uv_default_loop(), &<API key>, OnCallNextTick);
<API key>.data = this;
}
AtomBindings::~AtomBindings() {
}
void AtomBindings::BindTo(v8::Isolate* isolate,
v8::Local<v8::Object> process) {
v8::V8::<API key>(FatalErrorCallback);
mate::Dictionary dict(isolate, process);
dict.SetMethod("crash", &AtomBindings::Crash);
dict.SetMethod("hang", &Hang);
dict.SetMethod("log", &Log);
dict.SetMethod("<API key>", &<API key>);
dict.SetMethod("getSystemMemoryInfo", &GetSystemMemoryInfo);
#if defined(OS_POSIX)
dict.SetMethod("setFdLimit", &base::SetFdLimit);
#endif
dict.SetMethod("activateUvLoop",
base::Bind(&AtomBindings::ActivateUVLoop, base::Unretained(this)));
#if defined(MAS_BUILD)
dict.Set("mas", true);
#endif
mate::Dictionary versions;
if (dict.Get("versions", &versions)) {
// TODO(kevinsawicki): Make read-only in 2.0 to match node
versions.Set(ATOM_PROJECT_NAME, ATOM_VERSION_STRING);
versions.Set("chrome", <API key>);
// TODO(kevinsawicki): Remove in 2.0
versions.Set("atom-shell", ATOM_VERSION_STRING);
}
}
void AtomBindings::ActivateUVLoop(v8::Isolate* isolate) {
node::Environment* env = node::Environment::GetCurrent(isolate);
if (std::find(pending_next_ticks_.begin(), pending_next_ticks_.end(), env) !=
pending_next_ticks_.end())
return;
pending_next_ticks_.push_back(env);
uv_async_send(&<API key>);
}
// static
void AtomBindings::OnCallNextTick(uv_async_t* handle) {
AtomBindings* self = static_cast<AtomBindings*>(handle->data);
for (std::list<node::Environment*>::const_iterator it =
self->pending_next_ticks_.begin();
it != self->pending_next_ticks_.end(); ++it) {
node::Environment* env = *it;
// KickNextTick, copied from node.cc:
node::Environment::AsyncCallbackScope callback_scope(env);
if (callback_scope.in_makecallback())
continue;
node::Environment::TickInfo* tick_info = env->tick_info();
if (tick_info->length() == 0)
env->isolate()->RunMicrotasks();
v8::Local<v8::Object> process = env->process_object();
if (tick_info->length() == 0)
tick_info->set_index(0);
env-><API key>()->Call(process, 0, nullptr).IsEmpty();
}
self->pending_next_ticks_.clear();
}
// static
void AtomBindings::Log(const base::string16& message) {
std::cout << message << std::flush;
}
// static
void AtomBindings::Crash() {
static_cast<DummyClass*>(nullptr)->crash = true;
}
} // namespace atom |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.c
Label Definition File: <API key>.strings.label.xml
Template File: sources-sink-14.tmpl.c
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: environment Read input from an environment variable
* GoodSource: Fixed string
* Sink: w32_spawnv
* BadSink : execute command with wspawnv
* Flow Variant: 14 Control flow: if(globalFive==5) and if(globalFive!=5)
*
* */
#include "std_testcase.h"
#include <wchar.h>
#ifdef _WIN32
#define COMMAND_INT_PATH L"%WINDIR%\\system32\\cmd.exe"
#define COMMAND_INT L"cmd.exe"
#define COMMAND_ARG1 L"/c"
#define COMMAND_ARG2 L"dir"
#define COMMAND_ARG3 data
#else /* NOT _WIN32 */
#include <unistd.h>
#define COMMAND_INT_PATH L"/bin/sh"
#define COMMAND_INT L"sh"
#define COMMAND_ARG1 L"ls"
#define COMMAND_ARG2 L"-la"
#define COMMAND_ARG3 data
#endif
#define ENV_VARIABLE L"ADD"
#ifdef _WIN32
#define GETENV _wgetenv
#else
#define GETENV getenv
#endif
#include <process.h>
#ifndef OMITBAD
void <API key>()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalFive==5)
{
{
/* Append input from an environment variable to data */
size_t dataLen = wcslen(data);
wchar_t * environment = GETENV(ENV_VARIABLE);
/* If there is data in the environment variable */
if (environment != NULL)
{
/* POTENTIAL FLAW: Read data from an environment variable */
wcsncat(data+dataLen, environment, 100-dataLen-1);
}
}
}
{
wchar_t *args[] = {COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};
/* wspawnv - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
_wspawnv(_P_WAIT, COMMAND_INT_PATH, args);
}
}
#endif /* OMITBAD */
#ifndef OMITGOOD
/* goodG2B1() - use goodsource and badsink by changing the globalFive==5 to globalFive!=5 */
static void goodG2B1()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalFive!=5)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
}
else
{
/* FIX: Append a fixed string to data (not user / external input) */
wcscat(data, L"*.*");
}
{
wchar_t *args[] = {COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};
/* wspawnv - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
_wspawnv(_P_WAIT, COMMAND_INT_PATH, args);
}
}
/* goodG2B2() - use goodsource and badsink by reversing the blocks in the if statement */
static void goodG2B2()
{
wchar_t * data;
wchar_t dataBuffer[100] = L"";
data = dataBuffer;
if(globalFive==5)
{
/* FIX: Append a fixed string to data (not user / external input) */
wcscat(data, L"*.*");
}
{
wchar_t *args[] = {COMMAND_INT_PATH, COMMAND_ARG1, COMMAND_ARG2, COMMAND_ARG3, NULL};
/* wspawnv - specify the path where the command is located */
/* POTENTIAL FLAW: Execute command without validating input possibly leading to command injection */
_wspawnv(_P_WAIT, COMMAND_INT_PATH, args);
}
}
void <API key>()
{
goodG2B1();
goodG2B2();
}
#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()...");
<API key>();
printLine("Finished good()");
#endif /* OMITGOOD */
#ifndef OMITBAD
printLine("Calling bad()...");
<API key>();
printLine("Finished bad()");
#endif /* OMITBAD */
return 0;
}
#endif |
<?php
namespace Application\Controller\MembersArea;
use Application\Entity\UserActionEntity;
use Application\Form\Type\User\SettingsType;
use Application\Form\Type\User\PasswordType;
use Silex\Application;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* @author Borut Balazek <bobalazek124@gmail.com>
*/
class MyController
{
/**
* @param Application $app
*
* @return Response
*/
public function indexAction(Application $app)
{
return $app->redirect(
$app['url_generator']->generate('members-area.my.profile')
);
}
/**
* @param Application $app
*
* @return Response
*/
public function profileAction(Application $app)
{
return new Response(
$app['twig']->render(
'contents/members-area/my/profile.html.twig'
)
);
}
/**
* @param Request $request
* @param Application $app
*
* @return Response
*/
public function settingsAction(Request $request, Application $app)
{
$userOld = clone $app['user'];
$userOldArray = $userOld->toArray(false);
$form = $app['form.factory']->create(
SettingsType::class,
$app['user']
);
$newEmailCode = $request->query->get('new_email_code');
if ($newEmailCode) {
$userByNewEmailCode = $app['orm.em']
->getRepository('Application\Entity\UserEntity')
-><API key>($newEmailCode)
;
if (
$userByNewEmailCode &&
$userByNewEmailCode === $app['user']
) {
$app['user']
->setNewEmailCode(null)
->setEmail($app['user']->getNewEmail())
->setNewEmail(null)
;
$app['orm.em']->persist($app['user']);
$app['orm.em']->flush();
$app['application.mailer']
-><API key>([
'subject' => $app['name'].' - '.$app['translator']->trans('Email change confirmation'),
'to' => [$app['user']->getEmail()],
'body' => 'emails/users/<API key>.html.twig',
'templateData' => [
'user' => $app['user'],
],
])
;
$app['flashbag']->add(
'success',
$app['translator']->trans(
'You have successfully changed to your new email address!'
)
);
} else {
$app['flashbag']->add(
'warning',
$app['translator']->trans(
'The new email code is invalid. Please change your new email again!'
)
);
}
return $app->redirect(
$app['url_generator']->generate('members-area.my.settings')
);
}
if ($request->getMethod() == 'POST') {
$form->handleRequest($request);
if ($form->isValid()) {
$userEntity = $form->getData();
if ($userEntity->getProfile()->getRemoveImage()) {
$userEntity->getProfile()->setImageUrl(null);
}
/*** Image ***/
$userEntity
->getProfile()
->setImageUploadPath($app['baseUrl'].'/assets/uploads/')
->setImageUploadDir(WEB_DIR.'/assets/uploads/')
->imageUpload()
;
$app['orm.em']->persist($userEntity);
if ($userOld->getEmail() !== $userEntity->getEmail()) {
$userEntity
->setNewEmailCode(md5(uniqid(null, true)))
->setNewEmail($userEntity->getEmail())
->setEmail($userOld->getEmail())
;
$app['application.mailer']
-><API key>([
'subject' => $app['name'].' - '.$app['translator']->trans('Email change'),
'to' => [$userEntity->getNewEmail()],
'body' => 'emails/users/new-email.html.twig',
'templateData' => [
'user' => $userEntity,
],
])
;
$app['flashbag']->add(
'success',
$app['translator']->trans(
'Please confirm your new password, by clicking the confirmation link we just sent you to the new email address!'
)
);
}
$userActionEntity = new UserActionEntity();
$userActionEntity
->setUser($userEntity)
->setKey('user.settings.change')
->setMessage('User has changed his settings!')
->setData([
'old' => $userOldArray,
'new' => $userEntity->toArray(false),
])
->setIp($request->getClientIp())
->setUserAgent($request->headers->get('User-Agent'))
;
$app['orm.em']->persist($userActionEntity);
$app['orm.em']->flush();
$app['flashbag']->add(
'success',
$app['translator']->trans(
'Your settings were successfully saved!'
)
);
return $app->redirect(
$app['url_generator']->generate('members-area.my.settings')
);
} else {
$app['orm.em']->refresh($app['user']);
}
}
return new Response(
$app['twig']->render(
'contents/members-area/my/settings.html.twig',
[
'form' => $form->createView(),
]
)
);
}
/**
* @param Request $request
* @param Application $app
*
* @return Response
*/
public function passwordAction(Request $request, Application $app)
{
$form = $app['form.factory']->create(
PasswordType::class,
$app['user']
);
if ($request->getMethod() == 'POST') {
$form->handleRequest($request);
if ($form->isValid()) {
$userEntity = $form->getData();
if ($userEntity->getPlainPassword()) {
$userEntity->setPlainPassword(
$userEntity->getPlainPassword(),
$app['security.encoder_factory']
);
$app['orm.em']->persist($userEntity);
$userActionEntity = new UserActionEntity();
$userActionEntity
->setUser($userEntity)
->setKey('user.password.change')
->setMessage('User has changed his password!')
->setIp($request->getClientIp())
->setUserAgent($request->headers->get('User-Agent'))
;
$app['orm.em']->persist($userActionEntity);
$app['orm.em']->flush();
$app['flashbag']->add(
'success',
$app['translator']->trans(
'Your password was successfully changed!'
)
);
}
}
}
return new Response(
$app['twig']->render(
'contents/members-area/my/password.html.twig',
[
'form' => $form->createView(),
]
)
);
}
/**
* @param Request $request
* @param Application $app
*
* @return Response
*/
public function actionsAction(Request $request, Application $app)
{
$limitPerPage = $request->query->get('limit_per_page', 20);
$currentPage = $request->query->get('page');
$userActionResults = $app['orm.em']
->createQueryBuilder()
->select('ua')
->from('Application\Entity\UserActionEntity', 'ua')
->where('ua.user = ?1')
->setParameter(1, $app['user'])
;
$pagination = $app['application.paginator']->paginate(
$userActionResults,
$currentPage,
$limitPerPage,
[
'route' => 'members-area.my.actions',
'<API key>' => 'ua.timeCreated',
'<API key>' => 'desc',
'searchFields' => [
'ua.key',
'ua.ip',
],
]
);
return new Response(
$app['twig']->render(
'contents/members-area/my/actions.html.twig',
[
'pagination' => $pagination,
]
)
);
}
} |
package com.example.newbiechen.ireader.ui.activity;
import android.app.Service;
import android.content.ComponentName;
import android.content.Intent;
import android.content.ServiceConnection;
import android.os.IBinder;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import com.example.newbiechen.ireader.R;
import com.example.newbiechen.ireader.model.bean.DownloadTaskBean;
import com.example.newbiechen.ireader.service.DownloadService;
import com.example.newbiechen.ireader.ui.adapter.DownLoadAdapter;
import com.example.newbiechen.ireader.ui.base.BaseActivity;
import com.example.newbiechen.ireader.widget.RefreshLayout;
import com.example.newbiechen.ireader.widget.itemdecoration.<API key>;
import butterknife.BindView;
public class DownloadActivity extends BaseActivity implements DownloadService.OnDownloadListener{
private static final String TAG = "DownloadActivity";
@BindView(R.id.refresh_layout)
RefreshLayout mRefreshLayout;
@BindView(R.id.refresh_rv_content)
RecyclerView mRvContent;
private DownLoadAdapter mDownloadAdapter;
private ServiceConnection mConn;
private DownloadService.IDownloadManager mService;
@Override
protected int getContentId() {
return R.layout.<API key>;
}
@Override
protected void setUpToolbar(Toolbar toolbar) {
super.setUpToolbar(toolbar);
getSupportActionBar().setTitle("");
}
@Override
protected void initWidget() {
super.initWidget();
setUpAdapter();
}
private void setUpAdapter(){
mDownloadAdapter = new DownLoadAdapter();
mRvContent.addItemDecoration(new <API key>(this));
mRvContent.setLayoutManager(new LinearLayoutManager(this));
mRvContent.setAdapter(mDownloadAdapter);
}
@Override
protected void initClick() {
super.initClick();
mDownloadAdapter.<API key>(
(view, pos) -> {
DownloadTaskBean bean = mDownloadAdapter.getItem(pos);
switch (bean.getStatus()){
case DownloadTaskBean.STATUS_LOADING:
mService.setDownloadStatus(bean.getTaskName(),DownloadTaskBean.STATUS_PAUSE);
break;
case DownloadTaskBean.STATUS_WAIT:
mService.setDownloadStatus(bean.getTaskName(),DownloadTaskBean.STATUS_PAUSE);
break;
case DownloadTaskBean.STATUS_PAUSE:
mService.setDownloadStatus(bean.getTaskName(),DownloadTaskBean.STATUS_WAIT);
break;
case DownloadTaskBean.STATUS_ERROR:
mService.setDownloadStatus(bean.getTaskName(),DownloadTaskBean.STATUS_WAIT);
break;
}
}
);
}
@Override
protected void processLogic() {
super.processLogic();
mConn = new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
mService = (DownloadService.IDownloadManager) service;
mDownloadAdapter.addItems(mService.getDownloadTaskList());
mService.<API key>(DownloadActivity.this);
mRefreshLayout.showFinish();
}
@Override
public void <API key>(ComponentName name) {
}
};
bindService(new Intent(this, DownloadService.class), mConn, Service.BIND_AUTO_CREATE);
}
@Override
protected void onDestroy() {
super.onDestroy();
unbindService(mConn);
}
@Override
public void onDownloadChange(int pos, int status, String msg) {
DownloadTaskBean bean = mDownloadAdapter.getItem(pos);
bean.setStatus(status);
if (DownloadTaskBean.STATUS_LOADING == status){
bean.setCurrentChapter(Integer.valueOf(msg));
}
mDownloadAdapter.notifyItemChanged(pos);
}
@Override
public void onDownloadResponse(int pos, int status) {
DownloadTaskBean bean = mDownloadAdapter.getItem(pos);
bean.setStatus(status);
mDownloadAdapter.notifyItemChanged(pos);
}
} |
# encoding: utf-8
module MsRest
# Base module for Ruby serialization and deserialization.
# Provides methods to serialize Ruby object into Ruby Hash and
# to deserialize Ruby Hash into Ruby object.
module Serialization
# Deserialize the response from the server using the mapper.
# @param mapper [Hash] Ruby Hash object to represent expected structure of the response_body.
# @param response_body [Hash] Ruby Hash object to deserialize.
# @param object_name [String] Name of the deserialized object.
def deserialize(mapper, response_body, object_name)
serialization = Serialization.new(self)
serialization.deserialize(mapper, response_body, object_name)
end
# Serialize the Ruby object into Ruby Hash to send it to the server using the mapper.
# @param mapper [Hash] Ruby Hash object to represent expected structure of the object.
# @param object [Object] Ruby object to serialize.
# @param object_name [String] Name of the serialized object.
def serialize(mapper, object, object_name)
serialization = Serialization.new(self)
serialization.serialize(mapper, object, object_name)
end
# Class to handle serialization & deserialization.
class Serialization
def initialize(context)
@context = context
end
# Deserialize the response from the server using the mapper.
# @param mapper [Hash] Ruby Hash object to represent expected structure of the response_body.
# @param response_body [Hash] Ruby Hash object to deserialize.
# @param object_name [String] Name of the deserialized object.
def deserialize(mapper, response_body, object_name)
return response_body if response_body.nil?
object_name = mapper[:serialized_name] unless object_name.nil?
mapper_type = mapper[:type][:name]
if !mapper_type.match(/^(Number|Double|ByteArray|Boolean|Date|DateTime|DateTimeRfc1123|UnixTime|Enum|String|Object|Stream)$/i).nil?
payload = <API key>(mapper, response_body)
elsif !mapper_type.match(/^Dictionary$/i).nil?
payload = <API key>(mapper, response_body, object_name)
elsif !mapper_type.match(/^Composite$/i).nil?
payload = <API key>(mapper, response_body, object_name)
elsif !mapper_type.match(/^Sequence$/i).nil?
payload = <API key>(mapper, response_body, object_name)
else
payload = ""
end
payload = mapper[:default_value] if mapper[:is_constant]
payload
end
# Deserialize the response of known primary type from the server using the mapper.
# @param mapper [Hash] Ruby Hash object to represent expected structure of the response_body.
# @param response_body [Hash] Ruby Hash object to deserialize.
def <API key>(mapper, response_body)
result = ""
case mapper[:type][:name]
when 'Number'
result = Integer(response_body) unless response_body.to_s.empty?
when 'Double'
result = Float(response_body) unless response_body.to_s.empty?
when 'ByteArray'
result = Base64.strict_decode64(response_body).unpack('C*') unless response_body.to_s.empty?
when 'String', 'Boolean', 'Object', 'Stream'
result = response_body
when 'Enum'
unless response_body.nil? || response_body.empty?
unless enum_is_valid(mapper, response_body)
warn "Enum #{model} does not contain #{response_body.downcase}, but was received from the server."
end
end
result = response_body
when 'Date'
unless response_body.to_s.empty?
result = Timeliness.parse(response_body, :strict => true)
fail <API key>.new('Error occured in deserializing the response_body', nil, nil, response_body) if result.nil?
result = ::Date.parse(result.to_s)
end
when 'DateTime', 'DateTimeRfc1123'
result = DateTime.parse(response_body) unless response_body.to_s.empty?
when 'UnixTime'
result = DateTime.strptime(response_body.to_s, '%s') unless response_body.to_s.empty?
else
result
end
result
end
# Deserialize the response of dictionary type from the server using the mapper.
# @param mapper [Hash] Ruby Hash object to represent expected structure of the response_body.
# @param response_body [Hash] Ruby Hash object to deserialize.
# @param object_name [String] Name of the deserialized object.
def <API key>(mapper, response_body, object_name)
if mapper[:type][:value].nil? || !mapper[:type][:value].is_a?(Hash)
fail <API key>.new("'value' metadata for a dictionary type must be defined in the mapper and it must be of type Hash in #{object_name}", nil, nil, response_body)
end
result = Hash.new
response_body.each do |key, val|
result[key] = deserialize(mapper[:type][:value], val, object_name)
end
result
end
# Deserialize the response of composite type from the server using the mapper.
# @param mapper [Hash] Ruby Hash object to represent expected structure of the response_body.
# @param response_body [Hash] Ruby Hash object to deserialize.
# @param object_name [String] Name of the deserialized object.
def <API key>(mapper, response_body, object_name)
if mapper[:type][:class_name].nil?
fail <API key>.new("'class_name' metadata for a composite type must be defined in the mapper and it must be of type Hash in #{object_name}", nil, nil, response_body)
end
if !mapper[:type][:<API key>].nil?
# Handle polymorphic types
parent_class = get_model(mapper[:type][:class_name])
discriminator = parent_class.class_eval("@@discriminatorMap")
model_name = response_body["#{mapper[:type][:<API key>]}"]
model_class = get_model(discriminator[model_name].capitalize)
else
model_class = get_model(mapper[:type][:class_name])
end
result = model_class.new
model_mapper = model_class.mapper()
model_props = model_mapper[:type][:model_properties]
unless model_props.nil?
model_props.each do |key, val|
sub_response_body = nil
unless val[:serialized_name].to_s.include? '.'
sub_response_body = response_body[val[:serialized_name].to_s]
else
# Flattened properties will be dicovered at deeper level in payload but must be deserialized to higher levels in model class
sub_response_body = response_body
levels = <API key>(val[:serialized_name].to_s)
levels.each { |level| sub_response_body = sub_response_body.nil? ? nil : sub_response_body[level.to_s] }
end
result.<API key>("@#{key}", deserialize(val, sub_response_body, object_name)) unless sub_response_body.nil?
end
end
result
end
# Deserialize the response of sequence type from the server using the mapper.
# @param mapper [Hash] Ruby Hash object to represent expected structure of the response_body.
# @param response_body [Hash] Ruby Hash object to deserialize.
# @param object_name [String] Name of the deserialized object.
def <API key>(mapper, response_body, object_name)
if mapper[:type][:element].nil? || !mapper[:type][:element].is_a?(Hash)
fail <API key>.new("'element' metadata for a sequence type must be defined in the mapper and it must be of type Hash in #{object_name}", nil, nil, response_body)
end
return response_body if response_body.nil?
result = []
response_body.each do |element|
result.push(deserialize(mapper[:type][:element], element, object_name))
end
result
end
# Serialize the Ruby object into Ruby Hash to send it to the server using the mapper.
# @param mapper [Hash] Ruby Hash object to represent expected structure of the object.
# @param object [Object] Ruby object to serialize.
# @param object_name [String] Name of the serialized object.
def serialize(mapper, object, object_name)
object_name = mapper[:serialized_name] unless object_name.nil?
# Set defaults
unless mapper[:default_value].nil?
object = mapper[:default_value] if object.nil?
end
object = mapper[:default_value] if mapper[:is_constant]
# Throw if required & non-constant object is nil
if mapper[:required] && object.nil? && !mapper[:is_constant]
fail ValidationError, "#{object_name} is required and cannot be nil"
end
if !mapper[:required] && object.nil?
return object
end
payload = Hash.new
mapper_type = mapper[:type][:name]
if !mapper_type.match(/^(Number|Double|ByteArray|Boolean|Date|DateTime|DateTimeRfc1123|UnixTime|Enum|String|Object|Stream)$/i).nil?
payload = <API key>(mapper, object)
elsif !mapper_type.match(/^Dictionary$/i).nil?
payload = <API key>(mapper, object, object_name)
elsif !mapper_type.match(/^Composite$/i).nil?
payload = <API key>(mapper, object, object_name)
elsif !mapper_type.match(/^Sequence$/i).nil?
payload = <API key>(mapper, object, object_name)
end
payload
end
# Serialize the Ruby object of known primary type into Ruby Hash to send it to the server using the mapper.
# @param mapper [Hash] Ruby Hash object to represent expected structure of the object.
# @param object [Object] Ruby object to serialize.
def <API key>(mapper, object)
mapper_type = mapper[:type][:name]
payload = nil
case mapper_type
when 'Number', 'Double', 'String', 'Date', 'Boolean', 'Object', 'Stream'
payload = object != nil ? object : nil
when 'Enum'
unless object.nil? || object.empty?
unless enum_is_valid(mapper, object)
fail ValidationError, "Enum #{mapper[:type][:module]} does not contain #{object.to_s}, but trying to send it to the server."
end
end
payload = object != nil ? object : nil
when 'ByteArray'
payload = Base64.strict_encode64(object.pack('c*'))
when 'DateTime'
payload = object.new_offset(0).strftime('%FT%TZ')
when 'DateTimeRfc1123'
payload = object.new_offset(0).strftime('%a, %d %b %Y %H:%M:%S GMT')
when 'UnixTime'
payload = object.new_offset(0).strftime('%s') unless object.nil?
end
payload
end
# Serialize the Ruby object of dictionary type into Ruby Hash to send it to the server using the mapper.
# @param mapper [Hash] Ruby Hash object to represent expected structure of the object.
# @param object [Object] Ruby object to serialize.
# @param object_name [String] Name of the serialized object.
def <API key>(mapper, object, object_name)
unless object.is_a?(Hash)
fail <API key>.new("#{object_name} must be of type Hash", nil, nil, object)
end
unless mapper[:type][:value].nil? || mapper[:type][:value].is_a?(Hash)
fail <API key>.new("'value' metadata for a dictionary type must be defined in the mapper and it must be of type Hash in #{object_name}", nil, nil, object)
end
payload = Hash.new
object.each do |key, value|
if !value.nil? && value.respond_to?(:validate)
value.validate
end
payload[key] = serialize(mapper[:type][:value], value, object_name)
end
payload
end
# Serialize the Ruby object of composite type into Ruby Hash to send it to the server using the mapper.
# @param mapper [Hash] Ruby Hash object to represent expected structure of the object.
# @param object [Object] Ruby object to serialize.
# @param object_name [String] Name of the serialized object.
def <API key>(mapper, object, object_name)
if !mapper[:type][:<API key>].nil?
# Handle polymorphic types
model_name = object.class.to_s.split('::')[-1]
model_class = get_model(model_name)
else
model_class = get_model(mapper[:type][:class_name])
end
payload = Hash.new
model_mapper = model_class.mapper()
model_props = model_mapper[:type][:model_properties]
unless model_props.nil?
model_props.each do |key, value|
instance_variable = object.<API key>("@#{key}")
if !instance_variable.nil? && instance_variable.respond_to?(:validate)
instance_variable.validate
end
# Read only properties should not be sent on wire
if !model_props[key][:read_only].nil? && model_props[key][:read_only]
next
end
sub_payload = serialize(value, instance_variable, object_name)
unless value[:serialized_name].to_s.include? '.'
payload[value[:serialized_name].to_s] = sub_payload unless sub_payload.nil?
else
# Flattened properties will be discovered at higher levels in model class but must be serialized to deeper level in payload
levels = <API key>(value[:serialized_name].to_s)
last_level = levels.pop
temp_payload = payload
levels.each do |level|
temp_payload[level] = Hash.new unless temp_payload.key?(level)
temp_payload = temp_payload[level]
end
temp_payload[last_level] = sub_payload unless sub_payload.nil?
end
end
end
payload
end
# Serialize the Ruby object of sequence type into Ruby Hash to send it to the server using the mapper.
# @param mapper [Hash] Ruby Hash object to represent expected structure of the object.
# @param object [Object] Ruby object to serialize.
# @param object_name [String] Name of the serialized object.
def <API key>(mapper, object, object_name)
unless object.is_a?(Array)
fail <API key>.new("#{object_name} must be of type of Array", nil, nil, object)
end
unless mapper[:type][:element].nil? || mapper[:type][:element].is_a?(Hash)
fail <API key>.new("'element' metadata for a sequence type must be defined in the mapper and it must be of type Hash in #{object_name}", nil, nil, object)
end
payload = Array.new
object.each do |element|
if !element.nil? && element.respond_to?(:validate)
element.validate
end
payload.push(serialize(mapper[:type][:element], element, object_name))
end
payload
end
# Retrieves model of the model_name
# @param model_name [String] Name of the model to retrieve.
def get_model(model_name)
Object.const_get(@context.class.to_s.split('::')[0...-1].join('::') + "::Models::#{model_name}")
end
# Checks whether given enum_value is valid for the mapper or not
# @param mapper [Hash] Ruby Hash object containing meta data
# @param enum_value [String] Enum value to validate
def enum_is_valid(mapper, enum_value)
model = get_model(mapper[:type][:module])
model.constants.any? { |e| model.const_get(e).to_s.downcase == enum_value.downcase }
end
# Splits serialized_name with '.' to compute levels of object hierarchy
# @param serialized_name [String] Name to split
def <API key>(serialized_name)
result = Array.new
element = ''
levels = serialized_name.to_s.split('.')
levels.each do |level|
unless level.match(/.*\\$/).nil?
# Flattened properties will be discovered at different levels in model class and response body
element = "#{element}#{level.gsub!('\\','')}."
else
element = "#{element}#{level}"
result.push(element) unless element.empty?
element = ''
end
end
result
end
end
end
end |
# coding: utf-8
class SpecialHexValidator < ActiveModel::EachValidator
def validate_each(record, attribute, value)
if attribute == :length
if value.upcase != "UNLIM"
if !(value.upcase =~ /^[0-3][0-9A-F]$/)
record.errors[attribute] << "invalid hex"
end
end
end
if (attribute == :pu_fine) && (record.type == "PULSE")
if !(value.upcase =~ /^[0-9A-F]$/)
record.errors[attribute] << "invalid hex"
end
end
if (attribute == :synth_start_phase) || (attribute == :synth_end_phase)
if !(value.upcase =~ /^[0-1][0-9A-F]$/)
record.errors[attribute] << "invalid hex"
end
end
end
end |
<?php
include '../engine.php';
$mode = array('ajax'=>true);
if($_POST['type'] == 'com')
{
if(!isset($_POST['login']))
die(json_encode(array('status'=>'error', 'msg'=>'Niebezpieczeństwo!')));
if(!isset($_POST['pass']))
die(json_encode(array('status'=>'error', 'msg'=>'Niebezpieczeństwo!')));
if(empty($_POST['login']))
die(json_encode(array('status'=>'error', 'msg'=>'Nie podano loginu')));
if(empty($_POST['pass']))
die(json_encode(array('status'=>'error', 'msg'=>'Nie podano hasła')));
$llen = strlen($_POST['login']);
if($llen < 4 || $llen > 50) die(json_encode(array('status'=>'error', 'msg'=>'Konto nie istnieje')));
$plen = strlen($_POST['pass']);
if($plen < 6 || $plen > 20) die(json_encode(array('status'=>'error', 'msg'=>'Dane są nieprawidłowe')));
$log = sql('SELECT `id`, `name` FROM :table WHERE `login` = :login AND `pass` = :pass', 'user', array('login'=>strtolower($_POST['login']), 'pass'=>md5($_POST['pass'])), 1);
if(isset($log['id']) and $log['id'] > 0)
{
$_SESSION['userid'] = $log['id'];
$_SESSION['username'] = $log['name'];
die(json_encode(array('status'=>'success', 'msg'=>'Zalogowano!', 'id'=>$log['id'])));
}
else
{
die(json_encode(array('status'=>'error', 'msg'=>'Nieprawidłowe dane')));
}
}
else
{
if(!isset($_POST['login']))
die(json_encode(array('status'=>'error', 'msg'=>'Niebezpieczeństwo!')));
if(!isset($_POST['pass']))
die(json_encode(array('status'=>'error', 'msg'=>'Niebezpieczeństwo!')));
if(empty($_POST['login']))
die(json_encode(array('status'=>'error', 'msg'=>'Nie podano loginu')));
if(empty($_POST['pass']))
die(json_encode(array('status'=>'error', 'msg'=>'Nie podano hasła')));
$llen = strlen($_POST['login']);
if($llen < 4 || $llen > 50) die(json_encode(array('status'=>'error', 'msg'=>'Konto nie istnieje')));
$plen = strlen($_POST['pass']);
if($plen < 6 || $plen > 20) die(json_encode(array('status'=>'error', 'msg'=>'Dane są nieprawidłowe')));
$log = sql('SELECT `id`, `name` FROM :table WHERE `login` = :login AND `pass` = :pass', 'user', array('login'=>strtolower($_POST['login']), 'pass'=>md5($_POST['pass'])), 1);
if(isset($log['id']) and $log['id'] > 0)
{
$_SESSION['userid'] = $log['id'];
$_SESSION['username'] = $log['name'];
die(json_encode(array('status'=>'success', 'msg'=>'Zalogowano!', 'id'=>$log['id'])));
}
else
{
die(json_encode(array('status'=>'error', 'msg'=>'Nieprawidłowe dane')));
}
}
?> |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
// Read Sprockets README (https://github.com/sstephenson/sprockets#<API key>) for details
// about supported directives.
//= require jquery
//= require jquery_ujs
//= require bootstrap
//= require <API key>
//= require_tree . |
package bnw.abm.intg.BuildingProperties;
import java.io.IOException;
import java.io.StringWriter;
import java.nio.file.Path;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.geotools.data.DataUtilities;
import org.geotools.data.simple.<API key>;
import org.geotools.geojson.feature.FeatureJSON;
import org.opengis.feature.simple.SimpleFeature;
import org.opengis.referencing.crs.<API key>;
import com.fasterxml.jackson.annotation.<API key>;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ObjectMapper;
import bnw.abm.intg.geo.<API key>;
import bnw.abm.intg.geo.<API key>;
import bnw.abm.intg.util.BNWLogger;
/**
* @author Bhagya N. Wickramasinghe
*
*/
public class Buildings {
private static final Logger logger = BNWLogger.getLogger("bnw.phd.intg.buildingproperties");
/**
* Reads building shapes from input file
*
* @param inputFile
* Path of file
* @param filterByProperty
* Reads only the shapes that matches given 'filterByValues' of this Property
* @param filterByValues
* Reads only shapes that has this value for 'filterByProperty'
* @param targetCRS
* Converts geometry to this coordinate reference system when reading
* @return <API key> object of all the matching buildings in given file
* @throws IOException
*/
static <API key> getBuildings(Path inputFile, String filterByProperty, String[] filterByValues,
<API key> targetCRS) throws IOException {
<API key> buildingsCollection = null;
<API key> <API key> = new <API key>();
try {
<API key>.<API key>(inputFile, filterByProperty, filterByValues, targetCRS);
buildingsCollection = DataUtilities.simple(<API key>.getFeatures());
} catch (IOException e) {
logger.log(Level.WARNING, "Reading failed", e);
} finally {
<API key>.close();
}
return buildingsCollection;
}
/**
* Converts building SimpleFeature to a Building POJO
*
* @param building
* SimpleFeature to be converted
* @return Building POJO after converting
* @throws IOException
*/
static Building map2POJO(SimpleFeature building) throws IOException {
FeatureJSON fjson = new FeatureJSON();
StringWriter writer = new StringWriter();
fjson.writeFeature(building, writer);
String json = writer.toString();
ObjectMapper mapper = new ObjectMapper();
Building pojoBuilding = mapper.readValue(json, Building.class);
return pojoBuilding;
}
}
/**
* Building POJO - Used to convert building SimpleFeature
*
* @author bhagya
*
*/
@<API key>(ignoreUnknown = true)
class Building {
private BuildingProperty properties;
private BuildingGeometry geometry;
public BuildingProperty getProperties() {
return properties;
}
public void setProperties(BuildingProperty buildingProperties) {
this.properties = buildingProperties;
}
public BuildingGeometry getGeometry() {
return geometry;
}
public void setGeometry(BuildingGeometry geometry) {
this.geometry = geometry;
}
}
/**
* Geometry POJO for ijts Geometry in building SimpleFeature
*
* @author bhagya
*
*/
@<API key>(ignoreUnknown = true)
class BuildingGeometry {
private String type;
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
private List coordinates;
public List getCoordinates() {
return coordinates;
}
public void setCoordinates(List coordinates) {
this.coordinates = coordinates;
}
}
/**
* Property POJO for properties in building SimpleFeature
*
* @author bhagya
*
*/
@<API key>(ignoreUnknown = true)
class BuildingProperty {
public BuildingProperty() {
}
private String EZI_ADD; // e.g., "14 FAIRWAY COURT BUNDOORA 3083"
private String STATE; // e.g., "VIC"
private String POSTCODE; // e.g., "3083"
private String LGA_CODE; // e.g., 373
private String LOCALITY; // e.g., "BUNDOORA"
private String ADD_CLASS; // e.g., "S", or "M"
private String SA1_7DIG11 = ""; // SA1 code e.g., "2120241"
private String BEDD;// Bedrooms
private String TENLLD;// Tenure and landlord type
private String STRD;// Dweling structure
private String BUILDING_TYPE;// residential or non residential
private String CENSUS_HHSIZE;
private String SA1_MAINCODE_2011;// SA1 longer code
public String getBEDD() {
return BEDD;
}
@JsonProperty("BEDD")
public void setBEDD(String bEDD) {
BEDD = bEDD;
}
public String getTENLLD() {
return TENLLD;
}
@JsonProperty("TENLLD")
public void setTENLLD(String tENLLD) {
TENLLD = tENLLD;
}
public String getSTRD() {
return STRD;
}
@JsonProperty("STRD")
public void setSTRD(String sTRD) {
STRD = sTRD;
}
public String getBUILDING_TYPE() {
return BUILDING_TYPE;
}
@JsonProperty("BUILDING_TYPE")
public void setBUILDING_TYPE(String bUILDING_TYPE) {
BUILDING_TYPE = bUILDING_TYPE;
}
public String getCENSUS_HHSIZE() {
return CENSUS_HHSIZE;
}
@JsonProperty("CENSUS_HHSIZE")
public void setCENSUS_HHSIZE(String cENSUS_HHSIZE) {
CENSUS_HHSIZE = cENSUS_HHSIZE;
}
public String <API key>() {
return SA1_MAINCODE_2011;
}
@JsonProperty("SA1_MAINCODE_2011")
public void <API key>(String sA1_MAINCODE_2011) {
SA1_MAINCODE_2011 = sA1_MAINCODE_2011;
}
public String getEZI_ADD() {
return EZI_ADD;
}
@JsonProperty("EZI_ADD")
public void setEZI_ADD(String eZI_ADD) {
EZI_ADD = eZI_ADD;
}
public String getSTATE() {
return STATE;
}
@JsonProperty("STATE")
public void setSTATE(String sTATE) {
STATE = sTATE;
}
public String getPOSTCODE() {
return POSTCODE;
}
@JsonProperty("POSTCODE")
public void setPOSTCODE(String pOSTCODE) {
POSTCODE = pOSTCODE;
}
public String getLGA_CODE() {
return LGA_CODE;
}
@JsonProperty("LGA_CODE")
public void setLGA_CODE(String lGA_CODE) {
LGA_CODE = lGA_CODE;
}
public String getLOCALITY() {
return LOCALITY;
}
@JsonProperty("LOCALITY")
public void setLOCALITY(String lOCALITY) {
LOCALITY = lOCALITY;
}
public String getADD_CLASS() {
return ADD_CLASS;
}
@JsonProperty("ADD_CLASS")
public void setADD_CLASS(String aDD_CLASS) {
ADD_CLASS = aDD_CLASS;
}
public String getSA1_7DIG11() {
return SA1_7DIG11;
}
@JsonProperty("SA1_7DIG11")
public void setSA1_7DIG11(String sA1_7DIG11) {
SA1_7DIG11 = sA1_7DIG11;
}
} |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: <API key>.c
Label Definition File: <API key>.label.xml
Template File: sources-sinks-13.tmpl.c
*/
/*
* @description
* CWE: 190 Integer Overflow
* BadSource: fgets Read data from the console using fgets()
* GoodSource: Set data to a small, non-zero number (two)
* Sinks: square
* GoodSink: Ensure there will not be an overflow before squaring data
* BadSink : Square data, which can lead to overflow
* Flow Variant: 13 Control flow: if(GLOBAL_CONST_FIVE==5) and if(GLOBAL_CONST_FIVE!=5)
*
* */
#include "std_testcase.h"
#define CHAR_ARRAY_SIZE (3 * sizeof(data) + 2)
#include <math.h>
#ifndef OMITBAD
void <API key>()
{
int data;
/* Initialize data */
data = 0;
if(GLOBAL_CONST_FIVE==5)
{
{
char inputBuffer[CHAR_ARRAY_SIZE] = "";
/* POTENTIAL FLAW: Read data from the console using fgets() */
if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL)
{
/* Convert to int */
data = atoi(inputBuffer);
}
else
{
printLine("fgets() failed.");
}
}
}
if(GLOBAL_CONST_FIVE==5)
{
{
/* POTENTIAL FLAW: if (data*data) > INT_MAX, this will overflow */
int result = data * data;
printIntLine(result);
}
}
}
#endif /* OMITBAD */
#ifndef OMITGOOD
/* goodB2G1() - use badsource and goodsink by changing the second GLOBAL_CONST_FIVE==5 to GLOBAL_CONST_FIVE!=5 */
static void goodB2G1()
{
int data;
/* Initialize data */
data = 0;
if(GLOBAL_CONST_FIVE==5)
{
{
char inputBuffer[CHAR_ARRAY_SIZE] = "";
/* POTENTIAL FLAW: Read data from the console using fgets() */
if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL)
{
/* Convert to int */
data = atoi(inputBuffer);
}
else
{
printLine("fgets() failed.");
}
}
}
if(GLOBAL_CONST_FIVE!=5)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
}
else
{
/* FIX: Add a check to prevent an overflow from occurring */
if (abs((long)data) <= (long)sqrt((double)INT_MAX))
{
int result = data * data;
printIntLine(result);
}
else
{
printLine("data value is too large to perform arithmetic safely.");
}
}
}
/* goodB2G2() - use badsource and goodsink by reversing the blocks in the second if */
static void goodB2G2()
{
int data;
/* Initialize data */
data = 0;
if(GLOBAL_CONST_FIVE==5)
{
{
char inputBuffer[CHAR_ARRAY_SIZE] = "";
/* POTENTIAL FLAW: Read data from the console using fgets() */
if (fgets(inputBuffer, CHAR_ARRAY_SIZE, stdin) != NULL)
{
/* Convert to int */
data = atoi(inputBuffer);
}
else
{
printLine("fgets() failed.");
}
}
}
if(GLOBAL_CONST_FIVE==5)
{
/* FIX: Add a check to prevent an overflow from occurring */
if (abs((long)data) <= (long)sqrt((double)INT_MAX))
{
int result = data * data;
printIntLine(result);
}
else
{
printLine("data value is too large to perform arithmetic safely.");
}
}
}
/* goodG2B1() - use goodsource and badsink by changing the first GLOBAL_CONST_FIVE==5 to GLOBAL_CONST_FIVE!=5 */
static void goodG2B1()
{
int data;
/* Initialize data */
data = 0;
if(GLOBAL_CONST_FIVE!=5)
{
/* INCIDENTAL: CWE 561 Dead Code, the code below will never run */
printLine("Benign, fixed string");
}
else
{
/* FIX: Use a small, non-zero value that will not cause an integer overflow in the sinks */
data = 2;
}
if(GLOBAL_CONST_FIVE==5)
{
{
/* POTENTIAL FLAW: if (data*data) > INT_MAX, this will overflow */
int result = data * data;
printIntLine(result);
}
}
}
/* goodG2B2() - use goodsource and badsink by reversing the blocks in the first if */
static void goodG2B2()
{
int data;
/* Initialize data */
data = 0;
if(GLOBAL_CONST_FIVE==5)
{
/* FIX: Use a small, non-zero value that will not cause an integer overflow in the sinks */
data = 2;
}
if(GLOBAL_CONST_FIVE==5)
{
{
/* POTENTIAL FLAW: if (data*data) > INT_MAX, this will overflow */
int result = data * data;
printIntLine(result);
}
}
}
void <API key>()
{
goodB2G1();
goodB2G2();
goodG2B1();
goodG2B2();
}
#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()...");
<API key>();
printLine("Finished good()");
#endif /* OMITGOOD */
#ifndef OMITBAD
printLine("Calling bad()...");
<API key>();
printLine("Finished bad()");
#endif /* OMITBAD */
return 0;
}
#endif |
<?php
namespace CallFire\Common\Resource;
class Call extends Action
{
/**
* @var boolean
*/
protected $agentCall = null;
/**
* @var CallRecord[]
*/
protected $callRecords = array(
);
/**
* @var Note[]
*/
protected $notes = array(
);
public function getAgentCall()
{
return $this->agentCall;
}
public function setAgentCall($agentCall)
{
$this->agentCall = $agentCall;
return $this;
}
public function getCallRecords()
{
return $this->callRecords;
}
public function setCallRecords($callRecords)
{
$this->callRecords = $callRecords;
return $this;
}
public function getNotes()
{
return $this->notes;
}
public function setNotes($notes)
{
$this->notes = $notes;
return $this;
}
} |
module GainifyAPI
class CustomCollection < Base
include Events
include Metafields
def products
Product.find(:all, :params => {:collection_id => self.id})
end
def add_product(product)
Collect.create(:collection_id => self.id, :product_id => product.id)
end
def remove_product(product)
collect = Collect.find(:first, :params => {:collection_id => self.id, :product_id => product.id})
collect.destroy if collect
end
end
end |
/**
* Each section of the site has its own module. It probably also has
* submodules, though this boilerplate is too simple to demonstrate it. Within
* `src/app/home`, however, could exist several additional folders representing
* additional modules that would then be listed as dependencies of this one.
* For example, a `note` section could have the submodules `note.create`,
* `note.delete`, `note.edit`, etc.
*
* Regardless, so long as dependencies are managed correctly, the build process
* will automatically take take of the rest.
*
* The dependencies block here is also where component dependencies should be
* specified, as shown below.
*/
angular.module( 'megaApp.events', [
'ui.state',
'ui.bootstrap',
'plusOne'
])
/**
* Each section or module of the site can also have its own routes. AngularJS
* will handle ensuring they are all available at run-time, but splitting it
* this way makes each module more "self-contained".
*/
.config(function config( $stateProvider ) {
$stateProvider.state( 'events', {
url: '/events',
views: {
"main": {
controller: 'EventsCtrl',
templateUrl: 'events/events.tpl.html'
}
},
data:{ pageTitle: 'Events' }
});
})
/**
* And of course we define a controller for our route.
*/
.controller( 'EventsCtrl', function EventsController( $scope, $http) {
}); |
myApp.directive('myJsonEditor', [function()
{
return {
restrict: 'E',
require: 'ngModel',
scope: {
},
link: function(scope, root, attr, ngModel)
{
var editor = null, editorSession = null, tmrChanged = 0;
editor = window.ace.edit(root[0]);
editorSession = editor.getSession();
editorSession.setMode('ace/mode/json');
editorSession.setTabSize(4);
editorSession.setUseWrapMode(true);
editorSession.setFoldStyle('markbeginend');
editor.$blockScrolling = 999999;
editor.setOptions({
<API key>: true,
<API key>: true
});
ace.require("ace/ext/language_tools");
editor.completers = [{
getCompletions: function(editor, session, pos, prefix, callback)
{
callback(null, scope.$parent.getCompletionTerms(attr.ngModel));
}
}];
editor.on('blur', function()
{
try {
var buffer = JSON.parse(editorSession.getValue());
editorSession.setValue(JSON.stringify(buffer, null, 4));
}
catch (e) {
}
});
editorSession.on('change', function(e)
{
if (angular.isDefined(e))
{
clearTimeout(tmrChanged);
tmrChanged = setTimeout(function()
{
try {
var buffer = JSON.parse(editorSession.getValue());
ngModel.$setViewValue(buffer, 'ace');
}
catch (e) {
}
}, 300);
}
});
ngModel.$render = function()
{
if (editor !== null)
{
var oldValue = editorSession.getValue(),
newValue = JSON.stringify(ngModel.$viewValue, null, 4);
try {
oldValue = JSON.stringify(JSON.parse(oldValue), null, 4);
}
catch (e) {
}
if (newValue !== oldValue)
{
editorSession.setValue(newValue);
}
}
};
scope.$parent.$watch(attr.ngModel, function(value)
{
ngModel.$render();
}, true);
scope.$watch(function() {
return [root[0].offsetWidth, root[0].offsetHeight];
}, function() {
editor.resize();
editor.renderer.updateFull();
}, true);
}
};
}]); |
import {Component} from "@angular/core";
import {LogoutService} from "../../services/logoutservice";
@Component({
selector: '<API key>',
templateUrl: '/static/components/application/application.html',
styles: [
`#navbar_botom {margin-bottom: 0; border-radius: 0; position: fixed; bottom: 0; left: 0; right: 0;}`,
`.buffer {height: 70px}`
]
})
export class <API key> {
constructor(private logoutService: LogoutService) {
}
ngOnInit() {
$("#main-navbar").on("click", () => {
$("#main-navbar").collapse('hide');
});
}
public logout(): void {
this.logoutService.logout();
}
} |
<?php
namespace Myapp\ResponsableBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
*
*
* @ORM\Entity
*/
class Size {
/**
* @var string
*
* @ORM\Column(name="id", type="string", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="Produit")
*/
protected $produit;
public function getId() {
return $this->id;
}
function getTitre() {
return $this->titre;
}
public function __toString()
{
return strval( $this->getId() );
}
function setId($id) {
$this->id = $id;
}
function setTitre($titre) {
$this->titre = $titre;
}
} |
export { default } from 'ember-enchant/components/enchant-text'; |
{-# OPTIONS_GHC -Wall #-}
module LogAnalysis where
import Log
import Data.Char (isDigit)
parseMessage :: String -> LogMessage
parseMessage (x:' ':xs)
| x == 'I' = LogMessage Info first body
| x == 'W' = LogMessage Warning first body
| x == 'E' = LogMessage (Error first) second (trim body)
where body = tail . dropWhile isDigit $ xs
first = read . takeWhile isDigit $ xs
second = read . takeWhile isDigit . dropWhileHeader $ xs
where dropWhileHeader = tail . snd . span isDigit
trim = tail . dropWhile isDigit
parseMessage x = Unknown x
parse :: String -> [LogMessage]
parse = map parseMessage . lines
insert :: LogMessage -> MessageTree -> MessageTree
insert (Unknown _) tree = tree
insert _ tree@(Node _ (Unknown _) _) = tree
insert m (Leaf) = Node Leaf m Leaf
insert m@(LogMessage _ ts _) (Node l c@(LogMessage _ other _) r)
| other > ts = Node (insert m l) c r
| otherwise = Node l c (insert m r)
build :: [LogMessage] -> MessageTree
build [] = Leaf
build (xs) = foldl buildTree Leaf xs
where buildTree acc x = insert x acc
inOrder :: MessageTree -> [LogMessage]
inOrder (Leaf) = []
inOrder (Node l m r) = (inOrder l) ++ [m] ++ (inOrder r)
whatWentWrong :: [LogMessage] -> [String]
whatWentWrong [] = []
whatWentWrong (ms) = map printMsg $ filter bigs $ filter errors logs
where logs = inOrder $ build ms
bigs (LogMessage (Error n) _ _)
| n >= 50 = True
| otherwise = False
bigs _ = False
printMsg (LogMessage _ _ s) = s
printMsg (Unknown s) = s
errors (LogMessage (Error _) _ _) = True
errors _ = False |
module.exports = {
//connection: 'userMongodbServer',
attributes: {
section: {
type: 'string',
defaultsTo: 'Тест',
required: true
},
sections: {
type: 'string',
defaultsTo: 'Тесты',
required: true
},
action: {
type: 'boolean',
defaultsTo: false
},
sales: {
type: 'boolean',
defaultsTo: true,
required: true
},
name: {
type: 'string',
unique: true,
minLength: 2,
maxLength: 150
},
tip: {
type: 'string',
defaultsTo: ''
},
location: {
type: 'string',
defaultsTo: ''
},
description: {
type: 'string',
maxLength: 170
},
descriptionEn: {
type: 'string',
maxLength: 170
},
lastLoggedIn: {
type: 'date',
required: true,
defaultsTo: new Date(0)
},
catalogs: {
collection: 'catalog',
via: 'reactions'
},
photos: {
collection: 'photo',
via: 'reactions'
}
// vacations: {
// collection: 'vacation',
// via: 'furloughs'
//users: {
// collection: 'user',
// via: 'furloughs'
}
}; |
#pragma once
#include "ofMain.h"
#include "ofxSkinnedMesh.h"
class ofApp : public ofBaseApp{
public:
void setup();
void update();
void draw();
void keyPressed(int key);
void keyReleased(int key);
void mouseMoved(int x, int y );
void mouseDragged(int x, int y, int button);
void mousePressed(int x, int y, int button);
void mouseReleased(int x, int y, int button);
void mouseEntered(int x, int y);
void mouseExited(int x, int y);
void windowResized(int w, int h);
void dragEvent(ofDragInfo dragInfo);
void gotMessage(ofMessage msg);
private:
ofxSkinnedMesh mesh_;
shared_ptr<ofNode> ctrl_=nullptr;
}; |
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <termios.h>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include "common.h"
#include "sendToServer.cpp"
using namespace std;
/* baudrate settings are defined in <asm/termbits.h>, which is
included by <termios.h> */
#define BAUDRATE B115200
/* change this definition for the correct port */
#define MODEMDEVICE "/dev/ttyACM0"
#define _POSIX_SOURCE 1 /* POSIX compliant source */
void _receive(Shared* shared)
{
char bufr[255];
int fd, c, res;
struct termios oldtio, newtio;
char bufw[255];
/*
Open modem device for reading and writing and not as controlling tty
because we don't want to get killed if linenoise sends CTRL-C.
*/
fd = open(MODEMDEVICE, O_RDWR | O_NOCTTY);
if (fd < 0) {
perror(MODEMDEVICE);
return;
}
tcgetattr(fd, &oldtio); /* save current serial port settings */
bzero(&newtio, sizeof(newtio)); /* clear struct for new port settings */
/*
BAUDRATE: Set bps rate. You could also use cfsetispeed and cfsetospeed.
CRTSCTS : output hardware flow control (only used if the cable has
all necessary lines. See sect. 7 of Serial-HOWTO)
CS8 : 8n1 (8bit,no parity,1 stopbit)
CLOCAL : local connection, no modem contol
CREAD : enable receiving characters
*/
newtio.c_cflag = BAUDRATE | CRTSCTS | CS8 | CLOCAL | CREAD;
/*
IGNPAR : ignore bytes with parity errors
ICRNL : map CR to NL (otherwise a CR input on the other computer
will not terminate input)
otherwise make device raw (no other input processing)
*/
newtio.c_iflag = IGNPAR | ICRNL;
/*
Raw output.
*/
newtio.c_oflag = 0;
/*
ICANON : enable canonical input
disable all echo functionality, and don't send signals to calling program
*/
newtio.c_lflag = ICANON;
/*
initialize all control characters
default values can be found in /usr/include/termios.h, and are given
in the comments, but we don't need them here
*/
newtio.c_cc[VINTR] = 0; /* Ctrl-c */
newtio.c_cc[VQUIT] = 0; /* Ctrl-\ */
newtio.c_cc[VERASE] = 0; /* del */
newtio.c_cc[VKILL] = 0;
newtio.c_cc[VEOF] = 4; /* Ctrl-d */
newtio.c_cc[VTIME] = 0; /* inter-character timer unused */
newtio.c_cc[VMIN] = 1; /* blocking read until 1 character arrives */
newtio.c_cc[VSWTC] = 0;
newtio.c_cc[VSTART] = 0; /* Ctrl-q */
newtio.c_cc[VSTOP] = 0; /* Ctrl-s */
newtio.c_cc[VSUSP] = 0; /* Ctrl-z */
newtio.c_cc[VEOL] = 0;
newtio.c_cc[VREPRINT] = 0; /* Ctrl-r */
newtio.c_cc[VDISCARD] = 0; /* Ctrl-u */
newtio.c_cc[VWERASE] = 0; /* Ctrl-w */
newtio.c_cc[VLNEXT] = 0; /* Ctrl-v */
newtio.c_cc[VEOL2] = 0;
/*
now clean the modem line and activate the settings for the port
*/
srand((unsigned int)time(NULL));
tcflush(fd, TCIFLUSH);
tcsetattr(fd, TCSANOW, &newtio);
while (1) { /* loop until we have a terminating condition */
/* read blocks program execution until a line terminating character is
input, even if more than 255 chars are input. If the number
of characters read is smaller than the number of chars available,
subsequent reads will return the remaining chars. res will be set
to the actual number of characters actually read */
/*
if(shared->sensor.soil_humidity > shared->data.soil_humidity && shared->liq_exist)
{
printf("-1\n");
bufw[0] = 2;///< if bufw[0] was 2, run water pump
res = write(fd, bufw, 1);///< serial write to arduino
sleep(5);///< run water pump for 3 second.
}
else
{*/
printf("-2\n");
bufw[0] = 1;///< if bufw[0] was 1, read sensor value.
res = write(fd, bufw, 1);///< serial write to arduino.
printf("-1\n");
res = read(fd, bufr, 255);///< read sensor value in bufr.
bufr[res] = 0;
printf("%s\n", bufr);
printf("%d\n", res);
sscanf(bufr, "%d %d %d %d %d", &shared->sensor.illumination, &shared->sensor.temperature, &shared->sensor.humidity, &shared->sensor.soil_humidity, &shared->liq_exist);
sleep(3);
}
/* restore the old port settings */
tcsetattr(fd, TCSANOW, &oldtio);
return;
}
void* receive(void* shared) {
_receive((Shared*)shared);
} |
var lib = require('./google-lib.js');
function searchBooks(req, res, next) {
lib.searchBooks(req.params.search, function (err, result) {
next.ifError(err);
return res.json(result);
});
}
module.exports.searchBooks = searchBooks; |
#include <stdio.h>
int assertCount, errorCount;
void assertEq(int x, int y){
assertCount++; if(x == y) return; errorCount++;
printf("ASSERTION %d FAILED: %d does not equal %d\n", assertCount, x, y);
}
void endTest(){
if(errorCount > 0) printf("TEST FAILED: Encountered %d assertion error%s out of %d!", errorCount, errorCount==1?"":"s", assertCount);
else printf("TEST SUCCESSFUL: All %d assertions passed!", assertCount);
}
int main(){
int a = 10;
int *b = &a; // b = 14* (changes with code)
int c = *b; // c = 10
*b = 20; // a = 20
assertEq(c, 10);
assertEq(a, 20);
endTest();
} |
package joiner.computational;
import java.util.ArrayList;
import java.util.List;
import joiner.commons.DataServerConnector;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.zeromq.ZContext;
import org.zeromq.ZMQ;
import org.zeromq.ZMQ.Socket;
public class ComputationalServer extends Thread {
private static final Logger logger = LoggerFactory.getLogger(ComputationalServer.class);
private final int incomingPort;
private final int joinerThreads;
private final int moreFlag;
private ZContext context;
private Socket clientSocket;
private String backendString;
private Socket backendSocket;
private int last = -1;
public ComputationalServer(int incomingPort, int joinerThreads) {
this(incomingPort, joinerThreads, true);
}
public ComputationalServer(int incomingPort, int joinerThreads, boolean pipeline) {
this.incomingPort = incomingPort;
this.joinerThreads = joinerThreads;
this.backendString = "ipc://computational";
this.moreFlag = pipeline ? 0 : ZMQ.SNDMORE;
}
public void last(int last) {
this.last = last;
}
@Override
public void run() {
context = new ZContext();
backendSocket = context.createSocket(ZMQ.PULL);
backendSocket.bind(backendString);
clientSocket = context.createSocket(ZMQ.PAIR);
clientSocket.setHWM(1000000000);
clientSocket.setLinger(-1);
try { |
from __future__ import with_statement
import pytest
from redis import exceptions
from redis._compat import b
multiply_script = """
local value = redis.call('GET', KEYS[1])
value = tonumber(value)
return value * ARGV[1]"""
class TestScripting(object):
@pytest.fixture(autouse=True)
def reset_scripts(self, r):
r.script_flush()
def test_eval(self, r):
r.set('a', 2)
# 2 * 3 == 6
assert r.eval(multiply_script, 1, 'a', 3) == 6
def test_evalsha(self, r):
r.set('a', 2)
sha = r.script_load(multiply_script)
# 2 * 3 == 6
assert r.evalsha(sha, 1, 'a', 3) == 6
def <API key>(self, r):
r.set('a', 2)
sha = r.script_load(multiply_script)
# remove the script from Redis's cache
r.script_flush()
with pytest.raises(exceptions.NoScriptError):
r.evalsha(sha, 1, 'a', 3)
def test_script_loading(self, r):
# get the sha, then clear the cache
sha = r.script_load(multiply_script)
r.script_flush()
assert r.script_exists(sha) == [False]
r.script_load(multiply_script)
assert r.script_exists(sha) == [True]
def test_script_object(self, r):
r.set('a', 2)
multiply = r.register_script(multiply_script)
assert not multiply.sha
# test evalsha fail -> script load + retry
assert multiply(keys=['a'], args=[3]) == 6
assert multiply.sha
assert r.script_exists(multiply.sha) == [True]
# test first evalsha
assert multiply(keys=['a'], args=[3]) == 6
def <API key>(self, r):
multiply = r.register_script(multiply_script)
assert not multiply.sha
pipe = r.pipeline()
pipe.set('a', 2)
pipe.get('a')
multiply(keys=['a'], args=[3], client=pipe)
# even though the pipeline wasn't executed yet, we made sure the
# script was loaded and got a valid sha
assert multiply.sha
assert r.script_exists(multiply.sha) == [True]
# [SET worked, GET 'a', result of multiple script]
assert pipe.execute() == [True, b('2'), 6]
# purge the script from redis's cache and re-run the pipeline
# the multiply script object knows it's sha, so it shouldn't get
# reloaded until pipe.execute()
r.script_flush()
pipe = r.pipeline()
pipe.set('a', 2)
pipe.get('a')
assert multiply.sha
multiply(keys=['a'], args=[3], client=pipe)
assert r.script_exists(multiply.sha) == [False]
# [SET worked, GET 'a', result of multiple script]
assert pipe.execute() == [True, b('2'), 6] |
<?php
/* @WebProfiler/Collector/exception.css.twig */
class <API key> extends Twig_Template
{
public function __construct(Twig_Environment $env)
{
parent::__construct($env);
$this->parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo ".sf-reset .traces {
padding-bottom: 14px;
}
.sf-reset .traces li {
font-size: 12px;
color: #868686;
padding: 5px 4px;
list-style-type: decimal;
margin-left: 20px;
white-space: break-word;
}
.sf-reset #logs .traces li.error {
font-style: normal;
color: #AA3333;
background: #f9ecec;
}
.sf-reset #logs .traces li.warning {
font-style: normal;
background: #ffcc00;
}
/* fix for Opera not liking empty <li> */
.sf-reset .traces li:after {
content: \"\\00A0\";
}
.sf-reset .trace {
border: 1px solid #D3D3D3;
padding: 10px;
overflow: auto;
margin: 10px 0 20px;
}
.sf-reset .block-exception {
border-radius: 16px;
margin-bottom: 20px;
background-color: #f6f6f6;
border: 1px solid #dfdfdf;
padding: 30px 28px;
word-wrap: break-word;
overflow: hidden;
}
.sf-reset .block-exception div {
color: #313131;
font-size: 10px;
}
.sf-reset .<API key> .<API key>,
.sf-reset .<API key> .text-exception {
float: left;
}
.sf-reset .<API key> .<API key> {
width: 152px;
}
.sf-reset .<API key> .text-exception {
width: 670px;
padding: 30px 44px 24px 46px;
position: relative;
}
.sf-reset .text-exception .open-quote,
.sf-reset .text-exception .close-quote {
position: absolute;
}
.sf-reset .open-quote {
top: 0;
left: 0;
}
.sf-reset .close-quote {
bottom: 0;
right: 50px;
}
.sf-reset .block-exception p {
font-family: Arial, Helvetica, sans-serif;
}
.sf-reset .block-exception p a,
.sf-reset .block-exception p a:hover {
color: #565656;
}
.sf-reset .logs h2 {
float: left;
width: 654px;
}
.sf-reset .error-count {
float: right;
width: 170px;
text-align: right;
}
.sf-reset .error-count span {
display: inline-block;
background-color: #aacd4e;
border-radius: 6px;
padding: 4px;
color: white;
margin-right: 2px;
font-size: 11px;
font-weight: bold;
}
.sf-reset .toggle {
vertical-align: middle;
}
.sf-reset .linked ul,
.sf-reset .linked li {
display: inline;
}
.sf-reset #output-content {
color: #000;
font-size: 12px;
}
";
}
public function getTemplateName()
{
return "@WebProfiler/Collector/exception.css.twig";
}
public function getDebugInfo()
{
return array ( 19 => 1,);
}
} |
class Solution {
public:
/**
* @param num: a rotated sorted array
* @return: the minimum number in the array
*/
int findMin(vector<int> &num) {
// write your code here
if (num.size()==0) return -1;
int i=0,min_n=num[0];
while (num[i]<num[i+1] and i<num.size()-1) i++;
if (i==num.size()-1) i
return min(min_n,num[i+1]);
}
}; |
'use strict';
import '../../indicators/ema.src.js'; |
import { W as WidgetBehavior, y as getFloatFromAttr, i as isEqual } from './index-0338ddf6.js';
const EVENT_MAP = {
'mousemove': 'onDragging',
'touchmove': 'onDragging',
'mouseup': 'onDragEnd',
'touchend': 'onDragEnd',
'contextmenu': 'onDragEnd',
};
class SliderBehavior extends WidgetBehavior {
static get params() {
return {
input: true,
};
}
init() {
this.props.value = (val) => {
this.setValue(getFloatFromAttr(val, 0), true);
};
this.props.min = (val) => {
return getFloatFromAttr(val, 0);
};
this.props.max = (val) => {
return getFloatFromAttr(val, 100);
};
this.props.step = (val) => {
return getFloatFromAttr(val, 1);
};
super.init();
this.require('orient', 'active', 'focus', 'hover');
this.on('keydown', (evt) => {
const step = this.step * (evt.shiftKey ? 10 : 1);
switch (evt.key) {
case 'ArrowUp':
case 'ArrowRight':
this.setValue(this.value + step);
break;
case 'ArrowDown':
case 'ArrowLeft':
this.setValue(this.value - step);
break;
default:
return;
}
evt.preventDefault();
});
}
connected() {
super.connected();
const { host } = this;
this.onDragStart = this.onDragStart.bind(this);
this.onDragging = this.onDragging.bind(this);
this.onDragEnd = this.onDragEnd.bind(this);
host.nuSetContext('disabled', this.disabled);
['mousedown', 'touchstart']
.forEach(eventName => {
this.on(eventName, this.onDragStart, { passive: true });
});
}
changed(name, value) {
super.changed(name, value);
if (this.isConnected && ['min', 'max'].includes(name)) {
this.setValue(this.value);
}
}
onDragStart(evt) {
if (this.disabled) return;
this.setValueByEvent(evt);
this.dragging = true;
Object.entries(EVENT_MAP)
.forEach(([event, handler]) => {
window.addEventListener(event, this[handler], { passive: true });
});
}
onDragging(evt) {
if (this.dragging) {
this.setValueByEvent(evt);
}
}
onDragEnd(evt) {
if (this.dragging) {
// skip, it causes a bug on touch devices where no point information presented on such event
// this.setValueByEvent(evt);
this.dragging = false;
Object.entries(EVENT_MAP)
.forEach(([event, handler]) => {
window.removeEventListener(event, this[handler]);
});
}
}
setValueByEvent(evt) {
const { host } = this;
const rect = host.<API key>();
let value;
this.use('orient').then(Orient => Orient.set(rect.width > rect.height ? 'h' : 'v'));
if (rect.width > rect.height) {
const pageX = (evt.pageX || (evt.touches && evt.touches.length && evt.touches[0].pageX)) - window.scrollX;
value = Math.max(0, Math.min(1,
(pageX - rect.x) / (rect.width)));
} else {
const pageY = (evt.pageY || (evt.touches && evt.touches.length && evt.touches[0].pageY)) - window.scrollY;
value = 1 - Math.max(0, Math.min(1,
(pageY - rect.y) / (rect.height)));
}
this.setPercents(value);
}
setPercents(value) {
if (value == null) return;
const min = this.min;
const max = this.max;
const step = this.step;
this.setValue(Math.round(value * (max - min) / step) * step + min);
}
setValue(value, silent) {
const { host } = this;
const min = this.min;
const max = this.max;
if (value !== value) {
value = min;
}
if (value < min) value = min;
if (value > max) value = max;
if (isEqual(value, this.value)) return;
this.value = value;
host.style.setProperty('--local-offset', this.getOffset(value));
this.setAria('valuemin', min);
this.setAria('valuemax', max);
this.setAria('valuenow', value);
if (!silent) {
this.emit('input', value);
}
this.control();
}
getOffset(value) {
let min = this.min;
let max = this.max;
let offset = (value - min) / (max - min) * 100;
return `${offset.toFixed(2)}%`;
}
}
export default SliderBehavior; |
'use strict';
var Debug = require('./Debug-ec8c9014.js');
var redux = require('redux');
var turnOrder = require('./turn-order-0846b669.js');
var reducer = require('./reducer-172d838d.js');
var initialize = require('./initialize-05ccbf0c.js');
/**
* Class to manage boardgame.io clients and limit debug panel rendering.
*/
class ClientManager {
constructor() {
this.debugPanel = null;
this.currentClient = null;
this.clients = new Map();
this.subscribers = new Map();
}
/**
* Register a client with the client manager.
*/
register(client) {
// Add client to clients map.
this.clients.set(client, client);
// Mount debug for this client (no-op if another debug is already mounted).
this.mountDebug(client);
this.notifySubscribers();
}
/**
* Unregister a client from the client manager.
*/
unregister(client) {
// Remove client from clients map.
this.clients.delete(client);
if (this.currentClient === client) {
// If the removed client owned the debug panel, unmount it.
this.unmountDebug();
// Mount debug panel for next available client.
for (const [client] of this.clients) {
if (this.debugPanel)
break;
this.mountDebug(client);
}
}
this.notifySubscribers();
}
/**
* Subscribe to the client manager state.
* Calls the passed callback each time the current client changes or a client
* registers/unregisters.
* Returns a function to unsubscribe from the state updates.
*/
subscribe(callback) {
const id = Symbol();
this.subscribers.set(id, callback);
callback(this.getState());
return () => {
this.subscribers.delete(id);
};
}
/**
* Switch to a client with a matching playerID.
*/
switchPlayerID(playerID) {
// For multiplayer clients, try switching control to a different client
// that is using the same transport layer.
if (this.currentClient.multiplayer) {
for (const [client] of this.clients) {
if (client.playerID === playerID &&
client.debugOpt !== false &&
client.multiplayer === this.currentClient.multiplayer) {
this.switchToClient(client);
return;
}
}
}
// If no client matches, update the playerID for the current client.
this.currentClient.updatePlayerID(playerID);
this.notifySubscribers();
}
/**
* Set the passed client as the active client for debugging.
*/
switchToClient(client) {
if (client === this.currentClient)
return;
this.unmountDebug();
this.mountDebug(client);
this.notifySubscribers();
}
/**
* Notify all subscribers of changes to the client manager state.
*/
notifySubscribers() {
const arg = this.getState();
this.subscribers.forEach(cb => {
cb(arg);
});
}
/**
* Get the client manager state.
*/
getState() {
return {
client: this.currentClient,
debuggableClients: this.<API key>(),
};
}
<API key>() {
return [...this.clients.values()].filter(client => client.debugOpt !== false);
}
/**
* Mount the debug panel using the passed client.
*/
mountDebug(client) {
if (client.debugOpt === false ||
this.debugPanel !== null ||
typeof document === 'undefined') {
return;
}
let DebugImpl;
let target = document.body;
if (process.env.NODE_ENV !== 'production') {
DebugImpl = Debug.Debug;
}
if (client.debugOpt && client.debugOpt !== true) {
DebugImpl = client.debugOpt.impl || DebugImpl;
target = client.debugOpt.target || target;
}
if (DebugImpl) {
this.currentClient = client;
this.debugPanel = new DebugImpl({
target,
props: { clientManager: this },
});
}
}
/**
* Unmount the debug panel.
*/
unmountDebug() {
this.debugPanel.$destroy();
this.debugPanel = null;
this.currentClient = null;
}
}
/**
* Global client manager instance that all clients register with.
*/
const GlobalClientManager = new ClientManager();
/**
* Standardise the passed playerID, using currentPlayer if appropriate.
*/
function assumedPlayerID(playerID, store, multiplayer) {
// In singleplayer mode, if the client does not have a playerID
// associated with it, we attach the currentPlayer as playerID.
if (!multiplayer && (playerID === null || playerID === undefined)) {
const state = store.getState();
playerID = state.ctx.currentPlayer;
}
return playerID;
}
/**
* createDispatchers
*
* Create action dispatcher wrappers with bound playerID and credentials
*/
function createDispatchers(storeActionType, innerActionNames, store, playerID, credentials, multiplayer) {
return innerActionNames.reduce((dispatchers, name) => {
dispatchers[name] = function (...args) {
store.dispatch(turnOrder.ActionCreators[storeActionType](name, args, assumedPlayerID(playerID, store, multiplayer), credentials));
};
return dispatchers;
}, {});
}
// Creates a set of dispatchers to make moves.
const <API key> = createDispatchers.bind(null, 'makeMove');
// Creates a set of dispatchers to dispatch game flow events.
const <API key> = createDispatchers.bind(null, 'gameEvent');
// Creates a set of dispatchers to dispatch actions to plugins.
const <API key> = createDispatchers.bind(null, 'plugin');
/**
* Implementation of Client (see below).
*/
class _ClientImpl {
constructor({ game, debug, numPlayers, multiplayer, matchID: matchID, playerID, credentials, enhancer, }) {
this.game = reducer.ProcessGameConfig(game);
this.playerID = playerID;
this.matchID = matchID;
this.credentials = credentials;
this.multiplayer = multiplayer;
this.debugOpt = debug;
this.manager = GlobalClientManager;
this.gameStateOverride = null;
this.subscribers = {};
this._running = false;
this.reducer = reducer.CreateGameReducer({
game: this.game,
isClient: multiplayer !== undefined,
});
this.initialState = null;
if (!multiplayer) {
this.initialState = initialize.InitializeGame({ game: this.game, numPlayers });
}
this.reset = () => {
this.store.dispatch(turnOrder.reset(this.initialState));
};
this.undo = () => {
const undo = turnOrder.undo(assumedPlayerID(this.playerID, this.store, this.multiplayer), this.credentials);
this.store.dispatch(undo);
};
this.redo = () => {
const redo = turnOrder.redo(assumedPlayerID(this.playerID, this.store, this.multiplayer), this.credentials);
this.store.dispatch(redo);
};
this.log = [];
/**
* Middleware that manages the log object.
* Reducers generate deltalogs, which are log events
* that are the result of application of a single action.
* The master may also send back a deltalog or the entire
* log depending on the type of request.
* The middleware below takes care of all these cases while
* managing the log object.
*/
const LogMiddleware = (store) => (next) => (action) => {
const result = next(action);
const state = store.getState();
switch (action.type) {
case turnOrder.MAKE_MOVE:
case turnOrder.GAME_EVENT:
case turnOrder.UNDO:
case turnOrder.REDO: {
const deltalog = state.deltalog;
this.log = [...this.log, ...deltalog];
break;
}
case turnOrder.RESET: {
this.log = [];
break;
}
case turnOrder.UPDATE: {
let id = -1;
if (this.log.length > 0) {
id = this.log[this.log.length - 1]._stateID;
}
let deltalog = action.deltalog || [];
// Filter out actions that are already present
// in the current log. This may occur when the
// client adds an entry to the log followed by
// the update from the master here.
deltalog = deltalog.filter(l => l._stateID > id);
this.log = [...this.log, ...deltalog];
break;
}
case turnOrder.SYNC: {
this.initialState = action.initialState;
this.log = action.log || [];
break;
}
}
return result;
};
/**
* Middleware that intercepts actions and sends them to the master,
* which keeps the authoritative version of the state.
*/
const TransportMiddleware = (store) => (next) => (action) => {
const baseState = store.getState();
const result = next(action);
if (!('clientOnly' in action)) {
this.transport.onAction(baseState, action);
}
return result;
};
/**
* Middleware that intercepts actions and invokes the subscription callback.
*/
const <API key> = () => (next) => (action) => {
const result = next(action);
this.notifySubscribers();
return result;
};
if (enhancer !== undefined) {
enhancer = redux.compose(redux.applyMiddleware(<API key>, TransportMiddleware, LogMiddleware), enhancer);
}
else {
enhancer = redux.applyMiddleware(<API key>, TransportMiddleware, LogMiddleware);
}
this.store = redux.createStore(this.reducer, this.initialState, enhancer);
this.transport = {
isConnected: true,
onAction: () => { },
subscribe: () => { },
subscribeMatchData: () => { },
connect: () => { },
disconnect: () => { },
updateMatchID: () => { },
updatePlayerID: () => { },
};
if (multiplayer) {
// typeof multiplayer is 'function'
this.transport = multiplayer({
gameKey: game,
game: this.game,
store: this.store,
matchID,
playerID,
gameName: this.game.name,
numPlayers,
});
}
this.createDispatchers();
this.transport.subscribeMatchData(metadata => {
this.matchData = metadata;
});
}
notifySubscribers() {
Object.values(this.subscribers).forEach(fn => fn(this.getState()));
}
overrideGameState(state) {
this.gameStateOverride = state;
this.notifySubscribers();
}
start() {
this.transport.connect();
this._running = true;
this.manager.register(this);
}
stop() {
this.transport.disconnect();
this._running = false;
this.manager.unregister(this);
}
subscribe(fn) {
const id = Object.keys(this.subscribers).length;
this.subscribers[id] = fn;
this.transport.subscribe(() => this.notifySubscribers());
if (this._running || !this.multiplayer) {
fn(this.getState());
}
// Return a handle that allows the caller to unsubscribe.
return () => {
delete this.subscribers[id];
};
}
getInitialState() {
return this.initialState;
}
getState() {
let state = this.store.getState();
if (this.gameStateOverride !== null) {
state = this.gameStateOverride;
}
// This is the state before a sync with the game master.
if (state === null) {
return state;
}
// isActive.
let isActive = true;
const isPlayerActive = this.game.flow.isPlayerActive(state.G, state.ctx, this.playerID);
if (this.multiplayer && !isPlayerActive) {
isActive = false;
}
if (!this.multiplayer &&
this.playerID !== null &&
this.playerID !== undefined &&
!isPlayerActive) {
isActive = false;
}
if (state.ctx.gameover !== undefined) {
isActive = false;
}
// Secrets are normally stripped on the server,
// but we also strip them here so that game developers
// can see their effects while prototyping.
// Do not strip again if this is a multiplayer game
// since the server has already stripped secret info. (issue #818)
const G = this.multiplayer
? state.G
: this.game.playerView(state.G, state.ctx, this.playerID);
// Combine into return value.
return {
state,
G,
log: this.log,
isActive,
isConnected: this.transport.isConnected,
};
}
createDispatchers() {
this.moves = <API key>(this.game.moveNames, this.store, this.playerID, this.credentials, this.multiplayer);
this.events = <API key>(this.game.flow.enabledEventNames, this.store, this.playerID, this.credentials, this.multiplayer);
this.plugins = <API key>(this.game.pluginNames, this.store, this.playerID, this.credentials, this.multiplayer);
}
updatePlayerID(playerID) {
this.playerID = playerID;
this.createDispatchers();
this.transport.updatePlayerID(playerID);
this.notifySubscribers();
}
updateMatchID(matchID) {
this.matchID = matchID;
this.createDispatchers();
this.transport.updateMatchID(matchID);
this.notifySubscribers();
}
updateCredentials(credentials) {
this.credentials = credentials;
this.createDispatchers();
this.notifySubscribers();
}
}
/**
* Client
*
* boardgame.io JS client.
*
* @param {...object} game - The return value of `Game`.
* @param {...object} numPlayers - The number of players.
* @param {...object} multiplayer - Set to a falsy value or a transportFactory, e.g., SocketIO()
* @param {...object} matchID - The matchID that you want to connect to.
* @param {...object} playerID - The playerID associated with this client.
* @param {...string} credentials - The authentication credentials associated with this client.
*
* Returns:
* A JS object that provides an API to interact with the
* game by dispatching moves and events.
*/
function Client(opts) {
return new _ClientImpl(opts);
}
exports.Client = Client; |
(function() {
/*globals process */
var enifed, requireModule, Ember;
// Used in @ember/-internals/environment/lib/global.js
mainContext = this; // eslint-disable-line no-undef
(function() {
function missingModule(name, referrerName) {
if (referrerName) {
throw new Error('Could not find module ' + name + ' required by: ' + referrerName);
} else {
throw new Error('Could not find module ' + name);
}
}
function internalRequire(_name, referrerName) {
var name = _name;
var mod = registry[name];
if (!mod) {
name = name + '/index';
mod = registry[name];
}
var exports = seen[name];
if (exports !== undefined) {
return exports;
}
exports = seen[name] = {};
if (!mod) {
missingModule(_name, referrerName);
}
var deps = mod.deps;
var callback = mod.callback;
var reified = new Array(deps.length);
for (var i = 0; i < deps.length; i++) {
if (deps[i] === 'exports') {
reified[i] = exports;
} else if (deps[i] === 'require') {
reified[i] = requireModule;
} else {
reified[i] = internalRequire(deps[i], name);
}
}
callback.apply(this, reified);
return exports;
}
var isNode =
typeof window === 'undefined' &&
typeof process !== 'undefined' &&
{}.toString.call(process) === '[object process]';
if (!isNode) {
Ember = this.Ember = this.Ember || {};
}
if (typeof Ember === 'undefined') {
Ember = {};
}
if (typeof Ember.__loader === 'undefined') {
var registry = Object.create(null);
var seen = Object.create(null);
enifed = function(name, deps, callback) {
var value = {};
if (!callback) {
value.deps = [];
value.callback = deps;
} else {
value.deps = deps;
value.callback = callback;
}
registry[name] = value;
};
requireModule = function(name) {
return internalRequire(name, null);
};
// setup `require` module
requireModule['default'] = requireModule;
requireModule.has = function registryHas(moduleName) {
return !!registry[moduleName] || !!registry[moduleName + '/index'];
};
requireModule._eak_seen = registry;
Ember.__loader = {
define: enifed,
require: requireModule,
registry: registry,
};
} else {
enifed = Ember.__loader.define;
requireModule = Ember.__loader.require;
}
})();
enifed('@ember/debug/index', ['exports', '@ember/debug/lib/warn', '@ember/debug/lib/deprecate', '@ember/debug/lib/testing', '@ember/-internals/browser-environment', '@ember/error'], function (exports, _warn2, _deprecate2, _testing, _browserEnvironment, _error) {
'use strict';
exports.<API key> = exports.getDebugFunction = exports.setDebugFunction = exports.deprecateFunc = exports.runInDebug = exports.debugFreeze = exports.debugSeal = exports.deprecate = exports.debug = exports.warn = exports.info = exports.assert = exports.setTesting = exports.isTesting = exports.<API key> = exports.registerWarnHandler = undefined;
Object.defineProperty(exports, 'registerWarnHandler', {
enumerable: true,
get: function () {
return _warn2.registerHandler;
}
});
Object.defineProperty(exports, '<API key>', {
enumerable: true,
get: function () {
return _deprecate2.registerHandler;
}
});
Object.defineProperty(exports, 'isTesting', {
enumerable: true,
get: function () {
return _testing.isTesting;
}
});
Object.defineProperty(exports, 'setTesting', {
enumerable: true,
get: function () {
return _testing.setTesting;
}
});
// These are the default production build versions:
const noop = () => {};
let assert = noop;
let info = noop;
let warn = noop;
let debug = noop;
let deprecate = noop;
let debugSeal = noop;
let debugFreeze = noop;
let runInDebug = noop;
let setDebugFunction = noop;
let getDebugFunction = noop;
let deprecateFunc = function () {
return arguments[arguments.length - 1];
};
if (true /* DEBUG */) {
exports.setDebugFunction = setDebugFunction = function (type, callback) {
switch (type) {
case 'assert':
return exports.assert = assert = callback;
case 'info':
return exports.info = info = callback;
case 'warn':
return exports.warn = warn = callback;
case 'debug':
return exports.debug = debug = callback;
case 'deprecate':
return exports.deprecate = deprecate = callback;
case 'debugSeal':
return exports.debugSeal = debugSeal = callback;
case 'debugFreeze':
return exports.debugFreeze = debugFreeze = callback;
case 'runInDebug':
return exports.runInDebug = runInDebug = callback;
case 'deprecateFunc':
return exports.deprecateFunc = deprecateFunc = callback;
}
};
exports.getDebugFunction = getDebugFunction = function (type) {
switch (type) {
case 'assert':
return assert;
case 'info':
return info;
case 'warn':
return warn;
case 'debug':
return debug;
case 'deprecate':
return deprecate;
case 'debugSeal':
return debugSeal;
case 'debugFreeze':
return debugFreeze;
case 'runInDebug':
return runInDebug;
case 'deprecateFunc':
return deprecateFunc;
}
};
}
/**
@module @ember/debug
*/
if (true /* DEBUG */) {
setDebugFunction('assert', function assert(desc, test) {
if (!test) {
throw new _error.default(`Assertion Failed: ${desc}`);
}
});
/**
Display a debug notice.
Calls to this function are removed from production builds, so they can be
freely added for documentation and debugging purposes without worries of
incuring any performance penalty.
javascript
import { debug } from '@ember/debug';
debug('I\'m a debug notice!');
@method debug
@for @ember/debug
@static
@param {String} message A debug message to display.
@public
*/
setDebugFunction('debug', function debug(message) {
/* eslint-disable no-console */
if (console.debug) {
console.debug(`DEBUG: ${message}`);
} else {
console.log(`DEBUG: ${message}`);
}
/* eslint-ensable no-console */
});
/**
Display an info notice.
Calls to this function are removed from production builds, so they can be
freely added for documentation and debugging purposes without worries of
incuring any performance penalty.
@method info
@private
*/
setDebugFunction('info', function info() {
console.info(...arguments); /* eslint-disable-line no-console */
});
/**
@module @ember/application
@public
*/
/**
Alias an old, deprecated method with its new counterpart.
Display a deprecation warning with the provided message and a stack trace
(Chrome and Firefox only) when the assigned method is called.
Calls to this function are removed from production builds, so they can be
freely added for documentation and debugging purposes without worries of
incuring any performance penalty.
javascript
import { deprecateFunc } from '@ember/application/deprecations';
Ember.oldMethod = deprecateFunc('Please use the new, updated method', options, Ember.newMethod);
@method deprecateFunc
@static
@for @ember/application/deprecations
@param {String} message A description of the deprecation.
@param {Object} [options] The options object for `deprecate`.
@param {Function} func The new function called to replace its deprecated counterpart.
@return {Function} A new function that wraps the original function with a deprecation warning
@private
*/
setDebugFunction('deprecateFunc', function deprecateFunc(...args) {
if (args.length === 3) {
let [message, options, func] = args;
return function () {
deprecate(message, false, options);
return func.apply(this, arguments);
};
} else {
let [message, func] = args;
return function () {
deprecate(message);
return func.apply(this, arguments);
};
}
});
/**
@module @ember/debug
@public
*/
/**
Run a function meant for debugging.
Calls to this function are removed from production builds, so they can be
freely added for documentation and debugging purposes without worries of
incuring any performance penalty.
javascript
import Component from '@ember/component';
import { runInDebug } from '@ember/debug';
runInDebug(() => {
Component.reopen({
didInsertElement() {
console.log("I'm happy");
}
});
});
@method runInDebug
@for @ember/debug
@static
@param {Function} func The function to be executed.
@since 1.5.0
@public
*/
setDebugFunction('runInDebug', function runInDebug(func) {
func();
});
setDebugFunction('debugSeal', function debugSeal(obj) {
Object.seal(obj);
});
setDebugFunction('debugFreeze', function debugFreeze(obj) {
Object.freeze(obj);
});
setDebugFunction('deprecate', _deprecate2.default);
setDebugFunction('warn', _warn2.default);
}
let <API key>;
if (true /* DEBUG */ && !(0, _testing.isTesting)()) {
if (typeof window !== 'undefined' && (_browserEnvironment.isFirefox || _browserEnvironment.isChrome) && window.addEventListener) {
window.addEventListener('load', () => {
if (document.documentElement && document.documentElement.dataset && !document.documentElement.dataset.emberExtension) {
let downloadURL;
if (_browserEnvironment.isChrome) {
downloadURL = 'https://chrome.google.com/webstore/detail/ember-inspector/<API key>';
} else if (_browserEnvironment.isFirefox) {
downloadURL = 'https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/';
}
debug(`For more advanced debugging, install the Ember Inspector from ${downloadURL}`);
}
}, false);
}
}
exports.assert = assert;
exports.info = info;
exports.warn = warn;
exports.debug = debug;
exports.deprecate = deprecate;
exports.debugSeal = debugSeal;
exports.debugFreeze = debugFreeze;
exports.runInDebug = runInDebug;
exports.deprecateFunc = deprecateFunc;
exports.setDebugFunction = setDebugFunction;
exports.getDebugFunction = getDebugFunction;
exports.<API key> = <API key>;
});
enifed('@ember/debug/lib/deprecate', ['exports', '@ember/-internals/environment', '@ember/debug/index', '@ember/debug/lib/handlers'], function (exports, _environment, _index, _handlers) {
'use strict';
exports.<API key> = exports.<API key> = exports.<API key> = exports.registerHandler = undefined;
/**
@module @ember/debug
@public
*/
let registerHandler = () => {};
let <API key>;
let <API key>;
let <API key>;
let deprecate = () => {};
if (true /* DEBUG */) {
exports.registerHandler = registerHandler = function registerHandler(handler) {
(0, _handlers.registerHandler)('deprecate', handler);
};
let formatMessage = function formatMessage(_message, options) {
let message = _message;
if (options && options.id) {
message = message + ` [deprecation id: ${options.id}]`;
}
if (options && options.url) {
message += ` See ${options.url} for more details.`;
}
return message;
};
registerHandler(function <API key>(message, options) {
let updatedMessage = formatMessage(message, options);
console.warn(`DEPRECATION: ${updatedMessage}`); // eslint-disable-line no-console
});
let <API key>;
if (new Error().stack) {
<API key> = () => new Error();
} else {
<API key> = () => {
try {
__fail__.fail();
} catch (e) {
return e;
}
};
}
registerHandler(function <API key>(message, options, next) {
if (_environment.ENV.<API key>) {
let stackStr = '';
let error = <API key>();
let stack;
if (error.stack) {
if (error['arguments']) {
// Chrome
stack = error.stack.replace(/^\s+at\s+/gm, '').replace(/^([^\(]+?)([\n$])/gm, '{anonymous}($1)$2').replace(/^Object.<anonymous>\s*\(([^\)]+)\)/gm, '{anonymous}($1)').split('\n');
stack.shift();
} else {
// Firefox
stack = error.stack.replace(/(?:\n@:0)?\s+$/m, '').replace(/^\(/gm, '{anonymous}(').split('\n');
}
stackStr = `\n ${stack.slice(2).join('\n ')}`;
}
let updatedMessage = formatMessage(message, options);
console.warn(`DEPRECATION: ${updatedMessage}${stackStr}`); // eslint-disable-line no-console
} else {
next(message, options);
}
});
registerHandler(function raiseOnDeprecation(message, options, next) {
if (_environment.ENV.<API key>) {
let updatedMessage = formatMessage(message);
throw new Error(updatedMessage);
} else {
next(message, options);
}
});
exports.<API key> = <API key> = 'When calling `deprecate` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include `id` and `until` properties.';
exports.<API key> = <API key> = 'When calling `deprecate` you must provide `id` in options.';
exports.<API key> = <API key> = 'When calling `deprecate` you must provide `until` in options.';
/**
@module @ember/application
@public
*/
/**
Display a deprecation warning with the provided message and a stack trace
(Chrome and Firefox only).
* In a production build, this method is defined as an empty function (NOP).
Uses of this method in Ember itself are stripped from the ember.prod.js build.
@method deprecate
@for @ember/application/deprecations
@param {String} message A description of the deprecation.
@param {Boolean} test A boolean. If falsy, the deprecation will be displayed.
@param {Object} options
@param {String} options.id A unique id for this deprecation. The id can be
used by Ember debugging tools to change the behavior (raise, log or silence)
for that specific deprecation. The id should be namespaced by dots, e.g.
"view.helper.select".
@param {string} options.until The version of Ember when this deprecation
warning will be removed.
@param {String} [options.url] An optional url to the transition guide on the
emberjs.com website.
@static
@public
@since 1.0.0
*/
deprecate = function deprecate(message, test, options) {
(0, _index.assert)(<API key>, !!(options && (options.id || options.until)));
(0, _index.assert)(<API key>, !!options.id);
(0, _index.assert)(<API key>, !!options.until);
(0, _handlers.invoke)('deprecate', message, test, options);
};
}
exports.default = deprecate;
exports.registerHandler = registerHandler;
exports.<API key> = <API key>;
exports.<API key> = <API key>;
exports.<API key> = <API key>;
});
enifed("@ember/debug/lib/handlers", ["exports"], function (exports) {
"use strict";
let HANDLERS = exports.HANDLERS = {};
let registerHandler = () => {};
let invoke = () => {};
if (true /* DEBUG */) {
exports.registerHandler = registerHandler = function registerHandler(type, callback) {
let nextHandler = HANDLERS[type] || (() => {});
HANDLERS[type] = (message, options) => {
callback(message, options, nextHandler);
};
};
exports.invoke = invoke = function invoke(type, message, test, options) {
if (test) {
return;
}
let handlerForType = HANDLERS[type];
if (handlerForType) {
handlerForType(message, options);
}
};
}
exports.registerHandler = registerHandler;
exports.invoke = invoke;
});
enifed("@ember/debug/lib/testing", ["exports"], function (exports) {
"use strict";
exports.isTesting = isTesting;
exports.setTesting = setTesting;
let testing = false;
function isTesting() {
return testing;
}
function setTesting(value) {
testing = !!value;
}
});
enifed('@ember/debug/lib/warn', ['exports', '@ember/debug/index', '@ember/debug/lib/handlers'], function (exports, _index, _handlers) {
'use strict';
exports.<API key> = exports.<API key> = exports.registerHandler = undefined;
let registerHandler = () => {};
let warn = () => {};
let <API key>;
let <API key>;
/**
@module @ember/debug
*/
if (true /* DEBUG */) {
exports.registerHandler = registerHandler = function registerHandler(handler) {
(0, _handlers.registerHandler)('warn', handler);
};
registerHandler(function logWarning(message) {
/* eslint-disable no-console */
console.warn(`WARNING: ${message}`);
/* eslint-enable no-console */
});
exports.<API key> = <API key> = 'When calling `warn` you ' + 'must provide an `options` hash as the third parameter. ' + '`options` should include an `id` property.';
exports.<API key> = <API key> = 'When calling `warn` you must provide `id` in options.';
/**
Display a warning with the provided message.
* In a production build, this method is defined as an empty function (NOP).
Uses of this method in Ember itself are stripped from the ember.prod.js build.
javascript
import { warn } from '@ember/debug';
import tomsterCount from './tomster-counter'; // a module in my project
// Log a warning if we have more than 3 tomsters
warn('Too many tomsters!', tomsterCount <= 3, {
id: 'ember-debug.too-many-tomsters'
});
@method warn
@for @ember/debug
@static
@param {String} message A warning to display.
@param {Boolean} test An optional boolean. If falsy, the warning
will be displayed.
@param {Object} options An object that can be used to pass a unique
`id` for this warning. The `id` can be used by Ember debugging tools
to change the behavior (raise, log, or silence) for that specific warning.
The `id` should be namespaced by dots, e.g. "ember-debug.<API key>"
@public
@since 1.0.0
*/
warn = function warn(message, test, options) {
if (arguments.length === 2 && typeof test === 'object') {
options = test;
test = false;
}
(0, _index.assert)(<API key>, !!options);
(0, _index.assert)(<API key>, !!(options && options.id));
(0, _handlers.invoke)('warn', message, test, options);
};
}
exports.default = warn;
exports.registerHandler = registerHandler;
exports.<API key> = <API key>;
exports.<API key> = <API key>;
});
enifed('ember-testing/index', ['exports', 'ember-testing/lib/test', 'ember-testing/lib/adapters/adapter', 'ember-testing/lib/setup_for_testing', 'ember-testing/lib/adapters/qunit', 'ember-testing/lib/support', 'ember-testing/lib/ext/application', 'ember-testing/lib/ext/rsvp', 'ember-testing/lib/helpers', 'ember-testing/lib/initializers'], function (exports, _test, _adapter, _setup_for_testing, _qunit) {
'use strict';
exports.QUnitAdapter = exports.setupForTesting = exports.Adapter = exports.Test = undefined;
Object.defineProperty(exports, 'Test', {
enumerable: true,
get: function () {
return _test.default;
}
});
Object.defineProperty(exports, 'Adapter', {
enumerable: true,
get: function () {
return _adapter.default;
}
});
Object.defineProperty(exports, 'setupForTesting', {
enumerable: true,
get: function () {
return _setup_for_testing.default;
}
});
Object.defineProperty(exports, 'QUnitAdapter', {
enumerable: true,
get: function () {
return _qunit.default;
}
});
});
enifed('ember-testing/lib/adapters/adapter', ['exports', '@ember/-internals/runtime'], function (exports, _runtime) {
'use strict';
function K() {
return this;
}
/**
@module @ember/test
*/
/**
The primary purpose of this class is to create hooks that can be implemented
by an adapter for various test frameworks.
@class TestAdapter
@public
*/
exports.default = _runtime.Object.extend({
/**
This callback will be called whenever an async operation is about to start.
Override this to call your framework's methods that handle async
operations.
@public
@method asyncStart
*/
asyncStart: K,
/**
This callback will be called whenever an async operation has completed.
@public
@method asyncEnd
*/
asyncEnd: K,
/**
Override this method with your testing framework's false assertion.
This function is called whenever an exception occurs causing the testing
promise to fail.
QUnit example:
javascript
exception: function(error) {
ok(false, error);
};
@public
@method exception
@param {String} error The exception to be raised.
*/
exception(error) {
throw error;
}
});
});
enifed('ember-testing/lib/adapters/qunit', ['exports', '@ember/-internals/utils', 'ember-testing/lib/adapters/adapter'], function (exports, _utils, _adapter) {
'use strict';
exports.default = _adapter.default.extend({
init() {
this.doneCallbacks = [];
},
asyncStart() {
if (typeof QUnit.stop === 'function') {
// very old QUnit version
QUnit.stop();
} else {
this.doneCallbacks.push(QUnit.config.current ? QUnit.config.current.assert.async() : null);
}
},
asyncEnd() {
// checking for QUnit.stop here (even though we _need_ QUnit.start) because
// QUnit.start() still exists in QUnit 2.x (it just throws an error when calling
// inside a test context)
if (typeof QUnit.stop === 'function') {
QUnit.start();
} else {
let done = this.doneCallbacks.pop();
// This can be null if asyncStart() was called outside of a test
if (done) {
done();
}
}
},
exception(error) {
QUnit.config.current.assert.ok(false, (0, _utils.inspect)(error));
}
});
});
enifed('ember-testing/lib/events', ['exports', '@ember/runloop', '@ember/polyfills', 'ember-testing/lib/helpers/-is-form-control'], function (exports, _runloop, _polyfills, _isFormControl) {
'use strict';
exports.focus = focus;
exports.fireEvent = fireEvent;
const <API key> = { canBubble: true, cancelable: true };
const <API key> = ['keydown', 'keypress', 'keyup'];
const MOUSE_EVENT_TYPES = ['click', 'mousedown', 'mouseup', 'dblclick', 'mouseenter', 'mouseleave', 'mousemove', 'mouseout', 'mouseover'];
function focus(el) {
if (!el) {
return;
}
if (el.isContentEditable || (0, _isFormControl.default)(el)) {
let type = el.getAttribute('type');
if (type !== 'checkbox' && type !== 'radio' && type !== 'hidden') {
(0, _runloop.run)(null, function () {
let browserIsNotFocused = document.hasFocus && !document.hasFocus();
// makes `document.activeElement` be `element`. If the browser is focused, it also fires a focus event
el.focus();
// Firefox does not trigger the `focusin` event if the window
// does not have focus. If the document does not have focus then
// fire `focusin` event as well.
if (browserIsNotFocused) {
// if the browser is not focused the previous `el.focus()` didn't fire an event, so we simulate it
fireEvent(el, 'focus', {
bubbles: false
});
fireEvent(el, 'focusin');
}
});
}
}
}
function fireEvent(element, type, options = {}) {
if (!element) {
return;
}
let event;
if (<API key>.indexOf(type) > -1) {
event = buildKeyboardEvent(type, options);
} else if (MOUSE_EVENT_TYPES.indexOf(type) > -1) {
let rect = element.<API key>();
let x = rect.left + 1;
let y = rect.top + 1;
let <API key> = {
screenX: x + 5,
screenY: y + 95,
clientX: x,
clientY: y
};
event = buildMouseEvent(type, (0, _polyfills.assign)(<API key>, options));
} else {
event = buildBasicEvent(type, options);
}
element.dispatchEvent(event);
}
function buildBasicEvent(type, options = {}) {
let event = document.createEvent('Events');
// Event.bubbles is read only
let bubbles = options.bubbles !== undefined ? options.bubbles : true;
let cancelable = options.cancelable !== undefined ? options.cancelable : true;
delete options.bubbles;
delete options.cancelable;
event.initEvent(type, bubbles, cancelable);
(0, _polyfills.assign)(event, options);
return event;
}
function buildMouseEvent(type, options = {}) {
let event;
try {
event = document.createEvent('MouseEvents');
let eventOpts = (0, _polyfills.assign)({}, <API key>, options);
event.initMouseEvent(type, eventOpts.canBubble, eventOpts.cancelable, window, eventOpts.detail, eventOpts.screenX, eventOpts.screenY, eventOpts.clientX, eventOpts.clientY, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.button, eventOpts.relatedTarget);
} catch (e) {
event = buildBasicEvent(type, options);
}
return event;
}
function buildKeyboardEvent(type, options = {}) {
let event;
try {
event = document.createEvent('KeyEvents');
let eventOpts = (0, _polyfills.assign)({}, <API key>, options);
event.initKeyEvent(type, eventOpts.canBubble, eventOpts.cancelable, window, eventOpts.ctrlKey, eventOpts.altKey, eventOpts.shiftKey, eventOpts.metaKey, eventOpts.keyCode, eventOpts.charCode);
} catch (e) {
event = buildBasicEvent(type, options);
}
return event;
}
});
enifed('ember-testing/lib/ext/application', ['@ember/application', 'ember-testing/lib/setup_for_testing', 'ember-testing/lib/test/helpers', 'ember-testing/lib/test/promise', 'ember-testing/lib/test/run', 'ember-testing/lib/test/on_inject_helpers', 'ember-testing/lib/test/adapter'], function (_application, _setup_for_testing, _helpers, _promise, _run, _on_inject_helpers, _adapter) {
'use strict';
_application.default.reopen({
testHelpers: {},
/**
This property will contain the original methods that were registered
on the `helperContainer` before `injectTestHelpers` is called.
When `removeTestHelpers` is called, these methods are restored to the
`helperContainer`.
@property originalMethods
@type {Object}
@default {}
@private
@since 1.3.0
*/
originalMethods: {},
/**
This property indicates whether or not this application is currently in
testing mode. This is set when `setupForTesting` is called on the current
application.
@property testing
@type {Boolean}
@default false
@since 1.3.0
@public
*/
testing: false,
/**
This hook defers the readiness of the application, so that you can start
the app when your tests are ready to run. It also sets the router's
location to 'none', so that the window's location will not be modified
(preventing both accidental leaking of state between tests and interference
with your testing framework). `setupForTesting` should only be called after
setting a custom `router` class (for example `App.Router = Router.extend(`).
Example:
App.setupForTesting();
@method setupForTesting
@public
*/
setupForTesting() {
(0, _setup_for_testing.default)();
this.testing = true;
this.resolveRegistration('router:main').reopen({
location: 'none'
});
},
/**
This will be used as the container to inject the test helpers into. By
default the helpers are injected into `window`.
@property helperContainer
@type {Object} The object to be used for test helpers.
@default window
@since 1.2.0
@private
*/
helperContainer: null,
/**
This injects the test helpers into the `helperContainer` object. If an object is provided
it will be used as the helperContainer. If `helperContainer` is not set it will default
to `window`. If a function of the same name has already been defined it will be cached
(so that it can be reset if the helper is removed with `unregisterHelper` or
`removeTestHelpers`).
Any callbacks registered with `onInjectHelpers` will be called once the
helpers have been injected.
Example:
App.injectTestHelpers();
@method injectTestHelpers
@public
*/
injectTestHelpers(helperContainer) {
if (helperContainer) {
this.helperContainer = helperContainer;
} else {
this.helperContainer = window;
}
this.reopen({
willDestroy() {
this._super(...arguments);
this.removeTestHelpers();
}
});
this.testHelpers = {};
for (let name in _helpers.helpers) {
this.originalMethods[name] = this.helperContainer[name];
this.testHelpers[name] = this.helperContainer[name] = helper(this, name);
protoWrap(_promise.default.prototype, name, helper(this, name), _helpers.helpers[name].meta.wait);
}
(0, _on_inject_helpers.<API key>)(this);
},
/**
This removes all helpers that have been registered, and resets and functions
that were overridden by the helpers.
Example:
javascript
App.removeTestHelpers();
@public
@method removeTestHelpers
*/
removeTestHelpers() {
if (!this.helperContainer) {
return;
}
for (let name in _helpers.helpers) {
this.helperContainer[name] = this.originalMethods[name];
delete _promise.default.prototype[name];
delete this.testHelpers[name];
delete this.originalMethods[name];
}
}
});
// This method is no longer needed
// But still here for backwards compatibility
// of helper chaining
function protoWrap(proto, name, callback, isAsync) {
proto[name] = function (...args) {
if (isAsync) {
return callback.apply(this, args);
} else {
return this.then(function () {
return callback.apply(this, args);
});
}
};
}
function helper(app, name) {
let fn = _helpers.helpers[name].method;
let meta = _helpers.helpers[name].meta;
if (!meta.wait) {
return (...args) => fn.apply(app, [app, ...args]);
}
return (...args) => {
let lastPromise = (0, _run.default)(() => (0, _promise.resolve)((0, _promise.getLastPromise)()));
// wait for last helper's promise to resolve and then
// execute. To be safe, we need to tell the adapter we're going
// asynchronous here, because fn may not be invoked before we
// return.
(0, _adapter.asyncStart)();
return lastPromise.then(() => fn.apply(app, [app, ...args])).finally(_adapter.asyncEnd);
};
}
});
enifed('ember-testing/lib/ext/rsvp', ['exports', '@ember/-internals/runtime', '@ember/runloop', '@ember/debug', 'ember-testing/lib/test/adapter'], function (exports, _runtime, _runloop, _debug, _adapter) {
'use strict';
_runtime.RSVP.configure('async', function (callback, promise) {
// if schedule will cause autorun, we need to inform adapter
if ((0, _debug.isTesting)() && !_runloop.backburner.currentInstance) {
(0, _adapter.asyncStart)();
_runloop.backburner.schedule('actions', () => {
(0, _adapter.asyncEnd)();
callback(promise);
});
} else {
_runloop.backburner.schedule('actions', () => callback(promise));
}
});
exports.default = _runtime.RSVP;
});
enifed('ember-testing/lib/helpers', ['ember-testing/lib/test/helpers', 'ember-testing/lib/helpers/and_then', 'ember-testing/lib/helpers/click', 'ember-testing/lib/helpers/current_path', 'ember-testing/lib/helpers/current_route_name', 'ember-testing/lib/helpers/current_url', 'ember-testing/lib/helpers/fill_in', 'ember-testing/lib/helpers/find', 'ember-testing/lib/helpers/find_with_assert', 'ember-testing/lib/helpers/key_event', 'ember-testing/lib/helpers/pause_test', 'ember-testing/lib/helpers/trigger_event', 'ember-testing/lib/helpers/visit', 'ember-testing/lib/helpers/wait'], function (_helpers, _and_then, _click, _current_path, _current_route_name, _current_url, _fill_in, _find, _find_with_assert, _key_event, _pause_test, _trigger_event, _visit, _wait) {
'use strict';
(0, _helpers.registerAsyncHelper)('visit', _visit.default);
(0, _helpers.registerAsyncHelper)('click', _click.default);
(0, _helpers.registerAsyncHelper)('keyEvent', _key_event.default);
(0, _helpers.registerAsyncHelper)('fillIn', _fill_in.default);
(0, _helpers.registerAsyncHelper)('wait', _wait.default);
(0, _helpers.registerAsyncHelper)('andThen', _and_then.default);
(0, _helpers.registerAsyncHelper)('pauseTest', _pause_test.pauseTest);
(0, _helpers.registerAsyncHelper)('triggerEvent', _trigger_event.default);
(0, _helpers.registerHelper)('find', _find.default);
(0, _helpers.registerHelper)('findWithAssert', _find_with_assert.default);
(0, _helpers.registerHelper)('currentRouteName', _current_route_name.default);
(0, _helpers.registerHelper)('currentPath', _current_path.default);
(0, _helpers.registerHelper)('currentURL', _current_url.default);
(0, _helpers.registerHelper)('resumeTest', _pause_test.resumeTest);
});
enifed('ember-testing/lib/helpers/-is-form-control', ['exports'], function (exports) {
'use strict';
exports.default = isFormControl;
const FORM_CONTROL_TAGS = ['INPUT', 'BUTTON', 'SELECT', 'TEXTAREA'];
/**
@private
@param {Element} element the element to check
@returns {boolean} `true` when the element is a form control, `false` otherwise
*/
function isFormControl(element) {
let { tagName, type } = element;
if (type === 'hidden') {
return false;
}
return FORM_CONTROL_TAGS.indexOf(tagName) > -1;
}
});
enifed("ember-testing/lib/helpers/and_then", ["exports"], function (exports) {
"use strict";
exports.default = andThen;
function andThen(app, callback) {
return app.testHelpers.wait(callback(app));
}
});
enifed('ember-testing/lib/helpers/click', ['exports', 'ember-testing/lib/events'], function (exports, _events) {
'use strict';
exports.default = click;
/**
Clicks an element and triggers any actions triggered by the element's `click`
event.
Example:
javascript
click('.<API key>').then(function() {
// assert something
});
@method click
@param {String} selector jQuery selector for finding element on the DOM
@param {Object} context A DOM Element, Document, or jQuery to use as context
@return {RSVP.Promise<undefined>}
@public
*/
function click(app, selector, context) {
let $el = app.testHelpers.findWithAssert(selector, context);
let el = $el[0];
(0, _events.fireEvent)(el, 'mousedown');
(0, _events.focus)(el);
(0, _events.fireEvent)(el, 'mouseup');
(0, _events.fireEvent)(el, 'click');
return app.testHelpers.wait();
} /**
@module ember
*/
});
enifed('ember-testing/lib/helpers/current_path', ['exports', '@ember/-internals/metal'], function (exports, _metal) {
'use strict';
exports.default = currentPath;
/**
Returns the current path.
Example:
javascript
function validateURL() {
equal(currentPath(), 'some.path.index', "correct path was transitioned into.");
}
click('#some-link-id').then(validateURL);
@method currentPath
@return {Object} The currently active path.
@since 1.5.0
@public
*/
function currentPath(app) {
let routingService = app.__container__.lookup('service:-routing');
return (0, _metal.get)(routingService, 'currentPath');
} /**
@module ember
*/
});
enifed('ember-testing/lib/helpers/current_route_name', ['exports', '@ember/-internals/metal'], function (exports, _metal) {
'use strict';
exports.default = currentRouteName;
/**
Returns the currently active route name.
Example:
javascript
function validateRouteName() {
equal(currentRouteName(), 'some.path', "correct route was transitioned into.");
}
visit('/some/path').then(validateRouteName)
@method currentRouteName
@return {Object} The name of the currently active route.
@since 1.5.0
@public
*/
function currentRouteName(app) {
let routingService = app.__container__.lookup('service:-routing');
return (0, _metal.get)(routingService, 'currentRouteName');
} /**
@module ember
*/
});
enifed('ember-testing/lib/helpers/current_url', ['exports', '@ember/-internals/metal'], function (exports, _metal) {
'use strict';
exports.default = currentURL;
/**
Returns the current URL.
Example:
javascript
function validateURL() {
equal(currentURL(), '/some/path', "correct URL was transitioned into.");
}
click('#some-link-id').then(validateURL);
@method currentURL
@return {Object} The currently active URL.
@since 1.5.0
@public
*/
function currentURL(app) {
let router = app.__container__.lookup('router:main');
return (0, _metal.get)(router, 'location').getURL();
} /**
@module ember
*/
});
enifed('ember-testing/lib/helpers/fill_in', ['exports', 'ember-testing/lib/events', 'ember-testing/lib/helpers/-is-form-control'], function (exports, _events, _isFormControl) {
'use strict';
exports.default = fillIn;
/**
Fills in an input element with some text.
Example:
javascript
fillIn('#email', 'you@example.com').then(function() {
// assert something
});
@method fillIn
@param {String} selector jQuery selector finding an input element on the DOM
to fill text with
@param {String} text text to place inside the input element
@return {RSVP.Promise<undefined>}
@public
*/
/**
@module ember
*/
function fillIn(app, selector, contextOrText, text) {
let $el, el, context;
if (text === undefined) {
text = contextOrText;
} else {
context = contextOrText;
}
$el = app.testHelpers.findWithAssert(selector, context);
el = $el[0];
(0, _events.focus)(el);
if ((0, _isFormControl.default)(el)) {
el.value = text;
} else {
el.innerHTML = text;
}
(0, _events.fireEvent)(el, 'input');
(0, _events.fireEvent)(el, 'change');
return app.testHelpers.wait();
}
});
enifed('ember-testing/lib/helpers/find', ['exports', '@ember/-internals/metal', '@ember/debug', '@ember/-internals/views'], function (exports, _metal, _debug, _views) {
'use strict';
exports.default = find;
/**
Finds an element in the context of the app's container element. A simple alias
for `app.$(selector)`.
Example:
javascript
var $el = find('.my-selector');
With the `context` param:
javascript
var $el = find('.my-selector', '.<API key>');
@method find
@param {String} selector jQuery selector for element lookup
@param {String} [context] (optional) jQuery selector that will limit the selector
argument to find only within the context's children
@return {Object} DOM element representing the results of the query
@public
*/
function find(app, selector, context) {
if (_views.jQueryDisabled) {
true && !false && (0, _debug.assert)('If jQuery is disabled, please import and use helpers from @ember/test-helpers [https://github.com/emberjs/ember-test-helpers]. Note: `find` is not an available helper.');
}
let $el;
context = context || (0, _metal.get)(app, 'rootElement');
$el = app.$(selector, context);
return $el;
} /**
@module ember
*/
});
enifed('ember-testing/lib/helpers/find_with_assert', ['exports'], function (exports) {
'use strict';
exports.default = findWithAssert;
/**
@module ember
*/
/**
Like `find`, but throws an error if the element selector returns no results.
Example:
javascript
var $el = findWithAssert('.doesnt-exist'); // throws error
With the `context` param:
javascript
var $el = findWithAssert('.selector-id', '.<API key>'); // assert will pass
@method findWithAssert
@param {String} selector jQuery selector string for finding an element within
the DOM
@param {String} [context] (optional) jQuery selector that will limit the
selector argument to find only within the context's children
@return {Object} jQuery object representing the results of the query
@throws {Error} throws error if object returned has a length of 0
@public
*/
function findWithAssert(app, selector, context) {
let $el = app.testHelpers.find(selector, context);
if ($el.length === 0) {
throw new Error('Element ' + selector + ' not found.');
}
return $el;
}
});
enifed("ember-testing/lib/helpers/key_event", ["exports"], function (exports) {
"use strict";
exports.default = keyEvent;
/**
@module ember
*/
/**
Simulates a key event, e.g. `keypress`, `keydown`, `keyup` with the desired keyCode
Example:
javascript
keyEvent('.<API key>', 'keypress', 13).then(function() {
// assert something
});
@method keyEvent
@param {String} selector jQuery selector for finding element on the DOM
@param {String} type the type of key event, e.g. `keypress`, `keydown`, `keyup`
@param {Number} keyCode the keyCode of the simulated key event
@return {RSVP.Promise<undefined>}
@since 1.5.0
@public
*/
function keyEvent(app, selector, contextOrType, typeOrKeyCode, keyCode) {
let context, type;
if (keyCode === undefined) {
context = null;
keyCode = typeOrKeyCode;
type = contextOrType;
} else {
context = contextOrType;
type = typeOrKeyCode;
}
return app.testHelpers.triggerEvent(selector, context, type, {
keyCode,
which: keyCode
});
}
});
enifed('ember-testing/lib/helpers/pause_test', ['exports', '@ember/-internals/runtime', '@ember/debug'], function (exports, _runtime, _debug) {
'use strict';
exports.resumeTest = resumeTest;
exports.pauseTest = pauseTest;
/**
@module ember
*/
let resume;
/**
Resumes a test paused by `pauseTest`.
@method resumeTest
@return {void}
@public
*/
function resumeTest() {
true && !resume && (0, _debug.assert)('Testing has not been paused. There is nothing to resume.', resume);
resume();
resume = undefined;
}
/**
Pauses the current test - this is useful for debugging while testing or for test-driving.
It allows you to inspect the state of your application at any point.
Example (The test will pause before clicking the button):
javascript
visit('/')
return pauseTest();
click('.btn');
You may want to turn off the timeout before pausing.
qunit (as of 2.4.0):
visit('/');
assert.timeout(0);
return pauseTest();
click('.btn');
mocha:
visit('/');
this.timeout(0);
return pauseTest();
click('.btn');
@since 1.9.0
@method pauseTest
@return {Object} A promise that will never resolve
@public
*/
function pauseTest() {
(0, _debug.info)('Testing paused. Use `resumeTest()` to continue.');
return new _runtime.RSVP.Promise(resolve => {
resume = resolve;
}, 'TestAdapter paused promise');
}
});
enifed('ember-testing/lib/helpers/trigger_event', ['exports', 'ember-testing/lib/events'], function (exports, _events) {
'use strict';
exports.default = triggerEvent;
/**
Triggers the given DOM event on the element identified by the provided selector.
Example:
javascript
triggerEvent('#some-elem-id', 'blur');
This is actually used internally by the `keyEvent` helper like so:
javascript
triggerEvent('#some-elem-id', 'keypress', { keyCode: 13 });
@method triggerEvent
@param {String} selector jQuery selector for finding element on the DOM
@param {String} [context] jQuery selector that will limit the selector
argument to find only within the context's children
@param {String} type The event type to be triggered.
@param {Object} [options] The options to be passed to jQuery.Event.
@return {RSVP.Promise<undefined>}
@since 1.5.0
@public
*/
function triggerEvent(app, selector, contextOrType, typeOrOptions, possibleOptions) {
let arity = arguments.length;
let context, type, options;
if (arity === 3) {
// context and options are optional, so this is
// app, selector, type
context = null;
type = contextOrType;
options = {};
} else if (arity === 4) {
// context and options are optional, so this is
if (typeof typeOrOptions === 'object') {
// either
// app, selector, type, options
context = null;
type = contextOrType;
options = typeOrOptions;
} else {
// app, selector, context, type
context = contextOrType;
type = typeOrOptions;
options = {};
}
} else {
context = contextOrType;
type = typeOrOptions;
options = possibleOptions;
}
let $el = app.testHelpers.findWithAssert(selector, context);
let el = $el[0];
(0, _events.fireEvent)(el, type, options);
return app.testHelpers.wait();
} /**
@module ember
*/
});
enifed('ember-testing/lib/helpers/visit', ['exports', '@ember/runloop'], function (exports, _runloop) {
'use strict';
exports.default = visit;
/**
Loads a route, sets up any controllers, and renders any templates associated
with the route as though a real user had triggered the route change while
using your app.
Example:
javascript
visit('posts/index').then(function() {
// assert something
});
@method visit
@param {String} url the name of the route
@return {RSVP.Promise<undefined>}
@public
*/
function visit(app, url) {
let router = app.__container__.lookup('router:main');
let shouldHandleURL = false;
app.boot().then(() => {
router.location.setURL(url);
if (shouldHandleURL) {
(0, _runloop.run)(app.<API key>, 'handleURL', url);
}
});
if (app._readinessDeferrals > 0) {
router.initialURL = url;
(0, _runloop.run)(app, 'advanceReadiness');
delete router.initialURL;
} else {
shouldHandleURL = true;
}
return app.testHelpers.wait();
}
});
enifed('ember-testing/lib/helpers/wait', ['exports', 'ember-testing/lib/test/waiters', '@ember/-internals/runtime', '@ember/runloop', 'ember-testing/lib/test/pending_requests'], function (exports, _waiters, _runtime, _runloop, _pending_requests) {
'use strict';
exports.default = wait;
/**
Causes the run loop to process any pending events. This is used to ensure that
any async operations from other helpers (or your assertions) have been processed.
This is most often used as the return value for the helper functions (see 'click',
'fillIn','visit',etc). However, there is a method to register a test helper which
utilizes this method without the need to actually call `wait()` in your helpers.
The `wait` helper is built into `registerAsyncHelper` by default. You will not need
to `return app.testHelpers.wait();` - the wait behavior is provided for you.
Example:
javascript
import { registerAsyncHelper } from '@ember/test';
registerAsyncHelper('loginUser', function(app, username, password) {
visit('secured/path/here')
.fillIn('#username', username)
.fillIn('#password', password)
.click('.submit');
});
@method wait
@param {Object} value The value to be returned.
@return {RSVP.Promise<any>} Promise that resolves to the passed value.
@public
@since 1.0.0
*/
/**
@module ember
*/
function wait(app, value) {
return new _runtime.RSVP.Promise(function (resolve) {
let router = app.__container__.lookup('router:main');
// Every 10ms, poll for the async thing to have finished
let watcher = setInterval(() => {
// 1. If the router is loading, keep polling
let routerIsLoading = router._routerMicrolib && !!router._routerMicrolib.activeTransition;
if (routerIsLoading) {
return;
}
// 2. If there are pending Ajax requests, keep polling
if ((0, _pending_requests.pendingRequests)()) {
return;
}
// 3. If there are scheduled timers or we are inside of a run loop, keep polling
if ((0, _runloop.hasScheduledTimers)() || (0, _runloop.getCurrentRunLoop)()) {
return;
}
if ((0, _waiters.checkWaiters)()) {
return;
}
// Stop polling
clearInterval(watcher);
// Synchronously resolve the promise
(0, _runloop.run)(null, resolve, value);
}, 10);
});
}
});
enifed('ember-testing/lib/initializers', ['@ember/application'], function (_application) {
'use strict';
let name = 'deferReadiness in `testing` mode';
(0, _application.onLoad)('Ember.Application', function (Application) {
if (!Application.initializers[name]) {
Application.initializer({
name: name,
initialize(application) {
if (application.testing) {
application.deferReadiness();
}
}
});
}
});
});
enifed('ember-testing/lib/setup_for_testing', ['exports', '@ember/debug', '@ember/-internals/views', 'ember-testing/lib/test/adapter', 'ember-testing/lib/test/pending_requests', 'ember-testing/lib/adapters/adapter', 'ember-testing/lib/adapters/qunit'], function (exports, _debug, _views, _adapter, _pending_requests, _adapter2, _qunit) {
'use strict';
exports.default = setupForTesting;
/**
Sets Ember up for testing. This is useful to perform
basic setup steps in order to unit test.
Use `App.setupForTesting` to perform integration tests (full
application testing).
@method setupForTesting
@namespace Ember
@since 1.5.0
@private
*/
/* global self */
function setupForTesting() {
(0, _debug.setTesting)(true);
let adapter = (0, _adapter.getAdapter)();
// if adapter is not manually set default to QUnit
if (!adapter) {
(0, _adapter.setAdapter)(typeof self.QUnit === 'undefined' ? _adapter2.default.create() : _qunit.default.create());
}
if (!_views.jQueryDisabled) {
(0, _views.jQuery)(document).off('ajaxSend', _pending_requests.<API key>);
(0, _views.jQuery)(document).off('ajaxComplete', _pending_requests.<API key>);
(0, _pending_requests.<API key>)();
(0, _views.jQuery)(document).on('ajaxSend', _pending_requests.<API key>);
(0, _views.jQuery)(document).on('ajaxComplete', _pending_requests.<API key>);
}
}
});
enifed('ember-testing/lib/support', ['@ember/debug', '@ember/-internals/views', '@ember/-internals/browser-environment'], function (_debug, _views, _browserEnvironment) {
'use strict';
/**
@module ember
*/
const $ = _views.jQuery;
/**
This method creates a checkbox and triggers the click event to fire the
passed in handler. It is used to correct for a bug in older versions
of jQuery (e.g 1.8.3).
@private
@method testCheckboxClick
*/
function testCheckboxClick(handler) {
let input = document.createElement('input');
$(input).attr('type', 'checkbox').css({ position: 'absolute', left: '-1000px', top: '-1000px' }).appendTo('body').on('click', handler).trigger('click').remove();
}
if (_browserEnvironment.hasDOM && !_views.jQueryDisabled) {
$(function () {
testCheckboxClick(function () {
if (!this.checked && !$.event.special.click) {
$.event.special.click = {
// For checkbox, fire native event so checked state will be right
trigger() {
if (this.nodeName === 'INPUT' && this.type === 'checkbox' && this.click) {
this.click();
return false;
}
}
};
}
});
// Try again to verify that the patch took effect or blow up.
testCheckboxClick(function () {
true && (0, _debug.warn)("clicked checkboxes should be checked! the jQuery patch didn't work", this.checked, {
id: 'ember-testing.test-checkbox-click'
});
});
});
}
});
enifed('ember-testing/lib/test', ['exports', 'ember-testing/lib/test/helpers', 'ember-testing/lib/test/on_inject_helpers', 'ember-testing/lib/test/promise', 'ember-testing/lib/test/waiters', 'ember-testing/lib/test/adapter'], function (exports, _helpers, _on_inject_helpers, _promise, _waiters, _adapter) {
'use strict';
/**
This is a container for an assortment of testing related functionality:
* Choose your default test adapter (for your framework of choice).
* Register/Unregister additional test helpers.
* Setup callbacks to be fired when the test helpers are injected into
your application.
@class Test
@namespace Ember
@public
*/
const Test = {
/**
Hash containing all known test helpers.
@property _helpers
@private
@since 1.7.0
*/
_helpers: _helpers.helpers,
registerHelper: _helpers.registerHelper,
registerAsyncHelper: _helpers.registerAsyncHelper,
unregisterHelper: _helpers.unregisterHelper,
onInjectHelpers: _on_inject_helpers.onInjectHelpers,
Promise: _promise.default,
promise: _promise.promise,
resolve: _promise.resolve,
registerWaiter: _waiters.registerWaiter,
unregisterWaiter: _waiters.unregisterWaiter,
checkWaiters: _waiters.checkWaiters
};
/**
Used to allow ember-testing to communicate with a specific testing
framework.
You can manually set it before calling `App.setupForTesting()`.
Example:
javascript
Ember.Test.adapter = MyCustomAdapter.create()
If you do not set it, ember-testing will default to `Ember.Test.QUnitAdapter`.
@public
@for Ember.Test
@property adapter
@type {Class} The adapter to be used.
@default Ember.Test.QUnitAdapter
*/
/**
@module ember
*/
Object.defineProperty(Test, 'adapter', {
get: _adapter.getAdapter,
set: _adapter.setAdapter
});
exports.default = Test;
});
enifed('ember-testing/lib/test/adapter', ['exports', '@ember/-internals/error-handling'], function (exports, _errorHandling) {
'use strict';
exports.getAdapter = getAdapter;
exports.setAdapter = setAdapter;
exports.asyncStart = asyncStart;
exports.asyncEnd = asyncEnd;
let adapter;
function getAdapter() {
return adapter;
}
function setAdapter(value) {
adapter = value;
if (value && typeof value.exception === 'function') {
(0, _errorHandling.setDispatchOverride)(adapterDispatch);
} else {
(0, _errorHandling.setDispatchOverride)(null);
}
}
function asyncStart() {
if (adapter) {
adapter.asyncStart();
}
}
function asyncEnd() {
if (adapter) {
adapter.asyncEnd();
}
}
function adapterDispatch(error) {
adapter.exception(error);
console.error(error.stack); // eslint-disable-line no-console
}
});
enifed('ember-testing/lib/test/helpers', ['exports', 'ember-testing/lib/test/promise'], function (exports, _promise) {
'use strict';
exports.helpers = undefined;
exports.registerHelper = registerHelper;
exports.registerAsyncHelper = registerAsyncHelper;
exports.unregisterHelper = unregisterHelper;
const helpers = exports.helpers = {};
/**
@module @ember/test
*/
/**
`registerHelper` is used to register a test helper that will be injected
when `App.injectTestHelpers` is called.
The helper method will always be called with the current Application as
the first parameter.
For example:
javascript
import { registerHelper } from '@ember/test';
import { run } from '@ember/runloop';
registerHelper('boot', function(app) {
run(app, app.advanceReadiness);
});
This helper can later be called without arguments because it will be
called with `app` as the first parameter.
javascript
import Application from '@ember/application';
App = Application.create();
App.injectTestHelpers();
boot();
@public
@for @ember/test
@static
@method registerHelper
@param {String} name The name of the helper method to add.
@param {Function} helperMethod
@param options {Object}
*/
function registerHelper(name, helperMethod) {
helpers[name] = {
method: helperMethod,
meta: { wait: false }
};
}
/**
`registerAsyncHelper` is used to register an async test helper that will be injected
when `App.injectTestHelpers` is called.
The helper method will always be called with the current Application as
the first parameter.
For example:
javascript
import { registerAsyncHelper } from '@ember/test';
import { run } from '@ember/runloop';
registerAsyncHelper('boot', function(app) {
run(app, app.advanceReadiness);
});
The advantage of an async helper is that it will not run
until the last async helper has completed. All async helpers
after it will wait for it complete before running.
For example:
javascript
import { registerAsyncHelper } from '@ember/test';
registerAsyncHelper('deletePost', function(app, postId) {
click('.delete-' + postId);
});
// ... in your test
visit('/post/2');
deletePost(2);
visit('/post/3');
deletePost(3);
@public
@for @ember/test
@method registerAsyncHelper
@param {String} name The name of the helper method to add.
@param {Function} helperMethod
@since 1.2.0
*/
function registerAsyncHelper(name, helperMethod) {
helpers[name] = {
method: helperMethod,
meta: { wait: true }
};
}
/**
Remove a previously added helper method.
Example:
javascript
import { unregisterHelper } from '@ember/test';
unregisterHelper('wait');
@public
@method unregisterHelper
@static
@for @ember/test
@param {String} name The helper to remove.
*/
function unregisterHelper(name) {
delete helpers[name];
delete _promise.default.prototype[name];
}
});
enifed("ember-testing/lib/test/on_inject_helpers", ["exports"], function (exports) {
"use strict";
exports.onInjectHelpers = onInjectHelpers;
exports.<API key> = <API key>;
const callbacks = exports.callbacks = [];
/**
Used to register callbacks to be fired whenever `App.injectTestHelpers`
is called.
The callback will receive the current application as an argument.
Example:
javascript
import $ from 'jquery';
Ember.Test.onInjectHelpers(function() {
$(document).ajaxSend(function() {
Test.pendingRequests++;
});
$(document).ajaxComplete(function() {
Test.pendingRequests--;
});
});
@public
@for Ember.Test
@method onInjectHelpers
@param {Function} callback The function to be called.
*/
function onInjectHelpers(callback) {
callbacks.push(callback);
}
function <API key>(app) {
for (let i = 0; i < callbacks.length; i++) {
callbacks[i](app);
}
}
});
enifed("ember-testing/lib/test/pending_requests", ["exports"], function (exports) {
"use strict";
exports.pendingRequests = pendingRequests;
exports.<API key> = <API key>;
exports.<API key> = <API key>;
exports.<API key> = <API key>;
let requests = [];
function pendingRequests() {
return requests.length;
}
function <API key>() {
requests.length = 0;
}
function <API key>(_, xhr) {
requests.push(xhr);
}
function <API key>(_, xhr) {
setTimeout(function () {
for (let i = 0; i < requests.length; i++) {
if (xhr === requests[i]) {
requests.splice(i, 1);
break;
}
}
}, 0);
}
});
enifed('ember-testing/lib/test/promise', ['exports', '@ember/-internals/runtime', 'ember-testing/lib/test/run'], function (exports, _runtime, _run) {
'use strict';
exports.promise = promise;
exports.resolve = resolve;
exports.getLastPromise = getLastPromise;
let lastPromise;
class TestPromise extends _runtime.RSVP.Promise {
constructor() {
super(...arguments);
lastPromise = this;
}
then(_onFulfillment, ...args) {
let onFulfillment = typeof _onFulfillment === 'function' ? result => isolate(_onFulfillment, result) : undefined;
return super.then(onFulfillment, ...args);
}
}
exports.default = TestPromise;
/**
This returns a thenable tailored for testing. It catches failed
`onSuccess` callbacks and invokes the `Ember.Test.adapter.exception`
callback in the last chained then.
This method should be returned by async helpers such as `wait`.
@public
@for Ember.Test
@method promise
@param {Function} resolver The function used to resolve the promise.
@param {String} label An optional string for identifying the promise.
*/
function promise(resolver, label) {
let fullLabel = `Ember.Test.promise: ${label || '<Unknown Promise>'}`;
return new TestPromise(resolver, fullLabel);
}
/**
Replacement for `Ember.RSVP.resolve`
The only difference is this uses
an instance of `Ember.Test.Promise`
@public
@for Ember.Test
@method resolve
@param {Mixed} The value to resolve
@since 1.2.0
*/
function resolve(result, label) {
return TestPromise.resolve(result, label);
}
function getLastPromise() {
return lastPromise;
}
// This method isolates nested async methods
// so that they don't conflict with other last promises.
// 1. Set `Ember.Test.lastPromise` to null
// 2. Invoke method
// 3. Return the last promise created during method
function isolate(onFulfillment, result) {
// Reset lastPromise for nested helpers
lastPromise = null;
let value = onFulfillment(result);
let promise = lastPromise;
lastPromise = null;
// If the method returned a promise
// return that promise. If not,
// return the last async helper's promise
if (value && value instanceof TestPromise || !promise) {
return value;
} else {
return (0, _run.default)(() => resolve(promise).then(() => value));
}
}
});
enifed('ember-testing/lib/test/run', ['exports', '@ember/runloop'], function (exports, _runloop) {
'use strict';
exports.default = run;
function run(fn) {
if (!(0, _runloop.getCurrentRunLoop)()) {
return (0, _runloop.run)(fn);
} else {
return fn();
}
}
});
enifed("ember-testing/lib/test/waiters", ["exports"], function (exports) {
"use strict";
exports.registerWaiter = registerWaiter;
exports.unregisterWaiter = unregisterWaiter;
exports.checkWaiters = checkWaiters;
/**
@module @ember/test
*/
const contexts = [];
const callbacks = [];
function registerWaiter(context, callback) {
if (arguments.length === 1) {
callback = context;
context = null;
}
if (indexOf(context, callback) > -1) {
return;
}
contexts.push(context);
callbacks.push(callback);
}
/**
`unregisterWaiter` is used to unregister a callback that was
registered with `registerWaiter`.
@public
@for @ember/test
@static
@method unregisterWaiter
@param {Object} context (optional)
@param {Function} callback
@since 1.2.0
*/
function unregisterWaiter(context, callback) {
if (!callbacks.length) {
return;
}
if (arguments.length === 1) {
callback = context;
context = null;
}
let i = indexOf(context, callback);
if (i === -1) {
return;
}
contexts.splice(i, 1);
callbacks.splice(i, 1);
}
/**
Iterates through each registered test waiter, and invokes
its callback. If any waiter returns false, this method will return
true indicating that the waiters have not settled yet.
This is generally used internally from the acceptance/integration test
infrastructure.
@public
@for @ember/test
@static
@method checkWaiters
*/
function checkWaiters() {
if (!callbacks.length) {
return false;
}
for (let i = 0; i < callbacks.length; i++) {
let context = contexts[i];
let callback = callbacks[i];
if (!callback.call(context)) {
return true;
}
}
return false;
}
function indexOf(context, callback) {
for (let i = 0; i < callbacks.length; i++) {
if (callbacks[i] === callback && contexts[i] === context) {
return i;
}
}
return -1;
}
});
/*global enifed, module */
enifed('node-module', ['exports'], function(_exports) {
var IS_NODE = typeof module === 'object' && typeof module.require === 'function';
if (IS_NODE) {
_exports.require = module.require;
_exports.module = module;
_exports.IS_NODE = IS_NODE;
} else {
_exports.require = null;
_exports.module = null;
_exports.IS_NODE = IS_NODE;
}
});
var testing = requireModule('ember-testing');
Ember.Test = testing.Test;
Ember.Test.Adapter = testing.Adapter;
Ember.Test.QUnitAdapter = testing.QUnitAdapter;
Ember.setupForTesting = testing.setupForTesting;
}());
//# sourceMappingURL=ember-testing.map |
@charset "UTF-8";
:root {
--surface-a:#2a323d;
--surface-b:#20262e;
--surface-c:rgba(255, 255, 255, 0.04);
--surface-d:#3f4b5b;
--surface-e:#2a323d;
--surface-f:#2a323d;
--text-color:rgba(255, 255, 255, 0.87);
--<API key>:rgba(255, 255, 255, 0.6);
--primary-color:#c298d8;
--primary-color-text:#151515;
--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.15s;
}
.p-disabled, .p-component:disabled {
opacity: 0.65;
}
.p-error, .p-invalid {
color: #f19ea6;
}
.p-text-secondary {
color: rgba(255, 255, 255, 0.6);
}
.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: 4px;
}
.p-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-autocomplete .<API key> {
right: 0.75rem;
}
.p-autocomplete.p-autocomplete-dd .<API key> {
right: 3.107rem;
}
.p-autocomplete .<API key> {
padding: 0.25rem 0.75rem;
}
.p-autocomplete .<API key>:not(.p-disabled):hover {
border-color: #3f4b5b;
}
.p-autocomplete .<API key>:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
border-color: #c298d8;
}
.p-autocomplete .<API key> .<API key> {
padding: 0.25rem 0;
}
.p-autocomplete .<API key> .<API key> 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: rgba(255, 255, 255, 0.87);
padding: 0;
margin: 0;
}
.p-autocomplete .<API key> .<API key> {
padding: 0.25rem 0.75rem;
margin-right: 0.5rem;
background: #c298d8;
color: #151515;
border-radius: 4px;
}
.p-autocomplete .<API key> .<API key> .<API key> {
margin-left: 0.5rem;
}
.p-autocomplete.p-error > .p-inputtext, .p-autocomplete.p-invalid > .p-inputtext {
border-color: #f19ea6;
}
p-autocomplete.ng-dirty.ng-invalid > .p-autocomplete > .p-inputtext {
border-color: #f19ea6;
}
.<API key> {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-radius: 4px;
box-shadow: none;
}
.<API key> .<API key> {
padding: 0.5rem 0;
}
.<API key> .<API key> .p-autocomplete-item {
margin: 0;
padding: 0.5rem 1.5rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: box-shadow 0.15s;
border-radius: 0;
}
.<API key> .<API key> .p-autocomplete-item:hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.04);
}
.<API key> .<API key> .p-autocomplete-item.p-highlight {
color: #151515;
background: #c298d8;
}
.p-calendar.p-error > .p-inputtext, .p-calendar.p-invalid > .p-inputtext {
border-color: #f19ea6;
}
p-calendar.ng-dirty.ng-invalid > .p-calendar > .p-inputtext {
border-color: #f19ea6;
}
.p-datepicker {
padding: 0;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-radius: 4px;
}
.p-datepicker:not(.p-datepicker-inline) {
background: #2a323d;
border: 1px solid #3f4b5b;
box-shadow: none;
}
.p-datepicker:not(.p-datepicker-inline) .p-datepicker-header {
background: #2a323d;
}
.p-datepicker .p-datepicker-header {
padding: 0.5rem;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
font-weight: 600;
margin: 0;
border-bottom: 1px solid #3f4b5b;
<API key>: 4px;
<API key>: 4px;
}
.p-datepicker .p-datepicker-header .p-datepicker-prev,
.p-datepicker .p-datepicker-header .p-datepicker-next {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: color 0.15s, box-shadow 0.15s;
}
.p-datepicker .p-datepicker-header .p-datepicker-prev:enabled:hover,
.p-datepicker .p-datepicker-header .p-datepicker-next:enabled:hover {
color: rgba(255, 255, 255, 0.87);
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 1px #f0e6f5;
}
.p-datepicker .p-datepicker-header .p-datepicker-title {
line-height: 2rem;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select {
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.p-datepicker .p-datepicker-header .p-datepicker-title select:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
border-color: #c298d8;
}
.p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month {
margin-right: 0.5rem;
}
.p-datepicker table {
font-size: 1rem;
margin: 0.5rem 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: 4px;
transition: box-shadow 0.15s;
border: 1px solid transparent;
}
.p-datepicker table td > span.p-highlight {
color: #151515;
background: #c298d8;
}
.p-datepicker table td > span:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-datepicker table td.p-datepicker-today > span {
background: transparent;
color: #c298d8;
border-color: transparent;
}
.p-datepicker table td.p-datepicker-today > span.p-highlight {
color: #151515;
background: #c298d8;
}
.p-datepicker .<API key> {
padding: 1rem 0;
border-top: 1px solid #3f4b5b;
}
.p-datepicker .<API key> .p-button {
width: auto;
}
.p-datepicker .p-timepicker {
border-top: 1px solid #3f4b5b;
padding: 0.5rem;
}
.p-datepicker .p-timepicker button {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: color 0.15s, box-shadow 0.15s;
}
.p-datepicker .p-timepicker button:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: transparent;
}
.p-datepicker .p-timepicker button:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-datepicker .p-timepicker button:last-child {
margin-top: 0.2em;
}
.p-datepicker .p-timepicker span {
font-size: 1.25rem;
}
.p-datepicker .p-timepicker > div {
padding: 0 0.5rem;
}
.p-datepicker.<API key> .p-timepicker {
border-top: 0 none;
}
.p-datepicker .p-monthpicker {
margin: 0.5rem 0;
}
.p-datepicker .p-monthpicker .p-monthpicker-month {
padding: 0.5rem;
transition: box-shadow 0.15s;
border-radius: 4px;
}
.p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight {
color: #151515;
background: #c298d8;
}
.p-datepicker.<API key> .p-datepicker-group {
border-right: 1px solid #3f4b5b;
padding-right: 0;
padding-left: 0;
padding-top: 0;
padding-bottom: 0;
}
.p-datepicker.<API key> .p-datepicker-group:first-child {
padding-left: 0;
}
.p-datepicker.<API key> .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: rgba(255, 255, 255, 0.04);
}
.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 1px #f0e6f5;
}
.p-datepicker:not(.p-disabled) .p-monthpicker .p-monthpicker-month:not(.p-highlight):not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.04);
}
.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 1px #f0e6f5;
}
@media screen and (max-width: 769px) {
.p-datepicker table th, .p-datepicker table td {
padding: 0;
}
}
.p-cascadeselect {
background: #20262e;
border: 1px solid #3f4b5b;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
border-radius: 4px;
}
.p-cascadeselect:not(.p-disabled):hover {
border-color: #3f4b5b;
}
.p-cascadeselect:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
border-color: #c298d8;
}
.p-cascadeselect .<API key> {
background: transparent;
border: 0 none;
padding: 0.5rem 0.75rem;
}
.p-cascadeselect .<API key>.p-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.p-cascadeselect .<API key>:enabled:focus {
outline: 0 none;
box-shadow: none;
}
.p-cascadeselect .<API key> {
background: transparent;
color: rgba(255, 255, 255, 0.6);
width: 2.357rem;
<API key>: 4px;
<API key>: 4px;
}
.p-cascadeselect.p-error, .p-cascadeselect.p-invalid {
border-color: #f19ea6;
}
.<API key> {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-radius: 4px;
box-shadow: none;
}
.<API key> .<API key> {
padding: 0.5rem 0;
}
.<API key> .<API key> .<API key> {
margin: 0;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: box-shadow 0.15s;
border-radius: 0;
}
.<API key> .<API key> .<API key> .<API key> {
padding: 0.5rem 1.5rem;
}
.<API key> .<API key> .<API key> .<API key>:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
}
.<API key> .<API key> .<API key>.p-highlight {
color: #151515;
background: #c298d8;
}
.<API key> .<API key> .<API key>:not(.p-highlight):not(.p-disabled):hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.04);
}
.<API key> .<API key> .<API key> .<API key> {
font-size: 0.875rem;
}
.p-input-filled .p-cascadeselect {
background: #3f4b5b;
}
.p-input-filled .p-cascadeselect:not(.p-disabled):hover {
background-color: #3f4b5b;
}
.p-input-filled .p-cascadeselect:not(.p-disabled).p-focus {
background-color: #3f4b5b;
}
.p-checkbox {
width: 20px;
height: 20px;
}
.p-checkbox .p-checkbox-box {
border: 1px solid #3f4b5b;
background: #20262e;
width: 20px;
height: 20px;
color: rgba(255, 255, 255, 0.87);
border-radius: 4px;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.p-checkbox .p-checkbox-box .p-checkbox-icon {
transition-duration: 0.15s;
color: #151515;
font-size: 14px;
}
.p-checkbox .p-checkbox-box.p-highlight {
border-color: #c298d8;
background: #c298d8;
}
.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box:hover {
border-color: #3f4b5b;
}
.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
border-color: #c298d8;
}
.p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-highlight:hover {
border-color: #9954bb;
background: #9954bb;
color: #151515;
}
.p-checkbox.p-error > .p-checkbox-box, .p-checkbox.p-invalid > .p-checkbox-box {
border-color: #f19ea6;
}
p-checkbox.ng-dirty.ng-invalid > .p-checkbox > .p-checkbox-box {
border-color: #f19ea6;
}
.p-input-filled .p-checkbox .p-checkbox-box {
background-color: #3f4b5b;
}
.p-input-filled .p-checkbox .p-checkbox-box.p-highlight {
background: #c298d8;
}
.p-input-filled .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box:hover {
background-color: #3f4b5b;
}
.p-input-filled .p-checkbox:not(.p-checkbox-disabled) .p-checkbox-box.p-highlight:hover {
background: #9954bb;
}
.p-checkbox-label {
margin-left: 0.5rem;
}
.p-highlight .p-checkbox .p-checkbox-box {
border-color: #151515;
}
.p-chips .<API key> {
padding: 0.25rem 0.75rem;
}
.p-chips .<API key>:not(.p-disabled):hover {
border-color: #3f4b5b;
}
.p-chips .<API key>:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
border-color: #c298d8;
}
.p-chips .<API key> .p-chips-token {
padding: 0.25rem 0.75rem;
margin-right: 0.5rem;
background: #c298d8;
color: #151515;
border-radius: 4px;
}
.p-chips .<API key> .p-chips-token .p-chips-token-icon {
margin-left: 0.5rem;
}
.p-chips .<API key> .p-chips-input-token {
padding: 0.25rem 0;
}
.p-chips .<API key> .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: rgba(255, 255, 255, 0.87);
padding: 0;
margin: 0;
}
.p-chips.p-error > .p-inputtext, .p-chips.p-invalid > .p-inputtext {
border-color: #f19ea6;
}
p-chips.ng-dirty.ng-invalid > .p-chips > .p-inputtext {
border-color: #f19ea6;
}
.<API key>,
.p-fluid .<API key>.p-inputtext {
width: 2rem;
height: 2rem;
}
.p-colorpicker-panel {
background: #2a323d;
border-color: #3f4b5b;
}
.p-colorpicker-panel .<API key>,
.p-colorpicker-panel .<API key> {
border-color: rgba(255, 255, 255, 0.87);
}
.<API key> {
box-shadow: none;
}
.p-dropdown {
background: #20262e;
border: 1px solid #3f4b5b;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
border-radius: 4px;
}
.p-dropdown:not(.p-disabled):hover {
border-color: #3f4b5b;
}
.p-dropdown:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
border-color: #c298d8;
}
.p-dropdown.<API key> .p-dropdown-label {
padding-right: 1.75rem;
}
.p-dropdown .p-dropdown-label {
background: transparent;
border: 0 none;
}
.p-dropdown .p-dropdown-label.p-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.p-dropdown .p-dropdown-label:enabled:focus {
outline: 0 none;
box-shadow: none;
}
.p-dropdown .p-dropdown-trigger {
background: transparent;
color: rgba(255, 255, 255, 0.6);
width: 2.357rem;
<API key>: 4px;
<API key>: 4px;
}
.p-dropdown .<API key> {
color: rgba(255, 255, 255, 0.6);
right: 2.357rem;
}
.p-dropdown-panel {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-radius: 4px;
box-shadow: none;
}
.p-dropdown-panel .p-dropdown-header {
padding: 0.75rem 1.5rem;
border-bottom: 1px solid #3f4b5b;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
margin: 0;
<API key>: 4px;
<API key>: 4px;
}
.p-dropdown-panel .p-dropdown-header .p-dropdown-filter {
padding-right: 1.75rem;
}
.p-dropdown-panel .p-dropdown-header .<API key> {
right: 0.75rem;
color: rgba(255, 255, 255, 0.6);
}
.p-dropdown-panel .p-dropdown-items {
padding: 0.5rem 0;
}
.p-dropdown-panel .p-dropdown-items .p-dropdown-item {
margin: 0;
padding: 0.5rem 1.5rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: box-shadow 0.15s;
border-radius: 0;
}
.p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight {
color: #151515;
background: #c298d8;
}
.p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.04);
}
.p-dropdown-panel .p-dropdown-items .<API key> {
padding: 0.5rem 1.5rem;
color: rgba(255, 255, 255, 0.87);
background: transparent;
}
.p-dropdown-panel .p-dropdown-items .<API key> {
margin: 0;
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
font-weight: 600;
}
.p-dropdown-panel.p-error, .p-dropdown-panel.p-invalid {
border-color: #f19ea6;
}
p-dropdown.ng-dirty.ng-invalid > .p-dropdown {
border-color: #f19ea6;
}
.p-input-filled .p-dropdown {
background: #3f4b5b;
}
.p-input-filled .p-dropdown:not(.p-disabled):hover {
background-color: #3f4b5b;
}
.p-input-filled .p-dropdown:not(.p-disabled).p-focus {
background-color: #3f4b5b;
}
.p-editor-container .p-editor-toolbar {
background: #2a323d;
<API key>: 4px;
<API key>: 4px;
}
.p-editor-container .p-editor-toolbar.ql-snow {
border: 1px solid #3f4b5b;
}
.p-editor-container .p-editor-toolbar.ql-snow .ql-stroke {
stroke: rgba(255, 255, 255, 0.6);
}
.p-editor-container .p-editor-toolbar.ql-snow .ql-fill {
fill: rgba(255, 255, 255, 0.6);
}
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label {
border: 0 none;
color: rgba(255, 255, 255, 0.6);
}
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover {
color: rgba(255, 255, 255, 0.87);
}
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-stroke {
stroke: rgba(255, 255, 255, 0.87);
}
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker .ql-picker-label:hover .ql-fill {
fill: rgba(255, 255, 255, 0.87);
}
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label {
color: rgba(255, 255, 255, 0.87);
}
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke {
stroke: rgba(255, 255, 255, 0.87);
}
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill {
fill: rgba(255, 255, 255, 0.87);
}
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options {
background: #2a323d;
border: 1px solid #3f4b5b;
box-shadow: none;
border-radius: 4px;
padding: 0.5rem 0;
}
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item {
color: rgba(255, 255, 255, 0.87);
}
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options .ql-picker-item:hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.04);
}
.p-editor-container .p-editor-toolbar.ql-snow .ql-picker.ql-expanded:not(.ql-icon-picker) .ql-picker-item {
padding: 0.5rem 1.5rem;
}
.p-editor-container .p-editor-content {
<API key>: 4px;
<API key>: 4px;
}
.p-editor-container .p-editor-content.ql-snow {
border: 1px solid #3f4b5b;
}
.p-editor-container .p-editor-content .ql-editor {
background: #20262e;
color: rgba(255, 255, 255, 0.87);
<API key>: 4px;
<API key>: 4px;
}
.p-editor-container .ql-snow.ql-toolbar button:hover,
.p-editor-container .ql-snow.ql-toolbar button:focus {
color: rgba(255, 255, 255, 0.87);
}
.p-editor-container .ql-snow.ql-toolbar button:hover .ql-stroke,
.p-editor-container .ql-snow.ql-toolbar button:focus .ql-stroke {
stroke: rgba(255, 255, 255, 0.87);
}
.p-editor-container .ql-snow.ql-toolbar button:hover .ql-fill,
.p-editor-container .ql-snow.ql-toolbar button:focus .ql-fill {
fill: rgba(255, 255, 255, 0.87);
}
.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: #c298d8;
}
.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: #c298d8;
}
.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: #c298d8;
}
.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: #c298d8;
}
.p-inputgroup-addon {
background: #2a323d;
color: rgba(255, 255, 255, 0.6);
border-top: 1px solid #3f4b5b;
border-left: 1px solid #3f4b5b;
border-bottom: 1px solid #3f4b5b;
padding: 0.5rem 0.75rem;
min-width: 2.357rem;
}
.p-inputgroup-addon:last-child {
border-right: 1px solid #3f4b5b;
}
.p-inputgroup > .p-component,
.p-inputgroup > .p-float-label > .p-component {
border-radius: 0;
margin: 0;
}
.p-inputgroup > .p-component + .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-float-label > .p-component:focus {
z-index: 1;
}
.p-inputgroup > .p-component: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 {
<API key>: 4px;
<API key>: 4px;
}
.p-inputgroup .p-float-label:first-child input {
<API key>: 4px;
<API key>: 4px;
}
.p-inputgroup-addon:last-child,
.p-inputgroup button:last-child,
.p-inputgroup input:last-child {
<API key>: 4px;
<API key>: 4px;
}
.p-inputgroup .p-float-label:last-child input {
<API key>: 4px;
<API key>: 4px;
}
.p-fluid .p-inputgroup .p-button {
width: auto;
}
.p-fluid .p-inputgroup .p-button.p-button-icon-only {
width: 2.357rem;
}
p-inputmask.ng-dirty.ng-invalid > .p-inputtext {
border-color: #f19ea6;
}
p-inputnumber.ng-dirty.ng-invalid > .p-inputnumber > .p-inputtext {
border-color: #f19ea6;
}
.p-inputswitch {
width: 3rem;
height: 1.75rem;
}
.p-inputswitch .<API key> {
background: #3f4b5b;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
border-radius: 4px;
}
.p-inputswitch .<API key>:before {
background: rgba(255, 255, 255, 0.6);
width: 1.25rem;
height: 1.25rem;
left: 0.25rem;
margin-top: -0.625rem;
border-radius: 4px;
transition-duration: 0.15s;
}
.p-inputswitch.<API key> .<API key>:before {
transform: translateX(1.25rem);
}
.p-inputswitch.p-focus .<API key> {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-inputswitch:not(.p-disabled):hover .<API key> {
background: #3f4b5b;
}
.p-inputswitch.<API key> .<API key> {
background: #c298d8;
}
.p-inputswitch.<API key> .<API key>:before {
background: #151515;
}
.p-inputswitch.<API key>:not(.p-disabled):hover .<API key> {
background: #c298d8;
}
.p-inputswitch.p-error, .p-inputswitch.p-invalid {
border-color: #f19ea6;
}
p-inputswitch.ng-dirty.ng-invalid > .p-inputswitch {
border-color: #f19ea6;
}
.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: rgba(255, 255, 255, 0.87);
background: #20262e;
padding: 0.5rem 0.75rem;
border: 1px solid #3f4b5b;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
appearance: none;
border-radius: 4px;
}
.p-inputtext:enabled:hover {
border-color: #3f4b5b;
}
.p-inputtext:enabled:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
border-color: #c298d8;
}
.p-inputtext.p-error, .p-inputtext.p-invalid, .p-inputtext.ng-dirty.ng-invalid {
border-color: #f19ea6;
}
.p-inputtext.p-inputtext-sm {
font-size: 0.875rem;
padding: 0.4375rem 0.65625rem;
}
.p-inputtext.p-inputtext-lg {
font-size: 1.25rem;
padding: 0.625rem 0.9375rem;
}
.p-float-label > label {
left: 0.75rem;
color: rgba(255, 255, 255, 0.6);
transition-duration: 0.15s;
}
.p-float-label > .ng-invalid.ng-dirty + label {
color: #f19ea6;
}
.p-input-icon-left > i:first-of-type {
left: 0.75rem;
color: rgba(255, 255, 255, 0.6);
}
.p-input-icon-left > .p-inputtext {
padding-left: 2.5rem;
}
.p-input-icon-left.p-float-label > label {
left: 2.5rem;
}
.p-input-icon-right > i:last-of-type {
right: 0.75rem;
color: rgba(255, 255, 255, 0.6);
}
.p-input-icon-right > .p-inputtext {
padding-right: 2.5rem;
}
::-<API key> {
color: rgba(255, 255, 255, 0.6);
}
:-moz-placeholder {
color: rgba(255, 255, 255, 0.6);
}
::-moz-placeholder {
color: rgba(255, 255, 255, 0.6);
}
:-<API key> {
color: rgba(255, 255, 255, 0.6);
}
.p-input-filled .p-inputtext {
background-color: #3f4b5b;
}
.p-input-filled .p-inputtext:enabled:hover {
background-color: #3f4b5b;
}
.p-input-filled .p-inputtext:enabled:focus {
background-color: #3f4b5b;
}
.p-inputtext-sm .p-inputtext {
font-size: 0.875rem;
padding: 0.4375rem 0.65625rem;
}
.p-inputtext-lg .p-inputtext {
font-size: 1.25rem;
padding: 0.625rem 0.9375rem;
}
.p-listbox {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-radius: 4px;
}
.p-listbox .p-listbox-header {
padding: 0.75rem 1.5rem;
border-bottom: 1px solid #3f4b5b;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
margin: 0;
<API key>: 4px;
<API key>: 4px;
}
.p-listbox .p-listbox-header .p-listbox-filter {
padding-right: 1.75rem;
}
.p-listbox .p-listbox-header .<API key> {
right: 0.75rem;
color: rgba(255, 255, 255, 0.6);
}
.p-listbox .p-listbox-header .p-checkbox {
margin-right: 0.5rem;
}
.p-listbox .p-listbox-list {
padding: 0.5rem 0;
}
.p-listbox .p-listbox-list .p-listbox-item {
margin: 0;
padding: 0.5rem 1.5rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
transition: box-shadow 0.15s;
border-radius: 0;
}
.p-listbox .p-listbox-list .p-listbox-item.p-highlight {
color: #151515;
background: #c298d8;
}
.p-listbox .p-listbox-list .p-listbox-item:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
}
.p-listbox .p-listbox-list .p-listbox-item .p-checkbox {
margin-right: 0.5rem;
}
.p-listbox:not(.p-disabled) .p-listbox-item:not(.p-highlight):not(.p-disabled):hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.04);
}
.p-listbox.p-error, .p-listbox.p-invalid {
border-color: #f19ea6;
}
p-listbox.ng-dirty.ng-invalid > .p-listbox {
border-color: #f19ea6;
}
.p-multiselect {
background: #20262e;
border: 1px solid #3f4b5b;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
border-radius: 4px;
}
.p-multiselect:not(.p-disabled):hover {
border-color: #3f4b5b;
}
.p-multiselect:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
border-color: #c298d8;
}
.p-multiselect .p-multiselect-label {
padding: 0.5rem 0.75rem;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.p-multiselect .p-multiselect-label.p-placeholder {
color: rgba(255, 255, 255, 0.6);
}
.p-multiselect.p-multiselect-chip .p-multiselect-token {
padding: 0.25rem 0.75rem;
margin-right: 0.5rem;
background: #c298d8;
color: #151515;
border-radius: 4px;
}
.p-multiselect.p-multiselect-chip .p-multiselect-token .<API key> {
margin-left: 0.5rem;
}
.p-multiselect .<API key> {
background: transparent;
color: rgba(255, 255, 255, 0.6);
width: 2.357rem;
<API key>: 4px;
<API key>: 4px;
}
.p-multiselect.p-error, .p-multiselect.p-invalid {
border-color: #f19ea6;
}
.<API key> .p-multiselect.p-multiselect-chip .p-multiselect-label {
padding: 0.25rem 0.75rem;
}
.p-multiselect-panel {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-radius: 4px;
box-shadow: none;
}
.p-multiselect-panel .<API key> {
padding: 0.75rem 1.5rem;
border-bottom: 1px solid #3f4b5b;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
margin: 0;
<API key>: 4px;
<API key>: 4px;
}
.p-multiselect-panel .<API key> .<API key> .p-inputtext {
padding-right: 1.75rem;
}
.p-multiselect-panel .<API key> .<API key> .<API key> {
right: 0.75rem;
color: rgba(255, 255, 255, 0.6);
}
.p-multiselect-panel .<API key> .p-checkbox {
margin-right: 0.5rem;
}
.p-multiselect-panel .<API key> .p-multiselect-close {
margin-left: 0.5rem;
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: color 0.15s, box-shadow 0.15s;
}
.p-multiselect-panel .<API key> .p-multiselect-close:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: transparent;
}
.p-multiselect-panel .<API key> .p-multiselect-close:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-multiselect-panel .p-multiselect-items {
padding: 0.5rem 0;
}
.p-multiselect-panel .p-multiselect-items .p-multiselect-item {
margin: 0;
padding: 0.5rem 1.5rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: box-shadow 0.15s;
border-radius: 0;
}
.p-multiselect-panel .p-multiselect-items .p-multiselect-item.p-highlight {
color: #151515;
background: #c298d8;
}
.p-multiselect-panel .p-multiselect-items .p-multiselect-item:not(.p-highlight):not(.p-disabled):hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.04);
}
.p-multiselect-panel .p-multiselect-items .p-multiselect-item:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
}
.p-multiselect-panel .p-multiselect-items .p-multiselect-item .p-checkbox {
margin-right: 0.5rem;
}
.p-multiselect-panel .p-multiselect-items .<API key> {
padding: 0.5rem 1.5rem;
color: rgba(255, 255, 255, 0.87);
background: transparent;
}
p-multiselect.ng-dirty.ng-invalid > .p-multiselect {
border-color: #f19ea6;
}
.p-input-filled .p-multiselect {
background: #3f4b5b;
}
.p-input-filled .p-multiselect:not(.p-disabled):hover {
background-color: #3f4b5b;
}
.p-input-filled .p-multiselect:not(.p-disabled).p-focus {
background-color: #3f4b5b;
}
.p-password-panel {
padding: 1.25rem;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
box-shadow: none;
border-radius: 4px;
}
.p-password-panel .p-password-meter {
margin-bottom: 0.5rem;
}
.p-radiobutton {
width: 20px;
height: 20px;
}
.p-radiobutton .p-radiobutton-box {
border: 1px solid #3f4b5b;
background: #20262e;
width: 20px;
height: 20px;
color: rgba(255, 255, 255, 0.87);
border-radius: 50%;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.p-radiobutton .p-radiobutton-box:not(.p-disabled):not(.p-highlight):hover {
border-color: #3f4b5b;
}
.p-radiobutton .p-radiobutton-box:not(.p-disabled).p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
border-color: #c298d8;
}
.p-radiobutton .p-radiobutton-box .p-radiobutton-icon {
width: 12px;
height: 12px;
transition-duration: 0.15s;
background-color: #151515;
}
.p-radiobutton .p-radiobutton-box.p-highlight {
border-color: #c298d8;
background: #c298d8;
}
.p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover {
border-color: #9954bb;
background: #9954bb;
color: #151515;
}
.p-radiobutton.p-error > .p-radiobutton-box, .p-radiobutton.p-invalid > .p-radiobutton-box {
border-color: #f19ea6;
}
p-radiobutton.ng-dirty.ng-invalid > .p-radiobutton > .p-radiobutton-box {
border-color: #f19ea6;
}
.p-input-filled .p-radiobutton .p-radiobutton-box {
background-color: #3f4b5b;
}
.p-input-filled .p-radiobutton .p-radiobutton-box:not(.p-disabled):hover {
background-color: #3f4b5b;
}
.p-input-filled .p-radiobutton .p-radiobutton-box.p-highlight {
background: #c298d8;
}
.p-input-filled .p-radiobutton .p-radiobutton-box.p-highlight:not(.p-disabled):hover {
background: #9954bb;
}
.p-radiobutton-label {
margin-left: 0.5rem;
}
.p-highlight .p-radiobutton .p-radiobutton-box {
border-color: #151515;
}
.p-rating .p-rating-icon {
color: rgba(255, 255, 255, 0.87);
margin-left: 0.5rem;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
font-size: 1.143rem;
}
.p-rating .p-rating-icon.p-rating-cancel {
color: #f19ea6;
}
.p-rating .p-rating-icon:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-rating .p-rating-icon:first-child {
margin-left: 0;
}
.p-rating .p-rating-icon.pi-star {
color: #c298d8;
}
.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon:hover {
color: #c298d8;
}
.p-rating:not(.p-disabled):not(.p-readonly) .p-rating-icon.p-rating-cancel:hover {
color: #f19ea6;
}
.p-highlight .p-rating .p-rating-icon {
color: #151515;
}
.p-selectbutton .p-button {
background: #6c757d;
border: 1px solid #6c757d;
color: #ffffff;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.p-selectbutton .p-button .p-button-icon-left,
.p-selectbutton .p-button .p-button-icon-right {
color: #ffffff;
}
.p-selectbutton .p-button:not(.p-disabled):not(.p-highlight):hover {
background: #5a6268;
border-color: #545b62;
color: #ffffff;
}
.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: #ffffff;
}
.p-selectbutton .p-button.p-highlight {
background: #545b62;
border-color: #4e555b;
color: #ffffff;
}
.p-selectbutton .p-button.p-highlight .p-button-icon-left,
.p-selectbutton .p-button.p-highlight .p-button-icon-right {
color: #ffffff;
}
.p-selectbutton .p-button.p-highlight:hover {
background: #545b62;
border-color: #4e555b;
color: #ffffff;
}
.p-selectbutton .p-button.p-highlight:hover .p-button-icon-left,
.p-selectbutton .p-button.p-highlight:hover .p-button-icon-right {
color: #ffffff;
}
.p-selectbutton.p-error > .p-button, .p-selectbutton.p-invalid > .p-button {
border-color: #f19ea6;
}
p-selectbutton.ng-dirty.ng-invalid > .p-selectbutton > .p-button {
border-color: #f19ea6;
}
.p-slider {
background: #3f4b5b;
border: 0 none;
border-radius: 4px;
}
.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: #c298d8;
border: 2px solid #c298d8;
border-radius: 4px;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.p-slider .p-slider-handle:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-slider .p-slider-range {
background: #c298d8;
}
.p-slider:not(.p-disabled) .p-slider-handle:hover {
background: #aa70c7;
border-color: #aa70c7;
}
.p-slider.p-slider-animate.p-slider-horizontal .p-slider-handle {
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, left 0.15s;
}
.p-slider.p-slider-animate.p-slider-horizontal .p-slider-range {
transition: width 0.15s;
}
.p-slider.p-slider-animate.p-slider-vertical .p-slider-handle {
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, bottom 0.15s;
}
.p-slider.p-slider-animate.p-slider-vertical .p-slider-range {
transition: height 0.15s;
}
.p-togglebutton.p-button {
background: #6c757d;
border: 1px solid #6c757d;
color: #ffffff;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.p-togglebutton.p-button .p-button-icon-left,
.p-togglebutton.p-button .p-button-icon-right {
color: #ffffff;
}
.p-togglebutton.p-button:not(.p-disabled):not(.p-highlight):hover {
background: #5a6268;
border-color: #545b62;
color: #ffffff;
}
.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: #ffffff;
}
.p-togglebutton.p-button.p-highlight {
background: #545b62;
border-color: #4e555b;
color: #ffffff;
}
.p-togglebutton.p-button.p-highlight .p-button-icon-left,
.p-togglebutton.p-button.p-highlight .p-button-icon-right {
color: #ffffff;
}
.p-togglebutton.p-button.p-highlight:hover {
background: #545b62;
border-color: #4e555b;
color: #ffffff;
}
.p-togglebutton.p-button.p-highlight:hover .p-button-icon-left,
.p-togglebutton.p-button.p-highlight:hover .p-button-icon-right {
color: #ffffff;
}
.p-togglebutton.p-button.p-error, .p-togglebutton.p-button.p-invalid {
border-color: #f19ea6;
}
p-togglebutton.ng-dirty.ng-invalid > .p-togglebutton.p-button {
border-color: #f19ea6;
}
.p-button {
color: #151515;
background: #c298d8;
border: 1px solid #c298d8;
padding: 0.5rem 0.75rem;
font-size: 1rem;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
border-radius: 4px;
}
.p-button:enabled:hover {
background: #aa70c7;
color: #151515;
border-color: #aa70c7;
}
.p-button:enabled:active {
background: #9954bb;
color: #151515;
border-color: #9954bb;
}
.p-button.p-button-outlined {
background-color: transparent;
color: #c298d8;
border: 1px solid;
}
.p-button.p-button-outlined:enabled:hover {
background: rgba(194, 152, 216, 0.04);
color: #c298d8;
border: 1px solid;
}
.p-button.p-button-outlined:enabled:active {
background: rgba(194, 152, 216, 0.16);
color: #c298d8;
border: 1px solid;
}
.p-button.p-button-outlined.p-button-plain {
color: rgba(255, 255, 255, 0.6);
border-color: rgba(255, 255, 255, 0.6);
}
.p-button.p-button-outlined.p-button-plain:enabled:hover {
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.6);
}
.p-button.p-button-outlined.p-button-plain:enabled:active {
background: rgba(255, 255, 255, 0.16);
color: rgba(255, 255, 255, 0.6);
}
.p-button.p-button-text {
background-color: transparent;
color: #c298d8;
border-color: transparent;
}
.p-button.p-button-text:enabled:hover {
background: rgba(194, 152, 216, 0.04);
color: #c298d8;
border-color: transparent;
}
.p-button.p-button-text:enabled:active {
background: rgba(194, 152, 216, 0.16);
color: #c298d8;
border-color: transparent;
}
.p-button.p-button-text.p-button-plain {
color: rgba(255, 255, 255, 0.6);
}
.p-button.p-button-text.p-button-plain:enabled:hover {
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.6);
}
.p-button.p-button-text.p-button-plain:enabled:active {
background: rgba(255, 255, 255, 0.16);
color: rgba(255, 255, 255, 0.6);
}
.p-button:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-button .p-button-icon-left {
margin-right: 0.5rem;
}
.p-button .p-button-icon-right {
margin-left: 0.5rem;
}
.p-button .<API key> {
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: #c298d8;
background-color: #151515;
}
.p-button.p-button-raised {
box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 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.5rem 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.4375rem 0.65625rem;
}
.p-button.p-button-sm .p-button-icon {
font-size: 0.875rem;
}
.p-button.p-button-lg {
font-size: 1.25rem;
padding: 0.625rem 0.9375rem;
}
.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: #ffffff;
background: #6c757d;
border: 1px solid #6c757d;
}
.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: #5a6268;
color: #ffffff;
border-color: #5a6268;
}
.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 1px rgba(130, 138, 145, 0.5);
}
.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: #545b62;
color: #ffffff;
border-color: #4e555b;
}
.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: #6c757d;
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(108, 117, 125, 0.04);
color: #6c757d;
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(108, 117, 125, 0.16);
color: #6c757d;
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: #6c757d;
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(108, 117, 125, 0.04);
border-color: transparent;
color: #6c757d;
}
.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(108, 117, 125, 0.16);
border-color: transparent;
color: #6c757d;
}
.p-button.p-button-info, .p-buttonset.p-button-info > .p-button, .p-splitbutton.p-button-info > .p-button {
color: #151515;
background: #7fd8e6;
border: 1px solid #4cc8db;
}
.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: #4cc8db;
color: #151515;
border-color: #26bdd3;
}
.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 1px #b1e8f0;
}
.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: #26bdd3;
color: #151515;
border-color: #00b2cc;
}
.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: #7fd8e6;
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(127, 216, 230, 0.04);
color: #7fd8e6;
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(127, 216, 230, 0.16);
color: #7fd8e6;
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: #7fd8e6;
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(127, 216, 230, 0.04);
border-color: transparent;
color: #7fd8e6;
}
.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(127, 216, 230, 0.16);
border-color: transparent;
color: #7fd8e6;
}
.p-button.p-button-success, .p-buttonset.p-button-success > .p-button, .p-splitbutton.p-button-success > .p-button {
color: #151515;
background: #9fdaa8;
border: 1px solid #78cc86;
}
.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: #78cc86;
color: #151515;
border-color: #5ac06c;
}
.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 1px #c5e8ca;
}
.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: #5ac06c;
color: #151515;
border-color: #3cb553;
}
.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: #9fdaa8;
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(159, 218, 168, 0.04);
color: #9fdaa8;
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(159, 218, 168, 0.16);
color: #9fdaa8;
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: #9fdaa8;
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(159, 218, 168, 0.04);
border-color: transparent;
color: #9fdaa8;
}
.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(159, 218, 168, 0.16);
border-color: transparent;
color: #9fdaa8;
}
.p-button.p-button-warning, .p-buttonset.p-button-warning > .p-button, .p-splitbutton.p-button-warning > .p-button {
color: #151515;
background: #ffe082;
border: 1px solid #ffd54f;
}
.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: #ffd54f;
color: #151515;
border-color: #ffca28;
}
.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 1px #ffecb3;
}
.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: #ffca28;
color: #151515;
border-color: #ffc107;
}
.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: #ffe082;
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, 224, 130, 0.04);
color: #ffe082;
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, 224, 130, 0.16);
color: #ffe082;
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: #ffe082;
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, 224, 130, 0.04);
border-color: transparent;
color: #ffe082;
}
.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, 224, 130, 0.16);
border-color: transparent;
color: #ffe082;
}
.p-button.p-button-help, .p-buttonset.p-button-help > .p-button, .p-splitbutton.p-button-help > .p-button {
color: #151515;
background: #b7a2e0;
border: 1px solid #9a7cd4;
}
.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: #9a7cd4;
color: #151515;
border-color: #845fca;
}
.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 #d3c7ec;
}
.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: #845fca;
color: #151515;
border-color: #6d43c0;
}
.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: #b7a2e0;
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(183, 162, 224, 0.04);
color: #b7a2e0;
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(183, 162, 224, 0.16);
color: #b7a2e0;
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: #b7a2e0;
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(183, 162, 224, 0.04);
border-color: transparent;
color: #b7a2e0;
}
.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(183, 162, 224, 0.16);
border-color: transparent;
color: #b7a2e0;
}
.p-button.p-button-danger, .p-buttonset.p-button-danger > .p-button, .p-splitbutton.p-button-danger > .p-button {
color: #151515;
background: #f19ea6;
border: 1px solid #e97984;
}
.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: #e97984;
color: #151515;
border-color: #f75965;
}
.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 1px #ffd0d9;
}
.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: #f75965;
color: #151515;
border-color: #fd464e;
}
.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: #f19ea6;
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(241, 158, 166, 0.04);
color: #f19ea6;
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(241, 158, 166, 0.16);
color: #f19ea6;
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: #f19ea6;
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(241, 158, 166, 0.04);
border-color: transparent;
color: #f19ea6;
}
.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(241, 158, 166, 0.16);
border-color: transparent;
color: #f19ea6;
}
.p-button.p-button-link {
color: #c298d8;
background: transparent;
border: transparent;
}
.p-button.p-button-link:enabled:hover {
background: transparent;
color: #aa70c7;
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 1px #f0e6f5;
border-color: transparent;
}
.p-button.p-button-link:enabled:active {
background: transparent;
color: #c298d8;
border-color: transparent;
}
.p-carousel .p-carousel-content .p-carousel-prev,
.p-carousel .p-carousel-content .p-carousel-next {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: color 0.15s, box-shadow 0.15s;
margin: 0.5rem;
}
.p-carousel .p-carousel-content .p-carousel-prev:enabled:hover,
.p-carousel .p-carousel-content .p-carousel-next:enabled:hover {
color: rgba(255, 255, 255, 0.87);
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 1px #f0e6f5;
}
.p-carousel .<API key> {
padding: 1rem;
}
.p-carousel .<API key> .<API key> {
margin-right: 0.5rem;
margin-bottom: 0.5rem;
}
.p-carousel .<API key> .<API key> button {
background-color: #3f4b5b;
width: 2rem;
height: 0.5rem;
transition: color 0.15s, box-shadow 0.15s;
border-radius: 0;
}
.p-carousel .<API key> .<API key> button:hover {
background: rgba(255, 255, 255, 0.04);
}
.p-carousel .<API key> .<API key>.p-highlight button {
background: #c298d8;
color: #151515;
}
.p-datatable .p-paginator-top {
border-width: 0;
border-radius: 0;
}
.p-datatable .p-paginator-bottom {
border-width: 1px 0 0 0;
border-radius: 0;
}
.p-datatable .p-datatable-header {
background: #2a323d;
color: rgba(255, 255, 255, 0.6);
border: solid #3f4b5b;
border-width: 1px 0 0 0;
padding: 1rem 1rem;
font-weight: 600;
}
.p-datatable .p-datatable-footer {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-width: 1px 0 1px 0;
padding: 1rem 1rem;
font-weight: 600;
}
.p-datatable .p-datatable-thead > tr > th {
text-align: left;
padding: 1rem 1rem;
border: 1px solid #3f4b5b;
border-width: 1px 0 2px 0;
font-weight: 600;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
transition: box-shadow 0.15s;
}
.p-datatable .p-datatable-tfoot > tr > td {
text-align: left;
padding: 1rem 1rem;
border: 1px solid #3f4b5b;
border-width: 1px 0 1px 0;
font-weight: 600;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
}
.p-datatable .p-sortable-column .<API key> {
color: rgba(255, 255, 255, 0.6);
margin-left: 0.5rem;
}
.p-datatable .p-sortable-column .<API key> {
border-radius: 50%;
height: 1.143rem;
min-width: 1.143rem;
line-height: 1.143rem;
color: #151515;
background: #c298d8;
margin-left: 0.5rem;
}
.p-datatable .p-sortable-column:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.87);
}
.p-datatable .p-sortable-column:not(.p-highlight):hover .<API key> {
color: rgba(255, 255, 255, 0.87);
}
.p-datatable .p-sortable-column.p-highlight {
background: #2a323d;
color: #c298d8;
}
.p-datatable .p-sortable-column.p-highlight .<API key> {
color: #c298d8;
}
.p-datatable .p-sortable-column.p-highlight:hover {
background: rgba(255, 255, 255, 0.04);
color: #c298d8;
}
.p-datatable .p-sortable-column.p-highlight:hover .<API key> {
color: #c298d8;
}
.p-datatable .p-sortable-column:focus {
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
outline: 0 none;
}
.p-datatable .p-datatable-tbody > tr {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
transition: box-shadow 0.15s;
outline-color: #f0e6f5;
}
.p-datatable .p-datatable-tbody > tr > td {
text-align: left;
border: 1px solid #3f4b5b;
border-width: 1px 0 0 0;
padding: 1rem 1rem;
}
.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: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: color 0.15s, box-shadow 0.15s;
}
.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: rgba(255, 255, 255, 0.87);
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 1px #f0e6f5;
}
.p-datatable .p-datatable-tbody > tr > td .p-row-editor-save {
margin-right: 0.5rem;
}
.p-datatable .p-datatable-tbody > tr.p-highlight {
background: #c298d8;
color: #151515;
}
.p-datatable .p-datatable-tbody > tr.<API key> > td {
box-shadow: inset 0 2px 0 0 #c298d8;
}
.p-datatable .p-datatable-tbody > tr.<API key> > td {
box-shadow: inset 0 -2px 0 0 #c298d8;
}
.p-datatable.<API key> .p-datatable-tbody > tr:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.87);
}
.p-datatable .<API key> {
background: #c298d8;
}
.p-datatable .<API key>,
.p-datatable .<API key> {
background: #2a323d;
}
.p-datatable .<API key> {
font-size: 2rem;
}
.p-datatable.<API key> .p-datatable-header {
border-width: 1px 1px 0 1px;
}
.p-datatable.<API key> .p-datatable-footer {
border-width: 0 1px 1px 1px;
}
.p-datatable.<API key> .p-paginator-top {
border-width: 0 1px 0 1px;
}
.p-datatable.<API key> .p-paginator-bottom {
border-width: 0 1px 1px 1px;
}
.p-datatable.<API key> .p-datatable-thead > tr > th {
border-width: 1px 1px 2px 1px;
}
.p-datatable.<API key> .p-datatable-tbody > tr > td {
border-width: 1px;
}
.p-datatable.<API key> .p-datatable-tfoot > tr > td {
border-width: 1px;
}
.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even) {
background: rgba(255, 255, 255, 0.02);
}
.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight {
background: #c298d8;
color: #151515;
}
.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight .p-row-toggler {
color: #151515;
}
.p-datatable.p-datatable-striped .p-datatable-tbody > tr:nth-child(even).p-highlight .p-row-toggler:hover {
color: #151515;
}
.p-datatable.p-datatable-sm .p-datatable-header {
padding: 0.5rem 0.5rem;
}
.p-datatable.p-datatable-sm .p-datatable-thead > tr > th {
padding: 0.5rem 0.5rem;
}
.p-datatable.p-datatable-sm .p-datatable-tbody > tr > td {
padding: 0.5rem 0.5rem;
}
.p-datatable.p-datatable-sm .p-datatable-tfoot > tr > td {
padding: 0.5rem 0.5rem;
}
.p-datatable.p-datatable-sm .p-datatable-footer {
padding: 0.5rem 0.5rem;
}
.p-datatable.p-datatable-lg .p-datatable-header {
padding: 1.25rem 1.25rem;
}
.p-datatable.p-datatable-lg .p-datatable-thead > tr > th {
padding: 1.25rem 1.25rem;
}
.p-datatable.p-datatable-lg .p-datatable-tbody > tr > td {
padding: 1.25rem 1.25rem;
}
.p-datatable.p-datatable-lg .p-datatable-tfoot > tr > td {
padding: 1.25rem 1.25rem;
}
.p-datatable.p-datatable-lg .p-datatable-footer {
padding: 1.25rem 1.25rem;
}
.p-dataview .p-paginator-top {
border-width: 0;
border-radius: 0;
}
.p-dataview .p-paginator-bottom {
border-width: 1px 0 0 0;
border-radius: 0;
}
.p-dataview .p-dataview-header {
background: #2a323d;
color: rgba(255, 255, 255, 0.6);
border: solid #3f4b5b;
border-width: 1px 0 0 0;
padding: 1rem 1rem;
font-weight: 600;
}
.p-dataview .p-dataview-content {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 0 none;
padding: 0;
}
.p-dataview.p-dataview-list .p-dataview-content > .p-grid > div {
border: 1px solid #3f4b5b;
border-width: 1px 0 0 0;
}
.p-dataview .p-dataview-footer {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-width: 1px 0 1px 0;
padding: 1rem 1rem;
font-weight: 600;
<API key>: 4px;
<API key>: 4px;
}
.p-dataview .<API key> {
font-size: 2rem;
}
.p-dataview .<API key> {
padding: 1.25rem;
}
.p-column-filter-row .<API key>,
.p-column-filter-row .<API key> {
margin-left: 0.5rem;
}
.<API key> {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: color 0.15s, box-shadow 0.15s;
}
.<API key>:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: transparent;
}
.<API key>.<API key>, .<API key>.<API key>:hover {
background: transparent;
color: rgba(255, 255, 255, 0.87);
}
.<API key>.<API key>, .<API key>.<API key>:hover {
background: #c298d8;
color: #151515;
}
.<API key>:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.<API key> {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: color 0.15s, box-shadow 0.15s;
}
.<API key>:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: transparent;
}
.<API key>:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.<API key> {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-radius: 4px;
box-shadow: none;
min-width: 12.5rem;
}
.<API key> .<API key> {
padding: 0.5rem 0;
}
.<API key> .<API key> .<API key> {
margin: 0;
padding: 0.5rem 1.5rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: box-shadow 0.15s;
border-radius: 0;
}
.<API key> .<API key> .<API key>.p-highlight {
color: #151515;
background: #c298d8;
}
.<API key> .<API key> .<API key>:not(.p-highlight):not(.p-disabled):hover {
color: rgba(255, 255, 255, 0.87);
background: rgba(255, 255, 255, 0.04);
}
.<API key> .<API key> .<API key>:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
}
.<API key> .<API key> .<API key> {
border-top: 1px solid #3f4b5b;
margin: 0.5rem 0;
}
.<API key> .<API key> {
padding: 0.75rem 1.5rem;
border-bottom: 1px solid #3f4b5b;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
margin: 0;
<API key>: 4px;
<API key>: 4px;
}
.<API key> .<API key> {
padding: 1.25rem;
border-bottom: 1px solid #3f4b5b;
}
.<API key> .<API key> .<API key> {
margin-bottom: 0.5rem;
}
.<API key> .<API key> .<API key> {
margin-top: 0.5rem;
}
.<API key> .<API key>:last-child {
border-bottom: 0 none;
}
.<API key> .<API key> {
padding: 0.5rem 1.25rem;
}
.<API key> .<API key> {
padding: 1.25rem;
}
.fc .fc-view-container th {
background: #2a323d;
border: 1px solid #3f4b5b;
color: rgba(255, 255, 255, 0.87);
}
.fc .fc-view-container td.fc-widget-content {
background: #2a323d;
border: 1px solid #3f4b5b;
color: rgba(255, 255, 255, 0.87);
}
.fc .fc-view-container td.fc-head-container {
border: 1px solid #3f4b5b;
}
.fc .fc-view-container .fc-row {
border-right: 1px solid #3f4b5b;
}
.fc .fc-view-container .fc-event {
background: #aa70c7;
border: 1px solid #aa70c7;
color: #151515;
}
.fc .fc-view-container .fc-divider {
background: #2a323d;
border: 1px solid #3f4b5b;
}
.fc .fc-toolbar .fc-button {
color: #151515;
background: #c298d8;
border: 1px solid #c298d8;
font-size: 1rem;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
border-radius: 4px;
display: flex;
align-items: center;
}
.fc .fc-toolbar .fc-button:enabled:hover {
background: #aa70c7;
color: #151515;
border-color: #aa70c7;
}
.fc .fc-toolbar .fc-button:enabled:active {
background: #9954bb;
color: #151515;
border-color: #9954bb;
}
.fc .fc-toolbar .fc-button:enabled:active:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.fc .fc-toolbar .fc-button .<API key> {
font-family: "PrimeIcons" !important;
text-indent: 0;
font-size: 1rem;
}
.fc .fc-toolbar .fc-button .<API key>:before {
content: "";
}
.fc .fc-toolbar .fc-button .<API key> {
font-family: "PrimeIcons" !important;
text-indent: 0;
font-size: 1rem;
}
.fc .fc-toolbar .fc-button .<API key>:before {
content: "";
}
.fc .fc-toolbar .fc-button:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.fc .fc-toolbar .fc-button.<API key>, .fc .fc-toolbar .fc-button.<API key>, .fc .fc-toolbar .fc-button.<API key> {
background: #6c757d;
border: 1px solid #6c757d;
color: #ffffff;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.fc .fc-toolbar .fc-button.<API key>:hover, .fc .fc-toolbar .fc-button.<API key>:hover, .fc .fc-toolbar .fc-button.<API key>:hover {
background: #5a6268;
border-color: #545b62;
color: #ffffff;
}
.fc .fc-toolbar .fc-button.<API key>.fc-button-active, .fc .fc-toolbar .fc-button.<API key>.fc-button-active, .fc .fc-toolbar .fc-button.<API key>.fc-button-active {
background: #545b62;
border-color: #4e555b;
color: #ffffff;
}
.fc .fc-toolbar .fc-button.<API key>.fc-button-active:hover, .fc .fc-toolbar .fc-button.<API key>.fc-button-active:hover, .fc .fc-toolbar .fc-button.<API key>.fc-button-active:hover {
background: #545b62;
border-color: #4e555b;
color: #ffffff;
}
.fc .fc-toolbar .fc-button.<API key>:focus, .fc .fc-toolbar .fc-button.<API key>:focus, .fc .fc-toolbar .fc-button.<API key>:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
z-index: 1;
}
.fc .fc-toolbar .fc-button-group .fc-button {
border-radius: 0;
}
.fc .fc-toolbar .fc-button-group .fc-button:first-child {
<API key>: 4px;
<API key>: 4px;
}
.fc .fc-toolbar .fc-button-group .fc-button:last-child {
<API key>: 4px;
<API key>: 4px;
}
.p-orderlist .<API key> {
padding: 1.25rem;
}
.p-orderlist .<API key> .p-button {
margin-bottom: 0.5rem;
}
.p-orderlist .p-orderlist-header {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
padding: 1rem 1.25rem;
border-bottom: 0 none;
<API key>: 4px;
<API key>: 4px;
}
.p-orderlist .p-orderlist-header .p-orderlist-title {
font-weight: 600;
}
.p-orderlist .<API key> {
padding: 1rem 1.25rem;
background: #2a323d;
border: 1px solid #3f4b5b;
border-bottom: 0 none;
}
.p-orderlist .<API key> .<API key> {
padding-right: 1.75rem;
}
.p-orderlist .<API key> .<API key> {
right: 0.75rem;
color: rgba(255, 255, 255, 0.6);
}
.p-orderlist .p-orderlist-list {
border: 1px solid #3f4b5b;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
padding: 0.5rem 0;
<API key>: 4px;
<API key>: 4px;
}
.p-orderlist .p-orderlist-list .p-orderlist-item {
padding: 0.5rem 1.5rem;
margin: 0;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: transform 0.15s, box-shadow 0.15s;
}
.p-orderlist .p-orderlist-list .p-orderlist-item:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.87);
}
.p-orderlist .p-orderlist-list .p-orderlist-item:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
}
.p-orderlist .p-orderlist-list .p-orderlist-item.p-highlight {
color: #151515;
background: #c298d8;
}
.p-orderlist .p-orderlist-list .<API key>.<API key> {
background-color: #a263c4;
}
@media screen and (max-width: 769px) {
.p-orderlist {
flex-direction: column;
}
.p-orderlist .<API key> {
padding: 1.25rem;
flex-direction: row;
}
.p-orderlist .<API key> .p-button {
margin-right: 0.5rem;
margin-bottom: 0;
}
.p-orderlist .<API key> .p-button:last-child {
margin-right: 0;
}
}
.p-organizationchart .<API key>.<API key>:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.87);
}
.p-organizationchart .<API key>.p-highlight {
background: #c298d8;
color: #151515;
}
.p-organizationchart .<API key>.p-highlight .p-node-toggler i {
color: #8942ae;
}
.p-organizationchart .<API key> {
background: #3f4b5b;
}
.p-organizationchart .<API key> {
border-right: 1px solid #3f4b5b;
border-color: #3f4b5b;
}
.p-organizationchart .<API key> {
border-top: 1px solid #3f4b5b;
border-color: #3f4b5b;
}
.p-organizationchart .<API key> {
border: 1px solid #3f4b5b;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
padding: 1.25rem;
}
.p-organizationchart .<API key> .p-node-toggler {
background: inherit;
color: inherit;
border-radius: 50%;
}
.p-organizationchart .<API key> .p-node-toggler:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-paginator {
background: #2a323d;
color: #c298d8;
border: solid #3f4b5b;
border-width: 0;
padding: 0.75rem;
border-radius: 4px;
}
.p-paginator .p-paginator-first,
.p-paginator .p-paginator-prev,
.p-paginator .p-paginator-next,
.p-paginator .p-paginator-last {
background-color: transparent;
border: 1px solid #3f4b5b;
color: #c298d8;
min-width: 2.357rem;
height: 2.357rem;
margin: 0 0 0 -1px;
transition: box-shadow 0.15s;
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: rgba(255, 255, 255, 0.04);
border-color: #3f4b5b;
color: #c298d8;
}
.p-paginator .p-paginator-first {
<API key>: 4px;
<API key>: 4px;
}
.p-paginator .p-paginator-last {
<API key>: 4px;
<API key>: 4px;
}
.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: 1px solid #3f4b5b;
color: #c298d8;
min-width: 2.357rem;
height: 2.357rem;
margin: 0 0 0 -1px;
padding: 0 0.5rem;
}
.p-paginator .p-paginator-pages .p-paginator-page {
background-color: transparent;
border: 1px solid #3f4b5b;
color: #c298d8;
min-width: 2.357rem;
height: 2.357rem;
margin: 0 0 0 -1px;
transition: box-shadow 0.15s;
border-radius: 0;
}
.p-paginator .p-paginator-pages .p-paginator-page.p-highlight {
background: #c298d8;
border-color: #c298d8;
color: #151515;
}
.p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.04);
border-color: #3f4b5b;
color: #c298d8;
}
.p-picklist .p-picklist-buttons {
padding: 1.25rem;
}
.p-picklist .p-picklist-buttons .p-button {
margin-bottom: 0.5rem;
}
.p-picklist .p-picklist-header {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
padding: 1rem 1.25rem;
border-bottom: 0 none;
<API key>: 4px;
<API key>: 4px;
}
.p-picklist .p-picklist-header .p-picklist-title {
font-weight: 600;
}
.p-picklist .<API key> {
padding: 1rem 1.25rem;
background: #2a323d;
border: 1px solid #3f4b5b;
border-bottom: 0 none;
}
.p-picklist .<API key> .<API key> {
padding-right: 1.75rem;
}
.p-picklist .<API key> .<API key> {
right: 0.75rem;
color: rgba(255, 255, 255, 0.6);
}
.p-picklist .p-picklist-list {
border: 1px solid #3f4b5b;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
padding: 0.5rem 0;
<API key>: 4px;
<API key>: 4px;
}
.p-picklist .p-picklist-list .p-picklist-item {
padding: 0.5rem 1.5rem;
margin: 0;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
background: transparent;
transition: transform 0.15s, box-shadow 0.15s;
}
.p-picklist .p-picklist-list .p-picklist-item:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.87);
}
.p-picklist .p-picklist-list .p-picklist-item:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
}
.p-picklist .p-picklist-list .p-picklist-item.p-highlight {
color: #151515;
background: #c298d8;
}
.p-picklist .p-picklist-list .<API key>.<API key> {
background-color: #a263c4;
}
.p-picklist .p-picklist-list .<API key> {
padding: 0.5rem 1.5rem;
color: rgba(255, 255, 255, 0.87);
}
@media screen and (max-width: 769px) {
.p-picklist {
flex-direction: column;
}
.p-picklist .p-picklist-buttons {
padding: 1.25rem;
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 .<API key> .pi-angle-right:before {
content: "";
}
.p-picklist .<API key> .<API key>:before {
content: "";
}
.p-picklist .<API key> .pi-angle-left:before {
content: "";
}
.p-picklist .<API key> .<API key>:before {
content: "";
}
}
.p-timeline .<API key> {
border: 0 none;
border-radius: 50%;
width: 1rem;
height: 1rem;
background-color: #c298d8;
}
.p-timeline .<API key> {
background-color: #3f4b5b;
}
.p-timeline.p-timeline-vertical .<API key>,
.p-timeline.p-timeline-vertical .<API key> {
padding: 0 1rem;
}
.p-timeline.p-timeline-vertical .<API key> {
width: 2px;
}
.p-timeline.<API key> .<API key>,
.p-timeline.<API key> .<API key> {
padding: 1rem 0;
}
.p-timeline.<API key> .<API key> {
height: 2px;
}
.p-tree {
border: 1px solid #3f4b5b;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
padding: 1.25rem;
border-radius: 4px;
}
.p-tree .p-tree-container .p-treenode {
padding: 0.143rem;
}
.p-tree .p-tree-container .p-treenode .p-treenode-content {
border-radius: 4px;
transition: box-shadow 0.15s;
padding: 0.5rem;
}
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler {
margin-right: 0.5rem;
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: color 0.15s, box-shadow 0.15s;
}
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-tree-toggler:enabled:hover {
color: rgba(255, 255, 255, 0.87);
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 1px #f0e6f5;
}
.p-tree .p-tree-container .p-treenode .p-treenode-content .p-treenode-icon {
margin-right: 0.5rem;
color: #3f4b5b;
}
.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: rgba(255, 255, 255, 0.87);
}
.p-tree .p-tree-container .p-treenode .p-treenode-content:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-tree .p-tree-container .p-treenode .p-treenode-content.p-highlight {
background: #c298d8;
color: #151515;
}
.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: #151515;
}
.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: #151515;
}
.p-tree .p-tree-container .p-treenode .p-treenode-content.<API key>:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.87);
}
.p-tree .p-tree-container .p-treenode .p-treenode-content.p-treenode-dragover {
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.87);
}
.p-tree .<API key> {
margin-bottom: 0.5rem;
}
.p-tree .<API key> .p-tree-filter {
width: 100%;
padding-right: 1.75rem;
}
.p-tree .<API key> .p-tree-filter-icon {
right: 0.75rem;
color: rgba(255, 255, 255, 0.6);
}
.p-tree .p-treenode-children {
padding: 0 0 0 1rem;
}
.p-tree .p-tree-loading-icon {
font-size: 2rem;
}
.p-tree .<API key>.<API key> {
background-color: #a263c4;
}
.p-tree.p-tree-horizontal .p-treenode .p-treenode-content {
border-radius: 4px;
border: 1px solid #3f4b5b;
background-color: #2a323d;
color: rgba(255, 255, 255, 0.87);
padding: 0.5rem;
transition: box-shadow 0.15s;
}
.p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-highlight {
background-color: #c298d8;
color: #151515;
}
.p-tree.p-tree-horizontal .p-treenode .p-treenode-content.p-highlight .p-treenode-icon {
color: #151515;
}
.p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-tree-toggler {
margin-right: 0.5rem;
}
.p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-treenode-icon {
color: #3f4b5b;
margin-right: 0.5rem;
}
.p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-checkbox {
margin-right: 0.5rem;
}
.p-tree.p-tree-horizontal .p-treenode .p-treenode-content .p-treenode-label:not(.p-highlight):hover {
background-color: inherit;
color: inherit;
}
.p-tree.p-tree-horizontal .p-treenode .p-treenode-content.<API key>:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.87);
}
.p-tree.p-tree-horizontal .p-treenode .p-treenode-content:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-treetable .p-paginator-top {
border-width: 0;
border-radius: 0;
}
.p-treetable .p-paginator-bottom {
border-width: 1px 0 0 0;
border-radius: 0;
}
.p-treetable .p-treetable-header {
background: #2a323d;
color: rgba(255, 255, 255, 0.6);
border: solid #3f4b5b;
border-width: 1px 0 0 0;
padding: 1rem 1rem;
font-weight: 600;
}
.p-treetable .p-treetable-footer {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-width: 1px 0 1px 0;
padding: 1rem 1rem;
font-weight: 600;
}
.p-treetable .p-treetable-thead > tr > th {
text-align: left;
padding: 1rem 1rem;
border: 1px solid #3f4b5b;
border-width: 1px 0 2px 0;
font-weight: 600;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
transition: box-shadow 0.15s;
}
.p-treetable .p-treetable-tfoot > tr > td {
text-align: left;
padding: 1rem 1rem;
border: 1px solid #3f4b5b;
border-width: 1px 0 1px 0;
font-weight: 600;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
}
.p-treetable .p-sortable-column {
outline-color: #f0e6f5;
}
.p-treetable .p-sortable-column .<API key> {
color: rgba(255, 255, 255, 0.6);
margin-left: 0.5rem;
}
.p-treetable .p-sortable-column .<API key> {
border-radius: 50%;
height: 1.143rem;
min-width: 1.143rem;
line-height: 1.143rem;
color: #151515;
background: #c298d8;
margin-left: 0.5rem;
}
.p-treetable .p-sortable-column:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.87);
}
.p-treetable .p-sortable-column:not(.p-highlight):hover .<API key> {
color: rgba(255, 255, 255, 0.87);
}
.p-treetable .p-sortable-column.p-highlight {
background: #2a323d;
color: #c298d8;
}
.p-treetable .p-sortable-column.p-highlight .<API key> {
color: #c298d8;
}
.p-treetable .p-treetable-tbody > tr {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
transition: box-shadow 0.15s;
outline-color: #f0e6f5;
}
.p-treetable .p-treetable-tbody > tr > td {
text-align: left;
border: 1px solid #3f4b5b;
border-width: 1px 0 0 0;
padding: 1rem 1rem;
}
.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: color 0.15s, box-shadow 0.15s;
margin-right: 0.5rem;
}
.p-treetable .p-treetable-tbody > tr > td .p-treetable-toggler:enabled:hover {
color: rgba(255, 255, 255, 0.87);
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 1px #f0e6f5;
}
.p-treetable .p-treetable-tbody > tr > td p-treetablecheckbox .p-checkbox {
margin-right: 0.5rem;
}
.p-treetable .p-treetable-tbody > tr > td p-treetablecheckbox .p-checkbox .p-indeterminate .p-checkbox-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-treetable .p-treetable-tbody > tr.p-highlight {
background: #c298d8;
color: #151515;
}
.p-treetable .p-treetable-tbody > tr.p-highlight .p-treetable-toggler {
color: #151515;
}
.p-treetable .p-treetable-tbody > tr.p-highlight .p-treetable-toggler:hover {
color: #151515;
}
.p-treetable.<API key> .p-treetable-tbody > tr:not(.p-highlight):hover {
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.87);
}
.p-treetable.<API key> .p-treetable-tbody > tr:not(.p-highlight):hover .p-treetable-toggler {
color: rgba(255, 255, 255, 0.87);
}
.p-treetable .<API key> {
background: #c298d8;
}
.p-treetable .<API key>,
.p-treetable .<API key> {
background: #2a323d;
}
.p-treetable .<API key> {
font-size: 2rem;
}
.p-treetable.<API key> .p-datatable-header {
border-width: 1px 1px 0 1px;
}
.p-treetable.<API key> .p-treetable-footer {
border-width: 0 1px 1px 1px;
}
.p-treetable.<API key> .p-treetable-top {
border-width: 0 1px 0 1px;
}
.p-treetable.<API key> .p-treetable-bottom {
border-width: 0 1px 1px 1px;
}
.p-treetable.<API key> .p-treetable-thead > tr > th {
border-width: 1px;
}
.p-treetable.<API key> .p-treetable-tbody > tr > td {
border-width: 1px;
}
.p-treetable.<API key> .p-treetable-tfoot > tr > td {
border-width: 1px;
}
.p-treetable.p-treetable-sm .p-treetable-header {
padding: 0.875rem 0.875rem;
}
.p-treetable.p-treetable-sm .p-treetable-thead > tr > th {
padding: 0.5rem 0.5rem;
}
.p-treetable.p-treetable-sm .p-treetable-tbody > tr > td {
padding: 0.5rem 0.5rem;
}
.p-treetable.p-treetable-sm .p-treetable-tfoot > tr > td {
padding: 0.5rem 0.5rem;
}
.p-treetable.p-treetable-sm .p-treetable-footer {
padding: 0.5rem 0.5rem;
}
.p-treetable.p-treetable-lg .p-treetable-header {
padding: 1.25rem 1.25rem;
}
.p-treetable.p-treetable-lg .p-treetable-thead > tr > th {
padding: 1.25rem 1.25rem;
}
.p-treetable.p-treetable-lg .p-treetable-tbody > tr > td {
padding: 1.25rem 1.25rem;
}
.p-treetable.p-treetable-lg .p-treetable-tfoot > tr > td {
padding: 1.25rem 1.25rem;
}
.p-treetable.p-treetable-lg .p-treetable-footer {
padding: 1.25rem 1.25rem;
}
.p-virtualscroller .<API key> {
background: #2a323d;
color: rgba(255, 255, 255, 0.6);
border: solid #3f4b5b;
border-width: 1px 0 0 0;
padding: 1rem 1rem;
font-weight: 600;
}
.p-virtualscroller .<API key> {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 0 none;
padding: 0;
}
.p-virtualscroller .<API key> {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-width: 1px 0 1px 0;
padding: 1rem 1rem;
font-weight: 600;
<API key>: 4px;
<API key>: 4px;
}
.p-accordion .p-accordion-header .<API key> {
padding: 1rem 1.25rem;
border: 1px solid #3f4b5b;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
font-weight: 600;
border-radius: 4px;
transition: box-shadow 0.15s;
}
.p-accordion .p-accordion-header .<API key> .<API key> {
margin-right: 0.5rem;
}
.p-accordion .p-accordion-header:not(.p-disabled) .<API key>:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-accordion .p-accordion-header:not(.p-highlight):not(.p-disabled):hover .<API key> {
background: rgba(255, 255, 255, 0.04);
border-color: #3f4b5b;
color: rgba(255, 255, 255, 0.87);
}
.p-accordion .p-accordion-header:not(.p-disabled).p-highlight .<API key> {
background: #2a323d;
border-color: #3f4b5b;
color: rgba(255, 255, 255, 0.87);
<API key>: 0;
<API key>: 0;
}
.p-accordion .p-accordion-header:not(.p-disabled).p-highlight:hover .<API key> {
border-color: #3f4b5b;
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.87);
}
.p-accordion .p-accordion-content {
padding: 1.25rem;
border: 1px solid #3f4b5b;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border-top: 0;
<API key>: 0;
<API key>: 0;
<API key>: 4px;
<API key>: 4px;
}
.p-accordion p-accordiontab .p-accordion-tab {
margin-bottom: 0;
}
.p-accordion p-accordiontab .p-accordion-header .<API key> {
border-radius: 0;
}
.p-accordion p-accordiontab .p-accordion-content {
border-radius: 0;
}
.p-accordion p-accordiontab:not(:first-child) .p-accordion-header .<API key> {
border-top: 0 none;
}
.p-accordion p-accordiontab:not(:first-child) .p-accordion-header:not(.p-highlight):not(.p-disabled):hover .<API key>, .p-accordion p-accordiontab:not(:first-child) .p-accordion-header:not(.p-disabled).p-highlight:hover .<API key> {
border-top: 0 none;
}
.p-accordion p-accordiontab:first-child .p-accordion-header .<API key> {
<API key>: 4px;
<API key>: 4px;
}
.p-accordion p-accordiontab:last-child .p-accordion-header:not(.p-highlight) .<API key> {
<API key>: 4px;
<API key>: 4px;
}
.p-accordion p-accordiontab:last-child .p-accordion-content {
<API key>: 4px;
<API key>: 4px;
}
.p-card {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
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: 4px;
}
.p-card .p-card-body {
padding: 1.5rem;
}
.p-card .p-card-title {
font-size: 1.5rem;
font-weight: 700;
margin-bottom: 0.5rem;
}
.p-card .p-card-subtitle {
font-weight: 400;
margin-bottom: 0.5rem;
color: rgba(255, 255, 255, 0.6);
}
.p-card .p-card-content {
padding: 1rem 0;
}
.p-card .p-card-footer {
padding: 1rem 0 0 0;
}
.p-divider .p-divider-content {
background-color: #2a323d;
}
.p-divider.<API key> {
margin: 1rem 0;
padding: 0 1rem;
}
.p-divider.<API key>:before {
border-top: 1px #3f4b5b;
}
.p-divider.<API key> .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 #3f4b5b;
}
.p-divider.p-divider-vertical .p-divider-content {
padding: 0.5rem 0;
}
.p-fieldset {
border: 1px solid #3f4b5b;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border-radius: 4px;
}
.p-fieldset .p-fieldset-legend {
padding: 1rem 1.25rem;
border: 1px solid #3f4b5b;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
font-weight: 600;
border-radius: 4px;
}
.p-fieldset.<API key> .p-fieldset-legend {
padding: 0;
transition: color 0.15s, box-shadow 0.15s;
}
.p-fieldset.<API key> .p-fieldset-legend a {
padding: 1rem 1.25rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 4px;
transition: box-shadow 0.15s;
}
.p-fieldset.<API key> .p-fieldset-legend a .p-fieldset-toggler {
margin-right: 0.5rem;
}
.p-fieldset.<API key> .p-fieldset-legend a:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-fieldset.<API key> .p-fieldset-legend:hover {
background: rgba(255, 255, 255, 0.04);
border-color: #3f4b5b;
color: rgba(255, 255, 255, 0.87);
}
.p-fieldset .p-fieldset-content {
padding: 1.25rem;
}
.p-panel .p-panel-header {
border: 1px solid #3f4b5b;
padding: 1rem 1.25rem;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
<API key>: 4px;
<API key>: 4px;
}
.p-panel .p-panel-header .p-panel-title {
font-weight: 600;
}
.p-panel .p-panel-header .p-panel-header-icon {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: color 0.15s, box-shadow 0.15s;
}
.p-panel .p-panel-header .p-panel-header-icon:enabled:hover {
color: rgba(255, 255, 255, 0.87);
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 1px #f0e6f5;
}
.p-panel.p-panel-toggleable .p-panel-header {
padding: 0.5rem 1.25rem;
}
.p-panel .p-panel-content {
padding: 1.25rem;
border: 1px solid #3f4b5b;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
<API key>: 4px;
<API key>: 4px;
border-top: 0 none;
}
.p-panel .p-panel-footer {
padding: 0.5rem 1.25rem;
border: 1px solid #3f4b5b;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border-top: 0 none;
}
.p-scrollpanel .p-scrollpanel-bar {
background: #3f4b5b;
border: 0 none;
}
.p-splitter {
border: 1px solid #3f4b5b;
background: #2a323d;
border-radius: 4px;
color: rgba(255, 255, 255, 0.87);
}
.p-splitter .p-splitter-gutter {
transition: color 0.15s, box-shadow 0.15s;
background: rgba(255, 255, 255, 0.04);
}
.p-splitter .p-splitter-gutter .<API key> {
background: #3f4b5b;
}
.p-splitter .<API key> {
background: #3f4b5b;
}
.p-tabview .p-tabview-nav {
background: transparent;
border: 1px solid #3f4b5b;
border-width: 0 0 1px 0;
}
.p-tabview .p-tabview-nav li {
margin-right: 0;
}
.p-tabview .p-tabview-nav li .p-tabview-nav-link {
border: solid;
border-width: 1px;
border-color: #2a323d #2a323d #3f4b5b #2a323d;
background: #2a323d;
color: rgba(255, 255, 255, 0.6);
padding: 0.75rem 1rem;
font-weight: 600;
<API key>: 4px;
<API key>: 4px;
transition: box-shadow 0.15s;
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 1px #f0e6f5;
}
.p-tabview .p-tabview-nav li:not(.p-highlight):not(.p-disabled):hover .p-tabview-nav-link {
background: #2a323d;
border-color: #3f4b5b;
color: rgba(255, 255, 255, 0.87);
}
.p-tabview .p-tabview-nav li.p-highlight .p-tabview-nav-link {
background: #2a323d;
border-color: #3f4b5b #3f4b5b #2a323d #3f4b5b;
color: rgba(255, 255, 255, 0.6);
}
.p-tabview .p-tabview-left-icon {
margin-right: 0.5rem;
}
.p-tabview .<API key> {
margin-left: 0.5rem;
}
.p-tabview .p-tabview-close {
margin-left: 0.5rem;
}
.p-tabview .p-tabview-panels {
background: #2a323d;
padding: 1.25rem;
border: 0 none;
color: rgba(255, 255, 255, 0.87);
<API key>: 4px;
<API key>: 4px;
}
.p-toolbar {
background: #2a323d;
border: 1px solid #3f4b5b;
padding: 1rem 1.25rem;
border-radius: 4px;
}
.p-toolbar .p-toolbar-separator {
margin: 0 0.5rem;
}
.p-confirm-popup {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-radius: 4px;
box-shadow: none;
}
.p-confirm-popup .<API key> {
padding: 1.25rem;
}
.p-confirm-popup .<API key> {
text-align: right;
padding: 0.5rem 1.25rem;
}
.p-confirm-popup .<API key> button {
margin: 0 0.5rem 0 0;
width: auto;
}
.p-confirm-popup .<API key> button:last-child {
margin: 0;
}
.p-confirm-popup:after {
border: solid transparent;
border-color: rgba(42, 50, 61, 0);
border-bottom-color: #2a323d;
}
.p-confirm-popup:before {
border: solid transparent;
border-color: rgba(63, 75, 91, 0);
border-bottom-color: #3f4b5b;
}
.p-confirm-popup.<API key>:after {
border-top-color: #2a323d;
}
.p-confirm-popup.<API key>:before {
border-top-color: #3f4b5b;
}
.p-confirm-popup .<API key> {
font-size: 1.5rem;
}
.p-confirm-popup .<API key> {
margin-left: 1rem;
}
.p-dialog {
border-radius: 4px;
box-shadow: none;
border: 1px solid #3f4b5b;
}
.p-dialog .p-dialog-header {
border-bottom: 1px solid #3f4b5b;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
padding: 1rem;
<API key>: 4px;
<API key>: 4px;
}
.p-dialog .p-dialog-header .p-dialog-title {
font-weight: 600;
font-size: 1.25rem;
}
.p-dialog .p-dialog-header .<API key> {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: color 0.15s, box-shadow 0.15s;
margin-right: 0.5rem;
}
.p-dialog .p-dialog-header .<API key>:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: transparent;
}
.p-dialog .p-dialog-header .<API key>:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-dialog .p-dialog-header .<API key>:last-child {
margin-right: 0;
}
.p-dialog .p-dialog-content {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
padding: 1rem;
}
.p-dialog .p-dialog-footer {
border-top: 1px solid #3f4b5b;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
padding: 1rem;
text-align: right;
<API key>: 4px;
<API key>: 4px;
}
.p-dialog .p-dialog-footer button {
margin: 0 0.5rem 0 0;
width: auto;
}
.p-dialog.p-confirm-dialog .<API key> {
font-size: 2rem;
}
.p-dialog.p-confirm-dialog .<API key> {
margin-left: 1rem;
}
.p-dialog-mask.p-component-overlay {
background-color: rgba(0, 0, 0, 0.4);
}
.p-overlaypanel {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-radius: 4px;
box-shadow: none;
}
.p-overlaypanel .<API key> {
padding: 1.25rem;
}
.p-overlaypanel .<API key> {
background: #c298d8;
color: #151515;
width: 2rem;
height: 2rem;
transition: color 0.15s, box-shadow 0.15s;
border-radius: 50%;
position: absolute;
top: -1rem;
right: -1rem;
}
.p-overlaypanel .<API key>:enabled:hover {
background: #aa70c7;
color: #151515;
}
.p-overlaypanel:after {
border: solid transparent;
border-color: rgba(42, 50, 61, 0);
border-bottom-color: #2a323d;
}
.p-overlaypanel:before {
border: solid transparent;
border-color: rgba(63, 75, 91, 0);
border-bottom-color: #3f4b5b;
}
.p-overlaypanel.<API key>:after {
border-top-color: #2a323d;
}
.p-overlaypanel.<API key>:before {
border-top-color: #3f4b5b;
}
.p-sidebar {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
padding: 1.25rem;
border: 1px solid #3f4b5b;
box-shadow: none;
}
.p-sidebar .p-sidebar-close {
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
background: transparent;
border-radius: 50%;
transition: color 0.15s, box-shadow 0.15s;
}
.p-sidebar .p-sidebar-close:enabled:hover {
color: rgba(255, 255, 255, 0.87);
border-color: transparent;
background: transparent;
}
.p-sidebar .p-sidebar-close:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-sidebar-mask.p-component-overlay {
background: rgba(0, 0, 0, 0.4);
}
.p-tooltip .p-tooltip-text {
background: #3f4b5b;
color: rgba(255, 255, 255, 0.87);
padding: 0.5rem 0.75rem;
box-shadow: none;
border-radius: 4px;
}
.p-tooltip.p-tooltip-right .p-tooltip-arrow {
border-right-color: #3f4b5b;
}
.p-tooltip.p-tooltip-left .p-tooltip-arrow {
border-left-color: #3f4b5b;
}
.p-tooltip.p-tooltip-top .p-tooltip-arrow {
border-top-color: #3f4b5b;
}
.p-tooltip.p-tooltip-bottom .p-tooltip-arrow {
border-bottom-color: #3f4b5b;
}
.p-fileupload .<API key> {
background: #2a323d;
padding: 1rem 1.25rem;
border: 1px solid #3f4b5b;
color: rgba(255, 255, 255, 0.87);
border-bottom: 0 none;
<API key>: 4px;
<API key>: 4px;
}
.p-fileupload .<API key> .p-button {
margin-right: 0.5rem;
}
.p-fileupload .<API key> .p-button.p-fileupload-choose.p-focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-fileupload .<API key> {
background: #2a323d;
padding: 2rem 1rem;
border: 1px solid #3f4b5b;
color: rgba(255, 255, 255, 0.87);
<API key>: 4px;
<API key>: 4px;
}
.p-fileupload .p-progressbar {
height: 0.25rem;
}
.p-fileupload .p-fileupload-row > div {
padding: 1rem 1rem;
}
.p-fileupload.<API key> .p-message {
margin-top: 0;
}
.p-fileupload-choose:not(.p-disabled):hover {
background: #aa70c7;
color: #151515;
border-color: #aa70c7;
}
.p-fileupload-choose:not(.p-disabled):active {
background: #9954bb;
color: #151515;
border-color: #9954bb;
}
.p-breadcrumb {
background: #343e4d;
border: 0 none;
border-radius: 4px;
padding: 1rem;
}
.p-breadcrumb ul li .p-menuitem-link {
transition: box-shadow 0.15s;
border-radius: 4px;
}
.p-breadcrumb ul li .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-breadcrumb ul li .p-menuitem-link .p-menuitem-text {
color: #c298d8;
}
.p-breadcrumb ul li .p-menuitem-link .p-menuitem-icon {
color: #c298d8;
}
.p-breadcrumb ul li.<API key> {
margin: 0 0.5rem 0 0.5rem;
color: rgba(255, 255, 255, 0.87);
}
.p-breadcrumb ul li:last-child .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-breadcrumb ul li:last-child .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-contextmenu {
padding: 0.5rem 0;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
box-shadow: none;
width: 12.5rem;
}
.p-contextmenu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.15s;
user-select: none;
}
.p-contextmenu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-contextmenu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem;
}
.p-contextmenu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6);
}
.p-contextmenu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.04);
}
.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-contextmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-contextmenu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
}
.p-contextmenu .p-submenu-list {
padding: 0.5rem 0;
background: #2a323d;
border: 1px solid #3f4b5b;
box-shadow: none;
}
.p-contextmenu .p-menuitem {
margin: 0;
}
.p-contextmenu .p-menuitem:last-child {
margin: 0;
}
.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link {
background: #20262e;
}
.p-contextmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.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: rgba(255, 255, 255, 0.87);
}
.p-contextmenu .p-menu-separator {
border-top: 1px solid #3f4b5b;
margin: 0.5rem 0;
}
.p-contextmenu .p-submenu-icon {
font-size: 0.875rem;
}
.p-megamenu {
padding: 0.5rem 1rem;
background: #343e4d;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
border-radius: 4px;
}
.p-megamenu .<API key> > .p-menuitem > .p-menuitem-link {
padding: 1rem;
color: rgba(255, 255, 255, 0.6);
border-radius: 4px;
transition: box-shadow 0.15s;
user-select: none;
}
.p-megamenu .<API key> > .p-menuitem > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.6);
}
.p-megamenu .<API key> > .p-menuitem > .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem;
}
.p-megamenu .<API key> > .p-menuitem > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6);
margin-left: 0.5rem;
}
.p-megamenu .<API key> > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {
background: transparent;
}
.p-megamenu .<API key> > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-megamenu .<API key> > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-megamenu .<API key> > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-megamenu .<API key> > .p-menuitem > .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
}
.p-megamenu .<API key> > .p-menuitem.p-menuitem-active > .p-menuitem-link,
.p-megamenu .<API key> > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover {
background: transparent;
}
.p-megamenu .<API key> > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text,
.p-megamenu .<API key> > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-megamenu .<API key> > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-icon,
.p-megamenu .<API key> > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-megamenu .<API key> > .p-menuitem.p-menuitem-active > .p-menuitem-link .p-submenu-icon,
.p-megamenu .<API key> > .p-menuitem.p-menuitem-active > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-megamenu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.15s;
user-select: none;
}
.p-megamenu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-megamenu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem;
}
.p-megamenu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6);
}
.p-megamenu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.04);
}
.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-megamenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-megamenu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
}
.p-megamenu .p-megamenu-panel {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
box-shadow: none;
}
.p-megamenu .<API key> {
margin: 0;
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
font-weight: 600;
<API key>: 4px;
<API key>: 4px;
}
.p-megamenu .p-megamenu-submenu {
padding: 0.5rem 0;
width: 12.5rem;
}
.p-megamenu .p-megamenu-submenu .p-menu-separator {
border-top: 1px solid #3f4b5b;
margin: 0.5rem 0;
}
.p-megamenu .p-megamenu-submenu .p-menuitem {
margin: 0;
}
.p-megamenu .p-megamenu-submenu .p-menuitem:last-child {
margin: 0;
}
.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link {
background: #20262e;
}
.p-megamenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.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: rgba(255, 255, 255, 0.87);
}
.p-megamenu.p-megamenu-vertical {
width: 12.5rem;
padding: 0.5rem 0;
}
.p-megamenu.p-megamenu-vertical .p-menuitem {
margin: 0;
}
.p-megamenu.p-megamenu-vertical .p-menuitem:last-child {
margin: 0;
}
.p-menu {
padding: 0.5rem 0;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-radius: 4px;
width: 12.5rem;
}
.p-menu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.15s;
user-select: none;
}
.p-menu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-menu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem;
}
.p-menu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6);
}
.p-menu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.04);
}
.p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-menu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-menu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-menu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
}
.p-menu.p-menu-overlay {
background: #2a323d;
border: 1px solid #3f4b5b;
box-shadow: none;
}
.p-menu .p-submenu-header {
margin: 0;
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
font-weight: 600;
<API key>: 0;
<API key>: 0;
}
.p-menu .p-menu-separator {
border-top: 1px solid #3f4b5b;
margin: 0.5rem 0;
}
.p-menu .p-menuitem {
margin: 0;
}
.p-menu .p-menuitem:last-child {
margin: 0;
}
.p-menubar {
padding: 0.5rem 1rem;
background: #343e4d;
color: rgba(255, 255, 255, 0.6);
border: 0 none;
border-radius: 4px;
}
.p-menubar .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.15s;
user-select: none;
}
.p-menubar .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-menubar .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem;
}
.p-menubar .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6);
}
.p-menubar .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.04);
}
.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-menubar .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-menubar .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link {
padding: 1rem;
color: rgba(255, 255, 255, 0.6);
border-radius: 4px;
transition: box-shadow 0.15s;
user-select: none;
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.6);
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem;
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6);
margin-left: 0.5rem;
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {
background: transparent;
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87);
}
.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.15rem #f0e6f5;
}
.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: transparent;
}
.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: rgba(255, 255, 255, 0.87);
}
.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: rgba(255, 255, 255, 0.87);
}
.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: rgba(255, 255, 255, 0.87);
}
.p-menubar .p-submenu-list {
padding: 0.5rem 0;
background: #2a323d;
border: 1px solid #3f4b5b;
box-shadow: none;
width: 12.5rem;
}
.p-menubar .p-submenu-list .p-menu-separator {
border-top: 1px solid #3f4b5b;
margin: 0.5rem 0;
}
.p-menubar .p-submenu-list .p-submenu-icon {
font-size: 0.875rem;
}
.p-menubar .p-submenu-list .p-menuitem {
margin: 0;
}
.p-menubar .p-submenu-list .p-menuitem:last-child {
margin: 0;
}
.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link {
background: #20262e;
}
.p-menubar .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.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: rgba(255, 255, 255, 0.87);
}
@media screen and (max-width: 960px) {
.p-menubar {
position: relative;
}
.p-menubar .p-menubar-button {
display: flex;
width: 2rem;
height: 2rem;
color: rgba(255, 255, 255, 0.6);
border-radius: 50%;
transition: color 0.15s, box-shadow 0.15s;
}
.p-menubar .p-menubar-button:hover {
color: rgba(255, 255, 255, 0.87);
background: transparent;
}
.p-menubar .p-menubar-button:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-menubar .p-menubar-root-list {
position: absolute;
display: none;
padding: 0.5rem 0;
background: #2a323d;
border: 1px solid #3f4b5b;
box-shadow: none;
width: 100%;
}
.p-menubar .p-menubar-root-list .p-menu-separator {
border-top: 1px solid #3f4b5b;
margin: 0.5rem 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.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.15s;
user-select: none;
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem;
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6);
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.04);
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87);
}
.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.15rem #f0e6f5;
}
.p-menubar .p-menubar-root-list > .p-menuitem > .p-menuitem-link > .p-submenu-icon {
margin-left: auto;
transition: transform 0.15s;
}
.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.15s;
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.25rem;
}
.p-menubar .p-menubar-root-list ul li ul li a {
padding-left: 3.75rem;
}
.p-menubar .p-menubar-root-list ul li ul li ul li a {
padding-left: 5.25rem;
}
.p-menubar .p-menubar-root-list ul li ul li ul li ul li a {
padding-left: 6.75rem;
}
.p-menubar .p-menubar-root-list ul li ul li ul li ul li ul li a {
padding-left: 8.25rem;
}
.p-menubar.<API key> .p-menubar-root-list {
display: flex;
flex-direction: column;
top: 100%;
left: 0;
z-index: 1;
}
}
.p-panelmenu .p-panelmenu-header > a {
padding: 1rem 1.25rem;
border: 1px solid #3f4b5b;
color: rgba(255, 255, 255, 0.87);
background: #2a323d;
font-weight: 600;
border-radius: 4px;
transition: box-shadow 0.15s;
}
.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 1px #f0e6f5;
}
.p-panelmenu .p-panelmenu-header:not(.p-highlight):not(.p-disabled) > a:hover {
background: rgba(255, 255, 255, 0.04);
border-color: #3f4b5b;
color: rgba(255, 255, 255, 0.87);
}
.p-panelmenu .p-panelmenu-header.p-highlight {
margin-bottom: 0;
}
.p-panelmenu .p-panelmenu-header.p-highlight > a {
background: #2a323d;
border-color: #3f4b5b;
color: rgba(255, 255, 255, 0.87);
<API key>: 0;
<API key>: 0;
}
.p-panelmenu .p-panelmenu-header.p-highlight:not(.p-disabled) > a:hover {
border-color: #3f4b5b;
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.87);
}
.p-panelmenu .p-panelmenu-content {
padding: 0.5rem 0;
border: 1px solid #3f4b5b;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
margin-bottom: 0;
border-top: 0;
<API key>: 0;
<API key>: 0;
<API key>: 4px;
<API key>: 4px;
}
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.15s;
user-select: none;
}
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem;
}
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6);
}
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.04);
}
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-panelmenu .p-panelmenu-content .p-menuitem .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
}
.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(.<API key>) {
padding: 0 0 0 1rem;
}
.p-panelmenu .p-panelmenu-panel {
margin-bottom: 0;
}
.p-panelmenu .p-panelmenu-panel .p-panelmenu-header > a {
border-radius: 0;
}
.p-panelmenu .p-panelmenu-panel .p-panelmenu-content {
border-radius: 0;
}
.p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header > a {
border-top: 0 none;
}
.p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header:not(.p-highlight):not(.p-disabled):hover > a, .p-panelmenu .p-panelmenu-panel:not(:first-child) .p-panelmenu-header:not(.p-disabled).p-highlight:hover > a {
border-top: 0 none;
}
.p-panelmenu .p-panelmenu-panel:first-child .p-panelmenu-header > a {
<API key>: 4px;
<API key>: 4px;
}
.p-panelmenu .p-panelmenu-panel:last-child .p-panelmenu-header:not(.p-highlight) > a {
<API key>: 4px;
<API key>: 4px;
}
.p-panelmenu .p-panelmenu-panel:last-child .p-panelmenu-content {
<API key>: 4px;
<API key>: 4px;
}
.p-slidemenu {
padding: 0.5rem 0;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-radius: 4px;
width: 12.5rem;
}
.p-slidemenu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.15s;
user-select: none;
}
.p-slidemenu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-slidemenu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem;
}
.p-slidemenu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6);
}
.p-slidemenu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.04);
}
.p-slidemenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-slidemenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-slidemenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-slidemenu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
}
.p-slidemenu.p-slidemenu-overlay {
background: #2a323d;
border: 1px solid #3f4b5b;
box-shadow: none;
}
.p-slidemenu .p-slidemenu-list {
padding: 0.5rem 0;
background: #2a323d;
border: 1px solid #3f4b5b;
box-shadow: none;
}
.p-slidemenu .p-slidemenu.p-slidemenu-active > .p-slidemenu-link {
background: #20262e;
}
.p-slidemenu .p-slidemenu.p-slidemenu-active > .p-slidemenu-link .p-slidemenu-text {
color: rgba(255, 255, 255, 0.87);
}
.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: rgba(255, 255, 255, 0.87);
}
.p-slidemenu .<API key> {
border-top: 1px solid #3f4b5b;
margin: 0.5rem 0;
}
.p-slidemenu .p-slidemenu-icon {
font-size: 0.875rem;
}
.p-slidemenu .<API key> {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
}
.p-steps .p-steps-item .p-menuitem-link {
background: transparent;
transition: box-shadow 0.15s;
border-radius: 4px;
background: transparent;
}
.p-steps .p-steps-item .p-menuitem-link .p-steps-number {
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
background: transparent;
min-width: 2rem;
height: 2rem;
line-height: 2rem;
font-size: 1.143rem;
z-index: 1;
border-radius: 4px;
}
.p-steps .p-steps-item .p-menuitem-link .p-steps-title {
margin-top: 0.5rem;
color: rgba(255, 255, 255, 0.6);
}
.p-steps .p-steps-item .p-menuitem-link:not(.p-disabled):focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-steps .p-steps-item.p-highlight .p-steps-number {
background: #c298d8;
color: #151515;
}
.p-steps .p-steps-item.p-highlight .p-steps-title {
font-weight: 600;
color: rgba(255, 255, 255, 0.87);
}
.p-steps .p-steps-item:before {
content: " ";
border-top: 1px solid #3f4b5b;
width: 100%;
top: 50%;
left: 0;
display: block;
position: absolute;
margin-top: -1rem;
}
.p-tabmenu .p-tabmenu-nav {
background: transparent;
border: 1px solid #3f4b5b;
border-width: 0 0 1px 0;
}
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem {
margin-right: 0;
}
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem .p-menuitem-link {
border: solid;
border-width: 1px;
border-color: #2a323d #2a323d #3f4b5b #2a323d;
background: #2a323d;
color: rgba(255, 255, 255, 0.6);
padding: 0.75rem 1rem;
font-weight: 600;
<API key>: 4px;
<API key>: 4px;
transition: box-shadow 0.15s;
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 1px #f0e6f5;
}
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem:not(.p-highlight):not(.p-disabled):hover .p-menuitem-link {
background: #2a323d;
border-color: #3f4b5b;
color: rgba(255, 255, 255, 0.87);
}
.p-tabmenu .p-tabmenu-nav .p-tabmenuitem.p-highlight .p-menuitem-link {
background: #2a323d;
border-color: #3f4b5b #3f4b5b #2a323d #3f4b5b;
color: rgba(255, 255, 255, 0.6);
}
.p-tieredmenu {
padding: 0.5rem 0;
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
border-radius: 4px;
width: 12.5rem;
}
.p-tieredmenu .p-menuitem-link {
padding: 0.75rem 1rem;
color: rgba(255, 255, 255, 0.87);
border-radius: 0;
transition: box-shadow 0.15s;
user-select: none;
}
.p-tieredmenu .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-tieredmenu .p-menuitem-link .p-menuitem-icon {
color: rgba(255, 255, 255, 0.6);
margin-right: 0.5rem;
}
.p-tieredmenu .p-menuitem-link .p-submenu-icon {
color: rgba(255, 255, 255, 0.6);
}
.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.04);
}
.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-menuitem-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-tieredmenu .p-menuitem-link:not(.p-disabled):hover .p-submenu-icon {
color: rgba(255, 255, 255, 0.87);
}
.p-tieredmenu .p-menuitem-link:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: inset 0 0 0 0.15rem #f0e6f5;
}
.p-tieredmenu.<API key> {
background: #2a323d;
border: 1px solid #3f4b5b;
box-shadow: none;
}
.p-tieredmenu .p-submenu-list {
padding: 0.5rem 0;
background: #2a323d;
border: 1px solid #3f4b5b;
box-shadow: none;
}
.p-tieredmenu .p-menuitem {
margin: 0;
}
.p-tieredmenu .p-menuitem:last-child {
margin: 0;
}
.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link {
background: #20262e;
}
.p-tieredmenu .p-menuitem.p-menuitem-active > .p-menuitem-link .p-menuitem-text {
color: rgba(255, 255, 255, 0.87);
}
.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: rgba(255, 255, 255, 0.87);
}
.p-tieredmenu .p-menu-separator {
border-top: 1px solid #3f4b5b;
margin: 0.5rem 0;
}
.p-tieredmenu .p-submenu-icon {
font-size: 0.875rem;
}
.p-inline-message {
padding: 0.5rem 0.75rem;
margin: 0;
border-radius: 4px;
}
.p-inline-message.<API key> {
background: #cce5ff;
border: solid #b8daff;
border-width: 0px;
color: #004085;
}
.p-inline-message.<API key> .<API key> {
color: #004085;
}
.p-inline-message.<API key> {
background: #d4edda;
border: solid #c3e6cb;
border-width: 0px;
color: #155724;
}
.p-inline-message.<API key> .<API key> {
color: #155724;
}
.p-inline-message.<API key> {
background: #fff3cd;
border: solid #ffeeba;
border-width: 0px;
color: #856404;
}
.p-inline-message.<API key> .<API key> {
color: #856404;
}
.p-inline-message.<API key> {
background: #f8d7da;
border: solid #f5c6cb;
border-width: 0px;
color: #721c24;
}
.p-inline-message.<API key> .<API key> {
color: #721c24;
}
.p-inline-message .<API key> {
font-size: 1rem;
margin-right: 0.5rem;
}
.p-inline-message .<API key> {
font-size: 1rem;
}
.p-inline-message.<API key> .<API key> {
margin-right: 0;
}
.p-message {
margin: 1rem 0;
border-radius: 4px;
}
.p-message .p-message-wrapper {
padding: 1rem 1.25rem;
}
.p-message .p-message-close {
width: 2rem;
height: 2rem;
border-radius: 50%;
background: transparent;
transition: color 0.15s, box-shadow 0.15s;
}
.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 1px #f0e6f5;
}
.p-message.p-message-info {
background: #cce5ff;
border: solid #b8daff;
border-width: 1px;
color: #004085;
}
.p-message.p-message-info .p-message-icon {
color: #004085;
}
.p-message.p-message-info .p-message-close {
color: #004085;
}
.p-message.p-message-success {
background: #d4edda;
border: solid #c3e6cb;
border-width: 1px;
color: #155724;
}
.p-message.p-message-success .p-message-icon {
color: #155724;
}
.p-message.p-message-success .p-message-close {
color: #155724;
}
.p-message.p-message-warn {
background: #fff3cd;
border: solid #ffeeba;
border-width: 1px;
color: #856404;
}
.p-message.p-message-warn .p-message-icon {
color: #856404;
}
.p-message.p-message-warn .p-message-close {
color: #856404;
}
.p-message.p-message-error {
background: #f8d7da;
border: solid #f5c6cb;
border-width: 1px;
color: #721c24;
}
.p-message.p-message-error .p-message-icon {
color: #721c24;
}
.p-message.p-message-error .p-message-close {
color: #721c24;
}
.p-message .p-message-text {
font-size: 1rem;
font-weight: 500;
}
.p-message .p-message-icon {
font-size: 1.5rem;
margin-right: 0.5rem;
}
.p-message .p-message-summary {
font-weight: 700;
}
.p-message .p-message-detail {
margin-left: 0.5rem;
}
.p-toast {
opacity: 1;
}
.p-toast .p-toast-message {
margin: 0 0 1rem 0;
box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
border-radius: 4px;
}
.p-toast .p-toast-message .<API key> {
padding: 1rem;
border-width: 0;
}
.p-toast .p-toast-message .<API key> .<API key> {
margin: 0 0 0 1rem;
}
.p-toast .p-toast-message .<API key> .<API key> {
font-size: 2rem;
}
.p-toast .p-toast-message .<API key> .p-toast-summary {
font-weight: 700;
}
.p-toast .p-toast-message .<API key> .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: color 0.15s, box-shadow 0.15s;
}
.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 1px #f0e6f5;
}
.p-toast .p-toast-message.<API key> {
background: #cce5ff;
border: solid #b8daff;
border-width: 1px;
color: #004085;
}
.p-toast .p-toast-message.<API key> .<API key>,
.p-toast .p-toast-message.<API key> .p-toast-icon-close {
color: #004085;
}
.p-toast .p-toast-message.<API key> {
background: #d4edda;
border: solid #c3e6cb;
border-width: 1px;
color: #155724;
}
.p-toast .p-toast-message.<API key> .<API key>,
.p-toast .p-toast-message.<API key> .p-toast-icon-close {
color: #155724;
}
.p-toast .p-toast-message.<API key> {
background: #fff3cd;
border: solid #ffeeba;
border-width: 1px;
color: #856404;
}
.p-toast .p-toast-message.<API key> .<API key>,
.p-toast .p-toast-message.<API key> .p-toast-icon-close {
color: #856404;
}
.p-toast .p-toast-message.<API key> {
background: #f8d7da;
border: solid #f5c6cb;
border-width: 1px;
color: #721c24;
}
.p-toast .p-toast-message.<API key> .<API key>,
.p-toast .p-toast-message.<API key> .p-toast-icon-close {
color: #721c24;
}
.p-galleria .p-galleria-close {
margin: 0.5rem;
background: transparent;
color: rgba(255, 255, 255, 0.6);
width: 4rem;
height: 4rem;
transition: color 0.15s, box-shadow 0.15s;
border-radius: 4px;
}
.p-galleria .p-galleria-close .<API key> {
font-size: 2rem;
}
.p-galleria .p-galleria-close:hover {
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.87);
}
.p-galleria .p-galleria-item-nav {
background: transparent;
color: rgba(255, 255, 255, 0.6);
width: 4rem;
height: 4rem;
transition: color 0.15s, box-shadow 0.15s;
border-radius: 4px;
margin: 0 0.5rem;
}
.p-galleria .p-galleria-item-nav .<API key>,
.p-galleria .p-galleria-item-nav .<API key> {
font-size: 2rem;
}
.p-galleria .p-galleria-item-nav:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.6);
}
.p-galleria .p-galleria-caption {
background: rgba(0, 0, 0, 0.5);
color: rgba(255, 255, 255, 0.6);
padding: 1rem;
}
.p-galleria .<API key> {
padding: 1rem;
}
.p-galleria .<API key> .<API key> button {
background-color: #7789a1;
width: 1rem;
height: 1rem;
transition: color 0.15s, box-shadow 0.15s;
border-radius: 4px;
}
.p-galleria .<API key> .<API key> button:hover {
background: #687c97;
}
.p-galleria .<API key> .<API key>.p-highlight button {
background: #c298d8;
color: #151515;
}
.p-galleria.<API key> .<API key>, .p-galleria.<API key> .<API key> {
margin-right: 0.5rem;
}
.p-galleria.<API key> .<API key>, .p-galleria.<API key> .<API key> {
margin-bottom: 0.5rem;
}
.p-galleria.<API key> .<API key> {
background: rgba(0, 0, 0, 0.5);
}
.p-galleria.<API key> .<API key> .<API key> button {
background: rgba(255, 255, 255, 0.4);
}
.p-galleria.<API key> .<API key> .<API key> button:hover {
background: rgba(255, 255, 255, 0.6);
}
.p-galleria.<API key> .<API key> .<API key>.p-highlight button {
background: #c298d8;
color: #151515;
}
.p-galleria .<API key> {
background: rgba(0, 0, 0, 0.9);
padding: 1rem 0.25rem;
}
.p-galleria .<API key> .<API key>,
.p-galleria .<API key> .<API key> {
margin: 0.5rem;
background-color: transparent;
color: rgba(255, 255, 255, 0.6);
width: 2rem;
height: 2rem;
transition: color 0.15s, box-shadow 0.15s;
border-radius: 4px;
}
.p-galleria .<API key> .<API key>:hover,
.p-galleria .<API key> .<API key>:hover {
background: rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.6);
}
.p-galleria .<API key> .<API key> {
transition: box-shadow 0.15s;
}
.p-galleria .<API key> .<API key>:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-galleria-mask.p-component-overlay {
background-color: rgba(0, 0, 0, 0.9);
}
.p-avatar {
background-color: #3f4b5b;
border-radius: 4px;
}
.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 #2a323d;
}
.p-badge {
background: #c298d8;
color: #151515;
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: #6c757d;
color: #ffffff;
}
.p-badge.p-badge-success {
background-color: #9fdaa8;
color: #151515;
}
.p-badge.p-badge-info {
background-color: #7fd8e6;
color: #151515;
}
.p-badge.p-badge-warning {
background-color: #ffe082;
color: #151515;
}
.p-badge.p-badge-danger {
background-color: #f19ea6;
color: #151515;
}
.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-blockui.p-component-overlay {
background: rgba(0, 0, 0, 0.4);
}
.p-chip {
background-color: #3f4b5b;
color: rgba(255, 255, 255, 0.87);
border-radius: 16px;
padding: 0 0.75rem;
}
.p-chip .p-chip-text {
line-height: 1.5;
margin-top: 0.25rem;
margin-bottom: 0.25rem;
}
.p-chip .p-chip-icon {
margin-right: 0.5rem;
}
.p-chip .pi-chip-remove-icon {
margin-left: 0.5rem;
}
.p-chip img {
width: 2rem;
height: 2rem;
margin-left: -0.75rem;
margin-right: 0.5rem;
}
.p-chip .pi-chip-remove-icon {
border-radius: 4px;
transition: color 0.15s, box-shadow 0.15s;
}
.p-chip .pi-chip-remove-icon:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-inplace .p-inplace-display {
padding: 0.5rem 0.75rem;
border-radius: 4px;
transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.p-inplace .p-inplace-display:not(.p-disabled):hover {
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.87);
}
.p-inplace .p-inplace-display:focus {
outline: 0 none;
outline-offset: 0;
box-shadow: 0 0 0 1px #f0e6f5;
}
.p-progressbar {
border: 0 none;
height: 1.5rem;
background: #3f4b5b;
border-radius: 4px;
}
.p-progressbar .p-progressbar-value {
border: 0 none;
margin: 0;
background: #c298d8;
}
.p-progressbar .p-progressbar-label {
color: rgba(255, 255, 255, 0.87);
line-height: 1.5rem;
}
.p-scrolltop {
width: 3rem;
height: 3rem;
border-radius: 4px;
box-shadow: none;
transition: color 0.15s, box-shadow 0.15s;
}
.p-scrolltop.p-link {
background: #c298d8;
}
.p-scrolltop.p-link:hover {
background: #aa70c7;
}
.p-scrolltop .p-scrolltop-icon {
font-size: 1.5rem;
color: #151515;
}
.p-skeleton {
background-color: rgba(255, 255, 255, 0.06);
border-radius: 4px;
}
.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: #c298d8;
color: #151515;
font-size: 0.75rem;
font-weight: 700;
padding: 0.25rem 0.4rem;
border-radius: 4px;
}
.p-tag.p-tag-success {
background-color: #9fdaa8;
color: #151515;
}
.p-tag.p-tag-info {
background-color: #7fd8e6;
color: #151515;
}
.p-tag.p-tag-warning {
background-color: #ffe082;
color: #151515;
}
.p-tag.p-tag-danger {
background-color: #f19ea6;
color: #151515;
}
.p-tag .p-tag-icon {
margin-right: 0.25rem;
font-size: 0.75rem;
}
.p-terminal {
background: #2a323d;
color: rgba(255, 255, 255, 0.87);
border: 1px solid #3f4b5b;
padding: 1.25rem;
}
.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";
}
/* Vendor extensions to the designer enhanced bootstrap compatibility */
.p-breadcrumb .<API key> {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}
.p-breadcrumb .<API key>:before {
content: "/";
}
/* Customizations to the designer theme should be defined here */ |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.CardTitle = exports.CardText = exports.CardMedia = exports.CardActions = exports.Card = undefined;
var _reactCssThemr = require('react-css-themr');
var _identifiers = require('../identifiers.js');
var _Card = require('./Card.js');
var _CardActions = require('./CardActions.js');
var _CardMedia = require('./CardMedia.js');
var _CardText = require('./CardText.js');
var _CardTitle = require('./CardTitle.js');
var _avatar = require('../avatar');
var _avatar2 = <API key>(_avatar);
var _theme = require('./theme.css');
var _theme2 = <API key>(_theme);
function <API key>(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var CardTitle = (0, _CardTitle.cardTitleFactory)(_avatar2.default);
var ThemedCard = (0, _reactCssThemr.themr)(_identifiers.CARD, _theme2.default)(_Card.Card);
var ThemedCardActions = (0, _reactCssThemr.themr)(_identifiers.CARD, _theme2.default)(_CardActions.CardActions);
var ThemedCardMedia = (0, _reactCssThemr.themr)(_identifiers.CARD, _theme2.default)(_CardMedia.CardMedia);
var ThemedCardText = (0, _reactCssThemr.themr)(_identifiers.CARD, _theme2.default)(_CardText.CardText);
var ThemedCardTitle = (0, _reactCssThemr.themr)(_identifiers.CARD, _theme2.default)(CardTitle);
exports.default = ThemedCard;
exports.Card = ThemedCard;
exports.CardActions = ThemedCardActions;
exports.CardMedia = ThemedCardMedia;
exports.CardText = ThemedCardText;
exports.CardTitle = ThemedCardTitle; |
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PolygonMaskPlugin=void 0;var <API key>=require("./PolygonMaskInstance"),PolygonMaskPlugin=function(){function n(){this.id="polygonMask"}return n.prototype.getPlugin=function(n){return new <API key>.PolygonMaskInstance(n)},n.prototype.needsPlugin=function(n){var o,e;return null!==(e=null===(o=null==n?void 0:n.polygon)||void 0===o?void 0:o.enable)&&void 0!==e&&e},n}();exports.PolygonMaskPlugin=PolygonMaskPlugin; |
"use strict";
exports.__esModule = true;
exports.default = useMergeRefs;
var React = <API key>(require("react"));
var _mergeRefs = <API key>(require("../mergeRefs"));
function <API key>(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function <API key>() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); <API key> = function <API key>() { return cache; }; return cache; }
function <API key>(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = <API key>(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var <API key> = Object.defineProperty && Object.<API key>; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = <API key> ? Object.<API key>(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function useMergeRefs() {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
// TODO(memoize) #1755
return React.useMemo(function () {
return _mergeRefs.default.apply(void 0, args);
}, [].concat(args));
}
module.exports = exports.default; |
.<API key>,.fs-pagination-page{width:1px;height:1px;position:absolute;border:0;clip:rect(0 0 0 0);display:inline-block;margin:-1px;overflow:hidden;padding:0}.<API key>,.fs-pagination-first,.fs-pagination-last,.<API key>{width:auto;height:auto;position:static;clip:none;margin:0;overflow:visible}.<API key>{border:none;padding:0}.<API key>,.<API key>{display:none}.<API key> .fs-pagination-pages{width:1px;height:1px;position:absolute;border:0;clip:rect(0 0 0 0);display:inline-block;margin:-1px;overflow:hidden;padding:0}.<API key> .<API key>{position:relative;display:block}.<API key> .<API key>{height:100%;width:100%;position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;display:block;margin:auto;opacity:0} |
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<title>105</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<link href="../css/style2.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../js/ftiens4.js"></script>
<script type="text/javascript" src="../js/ua.js"></script>
<script type="text/javascript" src="../js/func.js"></script>
<script type="text/javascript" src="../js/treeP1.js"></script>
<script type="text/javascript" src="../js/refresh.js"></script>
</head>
<body id="main-body">
<div id="main-header">
<div id="main-top">
<a class="main-top-logo" href="
<ul class="main-top-list">
<li class="main-top-item"><a class="main-top-link main-top-link-home" href="../index.html"></a></li>
<li class="main-top-item"><a class="main-top-link main-top-link-cec" href="http://2016.cec.gov.tw"></a></li>
<li class="main-top-item"><a class="main-top-link <API key>" href="../../en/index.html">English</a></li>
</ul>
</div>
</div>
<div id="main-wrap">
<div id="main-banner">
<div class="slideshow">
<img src="../img/main_bg_1.jpg" width="1024" height="300" alt="background" title="background">
</div>
<div class="main-deco"></div>
<div class="main-title"></div>
<a class="main-pvpe main-pvpe-current" href="../IDX/indexP1.html"></a>
<a class="main-le" href="../IDX/indexT.html"></a>
</div>
<div id="main-container">
<div id="main-content">
<table width="1024" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="180" valign="top">
<div id="divMenu">
<table border="0">
<tr>
<td><a style="text-decoration:none;color:silver" href="http:
</tr>
</table>
<span class="TreeviewSpanArea">
<script>initializeDocument()</script>
<noscript>Javascript</noscript>
</span>
</div>
</td>
<td width="796" valign="top">
<div id="divContent">
<table width="100%" border="0" cellpadding="0" cellspacing="4">
<tr>
<td><img src="../images/search.png" alt="" title=""> <b> </b></td>
</tr>
<tr valign="bottom">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td class="fontNumber"> <img src="../images/nav.gif" alt="" title=""> <img src="../images/nav.gif" alt="" title=""> 3 <img src="../images/nav.gif" alt="" title=""> <img src="../images/nav.gif" alt="" title=""> 1</td>
<td align="right">
<select name="selector_order" class="selectC" tabindex="1" id="orderBy" onChange="changeOrder();">
<option value="n"></option>
<option value="s"></option>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="6" cellspacing="1" class="tableT">
<tr class="trHeaderT">
<td></td>
<td></td>
<td><table><tr><td></td><td rowspan=2></td></tr><td></td></table></td>
<td></td>
<td></td>
<td>%</td>
<td></td>
</tr>
<tr class="trT">
<td> </td>
<td>1</td>
<td><br></td>
<td><br></td>
<td class="tdAlignRight">72,280</td>
<td class="tdAlignRight">45.6806</td>
<td> </td>
</tr>
<tr class="trT">
<td> </td>
<td>2</td>
<td><br></td>
<td><br></td>
<td class="tdAlignRight">66,723</td>
<td class="tdAlignRight">42.1686</td>
<td> </td>
</tr>
<tr class="trT">
<td> </td>
<td>3</td>
<td><br></td>
<td><br></td>
<td class="tdAlignRight">19,226</td>
<td class="tdAlignRight">12.1507</td>
<td> </td>
</tr>
<tr class="trFooterT">
<td colspan="7" align="right">/: 168/174 </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"></td>
<td valign="top" class="fontNote">
<table>
<tr>
<td></td>
<td align="center"></td>
<td></td>
</tr>
<tr>
<td></td>
<td align="center"></td>
<td></td>
</tr>
</table>
</td>
<td valign="top" class="fontTimer"><img src="../images/clock2.png" alt="Sat, 16 Jan 2016 20:51:11 +0800" title="Sat, 16 Jan 2016 20:51:11 +0800"> 01/16 20:51:06 <br>(3)</td>
</tr>
<tr>
<td colspan="3" class="fontNote"></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<div class="main-footer"></div>
<div id="divFooter" align=center>[] </div>
<!--main-content
</div><!--main-container
</div><!--END main-wrap
<script>setOrder();</script>
<script>setMenuScrollPosY();</script>
</body>
</html> |
jsonp({"cep":"72331004","logradouro":"Quadra QR 601 Conjunto 4","bairro":"Samambaia Norte (Samambaia)","cidade":"Bras\u00edlia","uf":"DF","estado":"Distrito Federal"}); |
jsonp({"cep":"96020380","logradouro":"Rua Santos Dumont","bairro":"Centro","cidade":"Pelotas","uf":"RS","estado":"Rio Grande do Sul"}); |
jsonp({"cep":"08671035","logradouro":"Avenida Senador Roberto Simonsen","bairro":"Jardim dos Ip\u00eas","cidade":"Suzano","uf":"SP","estado":"S\u00e3o Paulo"}); |
jsonp({"cep":"04432150","logradouro":"Rua Padre Jos\u00e9 Giannella","bairro":"Jardim S\u00e3o Jorge","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"}); |
jsonp({"cep":"28060560","logradouro":"Avenida Wilson Batista","bairro":"Parque Aldeia","cidade":"Campos dos Goytacazes","uf":"RJ","estado":"Rio de Janeiro"}); |
jsonp({"cep":"38030180","logradouro":"Rua Soeur Aimee","bairro":"Leblon","cidade":"Uberaba","uf":"MG","estado":"Minas Gerais"}); |
jsonp({"cep":"56331305","logradouro":"Rua Monte Carmelo","bairro":"Vila Eul\u00e1lia","cidade":"Petrolina","uf":"PE","estado":"Pernambuco"}); |
jsonp({"cep":"06515340","logradouro":"Rua Tupys","bairro":"Tarum\u00e3","cidade":"Santana de Parna\u00edba","uf":"SP","estado":"S\u00e3o Paulo"}); |
jsonp({"cep":"74965020","logradouro":"Rua 101","bairro":"Jardim S\u00e3o Conrado","cidade":"Aparecida de Goi\u00e2nia","uf":"GO","estado":"Goi\u00e1s"}); |
jsonp({"cep":"25056100","logradouro":"Rua Prainha","bairro":"Jardim Gramacho","cidade":"Duque de Caxias","uf":"RJ","estado":"Rio de Janeiro"}); |
/**
* "Visual Paradigm: DO NOT MODIFY THIS FILE!"
*
* This is an automatic generated file. It will be regenerated every time
* you generate persistence class.
*
* Modifying its content may cause the program not work, or your work may lost.
*/
package com.speearth.model.core;
import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;
@SuppressWarnings({ "all", "unchecked" })
public class <API key> extends <API key> {
public final IntegerExpression id;
public final StringExpression tipologia;
public final IntegerExpression quantita;
public <API key>() {
super(com.speearth.model.core.Stanza.class, com.speearth.model.core.StanzaCriteria.class);
id = new IntegerExpression("id", this.getDetachedCriteria());
tipologia = new StringExpression("tipologia", this.getDetachedCriteria());
quantita = new IntegerExpression("quantita", this.getDetachedCriteria());
}
public <API key>(DetachedCriteria aDetachedCriteria) {
super(aDetachedCriteria, com.speearth.model.core.StanzaCriteria.class);
id = new IntegerExpression("id", this.getDetachedCriteria());
tipologia = new StringExpression("tipologia", this.getDetachedCriteria());
quantita = new IntegerExpression("quantita", this.getDetachedCriteria());
}
public Stanza uniqueStanza(PersistentSession session) {
return (Stanza) super.<API key>(session).uniqueResult();
}
public Stanza[] listStanza(PersistentSession session) {
List list = super.<API key>(session).list();
return (Stanza[]) list.toArray(new Stanza[list.size()]);
}
} |
jsonp({"cep":"57015385","logradouro":"Travessa S\u00e3o Francisco","bairro":"Vergel do Lago","cidade":"Macei\u00f3","uf":"AL","estado":"Alagoas"}); |
jsonp({"cep":"47160000","cidade":"Mansid\u00e3o","uf":"BA","estado":"Bahia"}); |
jsonp({"cep":"88359328","logradouro":"Rua Ivan Carlos Kohler","bairro":"Dom Joaquim","cidade":"Brusque","uf":"SC","estado":"Santa Catarina"}); |
jsonp({"cep":"14405060","logradouro":"Rua Batatais","bairro":"Jardim Rosel\u00e2ndia","cidade":"Franca","uf":"SP","estado":"S\u00e3o Paulo"}); |
jsonp({"cep":"66831009","logradouro":"Alameda Nove","bairro":"Tapan\u00e3 (Icoaraci)","cidade":"Bel\u00e9m","uf":"PA","estado":"Par\u00e1"}); |
jsonp({"cep":"74395050","logradouro":"Rua R 15","bairro":"Loteamento Solar Santa Rita","cidade":"Goi\u00e2nia","uf":"GO","estado":"Goi\u00e1s"}); |
jsonp({"cep":"26041255","logradouro":"Rua Heric Regis","bairro":"Jardim Corumb\u00e1","cidade":"Nova Igua\u00e7u","uf":"RJ","estado":"Rio de Janeiro"}); |
jsonp({"cep":"20220230","logradouro":"Pra\u00e7a Vasconcelos Quere","bairro":"Santo Cristo","cidade":"Rio de Janeiro","uf":"RJ","estado":"Rio de Janeiro"}); |
jsonp({"cep":"23092395","logradouro":"Rua Averrois Celular","bairro":"Campo Grande","cidade":"Rio de Janeiro","uf":"RJ","estado":"Rio de Janeiro"}); |
jsonp({"cep":"13218625","logradouro":"Rua Cinco","bairro":"Vale Azul II","cidade":"Jundia\u00ed","uf":"SP","estado":"S\u00e3o Paulo"}); |
jsonp({"cep":"74475236","logradouro":"Rua L\u00edrios","bairro":"Setor Morada do Sol","cidade":"Goi\u00e2nia","uf":"GO","estado":"Goi\u00e1s"}); |
jsonp({"cep":"29179332","logradouro":"Rua Para\u00edba","bairro":"Centro da Serra","cidade":"Serra","uf":"ES","estado":"Esp\u00edrito Santo"}); |
jsonp({"cep":"52121580","logradouro":"Rua Constan\u00e7a","bairro":"Campina do Barreto","cidade":"Recife","uf":"PE","estado":"Pernambuco"}); |
jsonp({"cep":"37504092","logradouro":"Rua Doutor Jo\u00e3o Grilo Pinto","bairro":"Santos Dumont","cidade":"Itajub\u00e1","uf":"MG","estado":"Minas Gerais"}); |
jsonp({"cep":"82520720","logradouro":"Rua Van Gogh","bairro":"Bacacheri","cidade":"Curitiba","uf":"PR","estado":"Paran\u00e1"}); |
package es.thesinsprods.zagastales.juegozagas.jugar.master.jugador6;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.Font;
import java.awt.Color;
import javax.swing.SwingConstants;
import javax.swing.JTextField;
import javax.swing.JButton;
import javax.swing.border.BevelBorder;
import es.thesinsprods.resources.font.MorpheusFont;
import es.thesinsprods.zagastales.juegozagas.jugar.master.JugarOnline;
import javax.swing.ImageIcon;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.ActionEvent;
import java.awt.Toolkit;
public class MagiaJugadores {
private JFrame frmHistoriasDeZagas;
private JTextField textField;
private JTextField textField_1;
private JTextField textField_2;
public JFrame <API key>() {
return frmHistoriasDeZagas;
}
public void <API key>(JFrame frmHistoriasDeZagas) {
this.frmHistoriasDeZagas = frmHistoriasDeZagas;
}
private JTextField textField_3;
private JTextField textField_4;
private JTextField textField_5;
private JTextField textField_6;
private JTextField textField_7;
MorpheusFont mf = new MorpheusFont();
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
MagiaJugadores window = new MagiaJugadores();
window.frmHistoriasDeZagas.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the application.
*/
public MagiaJugadores() {
initialize();
}
/**
* Initialize the contents of the frame.
*/
private void initialize() {
frmHistoriasDeZagas = new JFrame();
frmHistoriasDeZagas.setIconImage(Toolkit.getDefaultToolkit().getImage(MagiaJugadores.class.getResource("/images/Historias de Zagas, logo.png")));
frmHistoriasDeZagas.setTitle("Historias de Zagas");
frmHistoriasDeZagas.setResizable(false);
frmHistoriasDeZagas.setBounds(100, 100, 337, 495);
frmHistoriasDeZagas.<API key>(JFrame.DO_NOTHING_ON_CLOSE);
frmHistoriasDeZagas.getContentPane().setLayout(null);
JLabel lblConocimientos = new JLabel("Magia");
lblConocimientos.<API key>(SwingConstants.CENTER);
lblConocimientos.setForeground(Color.WHITE);
lblConocimientos.setFont(mf.MyFont(0, 36));
lblConocimientos.setBounds(10, 0, 312, 60);
frmHistoriasDeZagas.getContentPane().add(lblConocimientos);
JLabel lblArteDeLa = new JLabel("Fuego:");
lblArteDeLa.setForeground(Color.WHITE);
lblArteDeLa.setFont(mf.MyFont(0,18));
lblArteDeLa.setBounds(10, 66, 179, 30);
frmHistoriasDeZagas.getContentPane().add(lblArteDeLa);
textField = new JTextField();
textField.setText(""+JugarOnline.personaje6.getMagicSkills().getFire());
textField.<API key>(SwingConstants.CENTER);
textField.setEditable(false);
textField.setColumns(10);
textField.setBounds(248, 66, 50, 30);
frmHistoriasDeZagas.getContentPane().add(textField);
JLabel lblDiplomacia = new JLabel("Agua:");
lblDiplomacia.setForeground(Color.WHITE);
lblDiplomacia.setFont(mf.MyFont(0,18));
lblDiplomacia.setBounds(10, 107, 179, 30);
frmHistoriasDeZagas.getContentPane().add(lblDiplomacia);
textField_1 = new JTextField();
textField_1.setText(""+JugarOnline.personaje6.getMagicSkills().getWater());
textField_1.<API key>(SwingConstants.CENTER);
textField_1.setEditable(false);
textField_1.setColumns(10);
textField_1.setBounds(248, 107, 50, 30);
frmHistoriasDeZagas.getContentPane().add(textField_1);
JLabel lblEtiqueta = new JLabel("Tierra:");
lblEtiqueta.setForeground(Color.WHITE);
lblEtiqueta.setFont(mf.MyFont(0,18));
lblEtiqueta.setBounds(10, 148, 164, 30);
frmHistoriasDeZagas.getContentPane().add(lblEtiqueta);
textField_2 = new JTextField();
textField_2.setText(""+JugarOnline.personaje6.getMagicSkills().getEarth());
textField_2.<API key>(SwingConstants.CENTER);
textField_2.setEditable(false);
textField_2.setColumns(10);
textField_2.setBounds(248, 148, 50, 30);
frmHistoriasDeZagas.getContentPane().add(textField_2);
JLabel lblMedicina = new JLabel("Viento:");
lblMedicina.setForeground(Color.WHITE);
lblMedicina.setFont(mf.MyFont(0,18));
lblMedicina.setBounds(10, 189, 179, 30);
frmHistoriasDeZagas.getContentPane().add(lblMedicina);
textField_3 = new JTextField();
textField_3.setText(""+JugarOnline.personaje6.getMagicSkills().getWind());
textField_3.<API key>(SwingConstants.CENTER);
textField_3.setEditable(false);
textField_3.setColumns(10);
textField_3.setBounds(248, 189, 50, 30);
frmHistoriasDeZagas.getContentPane().add(textField_3);
JLabel lblOcultismo = new JLabel("Dru\u00EDdica:");
lblOcultismo.setForeground(Color.WHITE);
lblOcultismo.setFont(mf.MyFont(0,18));
lblOcultismo.setBounds(10, 230, 100, 30);
frmHistoriasDeZagas.getContentPane().add(lblOcultismo);
textField_4 = new JTextField();
textField_4.setText(""+JugarOnline.personaje6.getMagicSkills().getDruidic());
textField_4.<API key>(SwingConstants.CENTER);
textField_4.setEditable(false);
textField_4.setColumns(10);
textField_4.setBounds(248, 230, 50, 30);
frmHistoriasDeZagas.getContentPane().add(textField_4);
JLabel lblNegociacin = new JLabel("Blanca:");
lblNegociacin.setForeground(Color.WHITE);
lblNegociacin.setFont(mf.MyFont(0,18));
lblNegociacin.setBounds(10, 271, 164, 30);
frmHistoriasDeZagas.getContentPane().add(lblNegociacin);
textField_5 = new JTextField();
textField_5.setText(""+JugarOnline.personaje6.getMagicSkills().getWhite());
textField_5.<API key>(SwingConstants.CENTER);
textField_5.setEditable(false);
textField_5.setColumns(10);
textField_5.setBounds(248, 271, 50, 30);
frmHistoriasDeZagas.getContentPane().add(textField_5);
JLabel lblNegociacin_1 = new JLabel("Negra:");
lblNegociacin_1.setForeground(Color.WHITE);
lblNegociacin_1.setFont(mf.MyFont(0,18));
lblNegociacin_1.setBounds(10, 312, 179, 30);
frmHistoriasDeZagas.getContentPane().add(lblNegociacin_1);
textField_6 = new JTextField();
textField_6.setText(""+JugarOnline.personaje6.getMagicSkills().getBlack());
textField_6.<API key>(SwingConstants.CENTER);
textField_6.setEditable(false);
textField_6.setColumns(10);
textField_6.setBounds(248, 312, 50, 30);
frmHistoriasDeZagas.getContentPane().add(textField_6);
JLabel <API key> = new JLabel("Arcana:");
<API key>.setForeground(Color.WHITE);
<API key>.setFont(mf.MyFont(0,18));
<API key>.setBounds(10, 353, 206, 30);
frmHistoriasDeZagas.getContentPane().add(<API key>);
textField_7 = new JTextField();
textField_7.setText(""+JugarOnline.personaje6.getMagicSkills().getArcane());
textField_7.<API key>(SwingConstants.CENTER);
textField_7.setEditable(false);
textField_7.setColumns(10);
textField_7.setBounds(248, 353, 50, 30);
frmHistoriasDeZagas.getContentPane().add(textField_7);
final JButton button = new JButton("");
button.addMouseListener(new MouseAdapter() {
@Override
public void mousePressed(MouseEvent e) {
button.setIcon(new ImageIcon(AtributosJugadores.class.getResource("/images/boton atras2.png")));
}
@Override
public void mouseReleased(MouseEvent e) {
button.setIcon(new ImageIcon(AtributosJugadores.class.getResource("/images/boton atras.png")));
}
});
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
frmHistoriasDeZagas.dispose();
}
});
button.setIcon(new ImageIcon(MagiaJugadores.class.getResource("/images/boton atras.png")));
button.setOpaque(false);
button.setForeground(Color.WHITE);
button.setFocusPainted(false);
button.<API key>(false);
button.setBorderPainted(false);
button.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,
null, null));
button.setBackground(new Color(139, 69, 19));
button.setBounds(10, 420, 105, 35);
frmHistoriasDeZagas.getContentPane().add(button);
JLabel label = new JLabel("");
label.setIcon(new ImageIcon(MagiaJugadores.class.getResource("/images/background-jugar.jpg")));
label.setBounds(0, 0, 331, 466);
frmHistoriasDeZagas.getContentPane().add(label);
}
} |
<!DOCTYPE html PUBLIC "-
<html xmlns="http:
<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.10"/>
<title>MCCE Developer Manual: ATOM_STRUCT Struct 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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</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 id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">MCCE Developer Manual
</div>
</td>
<td> <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>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structATOM__STRUCT.html','');});
</script>
<div id="doc-content">
<!-- 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="<API key>">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-attribs">Public Attributes</a> |
<a href="<API key>.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">ATOM_STRUCT Struct Reference</div> </div>
</div><!--header
<div class="contents">
<div class="dynheader">
Collaboration diagram for ATOM_STRUCT:</div>
<div class="dyncontent">
<div class="center"><img src="<API key>.png" border="0" usemap="#<API key>" alt="Collaboration graph"/></div>
<map name="<API key>" id="<API key>">
<area shape="rect" id="node2" href="structVECTOR.html" title="VECTOR" alt="" coords="27,5,106,32"/>
</map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
int </td><td class="memItemRight" valign="bottom"><b>index</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
char </td><td class="memItemRight" valign="bottom"><b>on</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
int </td><td class="memItemRight" valign="bottom"><b>cal_vdw</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
char </td><td class="memItemRight" valign="bottom"><b>name</b> [5]</td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
int </td><td class="memItemRight" valign="bottom"><b>serial</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
char </td><td class="memItemRight" valign="bottom"><b>resName</b> [4]</td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
char </td><td class="memItemRight" valign="bottom"><b>confName</b> [6]</td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
char </td><td class="memItemRight" valign="bottom"><b>chainID</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
int </td><td class="memItemRight" valign="bottom"><b>resSeq</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
char </td><td class="memItemRight" valign="bottom"><b>iCode</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
char </td><td class="memItemRight" valign="bottom"><b>altLoc</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
char </td><td class="memItemRight" valign="bottom"><b>confID</b> [4]</td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
int </td><td class="memItemRight" valign="bottom"><b>iConf</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
<a class="el" href="structVECTOR.html">VECTOR</a> </td><td class="memItemRight" valign="bottom"><b>xyz</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
<a class="el" href="structVECTOR.html">VECTOR</a> </td><td class="memItemRight" valign="bottom"><b>r_orig</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
float </td><td class="memItemRight" valign="bottom"><b>crg</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
float </td><td class="memItemRight" valign="bottom"><b>rad</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
float </td><td class="memItemRight" valign="bottom"><b>rad_backup</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
float </td><td class="memItemRight" valign="bottom"><b>vdw_rad</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
float </td><td class="memItemRight" valign="bottom"><b>vdw_eps</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
float </td><td class="memItemRight" valign="bottom"><b>sas</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
char </td><td class="memItemRight" valign="bottom"><b>history</b> [12]</td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
struct <a class="el" href="structATOM__STRUCT.html">ATOM_STRUCT</a> * </td><td class="memItemRight" valign="bottom"><b>connect12</b> [MAX_CONNECTED]</td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
int </td><td class="memItemRight" valign="bottom"><b>connect12_res</b> [MAX_CONNECTED]</td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
int </td><td class="memItemRight" valign="bottom"><b>i_atom_prot</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
int </td><td class="memItemRight" valign="bottom"><b>i_atom_conf</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
int </td><td class="memItemRight" valign="bottom"><b>i_conf_res</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
int </td><td class="memItemRight" valign="bottom"><b>i_res_prot</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:<API key>"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="<API key>"></a>
int </td><td class="memItemRight" valign="bottom"><b>i_elem</b></td></tr>
<tr class="separator:<API key>"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>/home/mcce/mcce3.5/<a class="el" href="mcce_8h_source.html">mcce.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="structATOM__STRUCT.html">ATOM_STRUCT</a></li>
<li class="footer">Generated by
<a href="http:
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
</ul>
</div>
</body>
</html> |
jsonp({"cep":"26262250","logradouro":"Rua Lu\u00eds Maria Ribeiro","bairro":"Comendador Soares","cidade":"Nova Igua\u00e7u","uf":"RJ","estado":"Rio de Janeiro"}); |
jsonp({"cep":"06240160","logradouro":"Rua Piacatu","bairro":"Munhoz J\u00fanior","cidade":"Osasco","uf":"SP","estado":"S\u00e3o Paulo"}); |
#Github-basics
Remote repo to help me test out my Github skills!
This really needs another header
[I'm learning this on lynda.com!](http:
Added this line from the Github interface. |
jsonp({"cep":"04840760","logradouro":"Rua Rembrandt","bairro":"Conjunto Habitacional Brigadeiro Faria Lima","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"}); |
jsonp({"cep":"03380210","logradouro":"Rua Seurrebes Barbosa","bairro":"Vila Olinda","cidade":"S\u00e3o Paulo","uf":"SP","estado":"S\u00e3o Paulo"}); |
jsonp({"cep":"88808333","logradouro":"Rua Jo\u00e3o Ana Marcelino","bairro":"S\u00e3o Defende","cidade":"Crici\u00fama","uf":"SC","estado":"Santa Catarina"}); |
jsonp({"cep":"29041285","logradouro":"Rua Zaluar Dias","bairro":"Nazareth","cidade":"Vit\u00f3ria","uf":"ES","estado":"Esp\u00edrito Santo"}); |
jsonp({"cep":"77019062","logradouro":"Quadra 1103 Sul Alameda 23","bairro":"Plano Diretor Sul","cidade":"Palmas","uf":"TO","estado":"Tocantins"}); |
FROM gugod/perlcritic:latest
RUN curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b /usr/local/bin |
@import url(http://fonts.googleapis.com/css?family=Barlow:200,400,600,900);
@import url(http://fonts.googleapis.com/css?family=Barlow+Semi+Condensed:200,400,600,800);
@import url(http://fonts.googleapis.com/css?family=Barlow+Condensed:200,400,600,900);
@import url(http://fonts.googleapis.com/css?family=Titillium+Web:400,600,900);
@import url(http://fonts.googleapis.com/css?family=Bowlby+One);
@import url(http://fonts.googleapis.com/css?family=Cabin:200,400,600);
@media screen {
/* Move down content because we have a fixed navbar text- is 50px tall */
html {
font-size:14px;
}
body {
padding-top: 50px;
font-family: 'Open Sans', sans-serif;
line-height: 1.4em;
background-color: #fefefe;
font-size: 1rem;
}
.month, .time, .place {
font-family: 'Barlow';
font-size: calc( 1rem + 36 * ((100vw - 500px) / 1500));
line-height: calc( 1rem + 36 * ((100vw - 500px) / 1500));
font-size: 1.2rem;
line-height: 1.2rem;
color:#333;
font-weight:400;
text-transform:uppercase;
}
.month {
font-size:1.5rem;
font-weight:400;
font-family: 'Barlow Condensed';
margin-bottom:0;
}
.time, .place {
margin: 0rem 0 .1rem 0;
font-family: 'Barlow Semi Condensed';
font-family: 'Barlow Condensed';
color:#555;
}
.place {
margin: 0em 0 0em 0;
}
.day, h2.person {
font-family: 'Barlow Condensed', sans-serif;
font-size: calc( 2.2rem + 60 * ((100vw - 500px) / 1500));
line-height: calc( 2.2rem + 60 * ((100vw - 500px) / 1500));
font-weight:600;
margin: 0rem 0 .8rem 0;
}
.day {
}
h2.person {
}
.text-lg-right {
text-align:right;
border-right:3px solid #444;
}
.talk-desc {
margin-left:1rem;
}
.jumbotron {
padding-top:4em;
padding-bottom:4em;
margin-bottom: 0em;
text-align:center;
}
.jumbotron.narrow {
padding-top:1em;
padding-bottom:1em;
font-size:1em;
}
.brown {
background-color: #673d36;
background-color:#ed7d4c;
background-color:#8ebcd6;
}
.navbar {
}
.navbar, .navbar-brand {
font-size:1.5rem;
font-family: 'Barlow Semi Condensed';
text-transform:uppercase;
margin-bottom:0;
}
.row-talk {
margin-top: 3em;
margin-bottom: 3em;
padding-bottom:1rem;
border-bottom: 5px solid #ccc;
min-height: 8em;
}
.row-talk:first-of-type {
margin-top:0;
}
.previous-talks {
font-size:.9rem;
padding-bottom:2rem;
border-bottom:5px solid #ccc;
}
.navbar-nav>li>a {
line-height:2rem;
}
.nogrid {
max-width: 45em;
}
.talk-poster {
margin-top: 1em;
margin-bottom:0;
box-shadow: 3px 3px 5px grey;
}
p {
font-family: 'Open Sans', sans-serif;
font-family: 'Cabin', sans-serif;
margin-bottom: 1.5em;
font-size: calc( 1rem + 6 * ((100vw - 500px) / 1500));
line-height:1.4em;
font-weight:200;
}
p.abstract {
text-align: justify;
color:#333;
}
.next-meeting {
border:4px solid #673d36;
padding:2rem 1rem;
background:#ed7d4c;
background:#fcf3ef;
background:#f6f6f6;
margin-top:0em;
color:#333;
}
.next-meeting p {
color:#333;
}
a {
color: #ed7d4c;
}
.next-meeting a {
color:#c00;
text-transform:uppercase;
}
h1, h2, h3, h4, h5 {
font-family: 'Barlow', sans-serif;
}
h1 {
margin-top:1rem;
font-family: 'Titillium Web', sans-serif;
font-weight: 800;
font-size: 3rem;
}
.jumbotron.main {
background-color:#ed7d4c;
}
.orange {
color:#ed7d4c;
}
.jumbotron h1{
color:#fff;
font-size: calc(52px + (140 - 52) * ((100vw - 300px) / (1600 - 300)));
text-transform:uppercase;
font-weight:800;
}
.jumbotron h2 {
color:#673d36;
color:#555;
color:#eee;
font-size: calc(24px + (38 - 24) * ((100vw - 300px) / (1600 - 300)));
font-weight: 600;
line-height:130%;
}
.jumbotron h3 {
font-family: 'Bowlby One', sans-serif;
font-weight:600;
color:#eceae5;
color:#ffffff;
letter-spacing:.22rem;
font-size: calc(24px + (84 - 24) * ((100vw - 300px) / (1600 - 300)));
text-transform:uppercase;
margin-top: 0em;
line-height:1.2em;
}
h3.title {
font-family: 'Barlow Semi Condensed', sans-serif;
font-weight: 600;
text-transform: uppercase;
color:#333;
font-size: 2rem;
margin: 1rem 0 .5rem 0;
}
h4.subtitle {
font-weight: 400;
color:#666;
font-size: 1.5rem;
margin: 0 0 1rem 0;
}
h4 {
color:#bbb;
font-size:1.2em;
}
hr {
margin-top: 2em;
margin-bottom: 2em;
}
.home-bar {
padding-top:4em;
padding-bottom: 4em;
display:flex;
align-items:center;
text-align:center;
border-bottom:.0 solid #8ebcd6;
color:#fff;
background-color: #eceae5;
color:#555;
}
.home-blurb {
}
.text-justify {
}
.highlight {
color: #3c8b94;
}
footer {
padding: 2em;
background-color: #673d36;
color:#eceae5;
text-align: center;
}
.vertical-center {
min-height: 100%; /* Fallback for browsers do NOT support vh unit */
min-height: 100vh; /* These two lines are counted as one :-) */
display: flex;
align-items: center;
}
.section-photo-break {
height: 500px;
<API key>: fixed;
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
border-bottom: 0;
}
.photo1 {
background-image: url(/images/digital-mapping-sm/Mexico-1700s-the.jpg);
}
.photo2 {
background-image: url(/images/digital-mapping-sm/<API key>.jpg);
}
.photo3 {
background-image: url(/images/digital-mapping-sm/5840059.jpg);
}
.photo4 {
background-image: url(/images/digital-mapping-sm/dsc_0052.jpg);
}
.photo5 {
background-image: url(/images/digital-mapping-sm/1071012.jpg);
}
.photo6 {
background-image: url(/images/digital-mapping-sm/Mexico-1700s-the.jpg);
}
} /* end media screen */ |
jsonp({"cep":"74120970","logradouro":"Rua Jo\u00e3o de Abreu","bairro":"Setor Oeste","cidade":"Goi\u00e2nia","uf":"GO","estado":"Goi\u00e1s"}); |
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<title>105</title>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<link href="../css/style2.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../js/ftiens4.js"></script>
<script type="text/javascript" src="../js/ua.js"></script>
<script type="text/javascript" src="../js/func.js"></script>
<script type="text/javascript" src="../js/treeP1.js"></script>
<script type="text/javascript" src="../js/refresh.js"></script>
</head>
<body id="main-body">
<div id="main-header">
<div id="main-top">
<a class="main-top-logo" href="
<ul class="main-top-list">
<li class="main-top-item"><a class="main-top-link main-top-link-home" href="../index.html"></a></li>
<li class="main-top-item"><a class="main-top-link main-top-link-cec" href="http://2016.cec.gov.tw"></a></li>
<li class="main-top-item"><a class="main-top-link <API key>" href="../../en/index.html">English</a></li>
</ul>
</div>
</div>
<div id="main-wrap">
<div id="main-banner">
<div class="slideshow">
<img src="../img/main_bg_1.jpg" width="1024" height="300" alt="background" title="background">
</div>
<div class="main-deco"></div>
<div class="main-title"></div>
<a class="main-pvpe main-pvpe-current" href="../IDX/indexP1.html"></a>
<a class="main-le" href="../IDX/indexT.html"></a>
</div>
<div id="main-container">
<div id="main-content">
<table width="1024" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="180" valign="top">
<div id="divMenu">
<table border="0">
<tr>
<td><a style="text-decoration:none;color:silver" href="http:
</tr>
</table>
<span class="TreeviewSpanArea">
<script>initializeDocument()</script>
<noscript>Javascript</noscript>
</span>
</div>
</td>
<td width="796" valign="top">
<div id="divContent">
<table width="100%" border="0" cellpadding="0" cellspacing="4">
<tr>
<td><img src="../images/search.png" alt="" title=""> <b> </b></td>
</tr>
<tr valign="bottom">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td class="fontNumber"> <img src="../images/nav.gif" alt="" title=""> <img src="../images/nav.gif" alt="" title=""> 3 <img src="../images/nav.gif" alt="" title=""> <img src="../images/nav.gif" alt="" title=""> 1</td>
<td align="right">
<select name="selector_order" class="selectC" tabindex="1" id="orderBy" onChange="changeOrder();">
<option value="n"></option>
<option value="s"></option>
</select>
</td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="6" cellspacing="1" class="tableT">
<tr class="trHeaderT">
<td></td>
<td></td>
<td><table><tr><td></td><td rowspan=2></td></tr><td></td></table></td>
<td></td>
<td></td>
<td>%</td>
<td></td>
</tr>
<tr class="trT">
<td> </td>
<td>1</td>
<td><br></td>
<td><br></td>
<td class="tdAlignRight">2,377</td>
<td class="tdAlignRight">24.9240</td>
<td> </td>
</tr>
<tr class="trT">
<td> </td>
<td>2</td>
<td><br></td>
<td><br></td>
<td class="tdAlignRight">6,046</td>
<td class="tdAlignRight">63.3952</td>
<td> </td>
</tr>
<tr class="trT">
<td> </td>
<td>3</td>
<td><br></td>
<td><br></td>
<td class="tdAlignRight">1,114</td>
<td class="tdAlignRight">11.6808</td>
<td> </td>
</tr>
<tr class="trFooterT">
<td colspan="7" align="right">/: 15/15 </td>
</tr>
</table>
</td>
</tr>
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"></td>
<td valign="top" class="fontNote">
<table>
<tr>
<td></td>
<td align="center"></td>
<td></td>
</tr>
<tr>
<td></td>
<td align="center"></td>
<td></td>
</tr>
</table>
</td>
<td valign="top" class="fontTimer"><img src="../images/clock2.png" alt="Sat, 16 Jan 2016 21:06:12 +0800" title="Sat, 16 Jan 2016 21:06:12 +0800"> 01/16 21:06:06 <br>(3)</td>
</tr>
<tr>
<td colspan="3" class="fontNote"></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<div class="main-footer"></div>
<div id="divFooter" align=center>[] </div>
<!--main-content
</div><!--main-container
</div><!--END main-wrap
<script>setOrder();</script>
<script>setMenuScrollPosY();</script>
</body>
</html> |
(function($, Edge, compId){
var Composition = Edge.Composition, Symbol = Edge.Symbol;
//Edge symbol: 'stage'
(function(symbolName) {
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 1000, function(sym, e) {
sym.$("effectDiv").remove();
});
//Edge binding end
Symbol.bindSymbolAction(compId, symbolName, "creationComplete", function(sym, e) {
sym.setVariable("mySoundEvent", 0);
sym.setVariable("mySoundError", 0);
sym.setVariable("mySoundAmbient", 0);
sym.setVariable("myNoise", 0);
var shadow1 = "0 1px 3px 0 rgba(0, 0, 0, 0.5), 0 1px 2px 0 rgba(0, 0, 0, 0.6)";
var shadow2 = "0 6px 10px 0 rgba(0, 0, 0, 0.3), 0 2px 2px 0 rgba(0, 0, 0, 0.2)";
var shadow3 = "10px 8px 15px 0 rgba(0, 0, 0, 0.3), 0 1px 1px 0 rgba(0, 0, 0, 0.3)"
var arrayTile = [];
var arrayNumb1 = [1,3,5,7,2,4,6,8,2,5,8,11,1,9,17,25,1,1,2,4];
var arrayNumb2 = [2,4,8,9,7,3,3,10,24,28,19,1,4,5,10];
var cont=0,valMp3=true;
var <API key> = [true,false];
var arrayTempo=[],myArrayFeedbackObj=[];
var beforeBool;
var chars=null,limit=2, text="", textGlobal;
function feedBackObj(arrayNumb, feedback) {
this.arrayNumb = arrayNumb;
this.feedback = feedback;
}
mySoundEvent = new Howl({
urls: ['media/TinyButtonPush.ogg','media/TinyButtonPush.mp3']
});
mySoundError = new Howl({
urls: ['media/beep-10.ogg','media/beep-10.mp3']
});
myNoise = new Howl({
urls: ['media/noise.ogg','media/noise.mp3'],
onend: function() {
sym.getSymbol("simIntrucciones").play("end");
}
});
(function($){
$.fn.extend({
numAnim: function(options) {
if ( ! this.length)
return false;
this.defaults = {
endAt: 2560,
numClass: 'autogen-num',
duration: 5, // seconds
interval: 90
};
var settings = $.extend({}, this.defaults, options);
var $num = $('<span/>', {
'class': settings.numClass
});
return this.each(function() {
var $this = $(this);
// Wrap each number in a tag.
var frag = document.<API key>(),
numLen = settings.endAt.toString().length;
for (x = 0; x < numLen; x++) {
var rand_num = Math.floor( Math.random() * 10 );
frag.appendChild( $num.clone().text(rand_num)[0] )
}
$this.empty().append(frag);
var get_next_num = function(num) {
++num;
if (num > 9) return 0;
return num;
};
// Iterate each number.
$this.find('.' + settings.numClass).each(function() {
var $num = $(this),
num = parseInt( $num.text() );
var interval = setInterval( function() {
num = get_next_num(num);
$num.text(num);
}, settings.interval);
setTimeout( function() {
clearInterval(interval);
}, settings.duration * 1000 - settings.interval);
});
setTimeout( function() {
$this.text( settings.endAt.toString() );
}, settings.duration * 1000);
});
}
});
})(jQuery);
sym.addEventInstruccion = function () {
sym.getSymbol("simMenu").$("simIntruccion3").click(function() {
mySoundAmbient.volume(0.25);
myNoise.play();
bootbox.dialog({
message: "<p style='font-family:Arial, Helvetica, sans-serif;font-size:18px;font-style:;'>"+
"Digita el número que falta en la secuencia que aparece en la pantalla</p>",
title: "<h2 style='font-family:Arial, Helvetica, sans-serif;margin-top:10;margin-bottom:0;'>Instrucciones<h2>",
closeButton:false,
buttons: {
main: {
label: "Aceptar!",
className: "btn-primary",
callback: function() {
myNoise.stop();
mySoundAmbient.volume(0.5);
}
}
}
});
setStyleModal();
});
}
sym.putNumbers = function (){
if(arrayNumb1.length != 0 && arrayNumb1.length != 0){
for(var i=0;i<5;i++)
sym.$("hed"+(i)).children().remove();
var x=randomArray();
arrayTempo=[];
if(x){
if(arrayNumb1.length != 0){
sym.$("hed0").show();
for(var i=0;i<4;i++){
sym.$("hed"+(i)).html("<p id='p"+i+"' class='pClass'><p>")
$("#p"+(i)).numAnim({
endAt: arrayNumb1[i],
duration: 2
});
}
createPlaceholder("hed4");
for(var i=0; i<4; i++){
arrayTempo[i]=arrayNumb1[0];
arrayNumb1.splice(0,1);
}
}
}
else{
if(arrayNumb1.length != 0){
createPlaceholder("hed3");
sym.$("hed0").hide();
for(var i=0;i<3;i++){
if(i==2)
sym.$("hed"+(i+2)).html("<p id='p"+i+"' class='pClass'><p>")
else
sym.$("hed"+(i+1)).html("<p id='p"+i+"' class='pClass'><p>")
$("#p"+(i)).numAnim({
endAt: arrayNumb2[i],
duration: 2
});
}
for(var i=0; i<3; i++){
arrayTempo[i]=arrayNumb2[0];
arrayNumb2.splice(0,1);
}
}
}
}
else{
$('#myT1').attr('readonly', 'true');
sym.$("dintro").addClass("fired");
sym.$("dC").addClass("fired");
for(var i=0;i<10;i++){
sym.$("d"+(i)).addClass("fired");
}
for(var i=0;i<5;i++)
sym.$("hed"+(i)).children().remove();
}
}
setStyle();
function setStyle(){
sym.$(".tile").css({"box-shadow":shadow1});
sym.$("calcContainer").css({"box-shadow":shadow3});
mySoundEvent.volume(1.0);
}
sym.createTileEvents = function (){
var elementX;
for(var i=0;i<13;i++){
if(i==12)
elementX=sym.$("dWatch");
if(i==11)
elementX=sym.$("dC");
if(i==10)
elementX=sym.$("dintro");
if(i<10)
elementX=sym.$("d"+(i));
elementX.click(function(){
if(sym.$(this).hasClass('fired') == false){
mySoundEvent.play();
}
});
elementX.mousedown(function(event) {
if(sym.$(this).hasClass('fired') == false){
tweenDown(this);
writeCalc(this);
}
});
elementX.mouseup(function(event) {
if(sym.$(this).hasClass('fired') == false){
tweenUp(this);
}
});
arrayTile[i]=elementX;
}
}
function tweenDown(index){
TweenLite.to(index, 0.2, {
autoAlpha : 0.75,
boxShadow : shadow2,
scale : 0.95
});
}
function tweenUp(index, indexText){
TweenLite.to(index, 0.2, {
autoAlpha : 1,
boxShadow: shadow1,
scale : 1,
x : this.x,
y : this.y,
});
}
function writeCalc(index){
if(index.id=="Stage_dWatch"){
setTimeout(function(){
showResult()},100);
}
else{
dd();
switch (index.id) {
case "Stage_d0":
if(chars < limit){
sym.$("#myT1").val(textGlobal+"0");
mySoundEvent.volume(1.0);
}
else{
mySoundError.play();mySoundEvent.volume(0.0);}
break;
case "Stage_d1":
if(chars < limit){
sym.$("#myT1").val(textGlobal+"1");
mySoundEvent.volume(1.0);
}
else{
mySoundError.play();mySoundEvent.volume(0.0);}
break;
case "Stage_d2":
if(chars < limit){
mySoundEvent.volume(1.0);
sym.$("#myT1").val(textGlobal+"2");
}
else{
mySoundError.play();mySoundEvent.volume(0.0);}
break;
case "Stage_d3":
if(chars < limit){
mySoundEvent.volume(1.0);
sym.$("#myT1").val(textGlobal+"3");
}
else{
mySoundError.play();mySoundEvent.volume(0.0);}
break;
case "Stage_d4":
if(chars < limit){
mySoundEvent.volume(1.0);
sym.$("#myT1").val(textGlobal+"4");
}
else{
mySoundError.play();mySoundEvent.volume(0.0);}
break;
case "Stage_d5":
if(chars < limit){
mySoundEvent.volume(1.0);
sym.$("#myT1").val(textGlobal+"5");
}
else{
mySoundError.play();mySoundEvent.volume(0.0);}
break;
case "Stage_d6":
if(chars < limit){
mySoundEvent.volume(1.0);
sym.$("#myT1").val(textGlobal+"6");
}
else{
mySoundError.play();mySoundEvent.volume(0.0);}
break;
case "Stage_d7":
if(chars < limit){
mySoundEvent.volume(1.0);
sym.$("#myT1").val(textGlobal+"7");
}
else{
mySoundError.play();mySoundEvent.volume(0.0);}
break;
case "Stage_d8":
if(chars < limit){
mySoundEvent.volume(1.0);
sym.$("#myT1").val(textGlobal+"8");
}
else{
mySoundError.play();mySoundEvent.volume(0.0);}
break;
case "Stage_d9":
if(chars < limit){
mySoundEvent.volume(1.0);
sym.$("#myT1").val(textGlobal+"9");
}
else{
mySoundError.play();mySoundEvent.volume(0.0);}
break;
case "Stage_dintro":
if(nextStep())
sym.putNumbers();
else{
mySoundEvent.volume(0.0);
mySoundError.play();
}
case "Stage_dC":
mySoundEvent.volume(1.0);
sym.$("#myT1").val("");
break;
}
}
}
function effectKey(index){
tweenDown(index);
setTimeout(function(){
tweenUp(index)},100);
}
function dd(){
textGlobal = $("#myT1").val();
chars = textGlobal.length;
}
function randomArray () {
if (<API key>.length==0){
<API key>=[true,false];
}
do{
var index=Math.floor(Math.random()*<API key>.length);
var val=<API key>[index];
}while(val==beforeBool);
beforeBool=val;
<API key>.splice(index,1);
return val;
}
function createPlaceholder(index){
var myTextArea1='<textarea id="myT1" maxlength="2" type="number" class="myPlaceholder" style="color:white;" placeholder="?"></textarea>';
var hDiv=sym.$(index).height();
var wDiv=sym.$(index).width();
sym.$(index).html(myTextArea1);
sym.$(".myPlaceholder").css({"color" : "white", "font-style": "bold", "width": wDiv, "height": hDiv});
sym.$(".myPlaceholder").css({"background-color": "rgba(0,0,0,0.9", "resize": "none",'text-align': 'center'});
sym.$(".myPlaceholder").css({"font-size": "60px","overflow":"hidden"});
attachEvents();
}
function nextStep(){
text = sym.$("#myT1").val();
if((sym.$("#myT1").hasClass('fired') == false) && text !=""){
sym.$("#myT1").val("");
effectKey(arrayTile[10]);
myClassTemp = new feedBackObj(arrayTempo, text);
myArrayFeedbackObj.push(myClassTemp);
return 1;
}
else
return 0;
}
function showResult(){
if(myArrayFeedbackObj.length!=0){
var myString="",myString2="";
var myTable="<table class='table table-hover'>"+
"<thead>"+
"<tr>"+
"<th style='text-align:center; font-size:19px'>Num.</th>"+
"<th style='text-align:center; font-size:19px'>Secuencia</th>"+
"</tr>"+
"</thead>";
for(var i=0; i<myArrayFeedbackObj.length; i++){
myTable+="<tbody>"+
"<tr class='success'>";
if(myArrayFeedbackObj[i].arrayNumb.length==4){
myString="";
for(var j=0;j<4;j++){
myString+=myArrayFeedbackObj[i].arrayNumb[j]+" -> ";
}
myTable+="<td style='text-align:center; font-size:19px'>"+(i+1)+"</td>"
myTable+="<td style='text-align:center; font-size:19px'>"+
myString+"<strong><em><span style='color:#ffa500'>"+
myArrayFeedbackObj[i].feedback+"</span></em></strong></td>"+
"</tr>";
}
else{
myString="";
myString2="";
for(var j=0;j<3;j++){
if(j==2)
myString2=" -> "+myArrayFeedbackObj[i].arrayNumb[j];
else
myString+=myArrayFeedbackObj[i].arrayNumb[j]+" -> ";
}
myTable+="<td style='text-align:center; font-size:19px'>"+(i+1)+"</td>"
myTable+="<td style='text-align:center; font-size:19px'>"+
myString+"<strong><em><span style='color:#ffa500'>"+
myArrayFeedbackObj[i].feedback+"</span></em></strong>"+myString2+"</td>"+
"</tr>";
}
}
myTable+="</tbody>"+
"</table>";
showFeedback(myTable);
}
}
function showFeedback (myTable) {
var box = bootbox.dialog({
message: myTable,
title: "¡Ver!",
buttons: {
main: {
label: "Aceptar!",
className: "btn-primary",
callback: function() {
}
}
}
});
}
$( document ).ready(function() {
mySoundAmbient = new Howl({
urls: ['media/mellowtron.ogg','media/mellowtron.mp3'],
loop: true
});
mySoundAmbient.play();
mySoundAmbient.volume(0.5);
});
$(document).keypress(function(event){
var keyCodeString = String.fromCharCode(event.which);
switch (keyCodeString) {
case "0":
effectKey(arrayTile[0]);mySoundEvent.play();
break;
case "1":
effectKey(arrayTile[1]);mySoundEvent.play();
break;
case "2":
effectKey(arrayTile[2]);mySoundEvent.play();
break;
case "3":
effectKey(arrayTile[3]);mySoundEvent.play();
break;
case "4":
effectKey(arrayTile[4]);mySoundEvent.play();
break;
case "5":
effectKey(arrayTile[5]);mySoundEvent.play();
break;
case "6":
effectKey(arrayTile[6]);mySoundEvent.play();
break;
case "7":
effectKey(arrayTile[7]);mySoundEvent.play();
break;
case "8":
effectKey(arrayTile[8]);mySoundEvent.play();
break;
case "9":
effectKey(arrayTile[9]);mySoundEvent.play();
break;
}
});
function attachEvents(){
sym.$('.myPlaceholder').keyup(keyUpFunction);
sym.$('.myPlaceholder').keypress(function(e) {
mySoundEvent.volume(1.0);
var a = [];
text = sym.$("#myT1").val();
chars = text.length;
var k = e.which;
var keyCodeString = String.fromCharCode(event.which);
for (i = 48; i < 58; i++)
a.push(i);
if (!(a.indexOf(k)>=0) || (chars == limit)){
if(e.keyCode == 13){
if(nextStep()){
sym.putNumbers();mySoundEvent.play(); }
else{
mySoundEvent.volume(0.0);
mySoundError.play();
e.preventDefault();
}
}
else{
e.preventDefault();
mySoundEvent.volume(0.0);
mySoundError.play();
}
}
});
function keyUpFunction(){
var text1 = $("#myT1").val();
chars = text1.length;
if(chars > limit){
var new_text = text1.substr(0, limit);
$("#myT1").val(new_text);
}
}
}
sym.getSymbol("simMenu").$("simSonido").click(function() {
if(valMp3){
mySoundAmbient.stop();
valMp3=false;
}
else{
mySoundAmbient.play();
valMp3=true;
}
});
//Ir al menu principal
sym.getSymbol("simMenu").$("simHome").click(function() {
window.open("../../index.html", "_self");
});
//Ir al menu anterior
sym.getSymbol("simMenu").$("simSalir").click(function() {
putValue();
});
function putValue () {
var isIE = /*@cc_on!@*/false || !!document.documentMode; // At least IE6
if(isIE){
window.location.href="../Menu2.html?indexCat=raz";
}
else{
localStorage.setItem("indexCat","raz");
window.open("../Menu2.html", "_self");
}
}
});
//Edge binding end
})("stage");
//Edge symbol end:'stage'
//Edge symbol: 'simMenu'
(function(symbolName) {
})("simMenu");
//Edge symbol end:'simMenu'
//Edge symbol: 'simHome_1'
(function(symbolName) {
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 150, function(sym, e) {
sym.stop();
});
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "${invisibleRectangulo}", "mouseover", function(sym, e) {
sym.stop("start");
sym.play("start");
sym.$("atras_4_over").css("opacity","1");
});
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "${invisibleRectangulo}", "mouseout", function(sym, e) {
sym.stop("medium");
sym.play("medium");
sym.$("atras_4_over").css("opacity","0");
});
//Edge binding end
})("simSalir");
//Edge symbol end:'simSalir'
//Edge symbol: 'simHome'
(function(symbolName) {
Symbol.bindElementAction(compId, symbolName, "${invisibleRectangulo}", "mouseover", function(sym, e) {
sym.stop("start");
sym.play("start");
sym.$("menu_1_over").css("opacity","1");
});
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "${invisibleRectangulo}", "mouseout", function(sym, e) {
sym.stop("medium");
sym.play("medium");
sym.$("menu_1_over").css("opacity","0");
});
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 150, function(sym, e) {
sym.stop();
});
//Edge binding end
})("simHome");
//Edge symbol end:'simHome'
//Edge symbol: 'simHome_1'
(function(symbolName) {
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 150, function(sym, e) {
sym.stop();
});
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "${invisibleRectangulo}", "mouseover", function(sym, e) {
sym.stop("start");
sym.play("start");
sym.$("sonido_3_over").css("opacity","1");
});
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "${invisibleRectangulo}", "mouseout", function(sym, e) {
sym.stop("medium");
sym.play("medium");
sym.$("sonido_3_over").css("opacity","0");
});
//Edge binding end
})("simSonido");
//Edge symbol end:'simSonido'
//Edge symbol: 'simHome_1'
(function(symbolName) {
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 150, function(sym, e) {
sym.stop();
});
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "${invisibleRectangulo}", "mouseover", function(sym, e) {
sym.stop("start");
sym.play("start");
sym.$("instruccion_2_over").css("opacity","1");
});
//Edge binding end
Symbol.bindElementAction(compId, symbolName, "${invisibleRectangulo}", "mouseout", function(sym, e) {
sym.stop("medium");
sym.play("medium");
sym.$("instruccion_2_over").css("opacity","0");
});
//Edge binding end
})("simIntruccion");
//Edge symbol end:'simIntruccion'
//Edge symbol: 'simIntrucciones'
(function(symbolName) {
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 2100, function(sym, e) {
sym.stop();
mySoundAmbient.volume(0.25);
myNoise.play();
});
//Edge binding end
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", 3250, function(sym, e) {
sym.getComposition().getStage().addEventInstruccion();
sym.getComposition().getStage().putNumbers();
sym.getComposition().getStage().createTileEvents();
mySoundAmbient.volume(0.5);
this.deleteSymbol();
});
//Edge binding end
})("simIntrucciones");
//Edge symbol end:'simIntrucciones'
})(window.jQuery || AdobeEdge.$, AdobeEdge, "EDGE-20746995"); |
#!/usr/bin/python
# coding=utf-8
# Python vsop optimized file generator.
# this software and associated documentation files (the "Software"), to deal in
# the Software without restriction, including without limitation the rights to
# the Software, and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
# copies or substantial portions of the Software.
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
# 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.
# into useable and configurable C files. It's been used to compile the files
# in tibastro, but won't be useful for average users. It is only provided for
# people who might need it for other purposes.
# This script should be called with following arguments:
# compute-vsop.py infile
# with infile the file you want to convert, coming from the official
# it outputs the result on stdout, so you should redirect it.
import re
import sys
# regexp to match a normal line, to be searched or matched starting at 48th char
vsoplineregex = re.compile("\s?-?\d+\.\d+\s+-?\d+\.\d+\s+(-?\d+\.\d+)\s+(-?\d+\.\d+)\s+(-?\d+\.\d+)")
# correspondance between file extensions and planet:
fecor = {"ear":"earth",
"jup":"jupiter",
"mar":"mars",
"mer":"mercury",
"nep":"neptune",
"sat":"saturn",
"ura":"uranus",
"ven":"venus",
"emb":"emb"}
def main():
if len(sys.argv) != 2:
print """This script should be used with exactly one argument which is the name of the
file you want to convert.
"""
exit(1)
try:
f = open(sys.argv[1])
# we get the planet it is for
planet = fecor[sys.argv[1].split(".")[-1]]
vsop_letter = sys.argv[1][6].lower()
fout = open("vsop87-%c-%s.c" % (vsop_letter, planet), "w")
lines = f.readlines()
previous_numbers = None
functionnumber = 0
fout.write("#include \"vsop.h\"\n")
for line in lines:
# First the case of a "normal" line
# we don't care about things before column 48
m = vsoplineregex.match(line,48)
if m:
if (previous_numbers):
fout.write(" twoops(_(%s), _(%s), _(%s),\n _(%s), _(%s), _(%s));\n" % (previous_numbers[0], previous_numbers[1], previous_numbers[2], m.group(1), m.group(2), m.group(3)))
previous_numbers = None
else:
previous_numbers = [m.group(1), m.group(2), m.group(3)]
#else, it should be a head line, the only interesting thing is the 42nd and 60th character:
elif len(line) > 60:
<API key> = functionnumber
functionnumber = int(line[59])
variablenumber = int(line[41])
print "fun : %d, var : %d" % (functionnumber, variablenumber)
if (previous_numbers):
fout.write(" oneop( _(%s), _(%s), _(%s));\n" % (previous_numbers[0], previous_numbers[1], previous_numbers[2]))
if (functionnumber != 0 or variablenumber != 1):
fout.write(" end();\n}\n")
if (variablenumber != 1 and functionnumber == 0):
print_sum_function(<API key>, variablenumber -1, planet, vsop_letter, fout)
fout.write("\ncoord_t vsop87_%c_%s_%d_%d (time_t t) {\n initialize();\n" % (vsop_letter, planet, variablenumber, functionnumber))
# if it's none of the two, we just ignore the line
if (previous_numbers):
fout.write(" oneop( _(%s), _(%s), _(%s));\n" % (previous_numbers[0], previous_numbers[1], previous_numbers[2]))
fout.write(" end();\n}\n")
print_sum_function(functionnumber, 3, planet, vsop_letter, fout)
f.close()
fout.close()
except IOError:
print "Error: cannot open file %s" % sys.argv[1]
def print_sum_function(factor, variable_number, planet, vsop_letter, fout):
common_str = "vsop87_%c_%s_%d" % (vsop_letter, planet, variable_number)
if factor == 5:
fout.write("""
coord_t %s (time_t t) {
return ((((%s_5(t) *t + %s_4(t)) * t + %s_3(t)) *t + %s_2(t)) * t + %s_1(t)) *t + %s_0(t);
}
""" % (common_str, common_str, common_str, common_str, common_str, common_str, common_str))
elif factor == 4:
fout.write("""
coord_t %s (time_t t) {
return (((%s_4(t) * t + %s_3(t)) *t + %s_2(t)) * t + %s_1(t)) *t + %s_0(t);
}
""" % (common_str, common_str, common_str, common_str, common_str, common_str))
elif factor == 3:
fout.write("""
coord_t %s (time_t t) {
return ((%s_3(t) *t + %s_2(t)) * t + %s_1(t)) *t + %s_0(t);
}
""" % (common_str, common_str, common_str, common_str, common_str))
else:
print "error!!! Factor %d not taken into account" % factor
exit(1)
main() |
jsonp({"cep":"94470486","logradouro":"Rua da Ac\u00e1cia","bairro":"Viam\u00f3polis","cidade":"Viam\u00e3o","uf":"RS","estado":"Rio Grande do Sul"}); |
jsonp({"cep":"19067170","logradouro":"Rua Jos\u00e9 Lib\u00e2nio Filho","bairro":"Parque Cedral","cidade":"Presidente Prudente","uf":"SP","estado":"S\u00e3o Paulo"}); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.