hexsha
string
size
int64
ext
string
lang
string
max_stars_repo_path
string
max_stars_repo_name
string
max_stars_repo_head_hexsha
string
max_stars_repo_licenses
list
max_stars_count
int64
max_stars_repo_stars_event_min_datetime
string
max_stars_repo_stars_event_max_datetime
string
max_issues_repo_path
string
max_issues_repo_name
string
max_issues_repo_head_hexsha
string
max_issues_repo_licenses
list
max_issues_count
int64
max_issues_repo_issues_event_min_datetime
string
max_issues_repo_issues_event_max_datetime
string
max_forks_repo_path
string
max_forks_repo_name
string
max_forks_repo_head_hexsha
string
max_forks_repo_licenses
list
max_forks_count
int64
max_forks_repo_forks_event_min_datetime
string
max_forks_repo_forks_event_max_datetime
string
content
string
avg_line_length
float64
max_line_length
int64
alphanum_fraction
float64
d0ed4acd32a770a41172de1d38df222aa354ca49
682
js
JavaScript
src/Components/LinkedIn.js
kenfcheng/KenReactPortfolio
6800a9c83389b1020a06b5648df071477cedf87d
[ "ADSL" ]
null
null
null
src/Components/LinkedIn.js
kenfcheng/KenReactPortfolio
6800a9c83389b1020a06b5648df071477cedf87d
[ "ADSL" ]
null
null
null
src/Components/LinkedIn.js
kenfcheng/KenReactPortfolio
6800a9c83389b1020a06b5648df071477cedf87d
[ "ADSL" ]
null
null
null
import React from "react"; const LinkedIn = () => { return ( <div> <div className="container LI-profile-badge col 4 center" data-version="v1" data-size="medium" data-locale="en_US" data-type="horizontal" data-theme="dark" data-vanity="kenfcheng" style={{ top: 30 }} > <a className="LI-simple-link white-text" href="https://www.linkedin.com/in/kenfcheng?trk=profile-badge" > Ken Cheng </a> </div> <h6 className="col 8 push-s2 white-text"> Phone Number: +1 704-692-7685 </h6> </div> ); }; export default LinkedIn;
22
72
0.526393
d0ed555d87d04d6a28bd94527b54c3deb146add0
4,325
js
JavaScript
packages/generator-slimer/generators/react/index.js
TryGhost/slimer
e0dfe163d9019f6d6293a55f8a5937045444d9ca
[ "MIT" ]
8
2018-10-03T08:39:35.000Z
2021-06-07T16:52:44.000Z
packages/generator-slimer/generators/react/index.js
TryGhost/slimer
e0dfe163d9019f6d6293a55f8a5937045444d9ca
[ "MIT" ]
9
2019-03-05T16:50:41.000Z
2022-02-01T10:26:22.000Z
packages/generator-slimer/generators/react/index.js
TryGhost/slimer
e0dfe163d9019f6d6293a55f8a5937045444d9ca
[ "MIT" ]
9
2018-10-01T08:54:14.000Z
2020-10-11T16:58:13.000Z
'use strict'; const Generator = require('../../lib/Generator'); const _ = require('lodash'); const chalk = require('chalk'); const insertAfter = require('../../lib/insert-after'); // These are the options that can be passed in as flags e.g. --foo=bar const knownOptions = { type: { type: String, required: true, desc: 'What kind of project to create: [module, app, pkg, mono]' }, public: { type: Boolean, desc: 'Is the project public?' }, org: { type: String, default: 'TryGhost', desc: 'GitHub Organisation' }, scope: { type: String, default: '', desc: 'NPM Scope name' }, repo: { type: String, desc: 'The URL of the GitHub repository', hidden: true } }; // These are arguments that are passed directly const knownArguments = { name: { type: String, required: true, desc: 'Project name' } }; module.exports = class extends Generator { constructor(args, options) { super(args, options, knownArguments, knownOptions); } initializing() { super.initializing(); let name = this.props.name; this._initNaming(name); } // What gets passed to us is just the folder name _initNaming(name) { // Repo name rules - it should be the same as the folder name this.props.repoName = this.props.repoName || name; // Project name, should be Properly Capitalised For the README! If it starts with mg- or kg- convert to Migrate/Koenig this.props.projectName = this.props.projectName || _.startCase(name.replace(/^mg-/, 'Migrate ').replace(/^kg-/, 'Koenig ')); } prompting() { const prompts = [ { type: 'confirm', name: 'public', message: `Is your project public?`, when: _.isNil(this.props.public), default: true } ]; return this.prompt(prompts).then((answer) => { this._mergeAnswers(answer); }); } configuring() { this.log(chalk.green('Slimer') + ' will configure this react project with the following settings:', JSON.stringify(this.props, null, 2)); } default() { // Next, add our default .editorconfig file this.composeWith(require.resolve('../editorconfig'), this.props); // Public projects require an MIT license, private projects should NOT have one this.composeWith(require.resolve('../license'), this.props); // Ensure git is initialised with gitignore this.props.extras = [ 'build', '', '## config', '.env.local', '.env.development.local', '.env.test.local', '.env.production.local' ]; this.composeWith(require.resolve('../gitroot'), this.props); } _writePackageJSON() { // Read the existing package.json let destination = this.fs.readJSON(this.destinationPath('package.json')); // Handle public/private if (destination) { if (!destination.repository) { destination = insertAfter(destination, 'version', 'repository', `git@github.com:TryGhost/${this.props.repoName}.git`); } if (!destination.author) { destination = insertAfter(destination, 'repository', 'author', 'Ghost Foundation'); } } if (destination) { this.fs.writeJSON(this.destinationPath('package.json'), destination); } } _writeREADME() { // Read the existing README.md let destination = this.fs.read(this.destinationPath('README.md')); let title = `# ${this.props.projectName}`; // Handle public/private if (destination && !destination.startsWith(title)) { destination = `${title}\n\n${destination}`; } if (destination) { this.fs.write(this.destinationPath('README.md'), destination); } } writing() { this._writePackageJSON(); this._writeREADME(); } end() { this.log(chalk.green('Slimer') + ' has finished configuring ' + chalk.cyan(this.props.name)); } };
29.222973
145
0.561156
d0edd20aa8a2d4027b4b220021590f5e8dd69d56
1,768
js
JavaScript
script.js
gabrielrpc/verificador_de_idade
a42f20cb53bca6fdb22552bcd9f4bc7aeb196762
[ "MIT" ]
null
null
null
script.js
gabrielrpc/verificador_de_idade
a42f20cb53bca6fdb22552bcd9f4bc7aeb196762
[ "MIT" ]
null
null
null
script.js
gabrielrpc/verificador_de_idade
a42f20cb53bca6fdb22552bcd9f4bc7aeb196762
[ "MIT" ]
null
null
null
function verificar() { const data = new Date() const ano = data.getFullYear() const fano = document.getElementById('txtano') const res = document.querySelector('div#res') if (fano.value.length == 0 || Number(fano.value) > ano) { window.alert('Verifique os dados e tente novamente!') } else { const fsex = document.getElementsByName('radsex') const idade = ano - Number(fano.value) let gênero = '' const img = document.createElement('img') img.setAttribute('id', 'foto') if (fsex[0].checked) { gênero = 'Homem' if (idade >= 0 && idade < 10) { // criança img.setAttribute('src', 'homem-crianca.png') }else if (idade <21) { // jovem img.setAttribute('src', 'homem-jovem.png') }else if (idade < 50) { // adulto img.setAttribute('src', 'homem-adulto.png') }else { // idoso img.setAttribute('src', 'homem-velho.png') } }else if (fsex[1].checked) { gênero = 'Mulher' if (idade >= 0 && idade < 10) { // criança img.setAttribute('src', 'menina-crianca.png') }else if (idade <21) { // jovem img.setAttribute('src', 'menina-jovem.png') }else if (idade < 50) { // adulto img.setAttribute('src', 'mulher-adulta.png') }else { // idoso img.setAttribute('src', 'mulher-velha.png') } } res.innerHTML = `Detectamos ${gênero} com ${idade} anos.` res.appendChild(img) } }
36.081633
65
0.478507
d0ee479fcc97d136a4e3a2acf1a8230c93fa6ebe
1,988
js
JavaScript
assets/js/dashCalendar.js
Anib999/CollegeRepo
da4007adda30c1be8371793ba8f9c1098dffe9e8
[ "MIT" ]
null
null
null
assets/js/dashCalendar.js
Anib999/CollegeRepo
da4007adda30c1be8371793ba8f9c1098dffe9e8
[ "MIT" ]
null
null
null
assets/js/dashCalendar.js
Anib999/CollegeRepo
da4007adda30c1be8371793ba8f9c1098dffe9e8
[ "MIT" ]
null
null
null
var base_url = $("#base_url").val(); //for calendar document.addEventListener('DOMContentLoaded', function() { var calendarEl = document.getElementById('dashCalendar'); var today = new Date(); today.setHours(0,0,0,0); var calendar = new FullCalendar.Calendar(calendarEl, { plugins: [ 'interaction', 'dayGrid', 'timeGrid', 'list' ], header: { left: 'prev,next today', center: 'title', right: 'dayGridMonth,timeGridWeek,timeGridDay,listDay' }, defaultDate: new Date(), navLinks: true, // can click day/week names to navigate views selectable: true, selectMirror: true, eventOverlap: true, eventLimit: 1, // allow "more" link when too many events loading: function(isLoading){ if(isLoading){ console.log("loading"); }else{ console.log("done"); } }, dateClick: function(info){ var clickedDat = info.date.getTime(); if( today.getTime() <= clickedDat){ swal({ text: "Do you want to add Appointment to this date?", buttons: ["Cancel", "Confirm"], }) .then((yes) => { if (yes) { $('#eventAdd').modal('show'); } }); calendar.unselect(); }else{ swal({ text: "Cannot add Appointment to this date", buttons: "Okay", }) } }, eventClick: function(info){ $("#showEvent").modal("show"); $(".app_PatientName").html(info.event.title); alert(info.event.title); }, events:{ url: base_url+"Pro/getAllAppointment", dataType:'JSON', error: function(res){ console.log("error"); } }, eventDataTransform:function(e){ let et = JSON.parse(e.title); let divi = "<em> By: "+et.UserName+"</em><br/>"+ "<em> Doctor: "+et.DoctorName+"</em><br/>"+ "<em> Name: "+et.PatientName+"</em>"; e.title = divi; return e; }, }); calendar.render(); });
27.611111
65
0.552314
d0eee386c6e303f5376608caf16ab31b590269a7
1,366
js
JavaScript
test/ownership/OwnableTest.js
ripio/rcn-commons
7905e6d83117d4a90da3100ef3aaad144b4c4c6f
[ "MIT" ]
null
null
null
test/ownership/OwnableTest.js
ripio/rcn-commons
7905e6d83117d4a90da3100ef3aaad144b4c4c6f
[ "MIT" ]
null
null
null
test/ownership/OwnableTest.js
ripio/rcn-commons
7905e6d83117d4a90da3100ef3aaad144b4c4c6f
[ "MIT" ]
1
2021-01-20T01:54:10.000Z
2021-01-20T01:54:10.000Z
const { expectThrow } = require('../helpers/ExpectThrow'); const { EVMRevert } = require('../helpers/EVMRevert'); const Ownable = artifacts.require('Ownable'); const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'; require('chai') .should(); function shouldBehaveLikeOwnable (owner, [anyone]) { describe('as an ownable', function () { it('should have an owner', async function () { (await this.ownable.owner()).should.equal(owner); }); it('changes owner after transfer', async function () { (await this.ownable.isOwner({ from: anyone })).should.be.equal(false); await this.ownable.transferTo(anyone, { from: owner }); (await this.ownable.owner()).should.equal(anyone); (await this.ownable.isOwner({ from: anyone })).should.be.equal(true); }); it('should prevent non-owners from transfering', async function () { await expectThrow(this.ownable.transferTo(anyone, { from: anyone }), EVMRevert); }); it('should guard ownership against stuck state', async function () { await expectThrow(this.ownable.transferTo(null, { from: owner }), EVMRevert); }); }); } contract('Ownable', function ([_, owner, ...otherAccounts]) { beforeEach(async function () { this.ownable = await Ownable.new({ from: owner }); }); shouldBehaveLikeOwnable(owner, otherAccounts); });
31.767442
86
0.668375
d0eef59ccddddaf4074cc6116f7e87e72ace6b2c
2,034
js
JavaScript
app.js
riazsajidgit/zap
b2736154ec86de73acfd6de5a7c432617417e740
[ "MIT" ]
null
null
null
app.js
riazsajidgit/zap
b2736154ec86de73acfd6de5a7c432617417e740
[ "MIT" ]
null
null
null
app.js
riazsajidgit/zap
b2736154ec86de73acfd6de5a7c432617417e740
[ "MIT" ]
null
null
null
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/index'); var users = require('./routes/users'); var vouchers = require('./routes/vouchers'); var home = require('./routes/home'); var header = require('./routes/header'); var sidebar = require('./routes/sidebar'); var voucher_1 = require('./routes/voucher_1'); var voucher_2 = require('./routes/voucher_2'); var voucher_3 = require('./routes/voucher_3'); var footer = require('./routes/footer'); var app = express(); // view engine setup app.set('views', path.join(__dirname, 'views')); app.set('view engine', 'ejs'); // uncomment after placing your favicon in /public //app.use(favicon(path.join(__dirname, 'public', 'favicon.ico'))); app.use(logger('dev')); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: true })); app.use(cookieParser()); app.use(express.static(path.join(__dirname, 'public'))); app.use('/', routes); app.use('/users', users); app.use('/home', home); app.use('/header', header); app.use('/sidebar', sidebar); app.use('/voucher_1', voucher_1); app.use('/voucher_2', voucher_2); app.use('/voucher_3', voucher_3); app.use('/footer', footer); app.use('/vouchers',vouchers); // catch 404 and forward to error handler app.use(function(req, res, next) { var err = new Error('Not Found'); err.status = 404; next(err); }); // error handlers // development error handler // will print stacktrace if (app.get('env') === 'development') { app.use(function(err, req, res, next) { res.status(err.status || 500); res.render('error', { message: err.message, error: err }); }); } // production error handler // no stacktraces leaked to user app.use(function(err, req, res, next) { res.status(err.status || 500); res.render('error', { message: err.message, error: {} }); }); module.exports = app;
25.425
66
0.665192
d0efe95ba6b05d7a277bdc9ea96e33fa087da631
13,816
js
JavaScript
CITEHomeLearnersGuide/js/addAdminFunction.js
melferrer99/CITEHomeLearnersGuideWeb
bec34660d29f9b8debb3fc7ea7f071970f02ad3a
[ "BSD-3-Clause" ]
null
null
null
CITEHomeLearnersGuide/js/addAdminFunction.js
melferrer99/CITEHomeLearnersGuideWeb
bec34660d29f9b8debb3fc7ea7f071970f02ad3a
[ "BSD-3-Clause" ]
null
null
null
CITEHomeLearnersGuide/js/addAdminFunction.js
melferrer99/CITEHomeLearnersGuideWeb
bec34660d29f9b8debb3fc7ea7f071970f02ad3a
[ "BSD-3-Clause" ]
null
null
null
// Your web app's Firebase configuration // For Firebase JS SDK v7.20.0 and later, measurementId is optional var firebaseConfig = { apiKey: "AIzaSyDu1e-6PBfwYfS8mOOLFwpOZWz7oOGQ2BQ", authDomain: "cite-home-learner-s-guide.firebaseapp.com", databaseURL: "https://cite-home-learner-s-guide.firebaseio.com", projectId: "cite-home-learner-s-guide", storageBucket: "cite-home-learner-s-guide.appspot.com", messagingSenderId: "126055796910", appId: "1:126055796910:web:bc781665b2f78e2198dd3f", measurementId: "G-NJJLD09DC5" }; // Initialize Firebase firebase.initializeApp(firebaseConfig); firebase.analytics(); var database = firebase.database(); var lastIndex = 0; // Get Data --------------------------------------------------------------------------------------------------------------- firebase.database().ref('users/').on('value', function (snapshot) { var value = snapshot.val(); var htmls = []; $.each(value, function (index, value) { if (value['userType'] == "Teacher") { htmls.push('<tr>\ <td>' + value.FullName + '</td>\ <td>' + value.email + '</td>\ <td>' + value.userName + '</td>\ <td><button data-toggle="modal" data-target="#update-modal" class="btn btn-info updateData" data-id="' + index + '">Update</button>\ <button data-toggle="modal" data-target="#remove-modal" class="btn btn-danger removeData" data-id="' + index + '">Delete</button></td>\ </tr>'); } lastIndex = index; }); $('#tbody').html(htmls); $("#submitUser").removeClass('desabled'); }); // Add Data TEACHERS---------------------------------------------------------------------------------------------------------------- $('#submitUser').on('click', function () { var firstname= document.getElementById("fname").value; var lastname= document.getElementById("lname").value; var uname= document.getElementById("userName").value; var email= document.getElementById("email").value; var utype= document.getElementById("userType").value; var fullname= firstname.concat(' '+lastname); if (utype == "Teacher") { firebase.database().ref('teachers/' + uname ).set({ FullName: fullname, email: email, password: lastname, userName: uname, userType: utype }); } }); // Add Data ---------------------------------------------------------------------------------------------------------------- $('#submitUser').on('click', function () { var firstname= document.getElementById("fname").value; var lastname= document.getElementById("lname").value; var uname= document.getElementById("userName").value; var email= document.getElementById("email").value; var utype= document.getElementById("userType").value; var fullname= firstname.concat(' '+lastname); firebase.database().ref('users/' + uname ).set({ FullName: fullname, email: email, password: lastname, userName: uname, userType: utype }); let inputs = document.querySelectorAll('input'); inputs.forEach(input => fname.value = ''); inputs.forEach(input => lname.value = ''); inputs.forEach(input => userName.value = ''); inputs.forEach(input => email.value = ''); inputs.forEach(input => userType.value = ''); document.getElementById("submitUser").disabled=true; alert("Created successful."); }); // Update Data ---------------------------------------------------------------------------------------------------------------- var updateID = 0; $('body').on('click', '.updateData', function () { updateID = $(this).attr('data-id'); firebase.database().ref('users/' + updateID).on('value', function (snapshot) { var values = snapshot.val(); var updateData = '<div class="form-group">\ <div class="form-group">\ <label for="fname" class="col-md-12 col-form-label">Full Name</label>\ <div class="col-md-12">\ <input id="fname" type="text" class="form-control" name="FullName" value="' + values.FullName + '" required autofocus>\ </div>\ </div>\ <label for="email" class="col-md-12 col-form-label">Email</label>\ <div class="col-md-12">\ <input id="email" type="text" class="form-control" name="email" value="' + values.email + '" required autofocus>\ </div>\ </div>\ <div class="form-group">\ <label for="pass" class="col-md-12 col-form-label">Password</label>\ <div class="col-md-12">\ <input id="pass" type="text" class="form-control" name="password" value="' + values.password + '" required autofocus>\ </div>\ </div>\ <div class="form-group">\ <label for="uname" class="col-md-12 col-form-label">Employee No.</label>\ <div class="col-md-12">\ <input id="uname" type="text" class="form-control" name="userName" value="' + values.userName + '" required autofocus>\ </div>\ </div>\ <div class="form-group">\ <div class="col-md-12">\ <input hidden id="utype" type="text" class="form-control" name="userType" value="' + values.userType + '" required autofocus>\ </div>\ </div>'; $('#updateBody').html(updateData); }); }); $('.updateUser').on('click', function () { var values = $(".users-update-record-model").serializeArray(); var postData = { FullName: values[0].value, email: values[1].value, password: values[2].value, userName: values[3].value, userType: values[4].value, }; var updates = {}; updates['/users/' + updateID] = postData; firebase.database().ref().update(updates); $("#update-modal").modal('hide'); }); $('.updateUser').on('click', function () { var values = $(".users-update-record-model").serializeArray(); var postData = { FullName: values[0].value, email: values[1].value, password: values[2].value, userName: values[3].value, userType: values[4].value, }; var updates = {}; updates['/teachers/' + updateID] = postData; firebase.database().ref().update(updates); $("#update-modal").modal('hide'); }); // REMOVE Data ---------------------------------------------------------------------------------------------------------------- var remID = 0; $('body').on('click', '.removeData', function () { remID = $(this).attr('data-id'); firebase.database().ref('users/' + remID).on('value', function (snapshot) { var values = snapshot.val(); var removeData = '<div class="form-group">\ <div class="form-group">\ <input id="FullName" type="text" class="form-control" name="FullName" value="' + values.FullName + '" required autofocus>\ </div>\ <div class="form-group">\ <input id="email" type="text" class="form-control" name="email" value="' + values.email + '" required autofocus>\ </div>\ <div class="form-group">\ <input id="password" type="text" class="form-control" name="password" value="' + values.password + '" required autofocus>\ </div>\ <div class="form-group">\ <input id="userName" type="text" class="form-control" name="userName" value="' + values.userName + '" required autofocus>\ </div>\ <div class="form-group">\ <input id="userType" type="text" class="form-control" name="userType" value="' + values.userType + '" required autofocus>\ </div>'; $('#removeBody').html(removeData); }); }); // Remove Data --------------------------------------------------------------------------------------------------------------- $('.deleteRecord').on('click', function () { var values = $(".users-remove-record-model").serializeArray(); firebase.database().ref('teachers/' + remID).remove(); $('body').find('.users-remove-record-model').find("input").remove(); $("#remove-modal").modal('hide'); }); // Remove Data --------------------------------------------------------------------------------------------------------------- $('.deleteRecord').on('click', function () { var values = $(".users-remove-record-model").serializeArray(); firebase.database().ref('users/' + remID).remove(); $('body').find('.users-remove-record-model').find("input").remove(); $("#remove-modal").modal('hide'); }); $('.remove-data-from-delete-form').click(function () { $('body').find('.users-remove-record-model').find("input").remove(); }); //---------------------------------------------------------------------------------- function btnActivation(){ var val =document.getElementById("email"); if(val.value=="") { document.getElementById("submitUser").disabled=true; } else document.getElementById("submitUser").disabled=false; } //============================================================================================================================================= var obj_csv = { size:0, dataFile:[] }; function readImage(input) { if (input.files && input.files[0]) { let reader = new FileReader(); reader.readAsBinaryString(input.files[0]); reader.onload = function (e) { obj_csv.size = e.total; obj_csv.dataFile = e.target.result console.log(obj_csv.dataFile) parseData(obj_csv.dataFile) } } } function parseData(data){ let csvData = []; const table = data.split("\r\n").slice(1); table.forEach(row => { const columns = row.split(','); const FullName = columns[0]; const email = columns[1]; const password = columns[2]; const userName = columns[3]; const userType = columns[4]; console.log(FullName, email, password, userName, userType); document.getElementById("submitSTUDENT").disabled=false; // Add Data ------------------------------------------------------------------------------------------------------ $('#submitSTUDENT').on('click', function () { var user = userName; firebase.database().ref('users/' + user + '/').set({ FullName: FullName, email: email, password: password, userName: userName, userType: userType }); }); //---------------------------------------------------------------------------------------------------------------- // Add Data ------------------------------------------------------------------------------------------------------ $('#submitSTUDENT').on('click', function () { var user = userName; if (userType == "Teacher") { firebase.database().ref('teachers/' + user + '/').set({ FullName: FullName, email: email, password: password, userName: userName, userType: userType }); } let inputs = document.querySelectorAll('input'); inputs.forEach(input => uploadfile.value = ''); document.getElementById("submitSTUDENT").disabled=true; }); //---------------------------------------------------------------------------------------------------------------- }); }
41.866667
155
0.421323
d0effd651f2fb1ea91687661b14b26c89c93ab21
121
js
JavaScript
doc/html/search/defines_6.js
petrkotas/libLS
eb57365bfb0be486a4e8c564ff831ad358993268
[ "BSD-3-Clause" ]
null
null
null
doc/html/search/defines_6.js
petrkotas/libLS
eb57365bfb0be486a4e8c564ff831ad358993268
[ "BSD-3-Clause" ]
null
null
null
doc/html/search/defines_6.js
petrkotas/libLS
eb57365bfb0be486a4e8c564ff831ad358993268
[ "BSD-3-Clause" ]
null
null
null
var searchData= [ ['grid_5fh_5f',['GRID_H_',['../_grid_8hpp.html#acd1080883b5a5a503e9b3403ecaa4b0f',1,'Grid.hpp']]] ];
24.2
99
0.710744
d0f016d1b2760108a5e27a9d01717a64991f477e
2,721
js
JavaScript
public/js/dropzone.js
rodrigo-mamangava/eFont
17cc5988c9eeeda3b3f111ad0030ba2f310bc333
[ "BSD-3-Clause" ]
null
null
null
public/js/dropzone.js
rodrigo-mamangava/eFont
17cc5988c9eeeda3b3f111ad0030ba2f310bc333
[ "BSD-3-Clause" ]
null
null
null
public/js/dropzone.js
rodrigo-mamangava/eFont
17cc5988c9eeeda3b3f111ad0030ba2f310bc333
[ "BSD-3-Clause" ]
null
null
null
var FormDropzone = function () { return { //main function to initiate the module init: function () { var acceptedFiles = ".jpeg,.jpg,.png,.gif,.pdf,.doc,.docx,.zip"; var acceptedFilesBkp = acceptedFiles; //console.log(acceptedFiles); var myDropzone = new Dropzone("#my-dropzone", { maxFilesize: 6, uploadMultiple: false, maxFiles: 1, acceptedFiles: acceptedFiles, autoDiscover: true }); //Atualiza caso haja modificacoes $('#accepted_file').on("change", function () { if ( $('#accepted_file').val().length >= 3){ acceptedFiles = $('#accepted_file').val(); } else { acceptedFiles = acceptedFilesBkp; } myDropzone.options.acceptedFiles = acceptedFiles; }); myDropzone.on("addedfile", function(file) { // Create the remove button var removeButton = Dropzone.createElement("<button class='btn btn-sm btn-block red'><i class='fa fa-trash'></i></button>"); // Capture the Dropzone instance as closure. var _this = this; // Listen to the click event removeButton.addEventListener("click", function(e) { // Make sure the button click doesn't submit the form: e.preventDefault(); e.stopPropagation(); // Remove the file preview. _this.removeFile(file); // If you want to the delete the file on the server as well, // you can do the AJAX request here. }); // Add the button to the file preview element. file.previewElement.appendChild(removeButton); }); // Execute when file uploads are complete myDropzone.on("complete", function() { // If all files have been uploaded if (this.getQueuedFiles().length == 0 && this.getUploadingFiles().length == 0) { var _this = this; // Remove all files _this.removeAllFiles(); } }); myDropzone.on("uploadprogress", function(file, progress) { console.log("File progress", progress); }); myDropzone.on("sending", function(file, xhr, formData) { // Will send the filesize along with the file as POST data. formData.append("filesize", file.size); }); myDropzone.on("error", function(file, message) { bootbox.alert(message); this.removeFile(file); }); myDropzone.on("success", function(file, responseText) { // Handle the responseText here. For example, add the text to the preview element: if(responseText.status == true){ $('#dropzone-to-imagem').val(responseText.data.short); $('#'+$('#dropzone-to-id').val()).val(responseText.data.short).trigger('change'); $('#modal_file_upload_form_static').modal('hide'); }else{ bootbox.alert(responseText.data); } }); } }; }();
31.639535
127
0.634693
d0f0d66e49505ace937f486a966decb329bc6eaa
46
js
JavaScript
ecmascript/minifier/tests/terser/compress/issue-1833/label_while/input.js
vjpr/swc
97514a754986eaf3a227cab95640327534aa183f
[ "Apache-2.0", "MIT" ]
21,008
2017-04-01T04:06:55.000Z
2022-03-31T23:11:05.000Z
ecmascript/minifier/tests/terser/compress/issue-1833/label_while/input.js
sventschui/swc
cd2a2777d9459ba0f67774ed8a37e2b070b51e81
[ "Apache-2.0", "MIT" ]
2,309
2018-01-14T05:54:44.000Z
2022-03-31T15:48:40.000Z
ecmascript/minifier/tests/terser/compress/issue-1833/label_while/input.js
sventschui/swc
cd2a2777d9459ba0f67774ed8a37e2b070b51e81
[ "Apache-2.0", "MIT" ]
768
2018-01-14T05:15:43.000Z
2022-03-30T11:29:42.000Z
function f() { L: while (0) continue L; }
11.5
28
0.543478
d0f17d3304207f91a0f7c54d58eab0da8de9eee2
200
js
JavaScript
vendors/cypress/MTB/psoc6/udb-sdio-whd/docs/html/search/all_4.js
CarolinaAzcona/FreeRTOS
912e08f9ed9c250b36aa22227bcf678d608b8bfd
[ "MIT" ]
1
2020-06-06T17:40:13.000Z
2020-06-06T17:40:13.000Z
vendors/cypress/MTB/psoc6/udb-sdio-whd/docs/html/search/all_4.js
CarolinaAzcona/FreeRTOS
912e08f9ed9c250b36aa22227bcf678d608b8bfd
[ "MIT" ]
null
null
null
vendors/cypress/MTB/psoc6/udb-sdio-whd/docs/html/search/all_4.js
CarolinaAzcona/FreeRTOS
912e08f9ed9c250b36aa22227bcf678d608b8bfd
[ "MIT" ]
1
2021-02-25T15:50:48.000Z
2021-02-25T15:50:48.000Z
var searchData= [ ['udb_5fsdio',['UDB_SDIO',['../group__group__udb__sdio.html',1,'']]], ['udb_20sdio_20for_20wi_2dfi_20host_20driver',['UDB SDIO for Wi-Fi Host Driver',['../index.html',1,'']]] ];
33.333333
106
0.675
d0f23f6d67f2003b8f89b07d6fae3e0f777edf5b
34,708
js
JavaScript
lib/HubOfHubsHeader/HubOfHubsHeader.js
open-cluster-management/hub-of-hubs-ui-components
9872c06fce704c94e5cb918e5104d2f0686e8906
[ "Apache-2.0" ]
null
null
null
lib/HubOfHubsHeader/HubOfHubsHeader.js
open-cluster-management/hub-of-hubs-ui-components
9872c06fce704c94e5cb918e5104d2f0686e8906
[ "Apache-2.0" ]
5
2022-03-02T07:11:09.000Z
2022-03-14T12:13:35.000Z
lib/HubOfHubsHeader/HubOfHubsHeader.js
open-cluster-management/hub-of-hubs-ui-components
9872c06fce704c94e5cb918e5104d2f0686e8906
[ "Apache-2.0" ]
null
null
null
"use strict"; /* Copyright Contributors to the Open Cluster Management project */ var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; var __spreadArray = (this && this.__spreadArray) || function (to, from) { for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) to[j] = from[i]; return to; }; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.HubOfHubsHeader = exports.HubOfHubsRoute = void 0; /* istanbul ignore file */ var core_1 = require("@material-ui/core"); var styles_1 = require("@material-ui/styles"); var react_core_1 = require("@patternfly/react-core"); var react_icons_1 = require("@patternfly/react-icons"); var react_1 = __importStar(require("react")); var react_router_dom_1 = require("react-router-dom"); var AcmIcons_1 = require("../AcmIcons/AcmIcons"); var RHACM_Logo_svg_1 = __importDefault(require("../assets/RHACM-Logo.svg")); function api(url, headers) { return fetch(url, headers).then(function (response) { if (!response.ok) { throw new Error(response.statusText); } return response.json(); }); } function launchToOCP(urlSuffix) { api('/multicloud/api/v1/namespaces/openshift-config-managed/configmaps/console-public/') .then(function (_a) { var data = _a.data; window.open(data.consoleURL + "/" + urlSuffix); }) .catch(function (error) { // eslint-disable-next-line no-console console.error(error); }); } function checkOCPVersion(switcherExists) { if (process.env.NODE_ENV === 'test') return; api('/multicloud/version/') .then(function (_a) { var gitVersion = _a.gitVersion; if (parseFloat(gitVersion.substr(1, 4)) >= 1.2) { switcherExists(true); } else { switcherExists(false); } }) .catch(function (error) { // eslint-disable-next-line no-console console.error(error); switcherExists(false); }); } function UserDropdownToggle() { var _a = react_1.useState('loading...'), name = _a[0], setName = _a[1]; react_1.useEffect(function () { var dev = process.env.NODE_ENV !== 'production'; var serverForTest = dev ? 'https://localhost:3000' : ''; if (process.env.NODE_ENV === 'test') return; api(serverForTest + "/multicloud/common/username/") .then(function (_a) { var username = _a.username; setName(username); }) .catch(function (error) { // eslint-disable-next-line no-console console.error(error); setName('undefined'); }); }, []); return (react_1.default.createElement("span", { className: "pf-c-dropdown__toggle" }, react_1.default.createElement("span", { className: "co-username", "data-test": "username" }, name), react_1.default.createElement(react_icons_1.CaretDownIcon, { className: "pf-c-dropdown__toggle-icon" }))); } function AboutDropdown(props) { var _a = react_1.useState(false), aboutDDIsOpen = _a[0], aboutDDSetOpen = _a[1]; function DocsButton() { return (react_1.default.createElement(react_core_1.ApplicationLauncherItem, { href: "https://access.redhat.com/documentation/en-us/red_hat_advanced_cluster_management_for_kubernetes/2.4/" }, "Documentation")); } function AboutButton() { return (react_1.default.createElement(react_core_1.ApplicationLauncherItem, { component: "button", onClick: function () { return props.aboutClick(); } }, "About")); } return (react_1.default.createElement(react_core_1.ApplicationLauncher, { "aria-label": "about-menu", "data-test": "about-dropdown", className: "co-app-launcher co-about-menu", onSelect: function () { return aboutDDSetOpen(false); }, onToggle: function () { return aboutDDSetOpen(!aboutDDIsOpen); }, isOpen: aboutDDIsOpen, items: [react_1.default.createElement(DocsButton, { key: "docs" }), react_1.default.createElement(AboutButton, { key: "about_modal_button" })], "data-quickstart-id": "qs-masthead-helpmenu", position: "right", toggleIcon: react_1.default.createElement("svg", { width: "18px", height: "20px", viewBox: "0 0 18 20", version: "1.1" }, react_1.default.createElement("title", null, "help-icon"), react_1.default.createElement("g", { id: "Help", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, react_1.default.createElement("g", { id: "01.00-Help", transform: "translate(-1277.000000, -29.000000)", fill: "#EDEDED", fillRule: "nonzero" }, react_1.default.createElement("g", { id: "help-icon", transform: "translate(1277.000000, 29.381579)" }, react_1.default.createElement("path", { d: "M9.00103711,0.0025467465 C4.03806445,0.0025467465 0,4.09288877 0,9.12141303 C0,14.1478536 4.03806445,18.2393889 9.00103711,18.2393889 C13.9630078,18.2393889 18,14.1479426 18,9.12141303 C18,4.09288877 13.9630254,0.0025467465 9.00103711,0.0025467465 Z M9.00103711,16.0250729 C5.24237695,16.0250729 2.18550586,12.9287991 2.18550586,9.12137742 C2.18550586,5.3121214 5.24241211,2.21677364 9.00103711,2.21677364 C12.7577812,2.21677364 15.8155664,5.31210359 15.8155664,9.12137742 C15.8155664,12.9287634 12.7577285,16.0250729 9.00103711,16.0250729 Z M10.2857168,4.23609429 L10.2857168,6.19003657 C10.2857168,6.27821099 10.2539355,6.35454215 10.1902852,6.41901223 C10.1266348,6.48348232 10.0513125,6.51569955 9.9642832,6.51569955 L8.0357168,6.51569955 C7.94865234,6.51569955 7.8733125,6.48350013 7.80971484,6.41901223 C7.74611719,6.35452434 7.7142832,6.27821099 7.7142832,6.19003657 L7.7142832,4.23609429 C7.7142832,4.14791987 7.74609961,4.07158871 7.80971484,4.00711863 C7.87333008,3.94264854 7.94865234,3.91043131 8.0357168,3.91043131 L9.9642832,3.91043131 C10.0513125,3.91043131 10.1266523,3.94263073 10.1902852,4.00711863 C10.253918,4.07160652 10.2857168,4.14791987 10.2857168,4.23609429 L10.2857168,4.23609429 Z M9.16903125,7.81833368 C11.2492793,7.81833368 12.9357773,9.40274838 12.9357773,11.1563347 C12.9357773,12.9099211 11.2492793,14.3315043 9.16903125,14.3315043 C6.12722461,14.3315043 5.51118164,12.6625127 5.40796289,11.2840817 C5.40796289,11.1427461 5.52624609,11.1088726 5.68696289,11.1088726 C5.84767969,11.1088726 7.58668359,11.1088726 7.67580469,11.1088726 C7.78296094,11.1088726 7.93024805,11.120146 7.98437109,11.297136 C7.98437109,12.1672506 10.3744336,12.2758168 10.3744336,11.1563703 C10.3744336,10.5952669 9.85206445,10.0198268 9.16908398,9.97749386 C8.48610352,9.93516088 7.72265039,9.84201763 7.72265039,9.01224131 C7.72265039,8.7803271 7.72265039,8.55502017 7.72265039,8.21628508 C7.72265039,7.87763903 7.89345703,7.81833368 8.20483594,7.81833368 C8.51621484,7.81833368 9.16904883,7.81833368 9.16904883,7.81833368 L9.16903125,7.81833368 Z", id: "Shape-help", transform: "translate(9.000000, 9.120968) scale(-1, 1) rotate(-180.000000) translate(-9.000000, -9.120968) " }))))) })); } function UserDropdown() { var _a = react_1.useState(false), userIsOpen = _a[0], userSetOpen = _a[1]; function configureClient() { api('/multicloud/common/configure/') .then(function (_a) { var token_endpoint = _a.token_endpoint; window.open(token_endpoint + "/request", '_blank'); }) .catch(function (error) { // eslint-disable-next-line no-console console.error(error); }); } function logout() { api('/multicloud/logout/') .then(function (_a) { var admin = _a.admin, logoutPath = _a.logoutPath; var onLogout = function (delay) { if (delay === void 0) { delay = 0; } return setTimeout(function () { location.reload(true); }, delay); }; if (admin) { var form = document.createElement('form'); form.target = 'hidden-form'; form.method = 'POST'; form.action = logoutPath; var iframe = document.createElement('iframe'); iframe.setAttribute('type', 'hidden'); iframe.name = 'hidden-form'; iframe.onload = function () { return onLogout(500); }; document.body.appendChild(iframe); document.body.appendChild(form); form.submit(); } onLogout(500); }) .catch(function (error) { // eslint-disable-next-line no-console console.error(error); }); } function LogoutButton() { return (react_1.default.createElement(react_core_1.ApplicationLauncherItem, { component: "button", id: "logout", onClick: function () { return logout(); } }, "Logout")); } function ConfigureButton() { return (react_1.default.createElement(react_core_1.ApplicationLauncherItem, { component: "button", id: "configure", onClick: function () { return configureClient(); } }, "Configure client")); } return (react_1.default.createElement(react_core_1.ApplicationLauncher, { "aria-label": "user-menu", "data-test": "user-dropdown", className: "co-app-launcher co-user-menu", onSelect: function () { return userSetOpen(false); }, onToggle: function () { return userSetOpen(!userIsOpen); }, isOpen: userIsOpen, items: [react_1.default.createElement(ConfigureButton, { key: "user_configure" }), react_1.default.createElement(LogoutButton, { key: "user_logout" })], "data-quickstart-id": "qs-masthead-usermenu", position: "right", toggleIcon: react_1.default.createElement(UserDropdownToggle, null) })); } function AboutModalVersion() { var _a = react_1.useState('undefined'), version = _a[0], setVersion = _a[1]; react_1.useEffect(function () { var dev = process.env.NODE_ENV !== 'production'; var serverForTest = dev ? 'https://localhost:3000' : ''; api(serverForTest + "/multicloud/common/version/") .then(function (_a) { var version = _a.version; setVersion(version); }) .catch(function (error) { // eslint-disable-next-line no-console console.error(error); setVersion('undefined'); }); }, []); return react_1.default.createElement("span", { className: "version-details__no" }, version === 'undefined' ? react_1.default.createElement(react_core_1.Spinner, { size: "md" }) : version); } function AboutContent() { return (react_1.default.createElement(react_core_1.TextContent, null, react_1.default.createElement(react_core_1.TextList, { component: "dl" }, react_1.default.createElement(react_core_1.TextListItem, { component: "dt" }, "ACM Version"), react_1.default.createElement(react_core_1.TextListItem, { component: "dd" }, react_1.default.createElement(AboutModalVersion, null))))); } var useStyles = styles_1.makeStyles({ list: { '& li.pf-c-nav__item.pf-m-expandable.pf-m-expanded': { '& section': { display: 'list-item', }, }, '& li.pf-c-nav__item.pf-m-expandable': { '& section': { display: 'none', }, }, }, about: { height: 'min-content', }, perspective: { 'font-size': '$co-side-nav-font-size', 'justify-content': 'space-between', width: '100%', '& .pf-c-dropdown__toggle-icon': { color: 'var(--pf-global--Color--light-100)', 'font-size': '$co-side-nav-section-font-size', }, '& .pf-c-dropdown__menu-item': { 'padding-left': '7px', '& h2': { 'font-size': '12px', 'padding-left': '7px', }, }, '& .pf-c-title': { color: 'var(--pf-global--Color--light-100)', 'font-size': '14px', 'font-family': 'var(--pf-global--FontFamily--sans-serif)', '& .oc-nav-header__icon': { 'vertical-align': '-0.125em', }, '& h2': { 'font-size': '$co-side-nav-section-font-size', 'font-family': 'var(--pf-global--FontFamily--sans-serif)', }, }, '&::before': { border: 'none', }, }, }); var HubOfHubsRoute; (function (HubOfHubsRoute) { HubOfHubsRoute["Welcome"] = "/multicloud/welcome"; HubOfHubsRoute["Clusters"] = "/multicloud/clusters"; HubOfHubsRoute["Applications"] = "/multicloud/applications"; HubOfHubsRoute["HubClusters"] = "/multicloud/hierarchy-clusters"; HubOfHubsRoute["Governance"] = "/multicloud/policies"; HubOfHubsRoute["Credentials"] = "/multicloud/credentials"; })(HubOfHubsRoute = exports.HubOfHubsRoute || (exports.HubOfHubsRoute = {})); function NavExpandableList(props) { var _a; var route = props.route, showSwitcher = props.showSwitcher; var classes = useStyles(); var _b = react_1.useState(false), switcherIsOpen = _b[0], setSwitcherOpen = _b[1]; var _c = react_1.useState(((_a = window === null || window === void 0 ? void 0 : window.localStorage) === null || _a === void 0 ? void 0 : _a.getItem('isInfrastructureOpen')) === 'true'), infrastructureIsOpen = _c[0], setInfrastructureOpen = _c[1]; react_1.useEffect(function () { var _a; if (((_a = window === null || window === void 0 ? void 0 : window.localStorage) === null || _a === void 0 ? void 0 : _a.getItem('isInfrastructureOpen')) === 'true') { setInfrastructureOpen(true); } else { setInfrastructureOpen(false); } }); var switcherExists = showSwitcher; var iconStyles = { paddingRight: '7px' }; var acmIconStyle = { height: '14px', fill: 'currentColor', paddingRight: '7px', }; var textStyles = { fontSize: '14px' }; function ACMIcon() { return (react_1.default.createElement("svg", { viewBox: "0 0 14 13.97", style: acmIconStyle }, react_1.default.createElement("g", { id: "Layer_2", "data-name": "Layer 2" }, react_1.default.createElement("g", { id: "Layer_1-2", "data-name": "Layer 1" }, react_1.default.createElement("path", { d: "M12.63,6A1.5,1.5,0,1,0,11,4.51l-1.54.91a2.94,2.94,0,0,0-1.85-1L7.35,2.66a1.52,1.52,0,0,0,.49-.72,1.5,1.5,0,0,0-1-1.87A1.49,1.49,0,0,0,5,1.06a1.51,1.51,0,0,0,.88,1.83L6.12,4.6A2.9,2.9,0,0,0,4.5,6.29L2.88,6.07a1.52,1.52,0,0,0-.55-.68,1.51,1.51,0,0,0-2.08.43A1.49,1.49,0,0,0,2.67,7.56l1.68.23A3,3,0,0,0,5.41,9.6L4.8,11a1.5,1.5,0,1,0,1.14,2.63,1.49,1.49,0,0,0,.24-2l.61-1.39a3.44,3.44,0,0,0,.45,0,2.92,2.92,0,0,0,1.6-.48L10.21,11a1.45,1.45,0,0,0,.09.87,1.5,1.5,0,1,0,.91-2L9.85,8.66a3,3,0,0,0,.33-1.34,3.1,3.1,0,0,0,0-.54l1.64-1A1.47,1.47,0,0,0,12.63,6ZM5.48,7.32A1.77,1.77,0,1,1,7.24,9.08,1.76,1.76,0,0,1,5.48,7.32Z" }))))); } var isConsoleRoute = react_1.useMemo(function () { switch (route) { case HubOfHubsRoute.Clusters: case HubOfHubsRoute.HubClusters: return true; } return false; }, [props.route]); function DropdownItemToggle(isInfrastructureToggle) { var _a; setSwitcherOpen(false); (_a = window === null || window === void 0 ? void 0 : window.localStorage) === null || _a === void 0 ? void 0 : _a.setItem('isInfrastructureOpen', isInfrastructureToggle + ''); setInfrastructureOpen(isInfrastructureToggle); window.location.href = HubOfHubsRoute.Welcome; } return (react_1.default.createElement(react_core_1.Nav, { onSelect: function () { var _a; return (_a = props.postClick) === null || _a === void 0 ? void 0 : _a.call(props); } }, react_1.default.createElement("div", { className: "oc-nav-header", style: { padding: 'var(--pf-global--spacer--sm) var(--pf-global--spacer--sm)' }, hidden: !switcherExists }, react_1.default.createElement(react_core_1.Dropdown, { toggle: react_1.default.createElement(react_core_1.DropdownToggle, { id: "toggle-perspective", onToggle: function () { return setSwitcherOpen(!switcherIsOpen); }, toggleIndicator: react_icons_1.CaretDownIcon, style: { color: 'white' }, className: classes.perspective }, react_1.default.createElement(react_core_1.Title, { headingLevel: "h2", size: "md" }, react_1.default.createElement("span", { className: "oc-nav-header__icon" }, react_1.default.createElement(ACMIcon, null)), infrastructureIsOpen ? "Hub Management" : "Global View")), dropdownItems: [ react_1.default.createElement(react_core_1.DropdownItem, { onClick: function () { return DropdownItemToggle(false); }, key: 'acm' }, react_1.default.createElement(react_core_1.Title, { headingLevel: "h2", size: "md" }, react_1.default.createElement("span", { className: "oc-nav-header__icon" }, react_1.default.createElement(ACMIcon, null)), react_1.default.createElement("span", { style: textStyles }, "Global View"))), react_1.default.createElement(react_core_1.DropdownItem, { onClick: function () { return DropdownItemToggle(true); }, key: 'acm-inf' }, react_1.default.createElement(react_core_1.Title, { headingLevel: "h2", size: "md" }, react_1.default.createElement("span", { className: "oc-nav-header__icon" }, react_1.default.createElement(ACMIcon, null)), react_1.default.createElement("span", { style: textStyles }, "Hub Management"))), react_1.default.createElement(react_core_1.DropdownItem, { onClick: function () { return launchToOCP('?perspective=admin'); }, key: 'administrator' }, react_1.default.createElement(react_core_1.Title, { headingLevel: "h2", size: "md" }, react_1.default.createElement("span", { className: "oc-nav-header__icon", style: iconStyles }, react_1.default.createElement(react_icons_1.CogsIcon, null)), react_1.default.createElement("span", { style: textStyles }, "Administrator"))), react_1.default.createElement(react_core_1.DropdownItem, { onClick: function () { return launchToOCP('?perspective=dev'); }, key: 'devbutton' }, react_1.default.createElement(react_core_1.Title, { headingLevel: "h2", size: "md" }, react_1.default.createElement("span", { className: "oc-nav-header__icon", style: iconStyles }, react_1.default.createElement(react_icons_1.CodeIcon, null)), react_1.default.createElement("span", { style: textStyles }, "Developer"))), ], isOpen: switcherIsOpen })), react_1.default.createElement(react_core_1.NavItemSeparator, { style: switcherExists ? {} : { display: 'none' } }), react_1.default.createElement(react_core_1.NavList, { className: classes.list }, react_1.default.createElement(react_core_1.NavExpandable, { title: "Home", isActive: route === HubOfHubsRoute.Welcome, isExpanded: true }, react_1.default.createElement(react_core_1.NavItem, { isActive: route === HubOfHubsRoute.Welcome, to: HubOfHubsRoute.Welcome }, "Welcome")), react_1.default.createElement(react_core_1.NavExpandable, { title: "Infrastructure", isActive: route === HubOfHubsRoute.Clusters || route === HubOfHubsRoute.HubClusters, isExpanded: true }, infrastructureIsOpen ? react_1.default.createElement(react_core_1.NavItem, { isActive: route === HubOfHubsRoute.HubClusters, to: HubOfHubsRoute.HubClusters }, isConsoleRoute ? react_1.default.createElement(react_router_dom_1.Link, { to: HubOfHubsRoute.HubClusters }, "Hub Clusters") : 'Hub Clusters') : react_1.default.createElement(react_core_1.NavItem, { isActive: route === HubOfHubsRoute.Clusters, to: HubOfHubsRoute.Clusters }, isConsoleRoute ? react_1.default.createElement(react_router_dom_1.Link, { to: HubOfHubsRoute.Clusters }, "Managed Clusters") : 'Managed Clusters')), !infrastructureIsOpen && react_1.default.createElement(react_core_1.NavItem, { isActive: route === HubOfHubsRoute.Applications, to: HubOfHubsRoute.Applications }, "Applications"), react_1.default.createElement(react_core_1.NavItem, { isActive: route === HubOfHubsRoute.Governance, to: HubOfHubsRoute.Governance }, "Governance"), infrastructureIsOpen && react_1.default.createElement(react_core_1.NavItem, { isActive: route === HubOfHubsRoute.Credentials, to: HubOfHubsRoute.Credentials }, "Credentials")))); } function HubOfHubsHeader(props) { var _a; var isFullWidthPage = core_1.useMediaQuery('(min-width: 1200px)', { noSsr: true }); var _b = react_1.useState(((_a = window === null || window === void 0 ? void 0 : window.localStorage) === null || _a === void 0 ? void 0 : _a.getItem('isNavOpen')) !== 'false'), isNavOpen = _b[0], setNavOpen = _b[1]; react_1.useEffect(function () { var _a; if (!isFullWidthPage) { setNavOpen(false); } else { if (((_a = window === null || window === void 0 ? void 0 : window.localStorage) === null || _a === void 0 ? void 0 : _a.getItem('isNavOpen')) !== 'false') { setNavOpen(true); } } }, [isFullWidthPage]); var _c = react_1.useState(false), aboutModalOpen = _c[0], setAboutModalOpen = _c[1]; var _d = react_1.useState(true), appSwitcherExists = _d[0], setAppSwitcherExists = _d[1]; var classes = useStyles(); function OCPButton() { return (react_1.default.createElement(react_core_1.ApplicationLauncherItem, { key: "ocp_launch", isExternal: true, icon: react_1.default.createElement(AcmIcons_1.AcmIcon, { icon: AcmIcons_1.AcmIconVariant.ocp }), component: "button", onClick: function () { return launchToOCP(''); } }, "Red Hat Openshift Container Platform")); } function AppSwitcherTopBar() { var _a = react_1.useState({}), extraItems = _a[0], setExtraItems = _a[1]; var _b = react_1.useState(false), appSwitcherOpen = _b[0], setAppSwitcherOpen = _b[1]; react_1.useEffect(function () { var dev = process.env.NODE_ENV !== 'production'; var serverForTest = dev ? 'https://localhost:3000' : ''; api(serverForTest + "/multicloud/common/applinks/") .then(function (_a) { var data = _a.data; setExtraItems(data); }) .catch(function (error) { // eslint-disable-next-line no-console console.error(error); }); }, []); var extraMenuItems = []; var count = 0; for (var section in extraItems) { extraMenuItems.push(react_1.default.createElement(react_core_1.ApplicationLauncherGroup, { label: section, key: section }, extraItems[section].map(function (sectionItem) { return (react_1.default.createElement(react_core_1.ApplicationLauncherItem, { key: sectionItem.name + '-launcher', isExternal: true, icon: react_1.default.createElement("img", { src: sectionItem.icon }), component: "button", onClick: function () { return window.open(sectionItem.url, '_blank'); } }, sectionItem.name)); }), count < Object.keys(extraItems).length - 1 && react_1.default.createElement(react_core_1.ApplicationLauncherSeparator, { key: "separator" }))); count = count + 1; } return (react_1.default.createElement(react_core_1.ApplicationLauncher, { hidden: appSwitcherExists, "aria-label": "app-menu", "data-test": "app-dropdown", className: "co-app-launcher co-app-menu", onSelect: function () { return setAppSwitcherOpen(false); }, onToggle: function () { return setAppSwitcherOpen(!appSwitcherOpen); }, isOpen: appSwitcherOpen, items: __spreadArray([ react_1.default.createElement(react_core_1.ApplicationLauncherGroup, { label: "Red Hat applications", key: "ocp-group" }, react_1.default.createElement(OCPButton, null), react_1.default.createElement(react_core_1.ApplicationLauncherItem, { key: "app_launch", isExternal: true, icon: react_1.default.createElement(AcmIcons_1.AcmIcon, { icon: AcmIcons_1.AcmIconVariant.redhat }), component: "button", onClick: function () { return window.open('https://cloud.redhat.com/openshift/', '_blank'); } }, "Openshift Cluster Manager"), Object.keys(extraItems).length > 0 && react_1.default.createElement(react_core_1.ApplicationLauncherSeparator, { key: "separator" })) ], extraMenuItems), "data-quickstart-id": "qs-masthead-appmenu", position: "right", style: { verticalAlign: '0.125em' } })); } react_1.useEffect(function () { checkOCPVersion(setAppSwitcherExists); }, []); var headerTools = (react_1.default.createElement(react_core_1.PageHeaderTools, null, react_1.default.createElement(react_core_1.PageHeaderToolsGroup, { visibility: { default: 'hidden', lg: 'visible', } }, react_1.default.createElement(react_core_1.PageHeaderToolsItem, null, react_1.default.createElement(AppSwitcherTopBar, null), react_1.default.createElement(react_core_1.Button, { "aria-label": "search-button", onClick: function () { return window.open('/search', '_self'); }, variant: "link", icon: react_1.default.createElement("svg", { width: "18px", height: "19px", viewBox: "0 0 18 19", version: "1.1" }, react_1.default.createElement("title", null, "search-icon"), react_1.default.createElement("g", { id: "Search-icon", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, react_1.default.createElement("g", { id: "search-svg", transform: "translate(-1127.000000, -29.000000)", fill: "#EDEDED" }, react_1.default.createElement("path", { d: "M1144.75391,45.0742188 C1144.91797,45.2382814 1145,45.4374998 1145,45.671875 C1145,45.9062502 1144.91797,46.1054686 1144.75391,46.2695312 L1143.76953,47.2539062 C1143.60547,47.4179689 1143.40625,47.5 1143.17188,47.5 C1142.9375,47.5 1142.73828,47.4179689 1142.57422,47.2539062 L1139.05859,43.7382812 C1138.89453,43.5742186 1138.8125,43.3750002 1138.8125,43.140625 L1138.8125,42.578125 C1137.5,43.6093748 1136,44.125 1134.3125,44.125 C1132.97656,44.125 1131.75195,43.7968752 1130.63867,43.140625 C1129.52539,42.4843748 1128.64063,41.5996096 1127.98438,40.4863281 C1127.32812,39.3730467 1127,38.1484375 1127,36.8125 C1127,35.4765625 1127.32812,34.2519533 1127.98438,33.1386719 C1128.64063,32.0253904 1129.52539,31.1406252 1130.63867,30.484375 C1131.75195,29.8281248 1132.97656,29.5 1134.3125,29.5 C1135.64844,29.5 1136.87305,29.8281248 1137.98633,30.484375 C1139.09961,31.1406252 1139.98437,32.0253904 1140.64062,33.1386719 C1141.29688,34.2519533 1141.625,35.4765625 1141.625,36.8125 C1141.625,38.5 1141.10937,40 1140.07812,41.3125 L1140.64062,41.3125 C1140.875,41.3125 1141.07422,41.3945311 1141.23828,41.5585938 L1144.75391,45.0742188 Z M1134.3125,41.3125 C1135.13281,41.3125 1135.88867,41.1132811 1136.58008,40.7148438 C1137.27148,40.3164064 1137.81641,39.7714846 1138.21484,39.0800781 C1138.61328,38.3886717 1138.8125,37.6328123 1138.8125,36.8125 C1138.8125,35.9921877 1138.61328,35.2363283 1138.21484,34.5449219 C1137.81641,33.8535154 1137.27148,33.3085936 1136.58008,32.9101562 C1135.88867,32.5117189 1135.13281,32.3125 1134.3125,32.3125 C1133.49219,32.3125 1132.73633,32.5117189 1132.04492,32.9101562 C1131.35352,33.3085936 1130.80859,33.8535154 1130.41016,34.5449219 C1130.01172,35.2363283 1129.8125,35.9921877 1129.8125,36.8125 C1129.8125,37.6328123 1130.01172,38.3886717 1130.41016,39.0800781 C1130.80859,39.7714846 1131.35352,40.3164064 1132.04492,40.7148438 C1132.73633,41.1132811 1133.49219,41.3125 1134.3125,41.3125 Z", id: "search-icon" })))) }), react_1.default.createElement(react_core_1.Button, { "aria-label": "create-button", onClick: function () { return launchToOCP('k8s/all-namespaces/import'); }, variant: "link", icon: react_1.default.createElement("svg", { width: "18px", height: "20px", viewBox: "0 0 18 20", version: "1.1" }, react_1.default.createElement("title", null, "add-resource-icon"), react_1.default.createElement("g", { id: "create-icon", stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd" }, react_1.default.createElement("g", { id: "create-svg", transform: "translate(-1177.000000, -29.000000)", fill: "#EDEDED", fillRule: "nonzero" }, react_1.default.createElement("g", { id: "add-resource-icon", transform: "translate(1177.000000, 29.381579)" }, react_1.default.createElement("path", { d: "M9.00103711,0 C4.03806445,0 0,4.09034203 0,9.11886629 C0,14.1453603 4.03806445,18.2368421 9.00103711,18.2368421 C13.963043,18.2368421 18,14.1453959 18,9.11886629 C18,4.09034203 13.9630254,0 9.00103711,0 Z M9.00103711,16.0225262 C5.24237695,16.0225262 2.18550586,12.9262523 2.18550586,9.11883067 C2.18550586,5.30961027 5.24241211,2.21428032 9.00103711,2.21428032 C12.7577812,2.21428032 15.8155664,5.30961027 15.8155664,9.11883067 C15.8155664,12.9262167 12.7577285,16.0225262 9.00103711,16.0225262 Z M12.7666934,10.3280366 C12.706418,10.3899599 12.6295312,10.4210552 12.535752,10.4210552 L10.2856641,10.4210552 L10.2856641,12.7007851 C10.2856641,12.7957627 10.2550957,12.8737145 10.1939414,12.9347652 C10.1327871,12.9958159 10.0544414,13.0263234 9.95925586,13.0263234 L8.04072656,13.0263234 C7.94550586,13.0263234 7.86735352,12.9957981 7.80604102,12.9347652 C7.74485156,12.8736967 7.71426562,12.7957093 7.71426562,12.7007317 L7.71426562,10.4210374 L5.46414258,10.4210017 C5.37039844,10.4210017 5.29345898,10.3900668 5.23320117,10.3280722 C5.17297852,10.2661489 5.14283203,10.1867723 5.14283203,10.0902987 L5.14283203,8.1465256 C5.14283203,8.05005199 5.17296094,7.97099599 5.23320117,7.90875208 C5.29347656,7.8467575 5.37045117,7.81576912 5.46419531,7.81576912 L7.7142832,7.81580474 L7.7142832,5.53603919 C7.7142832,5.44102596 7.74493945,5.36316319 7.80612891,5.30213032 C7.86724805,5.24106183 7.9454707,5.21050087 8.04069141,5.21050087 L9.9592207,5.21050087 C10.0544414,5.21050087 10.1325059,5.24107964 10.1939062,5.30213032 C10.2550254,5.36319881 10.2857168,5.44109719 10.2857168,5.53611043 L10.2857168,7.81575131 L12.5358398,7.81575131 C12.6296191,7.81575131 12.7064707,7.84677531 12.7667109,7.90880551 C12.8269863,7.97072885 12.8571504,8.04998075 12.8571504,8.14645436 L12.8571504,10.0902275 C12.8571504,10.1867011 12.8269688,10.2658817 12.7667109,10.328001 L12.7666934,10.3280366 Z", id: "Shape-address", transform: "translate(9.000000, 9.118421) scale(-1, 1) rotate(-180.000000) translate(-9.000000, -9.118421) " }))))) }), react_1.default.createElement(AboutDropdown, { aboutClick: function () { return setAboutModalOpen(!aboutModalOpen); } }), react_1.default.createElement(react_core_1.AboutModal, { isOpen: aboutModalOpen, onClose: function () { return setAboutModalOpen(!aboutModalOpen); }, brandImageSrc: RHACM_Logo_svg_1.default, brandImageAlt: "ACM logo", className: classes.about }, react_1.default.createElement(AboutContent, null)))), react_1.default.createElement(react_core_1.PageHeaderToolsGroup, null, react_1.default.createElement(react_core_1.PageHeaderToolsItem, null, react_1.default.createElement(UserDropdown, null))))); return (react_1.default.createElement(react_core_1.Page, __assign({}, props, { header: react_1.default.createElement(react_core_1.PageHeader, { logo: react_1.default.createElement(react_core_1.Brand, { src: RHACM_Logo_svg_1.default, alt: "RHACM Logo" }), logoProps: props, headerTools: headerTools, showNavToggle: true, isNavOpen: isNavOpen, onNavToggle: function () { var _a; (_a = window === null || window === void 0 ? void 0 : window.localStorage) === null || _a === void 0 ? void 0 : _a.setItem('isNavOpen', (!isNavOpen).toString()); setNavOpen(function (isNavOpen) { return !isNavOpen; }); } }), sidebar: react_1.default.createElement(react_core_1.PageSidebar, { nav: react_1.default.createElement(NavExpandableList, { route: props.route, showSwitcher: appSwitcherExists, postClick: function () { if (!isFullWidthPage) setNavOpen(false); } }), isNavOpen: isNavOpen, style: isFullWidthPage ? { boxShadow: 'unset' } : undefined }) }))); } exports.HubOfHubsHeader = HubOfHubsHeader; //# sourceMappingURL=HubOfHubsHeader.js.map
79.061503
2,265
0.648237
d0f24f2f987ec0233a33647ec988b44f489e631b
1,617
js
JavaScript
addon/components/io-dropdown/dropdown.js
Acidburn0zzz/antd-ember
61b882bce29a6609cd628908f44ae58e6ecbf469
[ "Apache-2.0", "MIT" ]
61
2016-03-11T16:21:06.000Z
2021-11-11T18:23:02.000Z
addon/components/io-dropdown/dropdown.js
idcos/ember-cli-idcos
61b882bce29a6609cd628908f44ae58e6ecbf469
[ "Apache-2.0", "MIT" ]
45
2016-03-15T06:06:38.000Z
2017-09-25T06:48:34.000Z
addon/components/io-dropdown/dropdown.js
idcos/ember-cli-idcos
61b882bce29a6609cd628908f44ae58e6ecbf469
[ "Apache-2.0", "MIT" ]
26
2016-03-15T07:27:50.000Z
2019-09-25T03:18:02.000Z
import Ember from 'ember'; import OutsideClick from '../../mixin/outside-click'; /** * io-dropdown Component ```html {{#io-dropdown}} {{#io-dropdown-trigger}} {{/io-dropdown-trigger}} {{#io-dropdown-overlay}} {{/io-dropdown-overlay}} {{/io-dropdown}} ``` */ export default Ember.Component.extend(OutsideClick, { /** * [tagName description] */ tagName: 'span', attributeBindings: ['disabled', 'role'], classNames: 'io-dropdown', classNamePrefix: 'io-dropdown-', classNameBindings: ['activeClass'], /** * @attribute triggerEvent * @type {String [mosueover | click]} */ triggerEvent: 'mouseover', _hidden: true, activeClass: function() { if (!this.get('_hidden')) { return this.get('classNamePrefix') + 'active'; } else { return ''; } }.property('_hidden'), /** * mosueover event description * @type {[type]} */ t: null, _mouseover: false, mouseEnter() { if (this.get('triggerEvent') !== 'mouseover') { return; } clearTimeout(this.get('t')); this.set('_mouseover', true); this.set('_hidden', false); }, mouseLeave() { if (this.get('triggerEvent') !== 'mouseover') { return; } const t = setTimeout(function() { this.set('_mouseover', false); this.set('_hidden', true); }.bind(this), 200); this.set('t', t); }, actions: { clickTrigger() { if (this.get('triggerEvent') === 'click') { this.send('toggleHidden'); } }, toggleHidden() { this.set('_hidden', !this.get('_hidden')); }, outsideClick() { if (this.get('triggerEvent') === 'click') { this.set('_hidden', true); } } } });
20.2125
53
0.598021
d0f421d66bb26b33f363e63f418627e7b501d4e0
2,413
js
JavaScript
lib/commands/package.js
Shailesh351/Rocket.Chat.Apps-cli
a6d0b86144e2f510410e48b0aa757c0b206c155a
[ "MIT" ]
null
null
null
lib/commands/package.js
Shailesh351/Rocket.Chat.Apps-cli
a6d0b86144e2f510410e48b0aa757c0b206c155a
[ "MIT" ]
null
null
null
lib/commands/package.js
Shailesh351/Rocket.Chat.Apps-cli
a6d0b86144e2f510410e48b0aa757c0b206c155a
[ "MIT" ]
null
null
null
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const command_1 = require("@oclif/command"); const chalk_1 = require("chalk"); const cli_ux_1 = require("cli-ux"); const misc_1 = require("../misc"); class Package extends command_1.Command { async run() { cli_ux_1.default.action.start('packaging your app'); const fd = new misc_1.FolderDetails(this); try { await fd.readInfoFile(); await fd.matchAppsEngineVersion(); } catch (e) { this.error(e && e.message ? e.message : e); return; } const compiler = new misc_1.AppCompiler(fd); const result = await compiler.compile(); const { flags } = this.parse(Package); if (flags.verbose) { this.log(`${chalk_1.default.green('[info]')} using TypeScript v${result.typeScriptVersion}`); } if (result.diagnostics.length && !flags.force) { this.reportDiagnostics(result.diagnostics); this.error('TypeScript compiler error(s) occurred'); this.exit(1); return; } let zipName; if (flags['no-compile']) { const packager = new misc_1.AppPackager(this, fd); zipName = await packager.zipItUp(); } else { zipName = await compiler.outputZip(); } cli_ux_1.default.action.stop('finished!'); this.log(chalk_1.default.black(' ')); this.log(chalk_1.default.green('App packaged up at:'), fd.mergeWithFolder(zipName)); } reportDiagnostics(diag) { diag.forEach((d) => this.error(d.message)); } } exports.default = Package; Package.description = 'packages up your App in a distributable format'; Package.aliases = ['p', 'pack']; Package.flags = { 'help': command_1.flags.help({ char: 'h' }), // flag with no value (-f, --force) 'no-compile': command_1.flags.boolean({ description: "don't compile the source, package as is (for older Rocket.Chat versions)", }), 'force': command_1.flags.boolean({ char: 'f', description: 'forcefully package the App, ignores lint & TypeScript errors', }), 'verbose': command_1.flags.boolean({ char: 'v', description: 'show additional details about the results of running the command', }), }; //# sourceMappingURL=package.js.map
37.123077
105
0.598425
d0f457f5cacd791ecf43692f7454ab452a6dc1fb
16,927
js
JavaScript
builder/patternlab.js
iheartmedia-matt/ihm-framework
cce3b8cb93ca7a8b8ef6465c2bbd75707b78d06d
[ "MIT" ]
null
null
null
builder/patternlab.js
iheartmedia-matt/ihm-framework
cce3b8cb93ca7a8b8ef6465c2bbd75707b78d06d
[ "MIT" ]
null
null
null
builder/patternlab.js
iheartmedia-matt/ihm-framework
cce3b8cb93ca7a8b8ef6465c2bbd75707b78d06d
[ "MIT" ]
null
null
null
/* * patternlab-node - v0.9.1 - 2015 * * Brian Muenzenmeyer, and the web community. * Licensed under the MIT license. * * Many thanks to Brad Frost and Dave Olsen for inspiration, encouragement, and advice. * */ var patternlab_engine = function(){ var path = require('path'), fs = require('fs-extra'), extend = require('util')._extend, diveSync = require('diveSync'), mustache = require('mustache'), glob = require('glob'), of = require('./object_factory'), pa = require('./pattern_assembler'), mh = require('./media_hunter'), lh = require('./lineage_hunter'), pe = require('./pattern_exporter'), pa = require('./pattern_assembler'), he = require('html-entities').AllHtmlEntities, patternlab = {}; patternlab.package =fs.readJSONSync('./package.json'); patternlab.config = fs.readJSONSync('./config.json'); function getVersion() { console.log(patternlab.package.version); } function help(){ console.log('Patternlab Node Help'); console.log('==============================='); console.log('Command Line Arguments'); console.log('patternlab:only_patterns'); console.log(' > Compiles the patterns only, outputting to ./public/patterns'); console.log('patternlab:v'); console.log(' > Retrieve the version of patternlab-node you have installed'); console.log('patternlab:help'); console.log(' > Get more information about patternlab-node, pattern lab in general, and where to report issues.'); console.log('==============================='); console.log('Visit http://patternlab.io/docs/index.html for general help on pattern-lab'); console.log('Visit https://github.com/pattern-lab/patternlab-node/issues to open a bug.'); } function printDebug() { //debug file can be written by setting flag on config.json if(patternlab.config.debug){ console.log('writing patternlab debug file to ./patternlab.json'); fs.outputFileSync('./patternlab.json', JSON.stringify(patternlab, null, 3)); } } function buildPatterns(callback){ var assembler = new pa(); patternlab.data = fs.readJSONSync('./source/_data/data.json'); patternlab.listitems = fs.readJSONSync('./source/_data/listitems.json'); patternlab.header = fs.readFileSync('./source/_patternlab-files/pattern-header-footer/header.html', 'utf8'); patternlab.footer = fs.readFileSync('./source/_patternlab-files/pattern-header-footer/footer.html', 'utf8'); patternlab.patterns = []; patternlab.partials = {}; patternlab.data.link = {}; diveSync('./source/_patterns', function(err, file){ //log any errors if(err){ console.log(err); return; } //extract some information var abspath = file.substring(2); var subdir = path.dirname(path.relative('./source/_patterns', file)).replace('\\', '/'); var filename = path.basename(file); //ignore _underscored patterns, json (for now), and dotfiles if(filename.charAt(0) === '_' || path.extname(filename) === '.json' || filename.charAt(0) === '.'){ return; } //TODO: https://github.com/pattern-lab/patternlab-node/issues/88 check for pattern parameters before we do much else. need to remove them into a data object so the rest of the filename parsing works //TODO: https://github.com/pattern-lab/patternlab-node/issues/95 check for patternstylemodifiers before we do much else. need to remove these from the template for proper rendering //make a new Pattern Object currentPattern = new of.oPattern(subdir, filename); //see if this file has a state assembler.setPatternState(currentPattern, patternlab); //look for a json file for this template try { var jsonFilename = abspath.substr(0, abspath.lastIndexOf(".")) + ".json"; currentPattern.data = fs.readJSONSync(jsonFilename); } catch(e) { } currentPattern.template = fs.readFileSync(abspath, 'utf8'); //find pattern lineage var lineage_hunter = new lh(); lineage_hunter.find_lineage(currentPattern, patternlab); //add as a partial in case this is referenced later. convert to syntax needed by existing patterns var sub = subdir.substring(subdir.indexOf('-') + 1); var folderIndex = sub.indexOf(path.sep); var cleanSub = sub.substring(0, folderIndex); //add any templates found to an object of partials, so downstream templates may use them too //look for the full path on nested patters, else expect it to be flat var partialname = ''; if(cleanSub !== ''){ partialname = cleanSub + '-' + currentPattern.patternName; } else{ partialname = currentPattern.patternGroup + '-' + currentPattern.patternName; } patternlab.partials[partialname] = currentPattern.template; //look for a pseudo pattern by checking if there is a file containing same name, with ~ in it, ending in .json var needle = currentPattern.subdir + '/' + currentPattern.fileName+ '~*.json'; var pseudoPatterns = glob.sync(needle, { cwd: 'source/_patterns/', //relative to gruntfile debug: false, nodir: true, }); if(pseudoPatterns.length > 0){ for(var i = 0; i < pseudoPatterns.length; i++){ //we want to do everything we normally would here, except instead head the pseudoPattern data var variantFileData = fs.readJSONSync('source/_patterns/' + pseudoPatterns[i]); //extend any existing data with variant data variantFileData = extend(variantFileData, currentPattern.data); var variantName = pseudoPatterns[i].substring(pseudoPatterns[i].indexOf('~') + 1).split('.')[0]; var patternVariant = new of.oPattern(subdir, currentPattern.fileName + '-' + variantName + '.mustache', variantFileData); //see if this file has a state assembler.setPatternState(patternVariant, patternlab); //use the same template as the non-variant patternVariant.template = currentPattern.template; //find pattern lineage lineage_hunter.find_lineage(patternVariant, patternlab); //add to patternlab object so we can look these up later. assembler.addPattern(patternVariant, patternlab); } } //add to patternlab object so we can look these up later. assembler.addPattern(currentPattern, patternlab); }); var entity_encoder = new he(); //render all patterns last, so lineageR works patternlab.patterns.forEach(function(pattern, index, patterns){ //render the pattern. pass partials and data if(pattern.data) { // Pass found pattern-specific JSON as data //extend pattern data links into link for pattern link shortcuts to work. we do this locally and globally pattern.data.link = extend({}, patternlab.data.link); pattern.patternPartial = renderPattern(pattern.template, pattern.data, patternlab.partials); }else{ // Pass global patternlab data pattern.patternPartial = renderPattern(pattern.template, patternlab.data, patternlab.partials); } //add footer info before writing var patternFooter = renderPattern(patternlab.footer, pattern); //write the compiled template to the public patterns directory fs.outputFileSync('./public/patterns/' + pattern.patternLink, patternlab.header + pattern.patternPartial + patternFooter); //write the mustache file too fs.outputFileSync('./public/patterns/' + pattern.patternLink.replace('.html', '.mustache'), entity_encoder.encode(pattern.template)); //write the encoded version too fs.outputFileSync('./public/patterns/' + pattern.patternLink.replace('.html', '.escaped.html'), entity_encoder.encode(pattern.patternPartial)); }); //export patterns if necessary var pattern_exporter = new pe(); pattern_exporter.export_patterns(patternlab); } function buildFrontEnd(){ patternlab.buckets = []; patternlab.bucketIndex = []; patternlab.patternPaths = {}; patternlab.viewAllPaths = {}; //find mediaQueries var media_hunter = new mh(); media_hunter.find_media_queries(patternlab); //build the styleguide var styleguideTemplate = fs.readFileSync('./source/_patternlab-files/styleguide.mustache', 'utf8'); var styleguideHtml = renderPattern(styleguideTemplate, {partials: patternlab.patterns}); fs.outputFileSync('./public/styleguide/html/styleguide.html', styleguideHtml); //build the viewall pages var prevSubdir = '', i; for (i = 0; i < patternlab.patterns.length; i++) { var pattern = patternlab.patterns[i]; // check if the current sub section is different from the previous one if (pattern.subdir !== prevSubdir) { prevSubdir = pattern.subdir; var viewAllPatterns = [], patternPartial = "viewall-" + pattern.patternGroup + "-" + pattern.patternSubGroup, j; for (j = 0; j < patternlab.patterns.length; j++) { if (patternlab.patterns[j].subdir == pattern.subdir) { viewAllPatterns.push(patternlab.patterns[j]); } } var viewAllTemplate = fs.readFileSync('./source/_patternlab-files/viewall.mustache', 'utf8'); var viewAllHtml = renderPattern(viewAllTemplate, {partials: viewAllPatterns, patternPartial: patternPartial}); fs.outputFileSync('./public/patterns/' + pattern.flatPatternPath + '/index.html', viewAllHtml); } } //build the patternlab website var patternlabSiteTemplate = fs.readFileSync('./source/_patternlab-files/index.mustache', 'utf8'); //loop through all patterns.to build the navigation //todo: refactor this someday for(var i = 0; i < patternlab.patterns.length; i++){ var pattern = patternlab.patterns[i]; var bucketName = pattern.name.replace(/\\/g, '-').split('-')[1]; //check if the bucket already exists var bucketIndex = patternlab.bucketIndex.indexOf(bucketName); if(bucketIndex === -1){ //add the bucket var bucket = new of.oBucket(bucketName); //add patternPath and viewAllPath patternlab.patternPaths[bucketName] = {}; patternlab.viewAllPaths[bucketName] = {}; //get the navItem var navItemName = pattern.subdir.split('-').pop(); //get the navSubItem var navSubItemName = pattern.patternName.replace(/-/g, ' '); //test whether the pattern struture is flat or not - usually due to a template or page var flatPatternItem = false; if(navItemName === bucketName){ flatPatternItem = true; } //assume the navItem does not exist. var navItem = new of.oNavItem(navItemName); //assume the navSubItem does not exist. var navSubItem = new of.oNavSubItem(navSubItemName); navSubItem.patternPath = pattern.patternLink; navSubItem.patternPartial = bucketName + "-" + pattern.patternName; //add the hyphenated name //add the patternState if it exists if(pattern.patternState){ navSubItem.patternState = pattern.patternState; } //if it is flat - we should not add the pattern to patternPaths if(flatPatternItem){ bucket.patternItems.push(navSubItem); //add to patternPaths addToPatternPaths(bucketName, pattern); } else{ bucket.navItems.push(navItem); bucket.navItemsIndex.push(navItemName); navItem.navSubItems.push(navSubItem); navItem.navSubItemsIndex.push(navSubItemName); //add to patternPaths addToPatternPaths(bucketName, pattern); } //add the bucket. patternlab.buckets.push(bucket); patternlab.bucketIndex.push(bucketName); //done } else{ //find the bucket var bucket = patternlab.buckets[bucketIndex]; //get the navItem var navItemName = pattern.subdir.split('-').pop(); //get the navSubItem var navSubItemName = pattern.patternName.replace(/-/g, ' '); //assume the navSubItem does not exist. var navSubItem = new of.oNavSubItem(navSubItemName); navSubItem.patternPath = pattern.patternLink; navSubItem.patternPartial = bucketName + "-" + pattern.patternName; //add the hyphenated name //add the patternState if it exists if(pattern.patternState){ navSubItem.patternState = pattern.patternState; } //test whether the pattern struture is flat or not - usually due to a template or page var flatPatternItem = false; if(navItemName === bucketName){ flatPatternItem = true; } //if it is flat - we should not add the pattern to patternPaths if(flatPatternItem){ //add the navItem to patternItems bucket.patternItems.push(navSubItem); //add to patternPaths addToPatternPaths(bucketName, pattern); } else{ //check to see if navItem exists var navItemIndex = bucket.navItemsIndex.indexOf(navItemName); if(navItemIndex === -1){ var navItem = new of.oNavItem(navItemName); //add the navItem and navSubItem navItem.navSubItems.push(navSubItem); navItem.navSubItemsIndex.push(navSubItemName); bucket.navItems.push(navItem); bucket.navItemsIndex.push(navItemName); } else{ //add the navSubItem var navItem = bucket.navItems[navItemIndex]; navItem.navSubItems.push(navSubItem); navItem.navSubItemsIndex.push(navSubItemName); } //add the navViewAllSubItem var navViewAllSubItem = new of.oNavSubItem(""); navViewAllSubItem.patternName = "View All"; navViewAllSubItem.patternPath = pattern.flatPatternPath + "/index.html"; navViewAllSubItem.patternPartial = "viewall-" + pattern.patternGroup + "-" + pattern.patternSubGroup; //check if we are moving to a new sub section in the next loop if (!patternlab.patterns[i + 1] || pattern.patternSubGroup !== patternlab.patterns[i + 1].patternSubGroup) { navItem.navSubItems.push(navViewAllSubItem); navItem.navSubItemsIndex.push("View All"); } // just add to patternPaths addToPatternPaths(bucketName, pattern); } } patternlab.viewAllPaths[bucketName][pattern.patternSubGroup] = pattern.flatPatternPath; } //the patternlab site requires a lot of partials to be rendered. //patternNav var patternNavTemplate = fs.readFileSync('./source/_patternlab-files/partials/patternNav.mustache', 'utf8'); var patternNavPartialHtml = renderPattern(patternNavTemplate, patternlab); //ishControls var ishControlsTemplate = fs.readFileSync('./source/_patternlab-files/partials/ishControls.mustache', 'utf8'); patternlab.config.mqs = patternlab.mediaQueries; var ishControlsPartialHtml = renderPattern(ishControlsTemplate, patternlab.config); //patternPaths var patternPathsTemplate = fs.readFileSync('./source/_patternlab-files/partials/patternPaths.mustache', 'utf8'); var patternPathsPartialHtml = renderPattern(patternPathsTemplate, {'patternPaths': JSON.stringify(patternlab.patternPaths)}); //viewAllPaths var viewAllPathsTemplate = fs.readFileSync('./source/_patternlab-files/partials/viewAllPaths.mustache', 'utf8'); var viewAllPathsPartialHtml = renderPattern(viewAllPathsTemplate, {'viewallpaths': JSON.stringify(patternlab.viewAllPaths)}); //render the patternlab template, with all partials var patternlabSiteHtml = renderPattern(patternlabSiteTemplate, {}, { 'ishControls': ishControlsPartialHtml, 'patternNav': patternNavPartialHtml, 'patternPaths': patternPathsPartialHtml, 'viewAllPaths': viewAllPathsPartialHtml }); fs.outputFileSync('./public/index.html', patternlabSiteHtml); } function renderPattern(name, data, partials) { if(partials) { return mustache.render(name, data, partials); }else{ return mustache.render(name, data); } } function addToPatternPaths(bucketName, pattern){ //this is messy, could use a refactor. patternlab.patternPaths[bucketName][pattern.patternName] = pattern.subdir.replace(/\\/g, '/') + "/" + pattern.fileName; } return { version: function(){ return getVersion(); }, build: function(){ buildPatterns(); buildFrontEnd(); printDebug(); }, help: function(){ help(); }, build_patterns_only: function(){ buildPatterns(); printDebug(); } }; }; module.exports = patternlab_engine;
37.783482
204
0.661015
d0f66c07cc6576443a149a09821c547673db0678
39
js
JavaScript
index.js
qfox/pym
5a8f62d4b447e17565334baf43127c731fd53dc7
[ "MIT" ]
2
2015-11-09T07:30:01.000Z
2016-09-09T05:16:19.000Z
index.js
zxqfox/pym
5a8f62d4b447e17565334baf43127c731fd53dc7
[ "MIT" ]
2
2016-10-03T14:47:44.000Z
2016-10-07T09:52:28.000Z
index.js
zxqfox/pym
5a8f62d4b447e17565334baf43127c731fd53dc7
[ "MIT" ]
null
null
null
module.exports = require('./lib/pym');
19.5
38
0.666667
d0f682589dacddfc29871f97534fe00b41b178ae
4,599
js
JavaScript
canvas2d/index.js
huanghuiqiang/canvas_demo
015ec5288dc72de7ab79347f4df45331937845dc
[ "Apache-2.0" ]
null
null
null
canvas2d/index.js
huanghuiqiang/canvas_demo
015ec5288dc72de7ab79347f4df45331937845dc
[ "Apache-2.0" ]
null
null
null
canvas2d/index.js
huanghuiqiang/canvas_demo
015ec5288dc72de7ab79347f4df45331937845dc
[ "Apache-2.0" ]
null
null
null
let graphs = {};//缓存图形,维护图形与颜色对应的color var canvas = document.getElementById('canvas'); var hideCanvas = document.getElementById('hideCanvas'); var ctx = canvas.getContext('2d'); var hideCtx = hideCanvas.getContext('2d'); hideCtx.width = ctx.width = canvas.width = hideCanvas.width = document.body.offsetWidth; hideCtx.height = ctx.height = canvas.height = hideCanvas.height = document.body.offsetHeight; //声明三角形的点 let trianglePoint = [{ x: 75, y: 50 }, { x: 100, y: 75 }, { x: 100, y: 25 }]; let downFlag = false;//是否按下 let selectedGraph = null;//当前选中的图形的元素颜色 //初始化绘图 initDraw(ctx, hideCtx, trianglePoint, false, 5, '#000000'); canvas.addEventListener('mousedown', function (e) { let pointX = e.clientX, pointY = e.clientY; let getHideColor = hideCtx.getImageData(pointX, pointY, 1, 1).data; const getHexColor = rgbToHex(getHideColor[0], getHideColor[1], getHideColor[2]); const graphsData = graphs[getHexColor];//选中的图形信息 selectedGraph = getHexColor; downFlag = { lastPointX: pointX, lastPointY: pointY }; console.log('选中的颜色', getHexColor); console.log('缓存的图形关系信息', graphs); console.log('选中的图形信息', graphsData); if (!graphsData) { return } const { points, isFill, lineWidth, color } = graphsData; graphsData.color = '#ff00ff';//选中更新边框颜色 drawGraph(ctx, hideCtx, points, isFill, lineWidth, getHexColor, graphsData.color); }, false) canvas.addEventListener('mousemove', function (e) { const graphsData = graphs[selectedGraph];//选中的图形信息 if (!downFlag || !graphsData) {//判断是否鼠标点击或者选中图形 return; } let pointX = e.clientX, pointY = e.clientY;//鼠标当前的位置 let { lastPointX, lastPointY } = downFlag;//上一次鼠标的位置 let distanceX = pointX - lastPointX, distanceY = pointY - lastPointY;//两次位置的差距 let { points, isFill, lineWidth, color } = graphsData let newPoints = points.map((val) => { return { x: val.x + distanceX, y: val.y + distanceY } });//计算出新的点应该在的位置 //更新位置 downFlag = { lastPointX: pointX, lastPointY: pointY } graphsData.points = newPoints;//更新新坐标 drawGraph(ctx, hideCtx, newPoints, isFill, lineWidth, selectedGraph, color); }, false) canvas.addEventListener('mouseup', function (e) { if (!downFlag) { return } downFlag = false const graphsData = graphs[selectedGraph];//选中的图形信息 if (!graphsData) {//没有选中图形 return } const { points, isFill, lineWidth, color } = graphsData; graphsData.color = '#000000' drawGraph(ctx, hideCtx, points, isFill, lineWidth, selectedGraph, graphsData.color);//选中更新边框颜色 selectedGraph = null }, false) //初始化绘图函数 function initDraw(ctx, hideCtx, points, isFill, lineWidth, color) { //初始化图形及底色 let roundColor = getRandomColor(); graphs[roundColor] ? roundColor = getRandomColor() : '';//判断颜色是否已经使用过,如果已经有了 那么就重新更新颜色 graphs[roundColor] = {//缓存整个页面的配置 points: points,//缓存点 color: color,//缓存颜色 isFill: isFill,//缓存是否填充 lineWidth: lineWidth,//线的宽度 // pointColor:[] } drawGraph(ctx, hideCtx, points, isFill, lineWidth, roundColor, color);//绘制可视化的画布 } function drawGraph(ctx, hideCtx, points, isFill, lineWidth, lowColor, color) { drawSingleGraph(ctx, points, isFill, lineWidth, color);//绘制可视化的画布 drawSingleGraph(hideCtx, points, isFill, lineWidth + 10, lowColor);//绘制可视化的画布 } /** * ctx 绘图环境 * point 图形的点 * color 图形颜色 * isFill 图形是否是填充 */ function drawSingleGraph(ctx, point, isFill, lineWidth, color) { ctx.clearRect(0, 0, ctx.width, ctx.height);//清空画布 ctx.save();//储存状态 ctx.beginPath(); color && (isFill ? ctx.fillStyle = color : ctx.strokeStyle = color);//判断是有颜色的情况,就设置颜色大小 ctx.lineWidth = lineWidth; ctx.lineJoin = 'miter'; ctx.miterLimit = 5 point.forEach((point, index) => { //index为0 if (!index) { ctx.moveTo(point.x, point.y); } else { ctx.lineTo(point.x, point.y); } }) ctx.closePath(); isFill ? ctx.fill() : ctx.stroke();//判断是否是填充 ctx.restore();//恢复上一次的状态 } //随机生成16位的颜色值 function getRandomColor() { return '#' + (function (color) { return (color += '0123456789abcdef'[Math.floor(Math.random() * 16)]) && (color.length == 6) ? color : arguments.callee(color); })(''); } function componentToHex(c) { var hex = c.toString(16); return hex.length == 1 ? "0" + hex : hex; } function rgbToHex(r, g, b) { return "#" + componentToHex(r) + componentToHex(g) + componentToHex(b); }
28.565217
98
0.641444
d0f6d68506631ea0e8df1e43e60c47b4597713b4
4,559
js
JavaScript
Public/js2/menu.js
liugens/voipswitchWeb
6ff9b77b1eec2f6c6d88bd5098a27fea069166ff
[ "Apache-2.0" ]
1
2020-04-15T19:23:30.000Z
2020-04-15T19:23:30.000Z
Public/js2/menu.js
liugens/voipswitchWeb
6ff9b77b1eec2f6c6d88bd5098a27fea069166ff
[ "Apache-2.0" ]
null
null
null
Public/js2/menu.js
liugens/voipswitchWeb
6ff9b77b1eec2f6c6d88bd5098a27fea069166ff
[ "Apache-2.0" ]
2
2018-08-02T09:51:06.000Z
2020-04-15T19:23:33.000Z
var imgPlus = 'images/plus.gif'; var imgSub = 'images/nofollow.gif'; var imgChild = 'images/jiantou.gif'; var menu_begin = '<tr name="%id_td"><td height="20" class="border" valign="bottom">' + '<table onclick="menu_onclick(this)" onmouseover="menu_mouseover(this)" onmouseout="menu_mouseout(this)" width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="32" align="right" valign="top">' + '<img name="%id_img" onclick="childExpand(this)" style="display:none;cursor:hand" src="' + imgPlus + '"></td><td valign="bottom">'; /*var menu_end = '</td></table></td></tr><tr style="display:none" id="%id_menu" >' + '<td class="border" >' + '<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="40" align="right" valign="top">&nbsp;' + '</td><td id="%id_child" valign="bottom">' + '</td></tr></table></td>'; */ var menu_end = '</td></table></td></tr><tbody id="%id_menu" style="display:none"></tbody>'; var child_begin = '<table onclick="menu_onclick(this)" onmouseover="menu_mouseover(this)" onmouseout="menu_mouseout(this)" width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="50" align="right" valign="middle">' + '<img name="%id_img" src="' + imgChild + '"></td><td valign="bottom">'; var child_end = '</td></tr></table>'; var menu_array = new Array(); var selected = null; function menu_mouseover(e){ e.bgColor = "#cccccc"; } function menu_mouseout(e){ if(selected != e) e.bgColor = "#f3f3f3"; else e.bgColor = "#e3e7ea"; } function menu_onclick(e){ e.bgColor = "#e3e7ea"; if(selected != null) selected.bgColor = "#f3f3f3"; selected = e; } function childExpand(e){ var Id = e.name; var name = Id.substring(0,Id.indexOf("_")); closeAll(name); var menu = eval(name+"_menu"); if(menu.style.display=="none"){ e.src = imgSub; menu.style.display="block"; }else{ e.src = imgPlus; menu.style.display="none"; } } function MN_Head() { document.write('<table width="189" height="109%" border="0" cellpadding="0" cellspacing="0">'); document.write('<tr>'); document.write('<td height="18"><img src="images/caidan.jpg" width="189" height="18"></td>'); document.write('</tr>'); document.write('<tr>'); document.write('<td height="349" valign="top"><table width="175" border="0" align="center" cellpadding="0" cellspacing="0">'); } function MN_Tail() { document.write('</table></td>'); document.write('</tr>'); document.write('</table>'); } function MN_Exit(){ document.write('<tr style="cursor:hand" onclick="exit_onclick()">'); document.write('<td height="20" valign="bottom" class="border"><table cellpadding="0" cellspacing="0"><tr><td width="16"></td><td ><img src="images/tuichu.gif" width="13" height="13">&nbsp;退&nbsp;&nbsp;出</td></table></td>'); document.write('</tr>'); document.write('<tr>'); document.write('<td height="23" valign="middle"><table cellpadding="0" cellspacing="0"><tr><td width="16"></td><td><img src="images/bottom_caidan.jpg" width="175" height="23"></td></table></td>'); document.write('</tr>'); } function MN_Father(MNTxt,id,sURL) { var txt = MNTxt; if(sURL && sURL!='') txt = addUrl(MNTxt,sURL); var innerHTML = ""; if(!MNTxt) MNTxt = ""; innerHTML = menu_begin +txt + menu_end; if(id && id !='' ) innerHTML = replaceAll(innerHTML,'%id',id); document.write(innerHTML); if(id && id !='' ){ menu_array.push(id); } } function closeAll(Id){ for(var i=0;i<menu_array.length;i++){ if(menu_array[i] != Id){ var e = eval(menu_array[i]+"_img"); var menu = eval(menu_array[i]+"_menu"); e.src = imgPlus; menu.style.display="none"; } } } function addUrl(MNTxt,sURL){ var txt = MNTxt; if(sURL.indexOf("java")==-1) txt = '<a href="' + sURL + '" target="main">' + txt + '</a>'; else txt = '<a href="#" onclick=' + sURL + '>' + txt + '</a>'; return txt; } function replaceAll(src,txt,replaceTxt){ var tmp = src; while(tmp.indexOf(txt)>-1) tmp = tmp.replace(txt,replaceTxt); return tmp; } function MN_Child(MNTxt,fatherId,id,sURL) { var txt = MNTxt; if(sURL && sURL!='') txt = addUrl(MNTxt,sURL); var img = eval(fatherId + "_img"); img.style.display = "block"; var menu = eval(fatherId + "_menu"); menu.insertRow(); var tr = menu.rows[menu.rows.length-1]; tr.insertCell(); var td = menu.rows(menu.rows.length-1).cells(0); td.height = 20; td.className = "border"; var innerHTML = child_begin + "&nbsp;" + txt + child_end; if(id && id !='' ) innerHTML = replaceAll(innerHTML,'%id',id); td.innerHTML = innerHTML; }
33.036232
327
0.636104
d0f7f46ca877b714ccfb3d65542aa6f50183ac5f
690
js
JavaScript
CodigosBot/indez.js
cavalo2223/discordbot
2f3230d197034c05f285189966e425890c01ae99
[ "MIT" ]
null
null
null
CodigosBot/indez.js
cavalo2223/discordbot
2f3230d197034c05f285189966e425890c01ae99
[ "MIT" ]
null
null
null
CodigosBot/indez.js
cavalo2223/discordbot
2f3230d197034c05f285189966e425890c01ae99
[ "MIT" ]
null
null
null
const express = require('express'); const app = express(); app.get("/", (request, response) => { const ping = new Date(); ping.setHours(ping.getHours() - 3); console.log(`Ping recebido às ${ping.getUTCHours()}:${ping.getUTCMinutes()}:${ping.getUTCSeconds()}`); response.sendStatus(200); }); app.listen(process.env.PORT); // Recebe solicitações que o deixa online const Discord = require("discord.js"); //Conexão com a livraria Discord.js const client = new Discord.Client(); //Criação de um novo Client const config = require("./config.json"); //Pegando o prefixo do bot para respostas de comandos client.login(process.env.TOKEN); //Ligando o Bot caso ele consiga acessar o token
43.125
104
0.713043
d0f8b52a42e4b7008efffb4f99c92a698b707dc0
340
js
JavaScript
lib/resources/Contacts.js
greenlamp3/rebilly-node
36178e7c2c4e57c8459a04761f4cdf758147b7a5
[ "MIT" ]
1
2017-04-01T01:43:59.000Z
2017-04-01T01:43:59.000Z
lib/resources/Contacts.js
greenlamp3/rebilly-node
36178e7c2c4e57c8459a04761f4cdf758147b7a5
[ "MIT" ]
null
null
null
lib/resources/Contacts.js
greenlamp3/rebilly-node
36178e7c2c4e57c8459a04761f4cdf758147b7a5
[ "MIT" ]
null
null
null
'use strict'; var RebillyResource = require('../RebillyResource'); var rebillyMethod = RebillyResource.method; module.exports = RebillyResource.extend({ path: 'contacts', includeBasic: ['create', 'list', 'retrieve'], createWithID: rebillyMethod({ method: 'PUT', path: '/{contactId}', urlParams: ['contactId'] }) });
20
52
0.667647
d0f94556290794bace042f3708f64121a8b01ef9
764
js
JavaScript
amf-client/shared/src/test/resources/validations/reports/multi-plat-model/min-max-zeros-other.report.js
kdubb/amf
9c59c2db64e90a10a86ba905cb25972d21f534b1
[ "Apache-2.0" ]
57
2018-06-15T21:21:38.000Z
2022-02-02T02:35:37.000Z
amf-client/shared/src/test/resources/validations/reports/multi-plat-model/min-max-zeros-other.report.js
kdubb/amf
9c59c2db64e90a10a86ba905cb25972d21f534b1
[ "Apache-2.0" ]
431
2018-07-13T12:39:54.000Z
2022-03-31T09:35:56.000Z
amf-client/shared/src/test/resources/validations/reports/multi-plat-model/min-max-zeros-other.report.js
kdubb/amf
9c59c2db64e90a10a86ba905cb25972d21f534b1
[ "Apache-2.0" ]
33
2018-10-10T07:36:55.000Z
2021-11-26T13:26:10.000Z
Model: file://amf-client/shared/src/test/resources/validations/facets/min-max-zeros-other.raml Profile: RAML 1.0 Conforms? false Number of results: 1 Level: Violation - Source: http://a.ml/vocabularies/amf/validation#example-validation-error Message: should be <= 33 Level: Violation Target: file://amf-client/shared/src/test/resources/validations/facets/min-max-zeros-other.raml#/shape/property/SSN%3F/scalar/SSN%3F/example/default-example Property: file://amf-client/shared/src/test/resources/validations/facets/min-max-zeros-other.raml#/shape/property/SSN%3F/scalar/SSN%3F/example/default-example Position: Some(LexicalInformation([(7,13)-(7,19)])) Location: file://amf-client/shared/src/test/resources/validations/facets/min-max-zeros-other.raml
50.933333
160
0.782723
d0f94a1dc50be07f8e58a96f4803e23c1730b953
4,395
js
JavaScript
Root/Commands/SelectMenus/Help/HelpUtil.js
Elpistolero131/UtilityBot
ffb28ddd55cecf9905e2ba87b0d43c0497d39483
[ "Apache-2.0" ]
1
2022-03-25T17:58:46.000Z
2022-03-25T17:58:46.000Z
Root/Commands/SelectMenus/Help/HelpUtil.js
Elpistolero131/UtilityBot
ffb28ddd55cecf9905e2ba87b0d43c0497d39483
[ "Apache-2.0" ]
null
null
null
Root/Commands/SelectMenus/Help/HelpUtil.js
Elpistolero131/UtilityBot
ffb28ddd55cecf9905e2ba87b0d43c0497d39483
[ "Apache-2.0" ]
null
null
null
const db = require('quick.db') const Discord = require('discord.js') const emotes = require('../../../Storage/json/emotes.json') const colors = require('../../../Storage/json/colors.json') const config = require('../../../Storage/json/Config.json') module.exports = { name: "Util", run: async (client, interaction) => { var prefix = db.get(`prefix_${interaction.guild.id}`) || 't!' let lang = client.langs.get(db.get(`lang_${interaction.guild.id}`) || 'en') try { interaction.user.send({ embeds: [ new Discord.MessageEmbed() .setColor(colors.PERSO) .setFooter({ text: `© ${client.user.username}`, iconURL: client.user.displayAvatarURL() }) .setTimestamp() .setTitle(`📚 ┇ ${lang.commands.help.util[0]}`) .setDescription(lang.commands.helpa[4].replace('{PREFIX}', prefix)) .addFields({ name: `${emotes.blob.blob_t} ┇ COLOR`, value: lang.commands.help.util[7].replace("{PREFIX}", prefix), inline: true, }, { name: `${emotes.blob.blob_b} ┇ VOTE`, value: lang.commands.help.util[8].replace("{PREFIX}", prefix), inline: true, }, { name: `${emotes.blob.blob_p} ┇ AVATAR`, value: lang.commands.help.util[9].replace("{PREFIX}", prefix), inline: true }, { name: `${emotes.pepe.pepe_w} ┇ REPORT`, value: `${prefix}report`, inline: true }, { name: `${emotes.blob.blob_t} ┇ ${lang.commands.help.util[2]} `, value: lang.commands.help.util[11].replace("{PREFIX}", prefix), inline: true }, { name: `${emotes.autre.intelligent} ┇ CALCUL`, value: lang.commands.help.util[12].replace("{PREFIX}", prefix), inline: true }, { name: `${emotes.blob.blob_t} ┇ ${lang.commands.help.util[3]}`, value: lang.commands.help.util[13].replace("{PREFIX}", prefix), inline: true, }, { name: `${emotes.blob.blob_t} ┇ SUPPORT`, value: lang.commands.help.util[14].replace("{PREFIX}", prefix), inline: true, }, { name: `${emotes.blob.blob_p} ┇ REMIND`, value: lang.commands.help.util[15].replace("{PREFIX}", prefix), inline: true }, { name: `${emotes.blob.blob_p} ┇ APOD`, value: lang.commands.help.util[16].replace("{PREFIX}", prefix) + `\n\n[${lang.commandsa[0]}](https://nepust.fr/)`, inline: true }) ] }).then(() => { interaction.reply({ content: lang.commands.help.success[0], ephemeral: true }) }) } catch { interaction.reply(`Please active your DMs.`) } } }
57.077922
154
0.339022
d0fccb703bd91ca3158d2abd1400598862204c8c
2,374
js
JavaScript
server/routes/problems.js
TheCodeCamp/codecamp-api
9acd015a82c96084e9d95f58e580a89e70ca56e3
[ "MIT" ]
2
2020-06-04T07:01:43.000Z
2022-01-27T05:40:48.000Z
server/routes/problems.js
TheCodeCamp/codecamp-api
9acd015a82c96084e9d95f58e580a89e70ca56e3
[ "MIT" ]
2
2021-05-06T21:33:58.000Z
2021-05-06T21:38:10.000Z
server/routes/problems.js
TheCodeCamp/codecamp-api
9acd015a82c96084e9d95f58e580a89e70ca56e3
[ "MIT" ]
null
null
null
const express = require('express'); const _ = require('lodash'); //const db = require('./../utils/db/db'); const Problem = require('./../../contest/models/problem/problem'); const Contest = require('./../../contest/models/contest/contest') const router = express.Router({mergeParams: true}) router.get('/:code',(req,res)=>{ var code= req.params.code; Problem.findOne({'code':code}).then((problem)=>{ res.json({ "success":true, "problem":problem }) }).catch((e)=>{ res.status(400).json({ "success":false, "msg":"Error Occured! Page could not be found" }) }) }) router.get('/',(req,res)=>{ res .status(404) .json({ "success":false, "msg":"Error Occured! Page could not be found" }) }) router.patch('/:code/edit',(req,res)=>{ const code = req.params.code; // console.log(username); <<<<<<< HEAD var body = _.pick(req.body,['code','name','successfulSubmission','image','level','contest','description','input_format','output_format','constraints','input_example','output_example','explanation_example','date_added','timelimit','sourcelimit','author','testCaseInput','testCaseOutput']); Problem.findOneAndUpdate({'code':code},{$set: body}) .then((problem)=>{ ======= var body = _.pick(req.body,['code','name','successfulSubmission','level',,'image','contest','description','input_format','output_format','constraints','input_example','output_example','explanation_example','date_added','timelimit','sourcelimit','author','testCaseInput','testCaseOutput']); Problem.findOneAndUpdate({'code':code},{$set: body}).then((problem)=>{ >>>>>>> 997d61e6d6b49a8027293089340fa282717bad63 res.json({ 'success':true, 'msg':'Problem updated Successfully!' }) }).catch((err)=>{ res.json({ 'success':false, 'msg':err }) }) }) router.delete('/:code',(req,res)=>{ const code = req.params.code; Problem.findOneAndRemove({'code':code}).then(()=>{ res.json({ 'success':true, 'msg':'Problem deleted Successfully!' }) }).catch((err)=>{ res.json({ 'success':false, 'msg':'Error Occurred Please try Again' }) }) }) module.exports = router;
32.972222
293
0.580034
d0fd308b75da7a2c98d04fbfb9d54cbf9c860a91
4,107
js
JavaScript
JS Applications June 2020/01.Modules_and_Unit_Testing/Exercises/03.Math_Enforcer/tests.js
bodyquest/SoftwareUniversity-Bulgaria
a402d8671e3b66e69b216ed126d00747690607dc
[ "MIT" ]
2
2021-11-21T17:50:05.000Z
2022-02-11T23:23:47.000Z
JS Applications June 2020/01.Modules_and_Unit_Testing/Exercises/03.Math_Enforcer/tests.js
bodyquest/SoftwareUniversity-Bulgaria
a402d8671e3b66e69b216ed126d00747690607dc
[ "MIT" ]
5
2020-08-09T12:46:12.000Z
2022-03-29T07:14:53.000Z
JS Applications June 2020/01.Modules_and_Unit_Testing/Exercises/03.Math_Enforcer/tests.js
bodyquest/SoftwareUniversity-Bulgaria
a402d8671e3b66e69b216ed126d00747690607dc
[ "MIT" ]
2
2020-08-01T16:33:17.000Z
2021-11-21T17:50:06.000Z
const expect = require("chai").expect; const assert = require("chai").assert; const mathEnforcer = require("./mathEnforcer.js"); describe("Main functionality", () => { describe("addFive tests", function () { it("returns undefined if parameter not a number", function() { let result = mathEnforcer("gimme five!") assert.equal(result, undefined, "The function did not return the correct result!") }); it("returns undefined with a negative number parameter", function() { let result = mathEnforcer(-42) assert.equal(result, undefined, "The function did not return the correct result!") }); it("returns correct result with a positive number parameter", function(){ let actual = mathEnforcer.addFive(37); assert.equal(actual, 42, "The function did not return the correct result!"); }); it("returns correct result with floating-point number parameter", function(){ expect(mathEnforcer.addFive(37.1)).to.be.closeTo(42.1, 0.1); }); }); describe("subtractTen tests", function(){ it("should return undefined with a non-number parameter", function(){ let actual = mathEnforcer.subtractTen("subtract me :)"); assert.equal(actual, undefined, "The function did not return correct result!"); }); it("returns correct result with a negative number parameter", function(){ let actual = mathEnforcer.subtractTen(0); assert.equal(actual, -10, "The function did not return correct result!"); }); it("returns correct result with a positive number parameter", function(){ let actual = mathEnforcer.subtractTen(9); assert.equal(actual, -1, "The function did not return correct result!"); }); it("returns correct result with floating-point number parameter", function(){ expect(mathEnforcer.subtractTen(52.1)).to.be.closeTo(42.1, 0.1); }); }); describe("sum", function(){ it("should return undefined with a non-number parameter", function(){ let result = mathEnforcer.sum("add me :)", 2); assert.equal(result, undefined, "The function did not return correct result!"); }); it("should return correct result with a non-number parameter", function(){ let result = mathEnforcer.sum(2, "hello"); assert.equal(result, undefined, "The function did not return correct result!"); }); it("should return correct result with a non-number parameter", function(){ let result = mathEnforcer.sum("hi", "hello"); assert.equal(result, undefined, "The function did not return correct result!"); }); it("returns correct result with two negative numbers as parameters", function(){ let result = mathEnforcer.sum(-1, -1); assert.equal(result, -2, "The function did not return correct result!"); }); it("returns correct result with two positive numbers as parameters", function(){ let result = mathEnforcer.sum(41, 1); assert.equal(result, 42, "The function did not return correct result!"); }); it("returns correct result with positive and negative numbers as parameters", function(){ let result = mathEnforcer.sum(44, -2); assert.equal(result, 42, "The function did not return correct result!"); }); it("returns correct result with floating-point numbers parameter", function(){ expect(mathEnforcer.sum(20.9, 21.2)).to.be.closeTo(42.1, 0.1); }); it("returns correct result with floating-point number and positive number as parameters", function(){ expect(mathEnforcer.sum(1.1, 1)).to.be.closeTo(2.1, 0.1); }); it("returns correct result with floating-point number and negative number as parameters", function(){ expect(mathEnforcer.sum(1.1, -1)).to.be.closeTo(0.1, 0.1); }); }); });
50.703704
109
0.616508
d0fdedd4826cb13548b94c9202d5ef5313bde1a9
1,029
js
JavaScript
docs/javadocs/html/classdev_1_1jorel_1_1commandapi_1_1arguments_1_1_offline_player_argument.js
JorelAli/1.13-Command-API
a0d9fd27257e0c21143b226a9c23e91259190a7f
[ "MIT" ]
69
2018-10-05T04:42:17.000Z
2020-07-25T14:46:42.000Z
docs/javadocs/html/classdev_1_1jorel_1_1commandapi_1_1arguments_1_1_offline_player_argument.js
JorelAli/1.13-Command-API
a0d9fd27257e0c21143b226a9c23e91259190a7f
[ "MIT" ]
107
2018-10-05T19:20:32.000Z
2020-08-19T17:50:36.000Z
docs/javadocs/html/classdev_1_1jorel_1_1commandapi_1_1arguments_1_1_offline_player_argument.js
JorelAli/1.13-Command-API
a0d9fd27257e0c21143b226a9c23e91259190a7f
[ "MIT" ]
24
2018-11-04T05:58:33.000Z
2020-08-14T18:27:08.000Z
var classdev_1_1jorel_1_1commandapi_1_1arguments_1_1_offline_player_argument = [ [ "OfflinePlayerArgument", "classdev_1_1jorel_1_1commandapi_1_1arguments_1_1_offline_player_argument.html#aed2fd890e0f924350b19ac618815b5e8", null ], [ "includeSafeSuggestions", "classdev_1_1jorel_1_1commandapi_1_1arguments_1_1_offline_player_argument.html#a9ef5c66042f01757a16ff146c5a30061", null ], [ "includeWithSafeSuggestions", "classdev_1_1jorel_1_1commandapi_1_1arguments_1_1_offline_player_argument.html#a7285ee1803a67ac18eeebe1e82530b21", null ], [ "includeWithSafeSuggestionsT", "classdev_1_1jorel_1_1commandapi_1_1arguments_1_1_offline_player_argument.html#a2f0ed384b5c4006f270f0e206b7184c0", null ], [ "replaceWithSafeSuggestions", "classdev_1_1jorel_1_1commandapi_1_1arguments_1_1_offline_player_argument.html#a5ace13eeb9a0e7bebe80e94563cb46c8", null ], [ "replaceWithSafeSuggestionsT", "classdev_1_1jorel_1_1commandapi_1_1arguments_1_1_offline_player_argument.html#a5ca0a922bf99510dc25dd64a2e0271dc", null ] ];
114.333333
159
0.876579
d0ff420437ba07c6e5c2052fc7fc71cfc10e938f
504
js
JavaScript
client/src/components/layout/FeedTabs.js
tony-garand/insidermacro
850765cbf94b11f8e0cbbbc745a5a111d05d1bbc
[ "MIT" ]
null
null
null
client/src/components/layout/FeedTabs.js
tony-garand/insidermacro
850765cbf94b11f8e0cbbbc745a5a111d05d1bbc
[ "MIT" ]
null
null
null
client/src/components/layout/FeedTabs.js
tony-garand/insidermacro
850765cbf94b11f8e0cbbbc745a5a111d05d1bbc
[ "MIT" ]
null
null
null
import React from "react"; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; export default () => ( <Tabs> <TabList> <Tab>Following</Tab> <Tab>Macro</Tab> <Tab>Events</Tab> <Tab>Trending</Tab> </TabList> <TabPanel> <h2>Any content 1</h2> </TabPanel> <TabPanel> <h2>Any content 2</h2> </TabPanel> <TabPanel> <h2>Any content 3</h2> </TabPanel> <TabPanel> <h2>Any content 4</h2> </TabPanel> </Tabs> );
20.16
58
0.539683
19002f36d03302b3fb0fd05960e54d205186d80a
354
js
JavaScript
editor/icon-outline-highlight-element/template.js
AgeOfLearning/material-design-icons
b1da14a0e8a7011358bf4453c127d9459420394f
[ "Apache-2.0" ]
null
null
null
editor/icon-outline-highlight-element/template.js
AgeOfLearning/material-design-icons
b1da14a0e8a7011358bf4453c127d9459420394f
[ "Apache-2.0" ]
null
null
null
editor/icon-outline-highlight-element/template.js
AgeOfLearning/material-design-icons
b1da14a0e8a7011358bf4453c127d9459420394f
[ "Apache-2.0" ]
null
null
null
export default (context, html) => html` <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0z"/><path d="M6 14l3 3v5h6v-5l3-3V9H6v5zm2-3h8v2.17l-3 3V20h-2v-3.83l-3-3V11zm3-9h2v3h-2zM3.502 5.874L4.916 4.46l2.122 2.12-1.414 1.415zm13.458.708l2.123-2.12 1.413 1.416-2.123 2.12z"/></svg> `;
118
311
0.689266
19005574d6523ced5f1545d0c6a7169b63fa18fd
82
js
JavaScript
lib/helpers.js
bavis-m/TuyaAPI-cli
80cc21b7b1c42e324fe50e09f060d69e0bdc5fc3
[ "MIT" ]
164
2018-09-13T15:01:43.000Z
2022-03-28T16:54:18.000Z
lib/helpers.js
bavis-m/TuyaAPI-cli
80cc21b7b1c42e324fe50e09f060d69e0bdc5fc3
[ "MIT" ]
92
2018-08-11T02:33:10.000Z
2022-01-11T11:26:48.000Z
lib/helpers.js
bavis-m/TuyaAPI-cli
80cc21b7b1c42e324fe50e09f060d69e0bdc5fc3
[ "MIT" ]
48
2018-08-09T00:09:30.000Z
2022-01-24T14:16:17.000Z
module.exports = { regionToUrl: region => `https://openapi.tuya${region}.com` };
20.5
59
0.670732
190057ccfbdc3848617d8ff8d189fa4ac24a4a4a
1,244
js
JavaScript
projects/backend/mockgenerator/middlewares/media.js
smahr/cloud-commerce-spartacus-storefront
e1d5239362d755b3e496a31819588e6929d11773
[ "Apache-2.0" ]
1
2019-09-03T21:37:18.000Z
2019-09-03T21:37:18.000Z
projects/backend/mockgenerator/middlewares/media.js
smahr/cloud-commerce-spartacus-storefront
e1d5239362d755b3e496a31819588e6929d11773
[ "Apache-2.0" ]
16
2019-10-01T08:46:48.000Z
2022-03-24T18:30:56.000Z
projects/backend/mockgenerator/middlewares/media.js
smahr/cloud-commerce-spartacus-storefront
e1d5239362d755b3e496a31819588e6929d11773
[ "Apache-2.0" ]
1
2019-05-09T03:49:15.000Z
2019-05-09T03:49:15.000Z
'use strict'; const url = require('url'); const unique = {}; module.exports = (req, res, next) => { const uri = url.parse(req.url, true); sendImage(uri, res); sendContextImage(uri, res); next(); }; function sendContextImage(uri, res) { if (isContextMedia(uri.path)) { const context = /context=(.*)/.exec(uri.path)[1]; res.send = () => res.redirect( `https://placeimg.com/200/200/tech?${getUnqiueRedirectSuffix(context)}` ); } } function sendImage(uri, res) { const media = getMedia(uri.pathname); if (media) { const context = /context=(.*)/.exec(uri.path)[1]; const sizes = /([0-9]+)x([0-9]+)/.exec(media); const width = sizes ? sizes[1] : '100'; const height = sizes ? sizes[2] : '100'; res.send = () => res.redirect( `https://placeimg.com/${width}/${height}/tech?${getUnqiueRedirectSuffix( context )}` ); } } function getMedia(uri) { const media = /medias\/(.+)\.[jpg|svg]/.exec(uri); return media && media[1]; } function isContextMedia(uri) { return /medias\/\?context=(.+)/.test(uri); } function getUnqiueRedirectSuffix(uri) { if (!unique[uri]) { unique[uri] = Object.keys(unique).length; } return unique[uri]; }
23.037037
80
0.590836
19006fcf8f86851e9fc354e3fb33af92943abb7b
275
js
JavaScript
src/systems/collider.js
ldd/phaser-template
0425f05bbfa201044aecc0d4490ab8f692895799
[ "MIT" ]
null
null
null
src/systems/collider.js
ldd/phaser-template
0425f05bbfa201044aecc0d4490ab8f692895799
[ "MIT" ]
null
null
null
src/systems/collider.js
ldd/phaser-template
0425f05bbfa201044aecc0d4490ab8f692895799
[ "MIT" ]
null
null
null
import { debounce } from "debounce"; export const simpleCollider = (A, B) => { const [, , current] = B.frame.name.split("_"); if (+current > 1) { B.setFrame(`big_crops/wheat_${current - 1}`); } }; export const collider = debounce(simpleCollider, 2000);
25
56
0.610909
1900dfbb688a86dfafbe3a3ea3f5a1a12c3e65f7
346
js
JavaScript
Assets/Scripts/bootstrap.js
ALEXTANGXIAO/puerts_unity_frameWork
2f73e838dd2d96ffd52763dd56fbbbc28ef619c5
[ "MIT" ]
98
2020-09-19T09:29:20.000Z
2022-03-17T16:49:33.000Z
Assets/Scripts/bootstrap.js
ALEXTANGXIAO/puerts_unity_frameWork
2f73e838dd2d96ffd52763dd56fbbbc28ef619c5
[ "MIT" ]
10
2020-11-21T09:34:18.000Z
2021-12-27T03:29:09.000Z
Assets/Scripts/bootstrap.js
ALEXTANGXIAO/puerts_unity_frameWork
2f73e838dd2d96ffd52763dd56fbbbc28ef619c5
[ "MIT" ]
28
2020-10-19T09:13:24.000Z
2022-01-23T09:39:13.000Z
// @ts-nocheck Object.defineProperty(globalThis, 'csharp', { value: require("csharp"), enumerable: true, configurable: false, writable: false }); Object.defineProperty(globalThis, 'puerts', { value: require("puerts"), enumerable: true, configurable: false, writable: false }); require("webapi.js"); module.exports = require("bundle.js").default;
57.666667
130
0.736994
190218191e6c5745df51612008ffd991f9900c4a
1,628
js
JavaScript
src/dataDisplay/icon/library/camera/style1.js
tenjojeremy/Web-Features
163c014fcf6c745a3f08fc348aa5e344dbdfbd4a
[ "MIT" ]
1
2019-09-04T11:35:13.000Z
2019-09-04T11:35:13.000Z
src/dataDisplay/icon/library/camera/style1.js
tenjojeremy/Web-Features
163c014fcf6c745a3f08fc348aa5e344dbdfbd4a
[ "MIT" ]
null
null
null
src/dataDisplay/icon/library/camera/style1.js
tenjojeremy/Web-Features
163c014fcf6c745a3f08fc348aa5e344dbdfbd4a
[ "MIT" ]
null
null
null
import React from 'react' const NavUpload = () => ( <svg width='69' height='69' viewBox='0 0 69 69' fill='none' xmlns='http://www.w3.org/2000/svg' > <path d='M45.0628 27.7375C44.4378 27.1126 43.6838 26.8 42.8004 26.8H40.0004L39.363 25.1001C39.2046 24.6918 38.9151 24.3397 38.4941 24.0437C38.0732 23.7479 37.642 23.5999 37.2003 23.5999H30.8001C30.3584 23.5999 29.9271 23.7479 29.5062 24.0437C29.0854 24.3397 28.7959 24.6918 28.6375 25.1001L28 26.8H25.2C24.3165 26.8 23.5625 27.1126 22.9374 27.7375C22.3125 28.3625 22 29.1166 22 30V41.2001C22 42.0836 22.3125 42.8378 22.9374 43.4626C23.5625 44.0877 24.3166 44.4002 25.2 44.4002H42.8001C43.6835 44.4002 44.4374 44.0877 45.0625 43.4626C45.6874 42.8378 46 42.0836 46 41.2001V30C46.0002 29.1166 45.6876 28.3625 45.0628 27.7375ZM37.9563 39.5565C36.8605 40.6524 35.5419 41.2004 34.0001 41.2004C32.4583 41.2004 31.1397 40.6524 30.0438 39.5565C28.9479 38.4608 28.4 37.1418 28.4 35.6004C28.4 34.0585 28.9481 32.74 30.0438 31.644C31.1396 30.5481 32.4583 30.0003 34.0001 30.0003C35.5418 30.0003 36.8605 30.5483 37.9563 31.644C39.0522 32.7398 39.6001 34.0585 39.6001 35.6004C39.6001 37.1418 39.0523 38.4607 37.9563 39.5565Z' /> <path d='M34 32.0001C33.0083 32.0001 32.1604 32.3522 31.4562 33.0565C30.752 33.7607 30.3999 34.6085 30.3999 35.6004C30.3999 36.592 30.752 37.4399 31.4562 38.1441C32.1604 38.8482 33.0083 39.2003 34 39.2003C34.9916 39.2003 35.8397 38.8482 36.5439 38.1441C37.248 37.4399 37.6002 36.592 37.6002 35.6004C37.6002 34.6086 37.248 33.7607 36.5439 33.0565C35.8397 32.3523 34.9916 32.0001 34 32.0001Z' /> </svg> ) export default NavUpload
95.764706
1,018
0.734029
190512e2e756d2f183eb5d2ba1d8e31f6099d6e9
668
js
JavaScript
lib/promptFunctions/promptEngineer.js
jpecheverryp/team-profile-generator
1195362400f01b99ed7bbe138b5c918023e30057
[ "MIT" ]
null
null
null
lib/promptFunctions/promptEngineer.js
jpecheverryp/team-profile-generator
1195362400f01b99ed7bbe138b5c918023e30057
[ "MIT" ]
null
null
null
lib/promptFunctions/promptEngineer.js
jpecheverryp/team-profile-generator
1195362400f01b99ed7bbe138b5c918023e30057
[ "MIT" ]
null
null
null
// inquirer Library const inquirer = require("inquirer"); // Class const Engineer = require("../Engineer"); // Questions const engineerQuestions = require("../inquirerQuestions/engineerQuestions"); async function promptEngineer(employeeList) { console.log("We will continue with the engineer information:"); const getEngineerInfo = await inquirer .prompt(engineerQuestions) // Deconstructing object const {engineerName, id, email, github} = getEngineerInfo; employeeList.push( new Engineer(engineerName, id, email, github) ) console.log('Engineer Info Taken'); } module.exports = promptEngineer;
29.043478
76
0.694611
190725c050394c5b6bd1124dd7fe5e0c85cf9451
556
js
JavaScript
pages/api/getUser.js
gerardo-j/shopify-challenge
1ce5717f3c7b31023aa1f4bfd86eb5642f8c576c
[ "MIT" ]
null
null
null
pages/api/getUser.js
gerardo-j/shopify-challenge
1ce5717f3c7b31023aa1f4bfd86eb5642f8c576c
[ "MIT" ]
null
null
null
pages/api/getUser.js
gerardo-j/shopify-challenge
1ce5717f3c7b31023aa1f4bfd86eb5642f8c576c
[ "MIT" ]
null
null
null
import initAuth from '../../initAuth' // the module you created above import { getFirebaseAdmin, verifyIdToken } from 'next-firebase-auth' initAuth() const handler = async (req, res) => { try { const AuthUser = await verifyIdToken(req.headers.authorization) const db = getFirebaseAdmin().firestore() const doc = await db.collection('user').doc(AuthUser.id).get() let data = doc.data() return res.status(200).json(data) } catch(err) { res.status(500).json({Error: err}) } } export default handler
25.272727
69
0.651079
19076f8bd9c69e73b6f05b92c6d7033ba09b3e4e
904
js
JavaScript
js/tipos.js
2WeWrite/2WeWrite.github.io
67c8f94bf0b8869a06e40aab5f4d0e7d5679aed3
[ "CC0-1.0" ]
null
null
null
js/tipos.js
2WeWrite/2WeWrite.github.io
67c8f94bf0b8869a06e40aab5f4d0e7d5679aed3
[ "CC0-1.0" ]
null
null
null
js/tipos.js
2WeWrite/2WeWrite.github.io
67c8f94bf0b8869a06e40aab5f4d0e7d5679aed3
[ "CC0-1.0" ]
null
null
null
/** * @typedef {Object} USUARIO * @property {string[]} ROLIDS */ /** * @typedef {Object} CLIENTE * @property {string} CORREO * @property {string} NOMBRE * @property {string} AP_PATERNO * @property {string} AP_MATERNO * @property {string} EDAD * @property {string} SEXO * @property {string} CELULAR */ /** * @typedef {Object} HABITACION * @property {number} NUM_HABITACION * @property {string} TIPO * @property {boolean} DISPONIBILIDAD */ /** * @typedef {Object} TIPO_HABITACION * @property {string} DESCRIPCION * @property {string} NUM_HUESPEDES */ // @ts-nocheck /** * @typedef {Object} RESERVACION * @property {string} NUM_HABITACION * @property {string} ESTATUS * @property {string} CLV_HUESPED * @property {string} FECHA_RESERVACION * @property {string} FECHA_ENTRADA * @property {string} FECHA_SALIDA * @property {string} NUM_HUESPEDES */ export const __tipos = 0;
21.52381
39
0.685841
190885dd2245271aa672536c47fd7465ae6cb2d9
5,843
js
JavaScript
mxgraph/mxjson.js
StevenKangWei/learning-mxgraph
561ef3a8626e6dec7091f15208ce94bb5d8c0a74
[ "MIT" ]
null
null
null
mxgraph/mxjson.js
StevenKangWei/learning-mxgraph
561ef3a8626e6dec7091f15208ce94bb5d8c0a74
[ "MIT" ]
null
null
null
mxgraph/mxjson.js
StevenKangWei/learning-mxgraph
561ef3a8626e6dec7091f15208ce94bb5d8c0a74
[ "MIT" ]
null
null
null
/****************************************************************** Core ******************************************************************/ class JsonCodec extends mxObjectCodec { constructor() { super((value) => {}); } encode(value) { const xmlDoc = mxUtils.createXmlDocument(); const newObject = xmlDoc.createElement("Object"); for (let prop in value) { newObject.setAttribute(prop, value[prop]); } return newObject; } decode(model) { return Object.keys(model.cells).map( (iCell) => { const currentCell = model.getCell(iCell); return (currentCell.value !== undefined) ? currentCell : null; } ).filter((item) => (item !== null)); } } class GraphX { constructor(container) { if (!mxClient.isBrowserSupported()) { return mxUtils.error('Browser is not supported!', 200, false); } mxEvent.disableContextMenu(container); this._graph = new mxGraph(container); this._graph.setConnectable(true); this._graph.setAllowDanglingEdges(false); new mxRubberband(this._graph); // Enables rubberband selection this.labelDisplayOveride(); this.styling(); } labelDisplayOveride() { // Overrides method to provide a cell label in the display this._graph.convertValueToString = (cell) => { if (mxUtils.isNode(cell.value)) { if (cell.value.nodeName.toLowerCase() === 'object') { const name = cell.getAttribute('name', ''); return name; } } return ''; }; } styling() { // Creates the default style for vertices let style = []; style[mxConstants.STYLE_SHAPE] = mxConstants.SHAPE_RECTANGLE; style[mxConstants.STYLE_PERIMETER] = mxPerimeter.RectanglePerimeter; style[mxConstants.STYLE_STROKECOLOR] = 'gray'; style[mxConstants.STYLE_ROUNDED] = true; style[mxConstants.STYLE_FILLCOLOR] = '#EEEEEE'; style[mxConstants.STYLE_GRADIENTCOLOR] = 'white'; style[mxConstants.STYLE_FONTCOLOR] = 'black'; style[mxConstants.STYLE_ALIGN] = mxConstants.ALIGN_CENTER; style[mxConstants.STYLE_VERTICAL_ALIGN] = mxConstants.ALIGN_MIDDLE; style[mxConstants.STYLE_FONTSIZE] = '12'; style[mxConstants.STYLE_FONTSTYLE] = 1; this._graph.getStylesheet().putDefaultVertexStyle(style); // Creates the default style for edges style = this._graph.getStylesheet().getDefaultEdgeStyle(); style[mxConstants.STYLE_STROKECOLOR] = '#0C0C0C'; style[mxConstants.STYLE_LABEL_BACKGROUNDCOLOR] = 'white'; style[mxConstants.STYLE_EDGE] = mxEdgeStyle.ElbowConnector; style[mxConstants.STYLE_ROUNDED] = true; style[mxConstants.STYLE_FONTCOLOR] = 'black'; style[mxConstants.STYLE_FONTSIZE] = '10'; this._graph.getStylesheet().putDefaultEdgeStyle(style); } getJsonModel() { const encoder = new JsonCodec(); const jsonModel = encoder.decode(this._graph.getModel()); return { "graph": jsonModel } } render(dataModel) { const jsonEncoder = new JsonCodec(); this._vertices = {}; this._dataModel = dataModel; const parent = this._graph.getDefaultParent(); this._graph.getModel().beginUpdate(); // Adds cells to the model in a single step try { this._dataModel.graph.map( (node) => { if (node.value) { if (typeof node.value === "object") { const xmlNode = jsonEncoder.encode(node.value); this._vertices[node.id] = this._graph.insertVertex(parent, null, xmlNode, node.geometry.x, node.geometry.y, node.geometry.width, node.geometry.height); } else if (node.value === "Edge") { this._graph.insertEdge(parent, null, 'Edge', this._vertices[node.source], this._vertices[node.target]) } } } ); } finally { this._graph.getModel().endUpdate(); // Updates the display } } } /****************************************************************** Demo ******************************************************************/ const graphX = new GraphX(document.getElementById('graphContainer')); document.getElementById('buttons').appendChild(mxUtils.button('From JSON', () => { const dataModel = JSON.parse(document.getElementById('from').innerHTML); graphX.render(dataModel); })); document.getElementById('buttons').appendChild(mxUtils.button('To JSON', () => { const jsonNodes = graphX.getJsonModel(); document.getElementById('to').innerHTML = `<pre>${syntaxHighlight(stringifyWithoutCircular(jsonNodes))}</pre>`; })); /****************************************** Utils ********************************************/ function stringifyWithoutCircular(json) { return JSON.stringify( json, (key, value) => { if ((key === 'parent' || key == 'source' || key == 'target') && value !== null) { return value.id; } else if (key === 'value' && value !== null && value.localName) { let results = {}; Object.keys(value.attributes).forEach( (attrKey) => { const attribute = value.attributes[attrKey]; results[attribute.nodeName] = attribute.nodeValue; } ) return results; } return value; }, 4 ); }
36.748428
179
0.537566
190a6714558b4fd1360013df27523f873eb9363b
87
js
JavaScript
packages/core/integration-tests/test/integration/scope-hoisting/commonjs/exports-access-bailout/module-exports-define-entry.js
zowesiouff/parcel
dc09f12563ad4fcc452760b2477fa6beb8af30fd
[ "MIT" ]
43,319
2017-10-27T04:56:25.000Z
2022-03-31T19:36:35.000Z
packages/core/integration-tests/test/integration/scope-hoisting/commonjs/exports-access-bailout/module-exports-define-entry.js
zowesiouff/parcel
dc09f12563ad4fcc452760b2477fa6beb8af30fd
[ "MIT" ]
6,503
2017-12-05T16:53:53.000Z
2022-03-31T23:30:17.000Z
packages/core/integration-tests/test/integration/scope-hoisting/commonjs/exports-access-bailout/module-exports-define-entry.js
zowesiouff/parcel
dc09f12563ad4fcc452760b2477fa6beb8af30fd
[ "MIT" ]
2,865
2017-12-05T18:24:23.000Z
2022-03-30T19:39:14.000Z
import {COMMENT_KEYS} from './module-exports-define-imported'; output = COMMENT_KEYS;
21.75
62
0.770115
190b69000f90bbba1050ac63d69d4c8659f80f31
980
js
JavaScript
frontend/mytrip-login/server/controllers/sessionsController.js
vhlongon/et-test
5b99051f5d05ac9b15f7f4a5d0c76b615beaf21f
[ "MIT" ]
null
null
null
frontend/mytrip-login/server/controllers/sessionsController.js
vhlongon/et-test
5b99051f5d05ac9b15f7f4a5d0c76b615beaf21f
[ "MIT" ]
null
null
null
frontend/mytrip-login/server/controllers/sessionsController.js
vhlongon/et-test
5b99051f5d05ac9b15f7f4a5d0c76b615beaf21f
[ "MIT" ]
null
null
null
const crypto = require('crypto'); const jwt = require('jsonwebtoken'); const Left = require('../../utils/generalUtils').Left; const Right = require('../../utils/generalUtils').Right; const secret = 'HowardHughes'; const createHmac = data => crypto .createHmac('sha256', secret) .update(data) .digest('hex'); const createToken = data => jwt.sign({ data }, createHmac(data)); const isEmpty = str => (str === '' || str === undefined || str === null); const authenticateCustomer = (email, bookingNumber) => (email === 'invalid' || isEmpty(email) || isEmpty(bookingNumber)) ? Left('Unauthorized login attempt') : Right(createToken(email)); module.exports = { create(request, response) { const { email, bookingNumber, } = request.body; authenticateCustomer(email, bookingNumber) .fold( message => response.status(401).json({ message }), token => response.status(200).json({ jwt: token }) ); } };
25.789474
67
0.62551
190c29ce3525f0244f2b65ba5bcce84d55415970
360
js
JavaScript
stories/loading-dots.stories.js
jamesplease/materialish
7d8c6408d2de65063594417f1a9d8a812ff7d295
[ "MIT" ]
17
2018-06-15T08:00:13.000Z
2021-05-07T15:43:30.000Z
stories/loading-dots.stories.js
jamesplease/materialish
7d8c6408d2de65063594417f1a9d8a812ff7d295
[ "MIT" ]
160
2018-03-19T21:37:59.000Z
2018-10-24T23:52:55.000Z
stories/loading-dots.stories.js
jamesplease/materialish
7d8c6408d2de65063594417f1a9d8a812ff7d295
[ "MIT" ]
6
2018-05-28T17:03:02.000Z
2019-07-30T20:11:07.000Z
import React from 'react'; import { storiesOf } from '@storybook/react'; import { setOptions } from '@storybook/addon-options'; import '../src/loading-dots/loading-dots.css'; import { LoadingDots } from '../src/index'; setOptions({ name: 'Materialish', addonPanelInRight: true, }); storiesOf('LoadingDots', module).add('Regular', () => <LoadingDots />);
27.692308
71
0.694444
190d03581792d4edcdc2fbb50036cb7068eca822
611
js
JavaScript
src/mongodb/schema/analytics/track.js
w2one/full-stack-api
843ed6a7ffae7cfbb7ba2f9af54628e71838dfae
[ "MIT" ]
null
null
null
src/mongodb/schema/analytics/track.js
w2one/full-stack-api
843ed6a7ffae7cfbb7ba2f9af54628e71838dfae
[ "MIT" ]
5
2021-03-02T00:28:32.000Z
2022-03-03T22:48:22.000Z
src/mongodb/schema/analytics/track.js
w2one/full-stack-api
843ed6a7ffae7cfbb7ba2f9af54628e71838dfae
[ "MIT" ]
null
null
null
/** * track schema */ import mongoose from "mongoose"; const Schema = mongoose.Schema; const TrackSchema = new Schema({ time: Number, // 停留时间 pre: String, // 前一个页面 current: String, // 当前页面 next: String, //下一个页面 sw: Number, //屏幕宽度 sh: Number, // 屏幕高度 lang: String, //语言 ua: String, // ua ip: String, //ip url: String, method: String, in: String, out: String, createDate: { type: Date, default: Date.now() } }); // 在保存数据之前跟新日期 // PointSchema.pre("save", function(next) { // this.meta.updatedAt = Date.now(); // next(); // }); // 建立数据模型 mongoose.model("Track", TrackSchema);
19.09375
49
0.617021
190d6876d4e599d97f980b1a3dfe569b1b1a50ba
606
js
JavaScript
src/components/Grid.js
hayden7913/demo-interactable
c0271c121f7b56f84c717be0dea0927a99df9e84
[ "MIT" ]
null
null
null
src/components/Grid.js
hayden7913/demo-interactable
c0271c121f7b56f84c717be0dea0927a99df9e84
[ "MIT" ]
null
null
null
src/components/Grid.js
hayden7913/demo-interactable
c0271c121f7b56f84c717be0dea0927a99df9e84
[ "MIT" ]
null
null
null
import React from 'react' import { cellHeight, cellWidth } from '../config'; const gridStyle = { 'display': 'block', 'margin': '50px auto' } export default function Grid(props) { return ( <svg style={gridStyle} width={props.width} height={props.height}> <defs> <pattern id="cell" width={cellWidth} height={cellHeight} patternUnits="userSpaceOnUse"> <path d={`M ${cellHeight} 0 L 0 0 0 ${cellWidth}`} fill="none" stroke="#ADD8E6" strokeWidth="1"/> </pattern> </defs> <rect width="100%" height={props.height} fill="url(#cell)" /> {props.children} </svg>); }
26.347826
105
0.630363
190d8664d4e321c7370c1581ca18735efe0e7717
710
js
JavaScript
src/common/extractTime.test.js
soyjavi/watchman
ff032d814775ee7e9d48422fc16a7c5d9255a451
[ "MIT" ]
1
2018-05-14T21:43:17.000Z
2018-05-14T21:43:17.000Z
src/common/extractTime.test.js
soyjavi/ranks
ff032d814775ee7e9d48422fc16a7c5d9255a451
[ "MIT" ]
null
null
null
src/common/extractTime.test.js
soyjavi/ranks
ff032d814775ee7e9d48422fc16a7c5d9255a451
[ "MIT" ]
null
null
null
import extractTime from './extractTime'; describe('extractTime()', () => { it('default', () => { let value = extractTime(); expect(value).toEqual(null); }); it('using shortcut for minutes', () => { let value = extractTime('hello world in 2m'); expect(value).toHaveProperty('match', '2m'); expect(value).toHaveProperty('value', 120); }); it('using shortcut for hours', () => { let value = extractTime('in 3h we will...'); expect(value).toHaveProperty('match', '3h'); expect(value).toHaveProperty('value', 10800); }); it('no detect any available shortcut', () => { let value = extractTime('in 3 hours we will...'); expect(value).toEqual(null); }); });
27.307692
53
0.602817
190e1dbc53308af2169b6490fc78ab8f76b51167
40,612
js
JavaScript
server/static/assets/index.16506206505706.js
wuchunfu/mayfly-go
483f5b760429d0fa2bf29a656e78843b596b6e53
[ "Apache-2.0" ]
null
null
null
server/static/assets/index.16506206505706.js
wuchunfu/mayfly-go
483f5b760429d0fa2bf29a656e78843b596b6e53
[ "Apache-2.0" ]
null
null
null
server/static/assets/index.16506206505706.js
wuchunfu/mayfly-go
483f5b760429d0fa2bf29a656e78843b596b6e53
[ "Apache-2.0" ]
null
null
null
var be=Object.defineProperty,ge=Object.defineProperties;var ve=Object.getOwnPropertyDescriptors;var ue=Object.getOwnPropertySymbols;var ye=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var re=(e,l,h)=>l in e?be(e,l,{enumerable:!0,configurable:!0,writable:!0,value:h}):e[l]=h,R=(e,l)=>{for(var h in l||(l={}))ye.call(l,h)&&re(e,h,l[h]);if(ue)for(var h of ue(l))_e.call(l,h)&&re(e,h,l[h]);return e},O=(e,l)=>ge(e,ve(l));import{y as Z,t as K,r as ne,a as H,F as x,E as L,d as a,V as ee,q as c,e as U,j as t,k as o,f as A,w as T,G as E,I as le,J as te,h as g,P as oe,i as Y,H as q,g as ie,M as Fe,o as Ce}from"./vendor.1650620650570.js";import{A as $}from"./Api.1650620650570.js";import{p as De}from"./api.16506206505703.js";import{S as Ee}from"./SshTerminal.1650620650570.js";import{E as de}from"./Enum.1650620650570.js";import{n as ae}from"./assert.1650620650570.js";import{c as pe}from"./codemirror.1650620650570.js";import{_ as Q,g as we,c as me}from"./index.1650620650570.js";const S={list:$.create("/machines","get"),info:$.create("/machines/{id}/sysinfo","get"),stats:$.create("/machines/{id}/stats","get"),process:$.create("/machines/{id}/process","get"),killProcess:$.create("/machines/{id}/process","delete"),closeCli:$.create("/machines/{id}/close-cli","delete"),saveMachine:$.create("/machines","post"),del:$.create("/machines/{id}","delete"),scripts:$.create("/machines/{machineId}/scripts","get"),runScript:$.create("/machines/{machineId}/scripts/{scriptId}/run","get"),saveScript:$.create("/machines/{machineId}/scripts","post"),deleteScript:$.create("/machines/{machineId}/scripts/{scriptId}","delete"),files:$.create("/machines/{id}/files","get"),lsFile:$.create("/machines/{machineId}/files/{fileId}/read-dir","get"),rmFile:$.create("/machines/{machineId}/files/{fileId}/remove","delete"),uploadFile:$.create("/machines/{machineId}/files/{fileId}/upload?token={token}","post"),fileContent:$.create("/machines/{machineId}/files/{fileId}/read","get"),updateFileContent:$.create("/machines/{machineId}/files/{id}/write","post"),addConf:$.create("/machines/{machineId}/files","post"),delConf:$.create("/machines/{machineId}/files/{id}","delete"),terminal:$.create("/api/machines/{id}/terminal","get")};var W={scriptTypeEnum:new de().add("RESULT","\u6709\u7ED3\u679C",1).add("NO_RESULT","\u65E0\u7ED3\u679C",2).add("REAL_TIME","\u5B9E\u65F6\u4EA4\u4E92",3),FileTypeEnum:new de().add("DIRECTORY","\u76EE\u5F55",1).add("FILE","\u6587\u4EF6",2)};const Be=Z({name:"ScriptEdit",components:{codemirror:pe},props:{visible:{type:Boolean},data:{type:Object},title:{type:String},machineId:{type:Number},isCommon:{type:Boolean}},setup(e,{emit:l}){const{isCommon:h,machineId:u}=K(e),I=ne(null),w=H({dialogVisible:!1,submitDisabled:!1,form:{id:null,name:"",machineId:0,description:"",script:"",params:null,type:null},btnLoading:!1});x(e,f=>{f.data?w.form=R({},f.data):(w.form={},w.form.script=""),w.dialogVisible=f.visible});const b=()=>{w.form.machineId=h.value?9999999:u.value,console.log("machineid:",u),I.value.validate(f=>{if(f)ae(w.form.name,"\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"),ae(w.form.description,"\u63CF\u8FF0\u4E0D\u80FD\u4E3A\u7A7A"),ae(w.form.script,"\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A"),S.saveScript.request(w.form).then(()=>{L.success("\u4FDD\u5B58\u6210\u529F"),l("submitSuccess"),w.submitDisabled=!1,p()},()=>{w.submitDisabled=!1});else return!1})},p=()=>{l("update:visible",!1),l("cancel")};return O(R({},K(w)),{enums:W,mockDataForm:I,btnOk:b,cancel:p})}}),Ve={class:"mock-data-dialog"},Ie={class:"dialog-footer"},ke=g("\u4FDD \u5B58"),$e=g("\u5173 \u95ED");function Ae(e,l,h,u,I,w){const b=a("el-input"),p=a("el-form-item"),f=a("el-option"),s=a("el-select"),F=a("codemirror"),D=a("el-form"),y=a("el-button"),n=a("el-dialog"),C=ee("auth");return c(),U("div",Ve,[t(n,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":l[6]||(l[6]=i=>e.dialogVisible=i),"close-on-click-modal":!1,"before-close":e.cancel,"show-close":!0,"destroy-on-close":!0,width:"800px"},{footer:o(()=>[A("div",Ie,[T((c(),E(y,{type:"primary",loading:e.btnLoading,onClick:e.btnOk,size:"small",disabled:e.submitDisabled},{default:o(()=>[ke]),_:1},8,["loading","onClick","disabled"])),[[C,"machine:script:save"]]),t(y,{onClick:l[5]||(l[5]=i=>e.cancel()),disabled:e.submitDisabled,size:"small"},{default:o(()=>[$e]),_:1},8,["disabled"])])]),default:o(()=>[t(D,{model:e.form,ref:"mockDataForm","label-width":"70px"},{default:o(()=>[t(p,{prop:"method",label:"\u540D\u79F0"},{default:o(()=>[t(b,{modelValue:e.form.name,"onUpdate:modelValue":l[0]||(l[0]=i=>e.form.name=i),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0"},null,8,["modelValue"])]),_:1}),t(p,{prop:"description",label:"\u63CF\u8FF0"},{default:o(()=>[t(b,{modelValue:e.form.description,"onUpdate:modelValue":l[1]||(l[1]=i=>e.form.description=i),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u63CF\u8FF0"},null,8,["modelValue"])]),_:1}),t(p,{prop:"type",label:"\u7C7B\u578B"},{default:o(()=>[t(s,{modelValue:e.form.type,"onUpdate:modelValue":l[2]||(l[2]=i=>e.form.type=i),"default-first-option":"",style:{width:"100%"},placeholder:"\u8BF7\u9009\u62E9\u7C7B\u578B"},{default:o(()=>[(c(!0),U(le,null,te(e.enums.scriptTypeEnum,i=>(c(),E(f,{key:i.value,label:i.label,value:i.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(p,{prop:"params",label:"\u53C2\u6570"},{default:o(()=>[t(b,{modelValue:e.form.params,"onUpdate:modelValue":l[3]||(l[3]=i=>e.form.params=i),modelModifiers:{trim:!0},placeholder:"\u53C2\u6570\u6570\u7EC4json\uFF0C\u82E5\u65E0\u53EF\u4E0D\u586B"},null,8,["modelValue"])]),_:1}),t(p,{prop:"script",label:"\u5185\u5BB9",id:"content"},{default:o(()=>[t(F,{ref:"cmEditor",modelValue:e.form.script,"onUpdate:modelValue":l[4]||(l[4]=i=>e.form.script=i),language:"shell",width:"700px"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["title","modelValue","before-close"])])}var Ue=Q(Be,[["render",Ae]]);const Se=Z({name:"ServiceManage",components:{ScriptEdit:Ue,SshTerminal:Ee},props:{visible:{type:Boolean},machineId:{type:Number},title:{type:String}},setup(e,l){const h=ne(null),u=H({dialogVisible:!1,type:0,currentId:null,currentData:null,editDialog:{visible:!1,data:null,title:"",machineId:9999999},scriptTable:[],scriptParamsDialog:{visible:!1,params:{},paramsFormItem:[]},resultDialog:{visible:!1,result:""},terminalDialog:{visible:!1,cmd:"",machineId:0}});x(e,i=>{e.machineId&&I(),u.dialogVisible=i.visible});const I=async()=>{u.currentId=null,u.currentData=null;const i=u.type==0?e.machineId:9999999,k=await S.scripts.request({machineId:i});u.scriptTable=k.list},w=async i=>{if(i.params){u.scriptParamsDialog.paramsFormItem=JSON.parse(i.params),u.scriptParamsDialog.visible=!0;return}p(i)},b=async i=>{u.scriptParamsDialog.visible&&h.value.validate(k=>{if(k)p(i),u.scriptParamsDialog.params={},u.scriptParamsDialog.visible=!1,h.value.resetFields();else return!1})},p=async i=>{const k=i.type==W.scriptTypeEnum.NO_RESULT.value;if(i.type==W.scriptTypeEnum.RESULT.value||k){const z=await S.runScript.request({machineId:e.machineId,scriptId:i.id,params:u.scriptParamsDialog.params});if(k){L.success("\u6267\u884C\u5B8C\u6210");return}u.resultDialog.result=z,u.resultDialog.visible=!0;return}if(i.type==W.scriptTypeEnum.REAL_TIME.value){i=i.script,u.scriptParamsDialog.params&&(i=f(i,u.scriptParamsDialog.params)),u.terminalDialog.cmd=i,u.terminalDialog.visible=!0,u.terminalDialog.machineId=e.machineId;return}};function f(i,k){return i.replace(/\{{.\w+\}}/g,z=>{const M=z.substring(3,z.length-2),d=k[M];return d!=null||d!=null?d:""})}const s=()=>{u.terminalDialog.visible=!1,u.terminalDialog.machineId=0},F=i=>{!i||(u.currentId=i.id,u.currentData=i)},D=i=>{u.editDialog.machineId=e.machineId,u.editDialog.data=i,i?u.editDialog.title="\u67E5\u770B\u7F16\u8F91\u811A\u672C":u.editDialog.title="\u65B0\u589E\u811A\u672C",u.editDialog.visible=!0},y=()=>{I()},n=i=>{oe.confirm(`\u6B64\u64CD\u4F5C\u5C06\u5220\u9664 [${i.name}], \u662F\u5426\u7EE7\u7EED?`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{S.deleteScript.request({machineId:e.machineId,scriptId:i.id}).then(()=>{I()})})},C=()=>{l.emit("update:visible",!1),l.emit("update:machineId",null),l.emit("cancel"),u.scriptTable=[]};return O(R({},K(u)),{paramsForm:h,enums:W,getScripts:I,runScript:w,hasParamsRun:b,closeTermnial:s,choose:F,editScript:D,submitSuccess:y,deleteRow:n,handleClose:C})}}),Te={class:"file-manage"},Pe={class:"toolbar"},qe={style:{float:"left"}},ze={style:{float:"right"}},je=g("\u67E5\u770B"),Me=g("\u6DFB\u52A0"),Le=g("\u5220\u9664"),Ne=A("i",null,null,-1),Re=g("\u786E\u5B9A"),Oe=g("\u6267\u884C"),We={class:"dialog-footer"},Ke=g("\u786E \u5B9A"),Ge={style:{"white-space":"pre-line",padding:"10px",color:"#000000"}};function Je(e,l,h,u,I,w){const b=a("el-option"),p=a("el-select"),f=a("el-button"),s=a("el-radio"),F=a("el-table-column"),D=a("el-table"),y=a("el-dialog"),n=a("el-input"),C=a("el-form-item"),i=a("el-form"),k=a("ssh-terminal"),z=a("script-edit"),M=ee("auth");return c(),U("div",Te,[t(y,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":l[5]||(l[5]=d=>e.dialogVisible=d),"destroy-on-close":!0,"show-close":!0,"before-close":e.handleClose,width:"60%"},{default:o(()=>[A("div",Pe,[A("div",qe,[t(p,{modelValue:e.type,"onUpdate:modelValue":l[0]||(l[0]=d=>e.type=d),onChange:e.getScripts,size:"small",placeholder:"\u8BF7\u9009\u62E9"},{default:o(()=>[(c(),E(b,{key:0,label:"\u79C1\u6709",value:0})),(c(),E(b,{key:1,label:"\u516C\u5171",value:1}))]),_:1},8,["modelValue","onChange"])]),A("div",ze,[t(f,{onClick:l[1]||(l[1]=d=>e.editScript(e.currentData)),disabled:e.currentId==null,type:"primary",icon:"tickets",size:"small",plain:""},{default:o(()=>[je]),_:1},8,["disabled"]),T((c(),E(f,{type:"primary",onClick:l[2]||(l[2]=d=>e.editScript(null)),icon:"plus",size:"small",plain:""},{default:o(()=>[Me]),_:1})),[[M,"machine:script:save"]]),T((c(),E(f,{disabled:e.currentId==null,type:"danger",onClick:l[3]||(l[3]=d=>e.deleteRow(e.currentData)),icon:"delete",size:"small",plain:""},{default:o(()=>[Le]),_:1},8,["disabled"])),[[M,"machine:script:del"]])])]),t(D,{data:e.scriptTable,onCurrentChange:e.choose,stripe:"",border:"",size:"small",style:{width:"100%"}},{default:o(()=>[t(F,{label:"\u9009\u62E9",width:"55px"},{default:o(d=>[t(s,{modelValue:e.currentId,"onUpdate:modelValue":l[4]||(l[4]=V=>e.currentId=V),label:d.row.id},{default:o(()=>[Ne]),_:2},1032,["modelValue","label"])]),_:1}),t(F,{prop:"name",label:"\u540D\u79F0","min-width":70}),t(F,{prop:"description",label:"\u63CF\u8FF0","min-width":100,"show-overflow-tooltip":""}),t(F,{prop:"name",label:"\u7C7B\u578B","min-width":50},{default:o(d=>[g(Y(e.enums.scriptTypeEnum.getLabelByValue(d.row.type)),1)]),_:1}),t(F,{label:"\u64CD\u4F5C"},{default:o(d=>[d.row.id==null?(c(),E(f,{key:0,onClick:V=>e.addFiles(d.row),type:"success",icon:"el-icon-success",size:"small",plain:""},{default:o(()=>[Re]),_:2},1032,["onClick"])):q("",!0),d.row.id!=null?T((c(),E(f,{key:1,onClick:V=>e.runScript(d.row),type:"primary",icon:"video-play",size:"small",plain:""},{default:o(()=>[Oe]),_:2},1032,["onClick"])),[[M,"machine:script:run"]]):q("",!0)]),_:1})]),_:1},8,["data","onCurrentChange"])]),_:1},8,["title","modelValue","before-close"]),t(y,{title:"\u811A\u672C\u53C2\u6570",modelValue:e.scriptParamsDialog.visible,"onUpdate:modelValue":l[7]||(l[7]=d=>e.scriptParamsDialog.visible=d),width:"400px"},{footer:o(()=>[A("span",We,[t(f,{type:"primary",onClick:l[6]||(l[6]=d=>e.hasParamsRun(e.currentData)),size:"small"},{default:o(()=>[Ke]),_:1})])]),default:o(()=>[t(i,{ref:"paramsForm",model:e.scriptParamsDialog.params,"label-width":"70px",size:"small"},{default:o(()=>[(c(!0),U(le,null,te(e.scriptParamsDialog.paramsFormItem,d=>(c(),E(C,{key:d.name,prop:d.model,label:d.name,required:""},{default:o(()=>[t(n,{modelValue:e.scriptParamsDialog.params[d.model],"onUpdate:modelValue":V=>e.scriptParamsDialog.params[d.model]=V,placeholder:d.placeholder,autocomplete:"off"},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1032,["prop","label"]))),128))]),_:1},8,["model"])]),_:1},8,["modelValue"]),t(y,{title:"\u6267\u884C\u7ED3\u679C",modelValue:e.resultDialog.visible,"onUpdate:modelValue":l[9]||(l[9]=d=>e.resultDialog.visible=d),width:"50%"},{default:o(()=>[A("div",Ge,[t(n,{modelValue:e.resultDialog.result,"onUpdate:modelValue":l[8]||(l[8]=d=>e.resultDialog.result=d),rows:20,type:"textarea"},null,8,["modelValue"])])]),_:1},8,["modelValue"]),e.terminalDialog.visible?(c(),E(y,{key:0,title:"\u7EC8\u7AEF",modelValue:e.terminalDialog.visible,"onUpdate:modelValue":l[10]||(l[10]=d=>e.terminalDialog.visible=d),width:"70%","close-on-click-modal":!1,modal:!1,onClose:e.closeTermnial},{default:o(()=>[t(k,{ref:"terminal",cmd:e.terminalDialog.cmd,machineId:e.terminalDialog.machineId,height:"600px"},null,8,["cmd","machineId"])]),_:1},8,["modelValue","onClose"])):q("",!0),t(z,{visible:e.editDialog.visible,"onUpdate:visible":l[11]||(l[11]=d=>e.editDialog.visible=d),data:e.editDialog.data,"onUpdate:data":l[12]||(l[12]=d=>e.editDialog.data=d),title:e.editDialog.title,machineId:e.editDialog.machineId,"onUpdate:machineId":l[13]||(l[13]=d=>e.editDialog.machineId=d),isCommon:e.type==1,onSubmitSuccess:e.submitSuccess},null,8,["visible","data","title","machineId","isCommon","onSubmitSuccess"])])}var Ye=Q(Se,[["render",Je]]);const Ze=Z({name:"FileManage",components:{codemirror:pe},props:{visible:{type:Boolean},machineId:{type:Number},title:{type:String}},setup(e,{emit:l}){const h=S.addConf,u=S.delConf,I=S.updateFileContent,w=S.files,b=ne(null),p=we("token"),f={tabSize:2,mode:"text/x-sh",theme:"panda-syntax",line:!0,lint:!0,gutters:["CodeMirror-lint-markers"],indentWithTabs:!0,smartIndent:!0,matchBrackets:!0,autofocus:!0,styleSelectedText:!0,styleActiveLine:!0,foldGutter:!0,hintOptions:{completeSingle:!0}},s=H({dialogVisible:!1,form:{id:null,type:null,name:"",remark:""},fileTable:[],btnLoading:!1,fileContent:{fileId:0,content:"",contentVisible:!1,dialogTitle:"",path:"",type:"shell"},tree:{title:"",visible:!1,folder:{id:0},node:{childNodes:[]},resolve:{}},props:{label:"name",children:"zones",isLeaf:"leaf"},progressNum:0,uploadProgressShow:!1,dataObj:{name:"",path:"",type:""},file:null});x(e,r=>{r.machineId&&F(),s.dialogVisible=r.visible});const F=async()=>{const r=await w.request({id:e.machineId});s.fileTable=r.list},D=()=>{s.fileTable=[{}].concat(s.fileTable)},y=async r=>{r.machineId=e.machineId,await h.request(r),L.success("\u6DFB\u52A0\u6210\u529F"),F()},n=(r,_)=>{_.id?oe.confirm(`\u6B64\u64CD\u4F5C\u5C06\u5220\u9664 [${_.name}], \u662F\u5426\u7EE7\u7EED?`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{u.request({machineId:e.machineId,id:_.id}).then(()=>{s.fileTable.splice(r,1)})}):s.fileTable.splice(r,1)},C=r=>{if(r.type==1){s.tree.folder=r,s.tree.title=r.name,d(s.tree.node,s.tree.resolve),s.tree.visible=!0;return}i(r.id,r.path)},i=async(r,_)=>{const P=await S.fileContent.request({fileId:r,path:_,machineId:e.machineId});s.fileContent.content=P,s.fileContent.fileId=r,s.fileContent.dialogTitle=_,s.fileContent.path=_,s.fileContent.type=k(_),s.fileContent.contentVisible=!0},k=r=>r.endsWith(".sh")?"shell":r.endsWith("js")||r.endsWith("json")?"javascript":r.endsWith("Dockerfile")?"dockerfile":r.endsWith("nginx.conf")?"nginx":r.endsWith("sql")?"sql":r.endsWith("yaml")||r.endsWith("yml")?"yaml":r.endsWith("xml")||r.endsWith("html")?"html":"text",z=async()=>{await I.request({content:s.fileContent.content,id:s.fileContent.fileId,path:s.fileContent.path,machineId:e.machineId}),L.success("\u4FEE\u6539\u6210\u529F"),s.fileContent.contentVisible=!1,s.fileContent.content=""},M=()=>{l("update:visible",!1),l("update:machineId",null),l("cancel"),s.fileTable=[],s.tree.folder={id:0}},d=async(r,_)=>{if(typeof _!="function")return;const P=s.tree.folder;if(r.level===0){s.tree.node=r,s.tree.resolve=_;const X=P?P.path:"/";return _([{name:X,type:"d",path:X}])}let J;const N=r.data;!N||N.name==N.path?J=P.path:J=N.path;const se=await S.lsFile.request({fileId:P.id,machineId:e.machineId,path:J});for(const X of se)X.type!="d"&&(X.leaf=!0);return _(se)},V=(r,_)=>{const P=_.path;oe.confirm(`\u6B64\u64CD\u4F5C\u5C06\u5220\u9664 [${P}], \u662F\u5426\u7EE7\u7EED?`,"\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}).then(()=>{S.rmFile.request({fileId:s.tree.folder.id,path:P,machineId:e.machineId}).then(()=>{L.success("\u5220\u9664\u6210\u529F"),b.value.remove(r)})}).catch(()=>{})},m=(r,_)=>{const P=document.createElement("a");P.setAttribute("href",`${me.baseApiUrl}/machines/${e.machineId}/files/${s.tree.folder.id}/read?type=1&path=${_.path}&token=${p}`),P.click()},j=r=>{s.uploadProgressShow=!0;let _=r.loaded/r.total*100|0;s.progressNum=_},v=r=>{const _=new FormData;_.append("file",r.file),_.append("path",s.dataObj.path),_.append("machineId",e.machineId),_.append("fileId",s.tree.folder.id),_.append("token",p),S.uploadFile.request(_,{url:`${me.baseApiUrl}/machines/${e.machineId}/files/${s.tree.folder.id}/upload?token=${p}`,headers:{"Content-Type":"multipart/form-data; boundary=----WebKitFormBoundaryF1uyUD0tWdqmJqpl"},onUploadProgress:j,baseURL:"",timeout:60*60*1e3}).then(()=>{L.success("\u4E0A\u4F20\u6210\u529F"),setTimeout(()=>{s.uploadProgressShow=!1},3e3)}).catch(()=>{s.uploadProgressShow=!1})},B=r=>{r.code!==200&&L.error(r.msg)},G=r=>{s.file=r},ce=(r,_)=>{_&&(s.dataObj=r)},fe=r=>{const _=r.path;return["/","//","/usr","/usr/","/usr/bin","/opt","/run","/etc","/proc","/var","/mnt","/boot","/dev","/home","/media","/root"].indexOf(_)!=-1},he=r=>{const _=Number(r);if(r&&!isNaN(_)){const P=["B","KB","MB","GB","TB","PB","EB","ZB","YB","BB"];let J=0,N=_;if(_>=1024)for(;N>1024;)N=N/1024,J++;return`${N.toFixed(2)}${P[J]}`}return"-"};return O(R({},K(s)),{fileTree:b,enums:W,token:p,cmOptions:f,add:D,getFiles:F,addFiles:y,deleteRow:n,getConf:C,getFileContent:i,updateContent:z,handleClose:M,loadNode:d,deleteFile:V,downloadFile:m,getUploadFile:v,beforeUpload:G,getFilePath:ce,uploadSuccess:B,dontOperate:fe,formatFileSize:he})}}),He={class:"file-manage"},Qe={class:"toolbar"},Xe={style:{float:"right"}},xe=g("\u6DFB\u52A0"),el=g("\u786E\u5B9A"),ll=g("\u67E5\u770B"),tl=g("\u5220\u9664"),ol={style:{height:"45vh",overflow:"auto"}},nl={class:"custom-tree-node"},il={class:"el-dropdown-link"},al={key:0},sl={key:1},ul={key:2},rl={style:{display:"inline-block"}},dl={key:0,style:{color:"#67c23a"}},ml=g(" \u67E5\u770B "),pl=g(" \u4E0A\u4F20 "),cl=g("\u4E0B\u8F7D"),fl=g("\u5220\u9664 "),hl={class:"dialog-footer"},bl=g("\u4FDD \u5B58"),gl=g("\u5173 \u95ED");function vl(e,l,h,u,I,w){const b=a("el-button"),p=a("el-input"),f=a("el-table-column"),s=a("el-option"),F=a("el-select"),D=a("el-table"),y=a("el-dialog"),n=a("el-progress"),C=a("SvgIcon"),i=a("el-link"),k=a("el-dropdown-item"),z=a("el-upload"),M=a("el-dropdown-menu"),d=a("el-dropdown"),V=a("el-tree"),m=a("codemirror"),j=ee("auth");return c(),U("div",He,[t(y,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":l[0]||(l[0]=v=>e.dialogVisible=v),"show-close":!0,"before-close":e.handleClose,width:"800px"},{default:o(()=>[A("div",Qe,[A("div",Xe,[T((c(),E(b,{type:"primary",onClick:e.add,icon:"plus",size:"small",plain:""},{default:o(()=>[xe]),_:1},8,["onClick"])),[[j,"machine:file:add"]])])]),t(D,{data:e.fileTable,stripe:"",style:{width:"100%"}},{default:o(()=>[t(f,{prop:"name",label:"\u540D\u79F0",width:""},{default:o(v=>[t(p,{modelValue:v.row.name,"onUpdate:modelValue":B=>v.row.name=B,size:"small",disabled:v.row.id!=null,clearable:""},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:1}),t(f,{prop:"name",label:"\u7C7B\u578B","min-width":"50px"},{default:o(v=>[t(F,{disabled:v.row.id!=null,size:"small",modelValue:v.row.type,"onUpdate:modelValue":B=>v.row.type=B,style:{width:"100px"},placeholder:"\u8BF7\u9009\u62E9"},{default:o(()=>[(c(!0),U(le,null,te(e.enums.FileTypeEnum,B=>(c(),E(s,{key:B.value,label:B.label,value:B.value},null,8,["label","value"]))),128))]),_:2},1032,["disabled","modelValue","onUpdate:modelValue"])]),_:1}),t(f,{prop:"path",label:"\u8DEF\u5F84",width:""},{default:o(v=>[t(p,{modelValue:v.row.path,"onUpdate:modelValue":B=>v.row.path=B,disabled:v.row.id!=null,size:"small",clearable:""},null,8,["modelValue","onUpdate:modelValue","disabled"])]),_:1}),t(f,{label:"\u64CD\u4F5C",width:""},{default:o(v=>[v.row.id==null?(c(),E(b,{key:0,onClick:B=>e.addFiles(v.row),type:"success",icon:"success-filled",size:"small",plain:""},{default:o(()=>[el]),_:2},1032,["onClick"])):q("",!0),v.row.id!=null?(c(),E(b,{key:1,onClick:B=>e.getConf(v.row),type:"primary",icon:"tickets",size:"small",plain:""},{default:o(()=>[ll]),_:2},1032,["onClick"])):q("",!0),T((c(),E(b,{type:"danger",onClick:B=>e.deleteRow(v.$index,v.row),icon:"delete",size:"small",plain:""},{default:o(()=>[tl]),_:2},1032,["onClick"])),[[j,"machine:file:del"]])]),_:1})]),_:1},8,["data"])]),_:1},8,["title","modelValue","before-close"]),t(y,{title:e.tree.title,modelValue:e.tree.visible,"onUpdate:modelValue":l[1]||(l[1]=v=>e.tree.visible=v),"close-on-click-modal":!1,width:"680px"},{default:o(()=>[e.uploadProgressShow?(c(),E(n,{key:0,style:{width:"90%","margin-left":"20px"},"text-inside":!0,"stroke-width":20,percentage:e.progressNum},null,8,["percentage"])):q("",!0),A("div",ol,[e.tree.visible?(c(),E(V,{key:0,ref:"fileTree",load:e.loadNode,props:e.props,lazy:"","node-key":"id","expand-on-click-node":!0},{default:o(({node:v,data:B})=>[A("span",nl,[t(d,{size:"small",onVisibleChange:G=>e.getFilePath(B,G),trigger:"contextmenu"},{dropdown:o(()=>[t(M,null,{default:o(()=>[B.type=="-"&&B.size<1*1024*1024?(c(),E(k,{key:0},{default:o(()=>[t(i,{onClick:ie(G=>e.getFileContent(e.tree.folder.id,B.path),["prevent"]),type:"info",icon:"view",underline:!1},{default:o(()=>[ml]),_:2},1032,["onClick"])]),_:2},1024)):q("",!0),T((c(),U("span",null,[B.type=="d"?(c(),E(k,{key:0},{default:o(()=>[t(z,{"before-upload":e.beforeUpload,"on-success":e.uploadSuccess,action:"","http-request":e.getUploadFile,headers:{token:e.token},"show-file-list":!1,name:"file",style:{display:"inline-block","margin-left":"2px"}},{default:o(()=>[t(i,{icon:"upload",underline:!1},{default:o(()=>[pl]),_:1})]),_:1},8,["before-upload","on-success","http-request","headers"])]),_:1})):q("",!0)])),[[j,"machine:file:upload"]]),T((c(),U("span",null,[B.type=="-"?(c(),E(k,{key:0},{default:o(()=>[t(i,{onClick:ie(G=>e.downloadFile(v,B),["prevent"]),type:"primary",icon:"download",underline:!1,style:{"margin-left":"2px"}},{default:o(()=>[cl]),_:2},1032,["onClick"])]),_:2},1024)):q("",!0)])),[[j,"machine:file:write"]]),T((c(),U("span",null,[e.dontOperate(B)?q("",!0):(c(),E(k,{key:0},{default:o(()=>[t(i,{onClick:ie(G=>e.deleteFile(v,B),["prevent"]),type:"danger",icon:"delete",underline:!1,style:{"margin-left":"2px"}},{default:o(()=>[fl]),_:2},1032,["onClick"])]),_:2},1024))])),[[j,"machine:file:rm"]])]),_:2},1024)]),default:o(()=>[A("span",il,[B.type=="d"&&!v.expanded?(c(),U("span",al,[t(C,{name:"folder"})])):q("",!0),B.type=="d"&&v.expanded?(c(),U("span",sl,[t(C,{name:"folder-opened"})])):q("",!0),B.type=="-"?(c(),U("span",ul,[t(C,{name:"document"})])):q("",!0),A("span",rl,[g(Y(v.label)+" ",1),B.type=="-"?(c(),U("span",dl,"\xA0\xA0["+Y(e.formatFileSize(B.size))+"]",1)):q("",!0)])])]),_:2},1032,["onVisibleChange"])])]),_:1},8,["load","props"])):q("",!0)])]),_:1},8,["title","modelValue"]),t(y,{"destroy-on-close":!0,title:e.fileContent.dialogTitle,modelValue:e.fileContent.contentVisible,"onUpdate:modelValue":l[4]||(l[4]=v=>e.fileContent.contentVisible=v),"close-on-click-modal":!1,top:"5vh",width:"70%"},{footer:o(()=>[A("div",hl,[T((c(),E(b,{type:"primary",onClick:e.updateContent},{default:o(()=>[bl]),_:1},8,["onClick"])),[[j,"machine:file:write"]]),t(b,{onClick:l[3]||(l[3]=v=>e.fileContent.contentVisible=!1)},{default:o(()=>[gl]),_:1})])]),default:o(()=>[A("div",null,[t(m,{"can-change-mode":!0,ref:"cmEditor",modelValue:e.fileContent.content,"onUpdate:modelValue":l[2]||(l[2]=v=>e.fileContent.content=v),language:e.fileContent.type},null,8,["modelValue","language"])])]),_:1},8,["title","modelValue"])])}var yl=Q(Ze,[["render",vl]]);const _l=Z({name:"MachineEdit",props:{visible:{type:Boolean},projects:{type:Array},machine:{type:[Boolean,Object]},title:{type:String}},setup(e,{emit:l}){const h=ne(null),u=H({dialogVisible:!1,projects:[],form:{id:null,projectId:null,projectName:null,name:null,port:22,username:null,password:null},btnLoading:!1,rules:{projectId:[{required:!0,message:"\u8BF7\u9009\u62E9\u9879\u76EE",trigger:["change","blur"]}],envId:[{required:!0,message:"\u8BF7\u9009\u62E9\u73AF\u5883",trigger:["change","blur"]}],name:[{required:!0,message:"\u8BF7\u8F93\u5165\u522B\u540D",trigger:["change","blur"]}],ip:[{required:!0,message:"\u8BF7\u8F93\u5165\u4E3B\u673Aip",trigger:["change","blur"]}],port:[{required:!0,message:"\u8BF7\u8F93\u5165\u7AEF\u53E3",trigger:["change","blur"]}],username:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",trigger:["change","blur"]}],password:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801",trigger:["change","blur"]}]}});x(e,async p=>{u.dialogVisible=p.visible,u.projects=p.projects,p.machine?u.form=R({},p.machine):u.form={port:22}});const I=p=>{for(let f of u.projects)f.id==p&&(u.form.projectName=f.name)},w=async()=>{h.value.validate(p=>{if(p)S.saveMachine.request(u.form).then(()=>{L.success("\u4FDD\u5B58\u6210\u529F"),l("val-change",u.form),u.btnLoading=!0,setTimeout(()=>{u.btnLoading=!1},1e3),b()});else return L.error("\u8BF7\u6B63\u786E\u586B\u5199\u4FE1\u606F"),!1})},b=()=>{l("update:visible",!1),l("cancel"),setTimeout(()=>{h.value.resetFields(),u.form={}},200)};return O(R({},K(u)),{machineForm:h,changeProject:I,btnOk:w,cancel:b})}}),Fl={class:"dialog-footer"},Cl=g("\u786E \u5B9A"),Dl=g("\u53D6 \u6D88");function El(e,l,h,u,I,w){const b=a("el-option"),p=a("el-select"),f=a("el-form-item"),s=a("el-input"),F=a("el-form"),D=a("el-button"),y=a("el-dialog");return c(),U("div",null,[t(y,{title:e.title,modelValue:e.dialogVisible,"onUpdate:modelValue":l[7]||(l[7]=n=>e.dialogVisible=n),"show-close":!1,"before-close":e.cancel,width:"35%"},{footer:o(()=>[A("div",Fl,[t(D,{type:"primary",loading:e.btnLoading,onClick:e.btnOk},{default:o(()=>[Cl]),_:1},8,["loading","onClick"]),t(D,{onClick:l[6]||(l[6]=n=>e.cancel())},{default:o(()=>[Dl]),_:1})])]),default:o(()=>[t(F,{model:e.form,ref:"machineForm",rules:e.rules,"label-width":"85px"},{default:o(()=>[t(f,{prop:"projectId",label:"\u9879\u76EE:",required:""},{default:o(()=>[t(p,{style:{width:"100%"},modelValue:e.form.projectId,"onUpdate:modelValue":l[0]||(l[0]=n=>e.form.projectId=n),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",onChange:e.changeProject,filterable:""},{default:o(()=>[(c(!0),U(le,null,te(e.projects,n=>(c(),E(b,{key:n.id,label:`${n.name} [${n.remark}]`,value:n.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1}),t(f,{prop:"name",label:"\u540D\u79F0:",required:""},{default:o(()=>[t(s,{modelValue:e.form.name,"onUpdate:modelValue":l[1]||(l[1]=n=>e.form.name=n),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u673A\u5668\u522B\u540D","auto-complete":"off"},null,8,["modelValue"])]),_:1}),t(f,{prop:"ip",label:"ip:",required:""},{default:o(()=>[t(s,{modelValue:e.form.ip,"onUpdate:modelValue":l[2]||(l[2]=n=>e.form.ip=n),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u4E3B\u673Aip","auto-complete":"off"},null,8,["modelValue"])]),_:1}),t(f,{prop:"port",label:"port:",required:""},{default:o(()=>[t(s,{type:"number",modelValue:e.form.port,"onUpdate:modelValue":l[3]||(l[3]=n=>e.form.port=n),modelModifiers:{number:!0},placeholder:"\u8BF7\u8F93\u5165\u7AEF\u53E3"},null,8,["modelValue"])]),_:1}),t(f,{prop:"username",label:"\u7528\u6237\u540D:",required:""},{default:o(()=>[t(s,{modelValue:e.form.username,"onUpdate:modelValue":l[4]||(l[4]=n=>e.form.username=n),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D"},null,8,["modelValue"])]),_:1}),t(f,{prop:"password",label:"\u5BC6\u7801:",required:""},{default:o(()=>[t(s,{type:"password","show-password":"",modelValue:e.form.password,"onUpdate:modelValue":l[5]||(l[5]=n=>e.form.password=n),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",autocomplete:"new-password"},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["title","modelValue","before-close"])])}var wl=Q(_l,[["render",El]]);const Bl=Z({name:"ProcessList",components:{},props:{visible:{type:Boolean},machineId:{type:Number},title:{type:String}},setup(e,l){const h=H({dialogVisible:!1,params:{name:"",sortType:"1",count:"10",id:0},processList:[]});x(e,p=>{e.machineId&&(h.params.id=e.machineId,u()),h.dialogVisible=p.visible});const u=async()=>{const f=(await S.process.request(h.params)).split(` `),s=[],F=h.params.name==""?1:0;for(let D=F;D<f.length;D++){const n=f[D].split(/\s+/);if(n.length<2)continue;let C=n[10];if(!(h.params.name&&(C=="bash"||C=="grep"))){for(let i=10;i<n.length-1;i++)C+=" "+n[i+1];s.push({user:n[0],pid:n[1],cpu:n[2],mem:n[3],vsz:w(n[4]),rss:w(n[5]),stat:n[7],start:n[8],time:n[9],command:C})}}h.processList=s},I=async p=>{await S.killProcess.request({pid:p,id:h.params.id}),L.success("kill success"),h.params.name="",u()},w=p=>(parseInt(p)/1024).toFixed(2)+"M",b=()=>{l.emit("update:visible",!1),l.emit("update:machineId",null),l.emit("cancel"),h.params={name:"",sortType:"1",count:"10",id:0},h.processList=[]};return O(R({},K(h)),{getProcess:u,confirmKillProcess:I,enums:W,handleClose:b})}}),Vl={class:"file-manage"},Il={class:"toolbar"},kl=g("\u5237\u65B0"),$l=g(" VSZ "),Al=g(" RSS "),Ul=g(" STAT "),Sl=g(" START "),Tl=g(" TIME "),Pl=g("\u7EC8\u6B62");function ql(e,l,h,u,I,w){const b=a("el-input"),p=a("el-col"),f=a("el-option"),s=a("el-select"),F=a("el-button"),D=a("el-row"),y=a("el-table-column"),n=a("question-filled"),C=a("el-icon"),i=a("el-tooltip"),k=a("el-popconfirm"),z=a("el-table"),M=a("el-dialog"),d=ee("auth");return c(),U("div",Vl,[t(M,{title:"\u8FDB\u7A0B\u4FE1\u606F",modelValue:e.dialogVisible,"onUpdate:modelValue":l[3]||(l[3]=V=>e.dialogVisible=V),"destroy-on-close":!0,"show-close":!0,"before-close":e.handleClose,width:"65%"},{default:o(()=>[A("div",Il,[t(D,null,{default:o(()=>[t(p,{span:4},{default:o(()=>[t(b,{size:"small",placeholder:"\u8FDB\u7A0B\u540D",modelValue:e.params.name,"onUpdate:modelValue":l[0]||(l[0]=V=>e.params.name=V),plain:"",clearable:""},null,8,["modelValue"])]),_:1}),t(p,{span:4,class:"ml5"},{default:o(()=>[t(s,{onChange:e.getProcess,size:"small",modelValue:e.params.sortType,"onUpdate:modelValue":l[1]||(l[1]=V=>e.params.sortType=V),placeholder:"\u8BF7\u9009\u62E9\u6392\u5E8F\u7C7B\u578B"},{default:o(()=>[t(f,{key:"cpu",label:"cpu\u964D\u5E8F",value:"1"}),t(f,{key:"cpu",label:"mem\u964D\u5E8F",value:"2"})]),_:1},8,["onChange","modelValue"])]),_:1}),t(p,{span:4,class:"ml5"},{default:o(()=>[t(s,{onChange:e.getProcess,size:"small",modelValue:e.params.count,"onUpdate:modelValue":l[2]||(l[2]=V=>e.params.count=V),placeholder:"\u8BF7\u9009\u62E9\u8FDB\u7A0B\u4E2A\u6570"},{default:o(()=>[t(f,{key:"10",label:"10",value:"10"}),t(f,{key:"15",label:"15",value:"15"}),t(f,{key:"20",label:"20",value:"20"}),t(f,{key:"25",label:"25",value:"25"})]),_:1},8,["onChange","modelValue"])]),_:1}),t(p,{span:6},{default:o(()=>[t(F,{class:"ml5",onClick:e.getProcess,type:"primary",icon:"tickets",size:"small",plain:""},{default:o(()=>[kl]),_:1},8,["onClick"])]),_:1})]),_:1})]),t(z,{data:e.processList,size:"small",style:{width:"100%"}},{default:o(()=>[t(y,{prop:"user",label:"USER","min-width":50}),t(y,{prop:"pid",label:"PID","min-width":50,"show-overflow-tooltip":""}),t(y,{prop:"cpu",label:"%CPU","min-width":40}),t(y,{prop:"mem",label:"%MEM","min-width":42}),t(y,{prop:"vsz",label:"vsz","min-width":55},{header:o(()=>[$l,t(i,{class:"box-item",effect:"dark",content:"\u865A\u62DF\u5185\u5B58",placement:"top"},{default:o(()=>[t(C,null,{default:o(()=>[t(n)]),_:1})]),_:1})]),_:1}),t(y,{prop:"rss","min-width":52},{header:o(()=>[Al,t(i,{class:"box-item",effect:"dark",content:"\u56FA\u5B9A\u5185\u5B58",placement:"top"},{default:o(()=>[t(C,null,{default:o(()=>[t(n)]),_:1})]),_:1})]),_:1}),t(y,{prop:"stat","min-width":50},{header:o(()=>[Ul,t(i,{class:"box-item",effect:"dark",content:"\u8FDB\u7A0B\u72B6\u6001",placement:"top"},{default:o(()=>[t(C,null,{default:o(()=>[t(n)]),_:1})]),_:1})]),_:1}),t(y,{prop:"start","min-width":50},{header:o(()=>[Sl,t(i,{class:"box-item",effect:"dark",content:"\u542F\u52A8\u65F6\u95F4",placement:"top"},{default:o(()=>[t(C,null,{default:o(()=>[t(n)]),_:1})]),_:1})]),_:1}),t(y,{prop:"time","min-width":50},{header:o(()=>[Tl,t(i,{class:"box-item",effect:"dark",content:"\u8BE5\u8FDB\u7A0B\u5B9E\u9645\u4F7F\u7528CPU\u8FD0\u4F5C\u7684\u65F6\u95F4",placement:"top"},{default:o(()=>[t(C,null,{default:o(()=>[t(n)]),_:1})]),_:1})]),_:1}),t(y,{prop:"command",label:"command","min-width":120,"show-overflow-tooltip":""}),t(y,{label:"\u64CD\u4F5C"},{default:o(V=>[t(k,{title:"\u786E\u5B9A\u7EC8\u6B62\u8BE5\u8FDB\u7A0B?",onConfirm:m=>e.confirmKillProcess(V.row.pid)},{reference:o(()=>[T((c(),E(F,{type:"danger",icon:"delete",size:"small",plain:""},{default:o(()=>[Pl]),_:1})),[[d,"machine:killprocess"]])]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"])]),_:1},8,["modelValue","before-close"])])}var zl=Q(Bl,[["render",ql]]);const jl=Z({name:"MachineList",components:{ServiceManage:Ye,ProcessList:zl,FileManage:yl,MachineEdit:wl},setup(){const e=Fe(),l=H({projects:[],params:{pageNum:1,pageSize:10,host:null,clusterId:null},data:{list:[],total:10},currentId:null,currentData:null,infoDialog:{visible:!1,info:""},serviceDialog:{visible:!1,machineId:0,title:""},processDialog:{visible:!1,machineId:0},fileDialog:{visible:!1,machineId:0,title:""},monitorDialog:{visible:!1,machineId:0},machineEditDialog:{visible:!1,data:null,title:"\u65B0\u589E\u673A\u5668"}});Ce(async()=>{F(),l.projects=await De.accountProjects.request(null)});const h=n=>{!n||(l.currentId=n.id,l.currentData=n)},u=n=>{const{href:C}=e.resolve({path:"/machine/terminal",query:{id:n.id,name:n.name}});window.open(C,"_blank")},I=async n=>{await S.closeCli.request({id:n.id}),L.success("\u5173\u95ED\u6210\u529F"),F()},w=n=>{let C;n?(l.machineEditDialog.data=l.currentData,C="\u7F16\u8F91\u673A\u5668"):(l.machineEditDialog.data={port:22},C="\u6DFB\u52A0\u673A\u5668"),l.machineEditDialog.title=C,l.machineEditDialog.visible=!0},b=async n=>{try{await oe.confirm("\u786E\u5B9A\u5220\u9664\u8BE5\u673A\u5668\u4FE1\u606F? \u8BE5\u64CD\u4F5C\u5C06\u540C\u65F6\u5220\u9664\u811A\u672C\u53CA\u6587\u4EF6\u914D\u7F6E\u4FE1\u606F","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await S.del.request({id:n}),L.success("\u64CD\u4F5C\u6210\u529F"),l.currentId=null,l.currentData=null,F()}catch{}},p=n=>{l.serviceDialog.machineId=n.id,l.serviceDialog.visible=!0,l.serviceDialog.title=`${n.name} => ${n.ip}`},f=()=>{l.currentId=null,l.currentData=null,F()},s=n=>{l.fileDialog.visible=!0,l.fileDialog.machineId=n.id,l.fileDialog.title=`${n.name} => ${n.ip}`},F=async()=>{const n=await S.list.request(l.params);l.data=n},D=n=>{l.params.pageNum=n,F()},y=n=>{l.processDialog.machineId=n.id,l.processDialog.visible=!0};return O(R({},K(l)),{choose:h,showTerminal:u,openFormDialog:w,deleteMachine:b,closeCli:I,serviceManager:p,showProcess:y,submitSuccess:f,fileManage:s,search:F,handlePageChange:D})}}),Ml=g("\u6DFB\u52A0"),Ll=g("\u7F16\u8F91"),Nl=g("\u5220\u9664"),Rl=g("\u6587\u4EF6"),Ol={style:{float:"right"}},Wl=A("i",null,null,-1),Kl=g("\u811A\u672C"),Gl=g("\u7EC8\u7AEF"),Jl=g("\u8FDB\u7A0B"),Yl=g("\u5173\u95ED\u8FDE\u63A5");function Zl(e,l,h,u,I,w){const b=a("el-button"),p=a("el-option"),f=a("el-select"),s=a("el-input"),F=a("el-radio"),D=a("el-table-column"),y=a("el-table"),n=a("el-pagination"),C=a("el-row"),i=a("el-card"),k=a("machine-edit"),z=a("process-list"),M=a("service-manage"),d=a("file-manage"),V=ee("auth");return c(),U("div",null,[t(i,null,{default:o(()=>[A("div",null,[T((c(),E(b,{type:"primary",icon:"plus",onClick:l[0]||(l[0]=m=>e.openFormDialog(!1)),plain:""},{default:o(()=>[Ml]),_:1})),[[V,"machine:add"]]),T((c(),E(b,{type:"primary",icon:"edit",disabled:e.currentId==null,onClick:l[1]||(l[1]=m=>e.openFormDialog(e.currentData)),plain:""},{default:o(()=>[Ll]),_:1},8,["disabled"])),[[V,"machine:update"]]),T((c(),E(b,{disabled:e.currentId==null,onClick:l[2]||(l[2]=m=>e.deleteMachine(e.currentId)),type:"danger",icon:"delete"},{default:o(()=>[Nl]),_:1},8,["disabled"])),[[V,"machine:del"]]),T((c(),E(b,{type:"success",icon:"files",disabled:e.currentId==null,onClick:l[3]||(l[3]=m=>e.fileManage(e.currentData)),plain:""},{default:o(()=>[Rl]),_:1},8,["disabled"])),[[V,"machine:file"]]),A("div",Ol,[t(f,{modelValue:e.params.projectId,"onUpdate:modelValue":l[4]||(l[4]=m=>e.params.projectId=m),placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE",onClear:e.search,filterable:"",clearable:""},{default:o(()=>[(c(!0),U(le,null,te(e.projects,m=>(c(),E(p,{key:m.id,label:`${m.name} [${m.remark}]`,value:m.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onClear"]),t(s,{class:"ml5",placeholder:"\u8BF7\u8F93\u5165ip",style:{width:"200px"},modelValue:e.params.ip,"onUpdate:modelValue":l[5]||(l[5]=m=>e.params.ip=m),onClear:e.search,plain:"",clearable:""},null,8,["modelValue","onClear"]),t(b,{class:"ml5",onClick:e.search,type:"success",icon:"search"},null,8,["onClick"])])]),t(y,{data:e.data.list,stripe:"",style:{width:"100%"},onCurrentChange:e.choose},{default:o(()=>[t(D,{label:"\u9009\u62E9",width:"55px"},{default:o(m=>[t(F,{modelValue:e.currentId,"onUpdate:modelValue":l[6]||(l[6]=j=>e.currentId=j),label:m.row.id},{default:o(()=>[Wl]),_:2},1032,["modelValue","label"])]),_:1}),t(D,{prop:"name",label:"\u540D\u79F0","min-width":"130","show-overflow-tooltip":""}),t(D,{prop:"ip",label:"ip:port","min-width":"130"},{default:o(m=>[g(Y(`${m.row.ip}:${m.row.port}`),1)]),_:1}),t(D,{prop:"username",label:"\u7528\u6237\u540D","min-width":"75"}),t(D,{prop:"projectName",label:"\u9879\u76EE","min-width":"120"}),t(D,{prop:"ip",label:"hasCli",width:"70"},{default:o(m=>[g(Y(`${m.row.hasCli?"\u662F":"\u5426"}`),1)]),_:1}),t(D,{prop:"createTime",label:"\u521B\u5EFA\u65F6\u95F4",width:"165"},{default:o(m=>[g(Y(e.$filters.dateFormat(m.row.createTime)),1)]),_:1}),t(D,{prop:"creator",label:"\u521B\u5EFA\u8005","min-width":"60"}),t(D,{label:"\u64CD\u4F5C","min-width":"260",fixed:"right"},{default:o(m=>[t(b,{type:"success",onClick:j=>e.serviceManager(m.row),plain:"",size:"small"},{default:o(()=>[Kl]),_:2},1032,["onClick"]),T((c(),E(b,{type:"primary",onClick:j=>e.showTerminal(m.row),plain:"",size:"small"},{default:o(()=>[Gl]),_:2},1032,["onClick"])),[[V,"machine:terminal"]]),t(b,{onClick:j=>e.showProcess(m.row),plain:"",size:"small"},{default:o(()=>[Jl]),_:2},1032,["onClick"]),t(b,{disabled:!m.row.hasCli,type:"danger",onClick:j=>e.closeCli(m.row),plain:"",size:"small"},{default:o(()=>[Yl]),_:2},1032,["disabled","onClick"])]),_:1})]),_:1},8,["data","onCurrentChange"]),t(C,{style:{"margin-top":"20px"},type:"flex",justify:"end"},{default:o(()=>[t(n,{style:{"text-align":"right"},total:e.data.total,layout:"prev, pager, next, total, jumper","current-page":e.params.pageNum,"onUpdate:current-page":l[7]||(l[7]=m=>e.params.pageNum=m),"page-size":e.params.pageSize,onCurrentChange:e.handlePageChange},null,8,["total","current-page","page-size","onCurrentChange"])]),_:1})]),_:1}),t(k,{title:e.machineEditDialog.title,projects:e.projects,visible:e.machineEditDialog.visible,"onUpdate:visible":l[8]||(l[8]=m=>e.machineEditDialog.visible=m),machine:e.machineEditDialog.data,"onUpdate:machine":l[9]||(l[9]=m=>e.machineEditDialog.data=m),onValChange:e.submitSuccess},null,8,["title","projects","visible","machine","onValChange"]),t(z,{visible:e.processDialog.visible,"onUpdate:visible":l[10]||(l[10]=m=>e.processDialog.visible=m),machineId:e.processDialog.machineId,"onUpdate:machineId":l[11]||(l[11]=m=>e.processDialog.machineId=m)},null,8,["visible","machineId"]),t(M,{title:e.serviceDialog.title,visible:e.serviceDialog.visible,"onUpdate:visible":l[12]||(l[12]=m=>e.serviceDialog.visible=m),machineId:e.serviceDialog.machineId,"onUpdate:machineId":l[13]||(l[13]=m=>e.serviceDialog.machineId=m)},null,8,["title","visible","machineId"]),t(d,{title:e.fileDialog.title,visible:e.fileDialog.visible,"onUpdate:visible":l[14]||(l[14]=m=>e.fileDialog.visible=m),machineId:e.fileDialog.machineId,"onUpdate:machineId":l[15]||(l[15]=m=>e.fileDialog.machineId=m)},null,8,["title","visible","machineId"])])}var at=Q(jl,[["render",Zl]]);export{at as default};
13,537.333333
28,843
0.667881
190e55181057851da41ba42cf139d5ea7d390235
1,125
js
JavaScript
lesson_11/for_stars.js
Skelman50/js_course
2754360ab3416ae107a012b9987e33c4166c59c1
[ "MIT" ]
null
null
null
lesson_11/for_stars.js
Skelman50/js_course
2754360ab3416ae107a012b9987e33c4166c59c1
[ "MIT" ]
null
null
null
lesson_11/for_stars.js
Skelman50/js_course
2754360ab3416ae107a012b9987e33c4166c59c1
[ "MIT" ]
null
null
null
'use strict' function join() { let obj = {}; let arr = []; for(let i = 0; i < arguments.length; i++) { arr[i] = arguments[i]; } for (let i = 0; i < arr.length; i++) { if (typeof(arr[i]) === "object" && Array.isArray(arr[i]) === false){ obj = arr[i]; arr.splice(i,1); break; } } for(let i = 0; i < arr.length; i++) { if (typeof(arr[i]) === "object" && Array.isArray(arr[i]) === false) { for (let key in arr[i]) { if (obj[key] === undefined) { obj[key] = arr[i][key]; } else { if (Array.isArray(arr[i][key]) && Array.isArray(obj[key])) { obj[key] = obj[key].concat(arr[i][key]); }else if (typeof(obj[key]) === 'object' && !Array.isArray(obj[key]) && typeof(arr[i][key]) === 'object' && !Array.isArray(arr[i][key])) { obj[key] = arr[i][key]; }else if (typeof(obj[key]) === 'number' && typeof(arr[i][key]) === 'number') { obj[key] = obj[key] + arr[i][key]; }else if (typeof(obj[key]) === 'string' && typeof(arr[i][key]) === 'string') { obj[key] = obj[key] + arr[i][key]; }else { obj[key] = arr[i][key]; } } } } } return obj; }
26.162791
141
0.504
190f719e6070f505a9ecaa01dee2f018af7e00e5
1,557
js
JavaScript
assets/admin/demo/demo-datatables.js
misoftech/h15a18d22
7781bf05060ac7934e8128696aa56dc378f49ff5
[ "MIT" ]
null
null
null
assets/admin/demo/demo-datatables.js
misoftech/h15a18d22
7781bf05060ac7934e8128696aa56dc378f49ff5
[ "MIT" ]
null
null
null
assets/admin/demo/demo-datatables.js
misoftech/h15a18d22
7781bf05060ac7934e8128696aa56dc378f49ff5
[ "MIT" ]
null
null
null
// ------------------------------- // Initialize Data Tables // ------------------------------- <? if($_GET['p']=="add_car"){ ?> $(document).ready(function() { $('.datatables').dataTable({ "iDisplayLength": 10, "aLengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]], "sDom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>t<'row'<'col-xs-6'i><'col-xs-6'p>>", "sPaginationType": "bootstrap", "sAjaxSource": 'pl_request.php?wg=getcars', "aoColumns": [ { "sClass": "left", "bSortable": true }, { "sClass": "left", "bSortable": true }, { "sClass": "left", "bSortable": true }, { "sClass": "left", "bSortable": true }, { "sClass": "left", "bSortable": true }, { "sClass": "left", "bSortable": true }, { "sClass": "left", "bSortable": true }, { "sClass": "left", "bSortable": true }, { "sClass": "left", "bSortable": true }, { "sClass": "left", "bSortable": true }, { "sClass": "left", "bSortable": true }, { "sClass": "left", "bSortable": true }, { "sClass": "left", "bSortable": true }, { "sClass": "center", "bSortable": false }, { "sClass": "center", "bSortable": false } ], "oLanguage": { "sLengthMenu": "_MENU_", "sSearch": "", "sZeroRecords": "<p>Keine Fahrzeuge vorhanden!</p>", } }); $('.dataTables_filter input').addClass('form-control').attr('placeholder','Search...'); $('.dataTables_length select').addClass('form-control'); }); <? } ?>
37.071429
91
0.480411
190f813ac0ead41e953c27e4acad91b0ab44ff46
125,524
js
JavaScript
src/scripts/index.js
robertpage/portfolio
5f26f8407f4b8c6d19fb8263bf97775fb5883eb4
[ "MIT" ]
null
null
null
src/scripts/index.js
robertpage/portfolio
5f26f8407f4b8c6d19fb8263bf97775fb5883eb4
[ "MIT" ]
null
null
null
src/scripts/index.js
robertpage/portfolio
5f26f8407f4b8c6d19fb8263bf97775fb5883eb4
[ "MIT" ]
null
null
null
import { request } from "@octokit/request"; import { initState, getCurrentState, updateState } from "./modules/state/management"; import barba from '@barba/core'; // import anime from 'animejs/lib/anime.es.js'; barba.init(); window.onload = function () { if (!window) return; init(window.location.pathname); } barba.hooks.enter((data) => { if (!data || !data.trigger) return; init(data.trigger.pathname); }); async function init (pathName) { let firstRender = false; let currentState = getCurrentState(); if (currentState === undefined) { firstRender = true; currentState = { currentPage: pathName, ui: { filters: { isAscending: true, orderByInterestesting: true } } } } if (pathName === "/portfolio/") { // const userResponse = getUser(); const userResponse = await request('GET /users/{robertpage}', { robertpage: 'robertpage' }) if (userResponse) { currentState.profileData = userResponse.data; } if (!firstRender) { updateState((state)=>{ state.currentPage = pathName; state.profileData = userResponse.data; }); } } if (pathName === "/portfolio/projects/") { // currentState.repos === undefined // const repoResponse = getRepos(); const repoResponse = await request('GET /users/robertpage/repos', { username: 'robertpage' }) if (firstRender) { currentState.repos = repoResponse.data; } if (!firstRender) { updateState((state)=>{ state.currentPage = pathName; state.repos = repoResponse.data; }); } } if (firstRender) initState(currentState); } // // function getDummieData () { // // return { // // data: [ // // {id: 1, created_at:"1"}, // // {id: 2, created_at:"1"}, // // {id: 3, created_at:"1"}, // // {id: 4, created_at:"1"}, // // {id: 5, created_at:"1"}, // // {id: 6, created_at:"1"}, // // {id: 7, created_at:"1"}, // // {id: 8, created_at:"1"}, // // {id: 9, created_at:"1"}, // // {id: 10, created_at:"1"}, // // ] // // } // // } // function getUser () { // return { // "status":200, // "url":"https://api.github.com/users/robertpage", // "headers":{ // "cache-control":"public, max-age=60, s-maxage=60", // "content-type":"application/json; charset=utf-8", // "etag":"W/\"923485d01fb6e7f06165aea1d175aa976598c9e91dbc08ac0f748cb246262229\"", // "last-modified":"Sun, 13 Sep 2020 05:01:49 GMT", // "x-github-media-type":"github.v3; format=json", // "x-ratelimit-limit":"60", // "x-ratelimit-remaining":"59", // "x-ratelimit-reset":"1607031110", // "x-ratelimit-used":"1" // }, // "data":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false, // "name":"Robert Easley", // "company":null, // "blog":"", // "location":"Bay Area, California", // "email":null, // "hireable":true, // "bio":"This is my bio", // "twitter_username":null, // "public_repos":19, // "public_gists":0, // "followers":1, // "following":0, // "created_at":"2011-03-04T02:47:38Z", // "updated_at":"2020-09-13T05:01:49Z" // } // } // } // function getRepos () { // return { // "status":200, // "url":"https://api.github.com/users/robertpage/repos?username=robertpage", // "headers":{ // "cache-control":"public, max-age=60, s-maxage=60", // "content-type":"application/json; charset=utf-8", // "etag":"W/\"7bffcb24e9beaeaf06ae9806c87ac223dc6b8ea9bae659ad6328a0674662648d\"", // "x-github-media-type":"github.v3; format=json", // "x-ratelimit-limit":"60", // "x-ratelimit-remaining":"55", // "x-ratelimit-reset":"1607029101", // "x-ratelimit-used":"5" // }, // "data":[ // { // "id":29104937, // "node_id":"MDEwOlJlcG9zaXRvcnkyOTEwNDkzNw==", // "name":"cube-resize-game", // "full_name":"robertpage/cube-resize-game", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/cube-resize-game", // "description":"A simple proof of concept game using window resizing.", // "fork":false, // "url":"https://api.github.com/repos/robertpage/cube-resize-game", // "forks_url":"https://api.github.com/repos/robertpage/cube-resize-game/forks", // "keys_url":"https://api.github.com/repos/robertpage/cube-resize-game/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/cube-resize-game/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/cube-resize-game/teams", // "hooks_url":"https://api.github.com/repos/robertpage/cube-resize-game/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/cube-resize-game/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/cube-resize-game/events", // "assignees_url":"https://api.github.com/repos/robertpage/cube-resize-game/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/cube-resize-game/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/cube-resize-game/tags", // "blobs_url":"https://api.github.com/repos/robertpage/cube-resize-game/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/cube-resize-game/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/cube-resize-game/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/cube-resize-game/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/cube-resize-game/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/cube-resize-game/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/cube-resize-game/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/cube-resize-game/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/cube-resize-game/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/cube-resize-game/subscription", // "commits_url":"https://api.github.com/repos/robertpage/cube-resize-game/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/cube-resize-game/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/cube-resize-game/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/cube-resize-game/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/cube-resize-game/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/cube-resize-game/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/cube-resize-game/merges", // "archive_url":"https://api.github.com/repos/robertpage/cube-resize-game/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/cube-resize-game/downloads", // "issues_url":"https://api.github.com/repos/robertpage/cube-resize-game/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/cube-resize-game/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/cube-resize-game/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/cube-resize-game/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/cube-resize-game/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/cube-resize-game/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/cube-resize-game/deployments", // "created_at":"2015-01-11T20:28:42Z", // "updated_at":"2015-01-16T21:38:35Z", // "pushed_at":"2015-01-16T21:38:34Z", // "git_url":"git://github.com/robertpage/cube-resize-game.git", // "ssh_url":"git@github.com:robertpage/cube-resize-game.git", // "clone_url":"https://github.com/robertpage/cube-resize-game.git", // "svn_url":"https://github.com/robertpage/cube-resize-game", // "homepage":"", // "size":652, // "stargazers_count":0, // "watchers_count":0, // "language":"CSS", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":true, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":293648035, // "node_id":"MDEwOlJlcG9zaXRvcnkyOTM2NDgwMzU=", // "name":"decipher-rpg-system", // "full_name":"robertpage/decipher-rpg-system", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/decipher-rpg-system", // "description":null, // "fork":false, // "url":"https://api.github.com/repos/robertpage/decipher-rpg-system", // "forks_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/forks", // "keys_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/teams", // "hooks_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/events", // "assignees_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/tags", // "blobs_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/subscription", // "commits_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/merges", // "archive_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/downloads", // "issues_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/decipher-rpg-system/deployments", // "created_at":"2020-09-07T22:52:12Z", // "updated_at":"2020-09-30T22:52:29Z", // "pushed_at":"2020-09-30T22:52:27Z", // "git_url":"git://github.com/robertpage/decipher-rpg-system.git", // "ssh_url":"git@github.com:robertpage/decipher-rpg-system.git", // "clone_url":"https://github.com/robertpage/decipher-rpg-system.git", // "svn_url":"https://github.com/robertpage/decipher-rpg-system", // "homepage":null, // "size":881, // "stargazers_count":0, // "watchers_count":0, // "language":"JavaScript", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":true, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":296718525, // "node_id":"MDEwOlJlcG9zaXRvcnkyOTY3MTg1MjU=", // "name":"file-change", // "full_name":"robertpage/file-change", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/file-change", // "description":"Simple starter for changinging text in files", // "fork":false, // "url":"https://api.github.com/repos/robertpage/file-change", // "forks_url":"https://api.github.com/repos/robertpage/file-change/forks", // "keys_url":"https://api.github.com/repos/robertpage/file-change/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/file-change/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/file-change/teams", // "hooks_url":"https://api.github.com/repos/robertpage/file-change/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/file-change/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/file-change/events", // "assignees_url":"https://api.github.com/repos/robertpage/file-change/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/file-change/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/file-change/tags", // "blobs_url":"https://api.github.com/repos/robertpage/file-change/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/file-change/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/file-change/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/file-change/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/file-change/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/file-change/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/file-change/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/file-change/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/file-change/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/file-change/subscription", // "commits_url":"https://api.github.com/repos/robertpage/file-change/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/file-change/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/file-change/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/file-change/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/file-change/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/file-change/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/file-change/merges", // "archive_url":"https://api.github.com/repos/robertpage/file-change/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/file-change/downloads", // "issues_url":"https://api.github.com/repos/robertpage/file-change/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/file-change/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/file-change/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/file-change/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/file-change/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/file-change/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/file-change/deployments", // "created_at":"2020-09-18T20:02:34Z", // "updated_at":"2020-09-18T20:13:46Z", // "pushed_at":"2020-09-18T20:13:44Z", // "git_url":"git://github.com/robertpage/file-change.git", // "ssh_url":"git@github.com:robertpage/file-change.git", // "clone_url":"https://github.com/robertpage/file-change.git", // "svn_url":"https://github.com/robertpage/file-change", // "homepage":null, // "size":6, // "stargazers_count":0, // "watchers_count":0, // "language":"JavaScript", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":false, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":35172658, // "node_id":"MDEwOlJlcG9zaXRvcnkzNTE3MjY1OA==", // "name":"gilly", // "full_name":"robertpage/gilly", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/gilly", // "description":"A dead simple image and video gallery library.", // "fork":false, // "url":"https://api.github.com/repos/robertpage/gilly", // "forks_url":"https://api.github.com/repos/robertpage/gilly/forks", // "keys_url":"https://api.github.com/repos/robertpage/gilly/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/gilly/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/gilly/teams", // "hooks_url":"https://api.github.com/repos/robertpage/gilly/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/gilly/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/gilly/events", // "assignees_url":"https://api.github.com/repos/robertpage/gilly/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/gilly/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/gilly/tags", // "blobs_url":"https://api.github.com/repos/robertpage/gilly/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/gilly/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/gilly/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/gilly/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/gilly/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/gilly/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/gilly/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/gilly/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/gilly/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/gilly/subscription", // "commits_url":"https://api.github.com/repos/robertpage/gilly/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/gilly/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/gilly/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/gilly/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/gilly/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/gilly/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/gilly/merges", // "archive_url":"https://api.github.com/repos/robertpage/gilly/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/gilly/downloads", // "issues_url":"https://api.github.com/repos/robertpage/gilly/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/gilly/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/gilly/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/gilly/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/gilly/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/gilly/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/gilly/deployments", // "created_at":"2015-05-06T17:19:18Z", // "updated_at":"2015-05-06T18:05:44Z", // "pushed_at":"2015-05-06T18:05:44Z", // "git_url":"git://github.com/robertpage/gilly.git", // "ssh_url":"git@github.com:robertpage/gilly.git", // "clone_url":"https://github.com/robertpage/gilly.git", // "svn_url":"https://github.com/robertpage/gilly", // "homepage":null, // "size":140, // "stargazers_count":0, // "watchers_count":0, // "language":"JavaScript", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":false, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":300067728, // "node_id":"MDEwOlJlcG9zaXRvcnkzMDAwNjc3Mjg=", // "name":"horde", // "full_name":"robertpage/horde", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/horde", // "description":" A cooperative or solo way to play MTG with your cards", // "fork":false, // "url":"https://api.github.com/repos/robertpage/horde", // "forks_url":"https://api.github.com/repos/robertpage/horde/forks", // "keys_url":"https://api.github.com/repos/robertpage/horde/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/horde/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/horde/teams", // "hooks_url":"https://api.github.com/repos/robertpage/horde/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/horde/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/horde/events", // "assignees_url":"https://api.github.com/repos/robertpage/horde/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/horde/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/horde/tags", // "blobs_url":"https://api.github.com/repos/robertpage/horde/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/horde/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/horde/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/horde/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/horde/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/horde/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/horde/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/horde/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/horde/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/horde/subscription", // "commits_url":"https://api.github.com/repos/robertpage/horde/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/horde/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/horde/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/horde/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/horde/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/horde/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/horde/merges", // "archive_url":"https://api.github.com/repos/robertpage/horde/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/horde/downloads", // "issues_url":"https://api.github.com/repos/robertpage/horde/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/horde/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/horde/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/horde/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/horde/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/horde/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/horde/deployments", // "created_at":"2020-09-30T21:29:19Z", // "updated_at":"2020-09-30T21:30:17Z", // "pushed_at":"2020-09-30T21:30:14Z", // "git_url":"git://github.com/robertpage/horde.git", // "ssh_url":"git@github.com:robertpage/horde.git", // "clone_url":"https://github.com/robertpage/horde.git", // "svn_url":"https://github.com/robertpage/horde", // "homepage":null, // "size":8698, // "stargazers_count":0, // "watchers_count":0, // "language":"TypeScript", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":true, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":316609706, // "node_id":"MDEwOlJlcG9zaXRvcnkzMTY2MDk3MDY=", // "name":"lighterHTML-stress-test", // "full_name":"robertpage/lighterHTML-stress-test", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/lighterHTML-stress-test", // "description":"Simple test using a Perlin noise map to see if rerending 1000+ DOM nodes causes issues using lighterHTML", // "fork":false, // "url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test", // "forks_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/forks", // "keys_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/teams", // "hooks_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/events", // "assignees_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/tags", // "blobs_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/subscription", // "commits_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/merges", // "archive_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/downloads", // "issues_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/lighterHTML-stress-test/deployments", // "created_at":"2020-11-27T22:12:27Z", // "updated_at":"2020-11-28T19:10:42Z", // "pushed_at":"2020-11-28T19:10:40Z", // "git_url":"git://github.com/robertpage/lighterHTML-stress-test.git", // "ssh_url":"git@github.com:robertpage/lighterHTML-stress-test.git", // "clone_url":"https://github.com/robertpage/lighterHTML-stress-test.git", // "svn_url":"https://github.com/robertpage/lighterHTML-stress-test", // "homepage":null, // "size":159, // "stargazers_count":0, // "watchers_count":0, // "language":"JavaScript", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":true, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":34530238, // "node_id":"MDEwOlJlcG9zaXRvcnkzNDUzMDIzOA==", // "name":"lodestone", // "full_name":"robertpage/lodestone", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/lodestone", // "description":"A simple view framework built as a fun side project.", // "fork":false, // "url":"https://api.github.com/repos/robertpage/lodestone", // "forks_url":"https://api.github.com/repos/robertpage/lodestone/forks", // "keys_url":"https://api.github.com/repos/robertpage/lodestone/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/lodestone/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/lodestone/teams", // "hooks_url":"https://api.github.com/repos/robertpage/lodestone/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/lodestone/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/lodestone/events", // "assignees_url":"https://api.github.com/repos/robertpage/lodestone/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/lodestone/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/lodestone/tags", // "blobs_url":"https://api.github.com/repos/robertpage/lodestone/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/lodestone/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/lodestone/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/lodestone/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/lodestone/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/lodestone/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/lodestone/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/lodestone/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/lodestone/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/lodestone/subscription", // "commits_url":"https://api.github.com/repos/robertpage/lodestone/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/lodestone/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/lodestone/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/lodestone/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/lodestone/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/lodestone/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/lodestone/merges", // "archive_url":"https://api.github.com/repos/robertpage/lodestone/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/lodestone/downloads", // "issues_url":"https://api.github.com/repos/robertpage/lodestone/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/lodestone/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/lodestone/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/lodestone/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/lodestone/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/lodestone/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/lodestone/deployments", // "created_at":"2015-04-24T16:45:44Z", // "updated_at":"2015-07-06T16:20:57Z", // "pushed_at":"2015-07-06T16:20:57Z", // "git_url":"git://github.com/robertpage/lodestone.git", // "ssh_url":"git@github.com:robertpage/lodestone.git", // "clone_url":"https://github.com/robertpage/lodestone.git", // "svn_url":"https://github.com/robertpage/lodestone", // "homepage":null, // "size":3380, // "stargazers_count":0, // "watchers_count":0, // "language":"JavaScript", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":true, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":39358819, // "node_id":"MDEwOlJlcG9zaXRvcnkzOTM1ODgxOQ==", // "name":"moles", // "full_name":"robertpage/moles", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/moles", // "description":null, // "fork":false, // "url":"https://api.github.com/repos/robertpage/moles", // "forks_url":"https://api.github.com/repos/robertpage/moles/forks", // "keys_url":"https://api.github.com/repos/robertpage/moles/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/moles/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/moles/teams", // "hooks_url":"https://api.github.com/repos/robertpage/moles/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/moles/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/moles/events", // "assignees_url":"https://api.github.com/repos/robertpage/moles/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/moles/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/moles/tags", // "blobs_url":"https://api.github.com/repos/robertpage/moles/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/moles/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/moles/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/moles/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/moles/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/moles/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/moles/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/moles/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/moles/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/moles/subscription", // "commits_url":"https://api.github.com/repos/robertpage/moles/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/moles/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/moles/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/moles/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/moles/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/moles/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/moles/merges", // "archive_url":"https://api.github.com/repos/robertpage/moles/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/moles/downloads", // "issues_url":"https://api.github.com/repos/robertpage/moles/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/moles/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/moles/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/moles/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/moles/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/moles/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/moles/deployments", // "created_at":"2015-07-20T02:35:35Z", // "updated_at":"2015-07-20T03:54:44Z", // "pushed_at":"2015-07-28T16:18:53Z", // "git_url":"git://github.com/robertpage/moles.git", // "ssh_url":"git@github.com:robertpage/moles.git", // "clone_url":"https://github.com/robertpage/moles.git", // "svn_url":"https://github.com/robertpage/moles", // "homepage":null, // "size":3516, // "stargazers_count":0, // "watchers_count":0, // "language":"JavaScript", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":true, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":null, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":296457802, // "node_id":"MDEwOlJlcG9zaXRvcnkyOTY0NTc4MDI=", // "name":"npc-character-gen", // "full_name":"robertpage/npc-character-gen", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/npc-character-gen", // "description":"Simple character generator for GM's & DM's running pen and paper role-playing games", // "fork":false, // "url":"https://api.github.com/repos/robertpage/npc-character-gen", // "forks_url":"https://api.github.com/repos/robertpage/npc-character-gen/forks", // "keys_url":"https://api.github.com/repos/robertpage/npc-character-gen/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/npc-character-gen/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/npc-character-gen/teams", // "hooks_url":"https://api.github.com/repos/robertpage/npc-character-gen/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/npc-character-gen/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/npc-character-gen/events", // "assignees_url":"https://api.github.com/repos/robertpage/npc-character-gen/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/npc-character-gen/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/npc-character-gen/tags", // "blobs_url":"https://api.github.com/repos/robertpage/npc-character-gen/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/npc-character-gen/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/npc-character-gen/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/npc-character-gen/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/npc-character-gen/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/npc-character-gen/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/npc-character-gen/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/npc-character-gen/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/npc-character-gen/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/npc-character-gen/subscription", // "commits_url":"https://api.github.com/repos/robertpage/npc-character-gen/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/npc-character-gen/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/npc-character-gen/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/npc-character-gen/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/npc-character-gen/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/npc-character-gen/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/npc-character-gen/merges", // "archive_url":"https://api.github.com/repos/robertpage/npc-character-gen/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/npc-character-gen/downloads", // "issues_url":"https://api.github.com/repos/robertpage/npc-character-gen/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/npc-character-gen/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/npc-character-gen/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/npc-character-gen/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/npc-character-gen/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/npc-character-gen/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/npc-character-gen/deployments", // "created_at":"2020-09-17T22:43:11Z", // "updated_at":"2020-09-30T23:02:26Z", // "pushed_at":"2020-09-30T23:02:24Z", // "git_url":"git://github.com/robertpage/npc-character-gen.git", // "ssh_url":"git@github.com:robertpage/npc-character-gen.git", // "clone_url":"https://github.com/robertpage/npc-character-gen.git", // "svn_url":"https://github.com/robertpage/npc-character-gen", // "homepage":null, // "size":590, // "stargazers_count":0, // "watchers_count":0, // "language":"SCSS", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":true, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":294235468, // "node_id":"MDEwOlJlcG9zaXRvcnkyOTQyMzU0Njg=", // "name":"order-grocery-lists", // "full_name":"robertpage/order-grocery-lists", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/order-grocery-lists", // "description":"Simple grocery item list ordering tool for my local stores", // "fork":false, // "url":"https://api.github.com/repos/robertpage/order-grocery-lists", // "forks_url":"https://api.github.com/repos/robertpage/order-grocery-lists/forks", // "keys_url":"https://api.github.com/repos/robertpage/order-grocery-lists/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/order-grocery-lists/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/order-grocery-lists/teams", // "hooks_url":"https://api.github.com/repos/robertpage/order-grocery-lists/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/order-grocery-lists/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/order-grocery-lists/events", // "assignees_url":"https://api.github.com/repos/robertpage/order-grocery-lists/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/order-grocery-lists/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/order-grocery-lists/tags", // "blobs_url":"https://api.github.com/repos/robertpage/order-grocery-lists/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/order-grocery-lists/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/order-grocery-lists/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/order-grocery-lists/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/order-grocery-lists/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/order-grocery-lists/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/order-grocery-lists/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/order-grocery-lists/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/order-grocery-lists/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/order-grocery-lists/subscription", // "commits_url":"https://api.github.com/repos/robertpage/order-grocery-lists/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/order-grocery-lists/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/order-grocery-lists/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/order-grocery-lists/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/order-grocery-lists/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/order-grocery-lists/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/order-grocery-lists/merges", // "archive_url":"https://api.github.com/repos/robertpage/order-grocery-lists/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/order-grocery-lists/downloads", // "issues_url":"https://api.github.com/repos/robertpage/order-grocery-lists/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/order-grocery-lists/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/order-grocery-lists/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/order-grocery-lists/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/order-grocery-lists/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/order-grocery-lists/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/order-grocery-lists/deployments", // "created_at":"2020-09-09T21:38:12Z", // "updated_at":"2020-09-22T16:25:30Z", // "pushed_at":"2020-09-22T16:25:28Z", // "git_url":"git://github.com/robertpage/order-grocery-lists.git", // "ssh_url":"git@github.com:robertpage/order-grocery-lists.git", // "clone_url":"https://github.com/robertpage/order-grocery-lists.git", // "svn_url":"https://github.com/robertpage/order-grocery-lists", // "homepage":null, // "size":133, // "stargazers_count":0, // "watchers_count":0, // "language":"JavaScript", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":true, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":292909556, // "node_id":"MDEwOlJlcG9zaXRvcnkyOTI5MDk1NTY=", // "name":"pet-parade-bingo", // "full_name":"robertpage/pet-parade-bingo", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/pet-parade-bingo", // "description":"A simple bingo card generator for pet parades or any other type of bingo.", // "fork":false, // "url":"https://api.github.com/repos/robertpage/pet-parade-bingo", // "forks_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/forks", // "keys_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/teams", // "hooks_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/events", // "assignees_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/tags", // "blobs_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/subscription", // "commits_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/merges", // "archive_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/downloads", // "issues_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/pet-parade-bingo/deployments", // "created_at":"2020-09-04T17:36:17Z", // "updated_at":"2020-09-06T16:24:54Z", // "pushed_at":"2020-09-06T16:24:52Z", // "git_url":"git://github.com/robertpage/pet-parade-bingo.git", // "ssh_url":"git@github.com:robertpage/pet-parade-bingo.git", // "clone_url":"https://github.com/robertpage/pet-parade-bingo.git", // "svn_url":"https://github.com/robertpage/pet-parade-bingo", // "homepage":null, // "size":1261, // "stargazers_count":0, // "watchers_count":0, // "language":"JavaScript", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":true, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":315742135, // "node_id":"MDEwOlJlcG9zaXRvcnkzMTU3NDIxMzU=", // "name":"preact-snake-game", // "full_name":"robertpage/preact-snake-game", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/preact-snake-game", // "description":"Simple experiment using Preact, HTM, Immer, and Parcel to make a snake game.", // "fork":false, // "url":"https://api.github.com/repos/robertpage/preact-snake-game", // "forks_url":"https://api.github.com/repos/robertpage/preact-snake-game/forks", // "keys_url":"https://api.github.com/repos/robertpage/preact-snake-game/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/preact-snake-game/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/preact-snake-game/teams", // "hooks_url":"https://api.github.com/repos/robertpage/preact-snake-game/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/preact-snake-game/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/preact-snake-game/events", // "assignees_url":"https://api.github.com/repos/robertpage/preact-snake-game/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/preact-snake-game/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/preact-snake-game/tags", // "blobs_url":"https://api.github.com/repos/robertpage/preact-snake-game/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/preact-snake-game/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/preact-snake-game/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/preact-snake-game/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/preact-snake-game/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/preact-snake-game/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/preact-snake-game/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/preact-snake-game/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/preact-snake-game/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/preact-snake-game/subscription", // "commits_url":"https://api.github.com/repos/robertpage/preact-snake-game/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/preact-snake-game/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/preact-snake-game/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/preact-snake-game/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/preact-snake-game/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/preact-snake-game/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/preact-snake-game/merges", // "archive_url":"https://api.github.com/repos/robertpage/preact-snake-game/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/preact-snake-game/downloads", // "issues_url":"https://api.github.com/repos/robertpage/preact-snake-game/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/preact-snake-game/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/preact-snake-game/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/preact-snake-game/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/preact-snake-game/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/preact-snake-game/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/preact-snake-game/deployments", // "created_at":"2020-11-24T20:14:27Z", // "updated_at":"2020-11-24T20:35:47Z", // "pushed_at":"2020-11-24T20:35:44Z", // "git_url":"git://github.com/robertpage/preact-snake-game.git", // "ssh_url":"git@github.com:robertpage/preact-snake-game.git", // "clone_url":"https://github.com/robertpage/preact-snake-game.git", // "svn_url":"https://github.com/robertpage/preact-snake-game", // "homepage":null, // "size":400, // "stargazers_count":0, // "watchers_count":0, // "language":"JavaScript", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":true, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":null, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":292947701, // "node_id":"MDEwOlJlcG9zaXRvcnkyOTI5NDc3MDE=", // "name":"robotss", // "full_name":"robertpage/robotss", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/robotss", // "description":"A simple personal RSS feed reader", // "fork":false, // "url":"https://api.github.com/repos/robertpage/robotss", // "forks_url":"https://api.github.com/repos/robertpage/robotss/forks", // "keys_url":"https://api.github.com/repos/robertpage/robotss/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/robotss/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/robotss/teams", // "hooks_url":"https://api.github.com/repos/robertpage/robotss/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/robotss/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/robotss/events", // "assignees_url":"https://api.github.com/repos/robertpage/robotss/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/robotss/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/robotss/tags", // "blobs_url":"https://api.github.com/repos/robertpage/robotss/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/robotss/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/robotss/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/robotss/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/robotss/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/robotss/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/robotss/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/robotss/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/robotss/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/robotss/subscription", // "commits_url":"https://api.github.com/repos/robertpage/robotss/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/robotss/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/robotss/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/robotss/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/robotss/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/robotss/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/robotss/merges", // "archive_url":"https://api.github.com/repos/robertpage/robotss/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/robotss/downloads", // "issues_url":"https://api.github.com/repos/robertpage/robotss/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/robotss/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/robotss/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/robotss/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/robotss/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/robotss/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/robotss/deployments", // "created_at":"2020-09-04T21:13:19Z", // "updated_at":"2020-10-06T19:19:44Z", // "pushed_at":"2020-10-06T19:19:41Z", // "git_url":"git://github.com/robertpage/robotss.git", // "ssh_url":"git@github.com:robertpage/robotss.git", // "clone_url":"https://github.com/robertpage/robotss.git", // "svn_url":"https://github.com/robertpage/robotss", // "homepage":null, // "size":152, // "stargazers_count":0, // "watchers_count":0, // "language":"JavaScript", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":true, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":2, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":2, // "watchers":0, // "default_branch":"master" // }, // { // "id":264264361, // "node_id":"MDEwOlJlcG9zaXRvcnkyNjQyNjQzNjE=", // "name":"space-madness", // "full_name":"robertpage/space-madness", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/space-madness", // "description":"A remake of the Space Madness boardgame in digital form", // "fork":false, // "url":"https://api.github.com/repos/robertpage/space-madness", // "forks_url":"https://api.github.com/repos/robertpage/space-madness/forks", // "keys_url":"https://api.github.com/repos/robertpage/space-madness/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/space-madness/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/space-madness/teams", // "hooks_url":"https://api.github.com/repos/robertpage/space-madness/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/space-madness/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/space-madness/events", // "assignees_url":"https://api.github.com/repos/robertpage/space-madness/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/space-madness/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/space-madness/tags", // "blobs_url":"https://api.github.com/repos/robertpage/space-madness/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/space-madness/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/space-madness/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/space-madness/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/space-madness/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/space-madness/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/space-madness/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/space-madness/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/space-madness/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/space-madness/subscription", // "commits_url":"https://api.github.com/repos/robertpage/space-madness/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/space-madness/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/space-madness/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/space-madness/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/space-madness/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/space-madness/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/space-madness/merges", // "archive_url":"https://api.github.com/repos/robertpage/space-madness/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/space-madness/downloads", // "issues_url":"https://api.github.com/repos/robertpage/space-madness/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/space-madness/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/space-madness/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/space-madness/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/space-madness/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/space-madness/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/space-madness/deployments", // "created_at":"2020-05-15T18:04:35Z", // "updated_at":"2020-09-18T21:31:18Z", // "pushed_at":"2020-09-18T21:31:16Z", // "git_url":"git://github.com/robertpage/space-madness.git", // "ssh_url":"git@github.com:robertpage/space-madness.git", // "clone_url":"https://github.com/robertpage/space-madness.git", // "svn_url":"https://github.com/robertpage/space-madness", // "homepage":null, // "size":9915, // "stargazers_count":0, // "watchers_count":0, // "language":"TypeScript", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":true, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":29108620, // "node_id":"MDEwOlJlcG9zaXRvcnkyOTEwODYyMA==", // "name":"spite", // "full_name":"robertpage/spite", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/spite", // "description":null, // "fork":false, // "url":"https://api.github.com/repos/robertpage/spite", // "forks_url":"https://api.github.com/repos/robertpage/spite/forks", // "keys_url":"https://api.github.com/repos/robertpage/spite/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/spite/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/spite/teams", // "hooks_url":"https://api.github.com/repos/robertpage/spite/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/spite/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/spite/events", // "assignees_url":"https://api.github.com/repos/robertpage/spite/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/spite/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/spite/tags", // "blobs_url":"https://api.github.com/repos/robertpage/spite/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/spite/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/spite/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/spite/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/spite/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/spite/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/spite/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/spite/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/spite/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/spite/subscription", // "commits_url":"https://api.github.com/repos/robertpage/spite/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/spite/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/spite/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/spite/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/spite/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/spite/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/spite/merges", // "archive_url":"https://api.github.com/repos/robertpage/spite/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/spite/downloads", // "issues_url":"https://api.github.com/repos/robertpage/spite/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/spite/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/spite/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/spite/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/spite/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/spite/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/spite/deployments", // "created_at":"2015-01-11T22:33:58Z", // "updated_at":"2015-05-06T17:51:01Z", // "pushed_at":"2015-05-06T17:51:01Z", // "git_url":"git://github.com/robertpage/spite.git", // "ssh_url":"git@github.com:robertpage/spite.git", // "clone_url":"https://github.com/robertpage/spite.git", // "svn_url":"https://github.com/robertpage/spite", // "homepage":null, // "size":488, // "stargazers_count":0, // "watchers_count":0, // "language":"JavaScript", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":true, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":302771531, // "node_id":"MDEwOlJlcG9zaXRvcnkzMDI3NzE1MzE=", // "name":"starlight", // "full_name":"robertpage/starlight", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/starlight", // "description":"A space themed online or print-to-play CCG", // "fork":false, // "url":"https://api.github.com/repos/robertpage/starlight", // "forks_url":"https://api.github.com/repos/robertpage/starlight/forks", // "keys_url":"https://api.github.com/repos/robertpage/starlight/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/starlight/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/starlight/teams", // "hooks_url":"https://api.github.com/repos/robertpage/starlight/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/starlight/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/starlight/events", // "assignees_url":"https://api.github.com/repos/robertpage/starlight/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/starlight/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/starlight/tags", // "blobs_url":"https://api.github.com/repos/robertpage/starlight/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/starlight/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/starlight/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/starlight/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/starlight/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/starlight/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/starlight/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/starlight/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/starlight/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/starlight/subscription", // "commits_url":"https://api.github.com/repos/robertpage/starlight/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/starlight/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/starlight/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/starlight/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/starlight/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/starlight/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/starlight/merges", // "archive_url":"https://api.github.com/repos/robertpage/starlight/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/starlight/downloads", // "issues_url":"https://api.github.com/repos/robertpage/starlight/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/starlight/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/starlight/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/starlight/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/starlight/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/starlight/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/starlight/deployments", // "created_at":"2020-10-09T23:09:18Z", // "updated_at":"2020-11-14T00:25:20Z", // "pushed_at":"2020-11-14T00:25:17Z", // "git_url":"git://github.com/robertpage/starlight.git", // "ssh_url":"git@github.com:robertpage/starlight.git", // "clone_url":"https://github.com/robertpage/starlight.git", // "svn_url":"https://github.com/robertpage/starlight", // "homepage":null, // "size":10487, // "stargazers_count":0, // "watchers_count":0, // "language":"SCSS", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":false, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":0, // "watchers":0, // "default_branch":"master" // }, // { // "id":263445466, // "node_id":"MDEwOlJlcG9zaXRvcnkyNjM0NDU0NjY=", // "name":"static-base", // "full_name":"robertpage/static-base", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/static-base", // "description":"Basic base for a static site", // "fork":false, // "url":"https://api.github.com/repos/robertpage/static-base", // "forks_url":"https://api.github.com/repos/robertpage/static-base/forks", // "keys_url":"https://api.github.com/repos/robertpage/static-base/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/static-base/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/static-base/teams", // "hooks_url":"https://api.github.com/repos/robertpage/static-base/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/static-base/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/static-base/events", // "assignees_url":"https://api.github.com/repos/robertpage/static-base/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/static-base/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/static-base/tags", // "blobs_url":"https://api.github.com/repos/robertpage/static-base/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/static-base/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/static-base/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/static-base/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/static-base/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/static-base/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/static-base/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/static-base/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/static-base/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/static-base/subscription", // "commits_url":"https://api.github.com/repos/robertpage/static-base/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/static-base/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/static-base/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/static-base/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/static-base/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/static-base/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/static-base/merges", // "archive_url":"https://api.github.com/repos/robertpage/static-base/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/static-base/downloads", // "issues_url":"https://api.github.com/repos/robertpage/static-base/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/static-base/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/static-base/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/static-base/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/static-base/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/static-base/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/static-base/deployments", // "created_at":"2020-05-12T20:30:45Z", // "updated_at":"2020-09-10T18:31:08Z", // "pushed_at":"2020-09-10T18:32:15Z", // "git_url":"git://github.com/robertpage/static-base.git", // "ssh_url":"git@github.com:robertpage/static-base.git", // "clone_url":"https://github.com/robertpage/static-base.git", // "svn_url":"https://github.com/robertpage/static-base", // "homepage":null, // "size":506, // "stargazers_count":0, // "watchers_count":0, // "language":"JavaScript", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":false, // "forks_count":0, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":3, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":0, // "open_issues":3, // "watchers":0, // "default_branch":"master" // }, // { // "id":38631542, // "node_id":"MDEwOlJlcG9zaXRvcnkzODYzMTU0Mg==", // "name":"tine", // "full_name":"robertpage/tine", // "private":false, // "owner":{ // "login":"robertpage", // "id":650185, // "node_id":"MDQ6VXNlcjY1MDE4NQ==", // "avatar_url":"https://avatars2.githubusercontent.com/u/650185?v=4", // "gravatar_id":"", // "url":"https://api.github.com/users/robertpage", // "html_url":"https://github.com/robertpage", // "followers_url":"https://api.github.com/users/robertpage/followers", // "following_url":"https://api.github.com/users/robertpage/following{/other_user}", // "gists_url":"https://api.github.com/users/robertpage/gists{/gist_id}", // "starred_url":"https://api.github.com/users/robertpage/starred{/owner}{/repo}", // "subscriptions_url":"https://api.github.com/users/robertpage/subscriptions", // "organizations_url":"https://api.github.com/users/robertpage/orgs", // "repos_url":"https://api.github.com/users/robertpage/repos", // "events_url":"https://api.github.com/users/robertpage/events{/privacy}", // "received_events_url":"https://api.github.com/users/robertpage/received_events", // "type":"User", // "site_admin":false // }, // "html_url":"https://github.com/robertpage/tine", // "description":"A choose your own adventure game engine in the style of Lifeline.", // "fork":false, // "url":"https://api.github.com/repos/robertpage/tine", // "forks_url":"https://api.github.com/repos/robertpage/tine/forks", // "keys_url":"https://api.github.com/repos/robertpage/tine/keys{/key_id}", // "collaborators_url":"https://api.github.com/repos/robertpage/tine/collaborators{/collaborator}", // "teams_url":"https://api.github.com/repos/robertpage/tine/teams", // "hooks_url":"https://api.github.com/repos/robertpage/tine/hooks", // "issue_events_url":"https://api.github.com/repos/robertpage/tine/issues/events{/number}", // "events_url":"https://api.github.com/repos/robertpage/tine/events", // "assignees_url":"https://api.github.com/repos/robertpage/tine/assignees{/user}", // "branches_url":"https://api.github.com/repos/robertpage/tine/branches{/branch}", // "tags_url":"https://api.github.com/repos/robertpage/tine/tags", // "blobs_url":"https://api.github.com/repos/robertpage/tine/git/blobs{/sha}", // "git_tags_url":"https://api.github.com/repos/robertpage/tine/git/tags{/sha}", // "git_refs_url":"https://api.github.com/repos/robertpage/tine/git/refs{/sha}", // "trees_url":"https://api.github.com/repos/robertpage/tine/git/trees{/sha}", // "statuses_url":"https://api.github.com/repos/robertpage/tine/statuses/{sha}", // "languages_url":"https://api.github.com/repos/robertpage/tine/languages", // "stargazers_url":"https://api.github.com/repos/robertpage/tine/stargazers", // "contributors_url":"https://api.github.com/repos/robertpage/tine/contributors", // "subscribers_url":"https://api.github.com/repos/robertpage/tine/subscribers", // "subscription_url":"https://api.github.com/repos/robertpage/tine/subscription", // "commits_url":"https://api.github.com/repos/robertpage/tine/commits{/sha}", // "git_commits_url":"https://api.github.com/repos/robertpage/tine/git/commits{/sha}", // "comments_url":"https://api.github.com/repos/robertpage/tine/comments{/number}", // "issue_comment_url":"https://api.github.com/repos/robertpage/tine/issues/comments{/number}", // "contents_url":"https://api.github.com/repos/robertpage/tine/contents/{+path}", // "compare_url":"https://api.github.com/repos/robertpage/tine/compare/{base}...{head}", // "merges_url":"https://api.github.com/repos/robertpage/tine/merges", // "archive_url":"https://api.github.com/repos/robertpage/tine/{archive_format}{/ref}", // "downloads_url":"https://api.github.com/repos/robertpage/tine/downloads", // "issues_url":"https://api.github.com/repos/robertpage/tine/issues{/number}", // "pulls_url":"https://api.github.com/repos/robertpage/tine/pulls{/number}", // "milestones_url":"https://api.github.com/repos/robertpage/tine/milestones{/number}", // "notifications_url":"https://api.github.com/repos/robertpage/tine/notifications{?since,all,participating}", // "labels_url":"https://api.github.com/repos/robertpage/tine/labels{/name}", // "releases_url":"https://api.github.com/repos/robertpage/tine/releases{/id}", // "deployments_url":"https://api.github.com/repos/robertpage/tine/deployments", // "created_at":"2015-07-06T16:30:11Z", // "updated_at":"2019-09-14T00:13:17Z", // "pushed_at":"2015-10-13T22:50:12Z", // "git_url":"git://github.com/robertpage/tine.git", // "ssh_url":"git@github.com:robertpage/tine.git", // "clone_url":"https://github.com/robertpage/tine.git", // "svn_url":"https://github.com/robertpage/tine", // "homepage":null, // "size":300, // "stargazers_count":4, // "watchers_count":4, // "language":"CSS", // "has_issues":true, // "has_projects":true, // "has_downloads":true, // "has_wiki":true, // "has_pages":true, // "forks_count":1, // "mirror_url":null, // "archived":false, // "disabled":false, // "open_issues_count":0, // "license":{ // "key":"mit", // "name":"MIT License", // "spdx_id":"MIT", // "url":"https://api.github.com/licenses/mit", // "node_id":"MDc6TGljZW5zZTEz" // }, // "forks":1, // "open_issues":0, // "watchers":4, // "default_branch":"master" // } // ] // } // }
64.239509
140
0.592205
190fb3a86e8a6a9e295d3c9b379e53b23762c324
224
js
JavaScript
app/map/set-radius-mode-button-label.filter.js
joseph-iussa/tour-planner
63890237bb3f71ab0a14976b7ad23222047baa98
[ "MIT" ]
null
null
null
app/map/set-radius-mode-button-label.filter.js
joseph-iussa/tour-planner
63890237bb3f71ab0a14976b7ad23222047baa98
[ "MIT" ]
null
null
null
app/map/set-radius-mode-button-label.filter.js
joseph-iussa/tour-planner
63890237bb3f71ab0a14976b7ad23222047baa98
[ "MIT" ]
null
null
null
'use strict'; angular.module('map'). filter('setRadiusModeButtonLabel', function() { return function(setRadiusMode) { return setRadiusMode ? 'Selecting Radius: Click again to cancel' : 'Select Radius'; } });
28
91
0.6875
191024291883248e09d0ed2c752ca3c497bb9bb8
3,569
js
JavaScript
webroot/rsrc/js/application/phortune/behavior-stripe-payment-form.js
kuk0/phabricator
62e039b74871542522a498373ee44d9f5074f0f9
[ "Apache-2.0" ]
1
2016-05-16T22:11:44.000Z
2016-05-16T22:11:44.000Z
webroot/rsrc/js/application/phortune/behavior-stripe-payment-form.js
kuk0/phabricator
62e039b74871542522a498373ee44d9f5074f0f9
[ "Apache-2.0" ]
null
null
null
webroot/rsrc/js/application/phortune/behavior-stripe-payment-form.js
kuk0/phabricator
62e039b74871542522a498373ee44d9f5074f0f9
[ "Apache-2.0" ]
null
null
null
/** * @provides javelin-behavior-stripe-payment-form * @requires javelin-behavior * javelin-dom * javelin-json * stripe-core */ JX.behavior('stripe-payment-form', function(config) { Stripe.setPublishableKey(config.stripePublishKey); var root = JX.$(config.root); var cardErrors = JX.DOM.find(root, 'input', 'card-errors-input'); var stripeToken = JX.DOM.find(root, 'input', 'stripe-token-input'); var getCardData = function() { return { number : JX.DOM.find(root, 'input', 'number-input').value, cvc : JX.DOM.find(root, 'input', 'cvc-input' ).value, month : JX.DOM.find(root, 'select', 'month-input' ).value, year : JX.DOM.find(root, 'select', 'year-input' ).value }; } var stripeErrorObject = function(type) { var errorPre = 'Stripe (our payments provider) has detected your card '; var errorPost = ' is invalid.'; var msg = ''; var result = {}; switch (type) { case 'number': msg = errorPre + 'number' + errorPost; break; case 'cvc': msg = errorPre + 'CVC' + errorPost; break; case 'expiry': msg = errorPre + 'expiration date' + errorPost; break; case 'stripe': msg = 'Stripe (our payments provider) is experiencing issues. ' + 'Please try again.'; break; case 'invalid_request': default: msg = 'Unknown error.'; // TODO - how best report bugs? would be good to get // user feedback since this shouldn't happen! break; } result[type] = msg; return result; } var onsubmit = function(e) { e.kill(); // validate the card data with Stripe client API and submit the form // with any detected errors var cardData = getCardData(); var errors = []; if (!Stripe.validateCardNumber(cardData.number)) { errors.push(stripeErrorObject('number')); } if (!Stripe.validateCVC(cardData.cvc)) { errors.push(stripeErrorObject('cvc')); } if (!Stripe.validateExpiry(cardData.month, cardData.year)) { errors.push(stripeErrorObject('expiry')); } if (errors.length != 0) { cardErrors.value = JX.JSON.stringify(errors); root.submit(); return true; } // no errors detected so contact Stripe asynchronously var submitData = { number : cardData.number, cvc : cardData.cvc, exp_month : cardData.month, exp_year : cardData.year }; Stripe.createToken(submitData, stripeResponseHandler); return false; } var stripeResponseHandler = function(status, response) { if (response.error) { var errors = []; switch (response.error.type) { case 'card_error': var error = {}; error[response.error.code] = response.error.message; errors.push(error); break; case 'invalid_request_error': errors.push(stripeErrorObject('invalid_request')); break; case 'api_error': default: errors.push(stripeErrorObject('stripe')); break; } cardErrors.value = JX.JSON.stringify(errors); } else { // success - we can use the token to create a customer object with // Stripe and let the billing commence! var token = response['id']; stripeToken.value = token; } root.submit(); } JX.DOM.listen( root, 'submit', null, onsubmit); });
28.782258
77
0.578874
1910a53a60b97c651278bf6ba8467244de3ce76d
608
js
JavaScript
src/router.js
ytype/wordistry-frontend
d8bbed2acf804f57408b014dd5851123109a2be4
[ "MIT" ]
1
2020-03-15T03:28:33.000Z
2020-03-15T03:28:33.000Z
src/router.js
ytype/wordistry-frontend
d8bbed2acf804f57408b014dd5851123109a2be4
[ "MIT" ]
null
null
null
src/router.js
ytype/wordistry-frontend
d8bbed2acf804f57408b014dd5851123109a2be4
[ "MIT" ]
null
null
null
/* eslint-disable arrow-body-style */ /* eslint-disable eol-last */ /* eslint-disable comma-dangle */ /* eslint-disable indent */ /* eslint-disable prefer-template */ /* eslint-disable import/no-extraneous-dependencies */ import Vue from 'vue' import Router from 'vue-router' import routes from 'vue-auto-routing' import { createRouterLayout } from 'vue-router-layout' Vue.use(Router) const RouterLayout = createRouterLayout((layout) => { return import('@/layouts/' + layout + '.vue') }) export default new Router({ routes: [{ path: '/', component: RouterLayout, children: routes }] })
23.384615
54
0.694079
19113136d42d107083152ed1c208bc45bebd9375
784
js
JavaScript
scripts/deployETH.js
nazhG/mines-and-brokers
fadc2a6277fe976a250780f445bfdfc1f6aa5067
[ "MIT" ]
null
null
null
scripts/deployETH.js
nazhG/mines-and-brokers
fadc2a6277fe976a250780f445bfdfc1f6aa5067
[ "MIT" ]
null
null
null
scripts/deployETH.js
nazhG/mines-and-brokers
fadc2a6277fe976a250780f445bfdfc1f6aa5067
[ "MIT" ]
null
null
null
const { ethers } = require("hardhat"); async function main() { const Token = await ethers.getContractFactory("BHF"); token = await Token.deploy( "BHM", "BHM", (await ethers.getSigners())[0].address, ethers.utils.parseUnits("1000", 18), ); const Bridge = await ethers.getContractFactory("BridgeIn"); bridge = await Bridge.deploy( token.address ); console.log("token deployed to:", token.address); console.log("bridge deployed to:", bridge.address); } main() .then(() => process.exit(0)) .catch((error) => { console.error(error); process.exit(1); }); // token deployed to: 0xA80a996007C89802A381A62c7a454166400975B4 // npx hardhat run --network rinkeby scripts/deployBSC.js
24.5
64
0.621173
1911755d1305f4e14dca82e4281d3df939958351
2,472
js
JavaScript
Owl/app/screens/Dashboard/components/CoffeeOrphan.js
jnurkka/Smart_Delonghi
bca4827b0a76b30e1bd8e6824391b9e806dad732
[ "MIT" ]
1
2020-04-23T17:17:25.000Z
2020-04-23T17:17:25.000Z
Owl/app/screens/Dashboard/components/CoffeeOrphan.js
jnurkka/Smart_Delonghi
bca4827b0a76b30e1bd8e6824391b9e806dad732
[ "MIT" ]
null
null
null
Owl/app/screens/Dashboard/components/CoffeeOrphan.js
jnurkka/Smart_Delonghi
bca4827b0a76b30e1bd8e6824391b9e806dad732
[ "MIT" ]
null
null
null
import React, {useState} from 'react'; import {View, Text} from 'react-native'; import {TileContainer, Tile, TileHeader, TileFont} from './Leaderboard'; import styled from 'styled-components'; const images = { espresso_single: require('../../../images/espresso_single.png'), espresso_double: require('../../../images/espresso_double.png'), coffee_single: require('../../../images/coffee_single.png'), coffee_double: require('../../../images/coffee_double.png'), }; const OrphanCoffee = styled.TouchableOpacity` width: 33%; align-items: center; justify-content: space-between; flex-direction: row; `; const CoffeeImage = styled.Image` width: 50px; height: 50px; margin-right: 10px; `; const CoffeeOrphan = () => { const [coffees, setCoffees] = useState([ {type: 'coffee_double', id: '1', timestamp: '2020-02-29Z10:00:00'}, {type: 'coffee_single', id: '2', timestamp: '2020-02-28Z10:00:00'}, {type: 'espresso_single', id: '3', timestamp: '2020-03-22Z10:00:00'}, {type: 'espresso_double', id: '4', timestamp: '2020-02-29Z12:00:00'}, {type: 'espresso_single', id: '5', timestamp: '2020-02-21Z10:00:00'}, ]); const handleAssignOrphanCoffee = id => { console.log('id', id); // TODO: Send to id with user to server }; const getDateString = ts => { const timestamp = new Date(ts); return `${timestamp.getDate()}.${timestamp.getMonth()}.${timestamp.getFullYear()}, ${timestamp.getHours()}:${timestamp.getMinutes()}`; }; const renderOrphanCoffees = () => { console.log('new Date().toString()', new Date().toUTCString()); return coffees .sort((a, b) => (new Date(a.timestamp) > new Date(b.timestamp) ? -1 : 1)) .map(coffee => { const {type, timestamp, id} = coffee; const pathToCoffeeImage = images[type]; return ( <OrphanCoffee key={coffee.id} onPress={() => handleAssignOrphanCoffee(id)}> <CoffeeImage alt={type} resizeMode="contain" source={pathToCoffeeImage} /> <View> <TileFont>{type}</TileFont> <TileFont>{getDateString(timestamp)}</TileFont> </View> </OrphanCoffee> ); }); }; return ( <TileContainer> <Tile> <TileHeader>Coffee Orphanage</TileHeader> {renderOrphanCoffees()} </Tile> </TileContainer> ); }; export default CoffeeOrphan;
30.9
138
0.601537
1913821d8c67af8173eb7ab97cacf6623509429b
171
js
JavaScript
ch05/04_hoisting/hoisted.js
royriojas/buildfirst
e48ac99900c30c0bc262e869847d6fff990025fa
[ "MIT" ]
511
2015-01-02T14:54:52.000Z
2022-03-20T04:36:18.000Z
ch05/04_hoisting/hoisted.js
royriojas/buildfirst
e48ac99900c30c0bc262e869847d6fff990025fa
[ "MIT" ]
11
2015-02-22T21:23:03.000Z
2020-04-14T21:34:23.000Z
ch05/04_hoisting/hoisted.js
royriojas/buildfirst
e48ac99900c30c0bc262e869847d6fff990025fa
[ "MIT" ]
129
2015-01-07T10:52:09.000Z
2021-06-21T02:54:46.000Z
var value = 2; test(); // <- 'undefined' // <- undefined function test () { console.log(typeof value); console.log(value); var value = 3; // jshint ignore:line }
13.153846
38
0.608187
19138bfbb9b9188a6b5e4ea12fbf4adf718e480d
190
js
JavaScript
src/constants/index.js
return-hack/hackathon-website
2a4a9846cf4ff99c16ffab40720483f2b4a6f455
[ "MIT" ]
6
2019-12-17T14:36:29.000Z
2019-12-28T16:22:56.000Z
src/constants/index.js
return-hack/hackathon-website
2a4a9846cf4ff99c16ffab40720483f2b4a6f455
[ "MIT" ]
75
2019-10-27T12:04:52.000Z
2022-01-13T01:47:48.000Z
src/constants/index.js
return-hack/hackathon-website
2a4a9846cf4ff99c16ffab40720483f2b4a6f455
[ "MIT" ]
34
2019-10-30T11:42:27.000Z
2020-12-19T18:06:16.000Z
const prod = { BASE_URL: process.env.REACT_APP_BASE_URL }; const dev = { BASE_URL: 'http://localhost:8000' }; export const config = process.env.NODE_ENV === 'development' ? dev : prod ;
23.75
75
0.689474
1913a3adfb85f7c762d39304139ef07930d75551
1,657
js
JavaScript
Discover/Maratona_2/src/models/User.js
Wayfiding/Rocketseat
409da3731776a5a7ab5ba232beb8aa285655aa41
[ "MIT" ]
2
2021-09-19T12:07:01.000Z
2021-09-20T11:31:07.000Z
Discover/Maratona_2/src/models/User.js
Wayfiding/Rocketseat
409da3731776a5a7ab5ba232beb8aa285655aa41
[ "MIT" ]
null
null
null
Discover/Maratona_2/src/models/User.js
Wayfiding/Rocketseat
409da3731776a5a7ab5ba232beb8aa285655aa41
[ "MIT" ]
null
null
null
const User = require('../../../../serie-node/src/app/models/user') const Database = require('../db/config') module.exports = { async auth(name, password) { const db = await Database() userData = await db.get(` SELECT * FROM user WHERE name = "${name}" `) await db.close() console.log(userData) return { username: userData.name, userpassword: userData.password } }, async register(newUser) { const db = await Database() console.log(newUser) userData = await db.run(` INSERT INTO user ( name, password ) VALUES ( "${newUser.name}", ${newUser.password} )`) getId= await db.get(`SELECT * FROM user WHERE name = "${newUser.name}" `) console.log(getId.iduser) userProfile = await db.run(` INSERT INTO profile ( name, avatar, monthly_budget , days_per_week , hours_per_day , vacation_per_year , value_hour , id_user ) VALUES ( "${newUser.name}", 'none', 0, 0, 0, 0, 0, NULL )`) userProfileFKid = await db.run(` UPDATE profile SET id_user = ${getId.iduser} WHERE name = "${newUser.name}"`) await db.close() return { username: userData.name, userpassword: userData.password } } }
23.338028
66
0.453832
1914bc8d2d54be6712ed00406ffbe161f1e107a7
3,449
js
JavaScript
brainfog.js
kysadro/brainfog-js
76c38a6ff0e1931ddfcd4d16615640dea721adf9
[ "MIT" ]
null
null
null
brainfog.js
kysadro/brainfog-js
76c38a6ff0e1931ddfcd4d16615640dea721adf9
[ "MIT" ]
null
null
null
brainfog.js
kysadro/brainfog-js
76c38a6ff0e1931ddfcd4d16615640dea721adf9
[ "MIT" ]
null
null
null
// Brainfog-JS, owned by Kysadro function getRandomInt(min, max) { min = Math.ceil(min); max = Math.floor(max); return Math.floor(Math.random() * (max - min + 1)) + min; } const alphabet = "abcdefghijklmnopqrstuvwxyz"; const specialCharacters = "!@#$%^&*()_+={}[]<>/"; module.exports = { /** * Generates a bunch of random strings and returns them in an array * @param {Number} times - The times it should run (and the overall length of the array it returns) * @param {Number} complexity - The length of each string * @param {Boolean} randomCase - If it should switch between upper-case and lower-case randomly * @param returnResult - If it should return anything * @returns {[]} */ run: (times = 1000, complexity = 16, randomCase = true, returnResult = true) => { let data = []; for (let i = 0; i < times; i++) { let chunk = ""; for (let c = 0; c < complexity; c++) { // C++ ayy~ chunk += ((randomCase) ? (alphabet.toLowerCase() + alphabet.toUpperCase())[getRandomInt(0, (alphabet.length * 2) - 1)] : alphabet[getRandomInt(0, alphabet.length - 1)]); } data.push(chunk); } if (returnResult) return data; }, /** * Generate one random string * @param {Number} length - The length of the random string * @param {Boolean} randomCase - If it should switch between upper-case and lower-case randomly * @returns {String} Random string */ runOnce: (length = 16, randomCase = true) => { let data = ""; for (let c = 0; c < length; c++) { data += ((randomCase) ? (alphabet.toLowerCase() + alphabet.toUpperCase())[getRandomInt(0, (alphabet.length * 2) - 1)] : alphabet[getRandomInt(0, alphabet.length - 1)]); } return data; }, /** * Generates a random license key * @param {Number} chunks - How many chunks of info the key contains (4 by default) * @param {Number} chunkLength - The length of each chunk (5 by default) * @param {Boolean} randomCase - Whenever the function should switch trough uppercase and lowercase letters randomly (true is the default and is recommended) * @param {Boolean} specialChars - Whenever the function should include special characters like "!@#$%" (false by default) * @param {String} splitChar - The character to split the chunks with (- by default) * @returns {String} License key */ generateLicense: (chunks = 4, chunkLength = 5, randomCase = true, specialChars = false, splitChar = "-") => { let data = ""; for (let i = 0; i < chunks; i++) { for (let c = 0; c < chunkLength; c++) { // C++ ayy~ // Using "if specialChars &&" might generate the random int so i'm going with this \/ if (specialChars) { if (getRandomInt(0, 2) === 1) { data += specialCharacters[getRandomInt(0, specialCharacters.length - 1)]; continue; }} data += ((randomCase) ? (alphabet.toLowerCase() + alphabet.toUpperCase())[getRandomInt(0, (alphabet.length * 2) - 1)] : alphabet[getRandomInt(0, alphabet.length - 1)]); } if (i < chunks - 1) { data += splitChar; } } return data; } }
46.608108
161
0.567121
1915d5243e71ed4270756b9883ddbb56d47573c7
304
js
JavaScript
src/ToDoList.js
alexandra-pickle/react-hooks-todo-list
a7cca148e8ba6a563d0dd9bcdced6de809ee9799
[ "MIT" ]
null
null
null
src/ToDoList.js
alexandra-pickle/react-hooks-todo-list
a7cca148e8ba6a563d0dd9bcdced6de809ee9799
[ "MIT" ]
null
null
null
src/ToDoList.js
alexandra-pickle/react-hooks-todo-list
a7cca148e8ba6a563d0dd9bcdced6de809ee9799
[ "MIT" ]
null
null
null
import React from "react"; import ToDo from "./ToDo"; const ToDoList = ({ toDoList, handleToggle }) => { return ( <div id="listContainer"> {toDoList.map((todo) => ( <ToDo todo={todo} key={todo.id} handleToggle={handleToggle} /> ))} </div> ); }; export default ToDoList;
20.266667
70
0.588816
1917a1c67d0d3a882324d3663d5e1cac0fd7fc25
1,122
js
JavaScript
client/app/components/List/ListItem.js
gazingintolife/crud-app
7ce14fa767aa853b5009f97eaba840fd4077dd06
[ "MIT" ]
null
null
null
client/app/components/List/ListItem.js
gazingintolife/crud-app
7ce14fa767aa853b5009f97eaba840fd4077dd06
[ "MIT" ]
null
null
null
client/app/components/List/ListItem.js
gazingintolife/crud-app
7ce14fa767aa853b5009f97eaba840fd4077dd06
[ "MIT" ]
null
null
null
import React from 'react'; import { withRouter } from 'react-router'; class ListItem extends React.Component{ constructor(props){ super(props); } onButtonClick = () =>{ this.props.history.push(`/edit/${this.props._id}`) console.log(this.props._id); } render(){ return ( <div className="container text-center"> <div className="row"> <div className="col p-3"> {this.props.name} </div> <div className="col p-3"> {this.props.email} </div> <div className="col p-3"> {this.props.age} </div> <div className="col p-3"> {this.props.gender} </div> <div className="col p-3"> <button className = "btn btn-light" onClick = {this.onButtonClick} >Edit</button> </div> </div> </div> )}; } export default withRouter(ListItem);
28.05
103
0.437611
1917bf8ae0de5ad833c497443cf12850b65c003b
997
js
JavaScript
vue-elm/static/fontSize.js
huangmin1992/study-vue
77219f908bf670f29d622ecadd8d0760ba77d02f
[ "MIT" ]
null
null
null
vue-elm/static/fontSize.js
huangmin1992/study-vue
77219f908bf670f29d622ecadd8d0760ba77d02f
[ "MIT" ]
null
null
null
vue-elm/static/fontSize.js
huangmin1992/study-vue
77219f908bf670f29d622ecadd8d0760ba77d02f
[ "MIT" ]
null
null
null
function calcFontSize(){ let view_width = window.screen.width; let view_height = window.screen.height; let font_size = view_width/15;//750设计图 // let font_size = view_width/16;//640设计图 let html_body = document.getElementsByTagName('html')[0]; html_body.style.fontSize = font_size+'px'; } //日期格式化 export function formatDate(date,fmt){ var o = { "M+":date.getMonth() + 1,//月份 "D+":date.getDay(),//日 "h+":date.getHours(),//hours "m+":date.getMinutes(),//分钟 's+':date.getSeconds(),//秒, } if(/(y+)/.test(fmt)){ //RegExp.$1 是RegExp的一个属性,指的是与正则表达式匹配的第一个 子匹配(以括号为标志)字符串,以此类推,RegExp.$2,RegExp.$3,..RegExp.$99总共可以有99个匹配 fmt = fmt.replace(RegExp.$1,(date.getFullYear()+'').substr(4 - RegExp.$1.length)); } for(var k in o){ if(new RegExp("("+k+")").test(fmt)){ fmt = fmt.replace(RegExp.$1,(RegExp.$1.length===1)?(o[k]):(("00"+o[k]).substr((""+o[k]).length))) } } return fmt; } window.onresize = function(){ calcFontSize() } window.onload = function(){ calcFontSize(); }
25.564103
105
0.645938
1918b53ee44baf02880d13cc5ace9682d267fb02
11,335
js
JavaScript
src/launch.js
znetstar/economist-audio-downloader
ce4488c691fff467f79b176917144c81b0ac8a4c
[ "CC0-1.0" ]
2
2018-11-01T20:57:26.000Z
2018-11-01T20:58:43.000Z
src/launch.js
znetstar/economist-audio-downloader
ce4488c691fff467f79b176917144c81b0ac8a4c
[ "CC0-1.0" ]
null
null
null
src/launch.js
znetstar/economist-audio-downloader
ce4488c691fff467f79b176917144c81b0ac8a4c
[ "CC0-1.0" ]
null
null
null
const path = require('path'); const fs = require('fs'); const {Provider} = require('nconf'); const winston = require('winston'); const unzip = require('node-unzip-2'); const fstream = require('fstream'); const moment = require('moment'); const { EconomistAudioDownloader } = require('./'); const pkg = JSON.parse(fs.readFileSync(path.join(__dirname, "..", "package.json"), 'utf8')); var logs, nconf; /** * The environment variables that can be used to configure the application. * @type {string[]} * @constant * @default */ const env_whitelist = [ "LOG_LEVEL", "ECONOMIST_USERNAME", "ECONOMIST_PASSWORD", "USERNAME", "USER_AGENT", "PASSWORD", "PROXY_URL", "HTTP_PROXY" ]; /** * Converts a configuration property's name from env variable format to application config format * `"CONTROL_HOST"` -> `"controlHost"` * @param {string} env - Environment variable * @returns {string} * @private */ function env_to_config(env) { let a = env.toLowerCase().split('_'); i = 1; while (i < a.length) { a[i] = a[i][0].toUpperCase() + a[i].substr(1); i++; } return a.join(''); } /** * Creates an {@link EconomistAudioDownloader} instance with the application configuration. * @param {Provider} nconf - Nconf instance to use. * @returns {EconomistAudioDownloader} * @private */ function EADFactory(nconf) { return new EconomistAudioDownloader({ username: nconf.get('username'), password: nconf.get('password') }, nconf.get('proxyUrl'), nconf.get('userAgent')); } /** * Used by all commands to log into the user account. * @param {Provider} nconf - The nconf instance. * @param {Logger} logs - The winston logger. * @param {EconomistAudioDownloader} downloader - The `EconomistAudioDownloader` instance. * @async * @returns {Promise<number>} - Returns the exit code. */ async function login(nconf, logs, downloader) { if (!nconf.get('username') || !nconf.get('password')) { logs.silent = false; logs.error("No username and/or password given"); return 1; } logs.debug(`Logging in to user ${downloader.credentials.username}`); try { await downloader.login(); return 0; } catch (error) { logs.silent = false; logs.error(`An error occured logging in: ${error.message}`); return 1; } } /** * Lists issues in a year * @param {Provider} nconf - The nconf instance. * @param {Logger} logs - The winston logger. * @async * @returns {Promise<number>} - Returns the exit code. */ async function list_issues(argv, nconf, logs) { let downloader = EADFactory(nconf); let year = argv[1]; let login_code = await login(nconf, logs, downloader); if (login_code > 0) return login_code; try { let issues = await downloader.list_issues(year); console.log(issues.map((d) => moment(d).format("YYYY-MM-DD")).join("\n")); return 0; } catch (error) { logs.error(`Error getting issues for ${year}: ${error.message}`); return 1; } } /** * Lists sections in an issue * @param {Provider} nconf - The nconf instance. * @param {Logger} logs - The winston logger. * @async * @returns {Promise<number>} - Returns the exit code. */ async function list_issue_sections(argv, nconf, logs) { let downloader = EADFactory(nconf); let login_code = await login(nconf, logs, downloader); if (login_code > 0) return login_code; let issue = argv[1]; try { let sections = await downloader.list_issue_sections(issue); console.log(sections.join("\n")); return 0; } catch (error) { logs.error(`Error getting issues for ${issue}: ${error.message}`); return 1; } } /** * Downloads an issue writing either to a file or stdout. * @param {Provider} nconf - The nconf instance. * @param {Logger} logs - The winston logger. * @async * @returns {Promise<number>} - Returns the exit code. */ async function download(argv, nconf, logs) { let downloader = EADFactory(nconf); let date = argv[0] || 'latest'; let section = nconf.get('section'); let sectStr = section ? " section \"" + section + "\"" : ""; let output = nconf.get('output'); let extract = nconf.get('extract'); if (output && extract) { logs.error("Cannot download and extract"); return 1; } if (!(nconf.get('output') || nconf.get('extract'))) logs.silent = true; let login_code = await login(nconf, logs, downloader); if (login_code > 0) return login_code; if (extract || output) logs.info(`Downloading audio for issue "${date}"${ sectStr }`); try { let { zip, issue_date } = await downloader.download_audio_edition(date, section); return new Promise((resolve) => { if (output) { let out = zip.pipe(fs.createWriteStream(output)); out.on('finish', () => { logs.info(`Successfully wrote "${date}"${sectStr} to "${output}"`); resolve(0); }) out.on('error', (err) => { logs.silent = false; logs.error(`Error writing to "${output}": ${err.mesage}`); resolve(1); }); } else if (extract) { try { if (!fs.existsSync(extract)) fs.mkdirSync(extract); let subdir = nconf.get('subdir'); if (subdir) { extract = path.join(extract, moment(issue_date).format("YYYY-MM-DD")); if (!fs.existsSync(extract)) fs.mkdirSync(extract); } let out = zip .pipe(unzip.Parse()) .pipe(fstream.Writer(extract)); out.on('close', () => { logs.info(`Successfully extracted "${date}"${sectStr} to "${extract}"`); resolve(0); }) out.on('error', (err) => { logs.silent = false; logs.error(`Error extracting to "${extract}": ${err.mesage}`); resolve(1); }); } catch (err) { logs.silent = false; logs.error(`Error extracting to "${extract}": ${err.mesage}`); resolve(1); } } else { // Stdout let out = zip.pipe(process.stdout) out.on('finish', () => { resolve(0); }) out.on('error', (err) => { logs.silent = false; logs.error(`Error writing to stdout: ${err.mesage}`); resolve(1); }); } }); } catch (error) { logs.silent = false; logs.error(`Error downloading issue "${date}"${sectStr}: ${error.message}`); return 1; } } /** * Main function for the application. * @async * @returns {Promise} - Returns the exit code. */ async function main () { var command; const yargs = require('yargs') .version(pkg.version) .usage('Usage: economist-audio-downloader [command] [arguments]') .strict() .option('logLevel', { alias: 'l', describe: 'Sets the verbosity of log output', default: 'info' }) .option('quiet', { alias: 'q', describe: 'Turns logging off', default: false }) .option('username', { alias: 'u', describe: 'Username to login with' }) .option('password', { alias: 'p', describe: 'Password to login with' }) .option('config', { alias: 'f', describe: 'A JSON configuration file to read from' }) .option('proxyUrl', { alias: 'x', describe: 'The url to a proxy that will be used for all requests. SOCKS(4/5), HTTP(S) and PAC accepted.' }) .command([ '$0', 'download [issue]' ], 'Downloads a zip file containing the audio edition for a given issue', (yargs) => { yargs .positional('issue', { describe: 'Date of the issue to download. Defaults to "latest"', demand: true, default: 'latest' }) .option('section', { alias: 's', describe: 'The name or number of the section to download (e.g. "Introduction" or 1). If emtpy will download the entire issue' }) .option('output', { alias: 'o', describe: 'Output path for the resulting zip file. If not specified will output to stdout. Cannot be used with "--extract"' }) .option('extract', { alias: 'e', describe: "Extracts the zip file to a given path, creating it if it doesn't exist. Cannot be used with '--output'" }) .option('subdir', { alias: 'b', describe: 'Will extract to a subdirectory named the date of the issue (e.g. $extract/YYYY-MM-DD)' }); }, (argv) => { let args = argv._; if (args.length > 1) args.shift(); command = download.bind(null, argv._); }) .command('list-issues <year>', "Lists all issues for a given year", (yargs) => { yargs .positional('year', { demand: true, describe: 'Year to list issues for' }); }, (argv) => { command = list_issues.bind(null, argv._); }) .command('list-issue-sections <issue>', "Lists all issues for a given year", (yargs) => { yargs .positional('issue', { demand: true, describe: 'Issue to list sections for' }); }, (argv) => { command = list_issue_sections.bind(null, argv._); }) nconf = new Provider(); nconf .argv(yargs) .env({ whitelist: env_whitelist.concat(env_whitelist.map(env_to_config)), parseValues: true, separator: '__', transform: (obj) => { if (env_whitelist.includes(obj.key)) { if (obj.key.indexOf('_') !== -1) { obj.key = env_to_config(obj.key.toLowerCase().replace('economist_', '')); } } return obj; } }) .defaults(require('./default_config')); logs = winston.createLogger({ level: nconf.get('logLevel'), format: winston.format.simple(), silent: nconf.get('quiet'), transports: [ new winston.transports.Console({ silent: nconf.get('quiet') }) ] }); if (nconf.get('config')) nconf.file({ file: nconf.get('config') }); let code = await command(nconf, logs); process.exit(code); } /** * This module contains the command-line logic for the application. * @module economist-audio-downloader/launch */ module.exports = { main, login, download, list_issues, list_issue_sections };
30.718157
157
0.533921
191a1b4320fbd926f5212f259270f67134625dec
2,446
js
JavaScript
index.js
dskrepps/config
46178233636579e07fcb0eb82d1cdf1b2fc9bb70
[ "MIT" ]
null
null
null
index.js
dskrepps/config
46178233636579e07fcb0eb82d1cdf1b2fc9bb70
[ "MIT" ]
null
null
null
index.js
dskrepps/config
46178233636579e07fcb0eb82d1cdf1b2fc9bb70
[ "MIT" ]
null
null
null
// Load your config files and options in the necessary order // Usage: // config = getConfig(); // config = getConfig(configObject); // config = getConfig({configDir: __dirname+'./config'}); // port = config.port; // config.has('auth.twitter.token'); // config.get('auth.twitter.token'); // config.set('secrets.session.token', token); // config.set('db.name', 'test.db', false); // Don't save to local.json // config.saveLocalChanges(); // Loads command line argument such as -port 8080 // Loads environment variable NODE_CONFIG as a json obj 'use strict'; var deepExtend = require('deep-extend'); var dotty = require('dotty'); var coherent = require('coherent'); var argv = require('minimist')(process.argv.slice(2)); var envNodeConfig = JSON.parse(process.env.NODE_CONFIG || '{}'); var initialConfig = { configDir: __dirname + '/../../config/', env: argv.env || envNodeConfig.env || process.env.NODE_ENV || 'development', localConfig: 'local.json', allowSaveChanges: true, additionalConfigs: [], }; module.exports = configure; function configure (config) { config = deepExtend({}, initialConfig, config || {}); // Properties modified with set are stored here to save later var changes = {}; // Load each config file if it exists loadConfig('default'); loadConfig(config.env); config.ignoreLocalConfig || loadConfig(config.localConfig); // Environment variable NODE_CONFIG can be a JSON object deepExtend(config, envNodeConfig); // Command line arguments e.g. -port 8080 deepExtend(config, argv); config.additionalConfigs.forEach(loadConfig); Object.defineProperties( config, { loadConfig: { value: loadConfig }, has: { value: has }, get: { value: get }, set: { value: set }, saveLocalChanges: { value: function (cb){ setImmediate(require('./saveChanges'), config, changes, cb); }}, }); return config; // Load a config file from configDir, silently ignore missing files function loadConfig(file) { try { deepExtend(config, coherent.read(config.configDir+'/'+file) ); } catch (err) { if(err && err.code !== 'ENOENT') { throw err; } } } function has (path) { return dotty.exists(config, path); } function get (path) { return dotty.get(config, path); } function set (path, value, dontSave) { if (config.allowSaveChanges && !dontSave) { dotty.put(changes, path, value); } dotty.put(config, path, value); } }
22.036036
77
0.671709
191a5ee1c517b136ad4921a789f94ad61bffcd97
1,317
js
JavaScript
tests/functional/spec/components/checkbox/checkbox_label.spec.js
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
null
null
null
tests/functional/spec/components/checkbox/checkbox_label.spec.js
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
null
null
null
tests/functional/spec/components/checkbox/checkbox_label.spec.js
petechd/eq-questionnaire-runner
1c5b182a7f8bc878cfdd767ae080410fa679abd6
[ "MIT" ]
null
null
null
import DefaultLabelPage from "../../../generated_pages/checkbox_label/default-label-checkbox.page"; import NoLabelPage from "../../../generated_pages/checkbox_label/no-label-checkbox.page"; describe("Given the checkbox label variants questionnaire,", () => { beforeEach(() => { browser.openQuestionnaire("test_checkbox_label.json"); }); it("Given a label has not been set in the schema for a checkbox answer, When the checkbox answer is displayed, Then the default label should be visible", () => { expect($("body").getText()).to.have.string("Select all that apply"); }); it("Given a label has been set to null in the schema for a checkbox answer, When the checkbox answer is displayed, Then the label should not be visible", () => { $(DefaultLabelPage.red()).click(); $(DefaultLabelPage.submit()).click(); expect($("body").getText()).to.not.have.string("Select all that apply"); }); it("Given a custom label has been set in the schema for a checkbox answer, When the checkbox answer is displayed, Then the custom label should be visible", () => { $(DefaultLabelPage.red()).click(); $(DefaultLabelPage.submit()).click(); $(NoLabelPage.rugby()).click(); $(NoLabelPage.submit()).click(); expect($("body").getText()).to.have.string("Select your answer"); }); });
54.875
165
0.687927
191a7456ac5d607f705837a72674b6c4d2d56975
2,765
js
JavaScript
test/cookbook-test.js
ryanbahan/refactor-tractor-whats-cookin
b95817cba893f036098366a8b98c2c3d8be39d4b
[ "MIT" ]
1
2020-02-18T21:12:28.000Z
2020-02-18T21:12:28.000Z
test/cookbook-test.js
ryanbahan/refactor-tractor-whats-cookin
b95817cba893f036098366a8b98c2c3d8be39d4b
[ "MIT" ]
33
2020-02-15T19:51:36.000Z
2022-02-26T23:45:37.000Z
test/cookbook-test.js
ryanbahan/refactor-tractor-whats-cookin
b95817cba893f036098366a8b98c2c3d8be39d4b
[ "MIT" ]
null
null
null
const chai = require("chai"), spies = require("chai-spies"); chai.use(spies); import { expect } from "chai"; import Cookbook from "../src/cookbook.js"; let cookbook, userID; global.localStorage = {}; describe("Cookbook", () => { beforeEach(() => { userID = "1"; }); describe("LocalStorage", () => { it("Should start off as an empty array of favorites", () => { chai.spy.on(localStorage, ["setItem", "getItem"], () => { return JSON.stringify({ favorites: [], savedRecipes: [] }); }); cookbook = new Cookbook(userID); expect(localStorage.getItem).to.be.called(1); expect(cookbook.favoriteRecipes).to.be.an("array"); expect(cookbook.favoriteRecipes).to.deep.equal([]); }); it("Should start off as an empty array of saved recipes", () => { expect(localStorage.getItem).to.be.called(1); expect(cookbook.savedRecipes).to.be.an("array"); expect(cookbook.savedRecipes).to.deep.equal([]); }); it("Should be able to save itself", () => { cookbook = new Cookbook(userID); cookbook.savedRecipes = [3, 4]; cookbook.favoriteRecipes = [1, 2]; let expected = JSON.stringify({ favorites: cookbook.favoriteRecipes, savedRecipes: cookbook.savedRecipes }); cookbook.save(); expect(localStorage.setItem).to.be.called.with(expected); }); }); describe("Update", () => { it("should be able to update the saved recipe array", () => { cookbook = new Cookbook(userID); cookbook.savedRecipes = [3, 4]; let recipeID = 3; cookbook.updateSavedRecipes(recipeID); expect(cookbook.savedRecipes).to.deep.equal([4]); }); it("should be able to update the favorite recipe array", () => { cookbook = new Cookbook(userID); cookbook.favoriteRecipes = [1, 2]; let recipeID = 1; cookbook.updateFavorites(recipeID); expect(cookbook.favoriteRecipes).to.deep.equal([2]); }); }); describe("Cook", () => { it("should be able to remove a saved recipe when cooked", () => { cookbook = new Cookbook(userID); cookbook.savedRecipes = [3, 4]; let recipeID = 3; cookbook.cook(recipeID); expect(cookbook.savedRecipes).to.deep.equal([4]); }); }); describe("Is Saved", () => { it("Should return true when it exists", () => { cookbook = new Cookbook(userID); cookbook.savedRecipes = [3, 4]; let recipeID = 3; expect(cookbook.isSaved(recipeID)).to.equal(true); }); it("Should return false when it does not", () => { cookbook = new Cookbook(userID); cookbook.savedRecipes = [3, 4]; let recipeID = 6; expect(cookbook.isSaved(recipeID)).to.equal(false); }); }); });
29.731183
69
0.600723
191b3a74756baac4aeb5772b91ee7e8376894425
173
js
JavaScript
src/credentials-client.js
Data4Democracy/ati-broadcastapp
c314137a6046861f30fd375f1f5b4d8cb0cf5e0d
[ "MIT" ]
10
2017-05-02T14:53:39.000Z
2018-08-22T00:37:27.000Z
src/credentials-client.js
Data4Democracy/ati-broadcastapp
c314137a6046861f30fd375f1f5b4d8cb0cf5e0d
[ "MIT" ]
33
2017-05-02T14:16:48.000Z
2017-11-10T01:12:55.000Z
src/credentials-client.js
Data4Democracy/ati-broadcastapp
c314137a6046861f30fd375f1f5b4d8cb0cf5e0d
[ "MIT" ]
4
2017-05-15T00:21:12.000Z
2017-07-24T15:43:43.000Z
/* eslint-disable max-len */ export default { googleClientId: '622480563241-pahmfkaqa83ee7g35a8oo87mob3vru6f.apps.googleusercontent.com', fbAppId: '794932754026815', };
28.833333
93
0.786127
191bdde579cb394a65b35e569127d945dcf019ec
10,676
js
JavaScript
docs/acrobatsdk/html2015/whxdata/package_743_xml.js
mjsir911/dc-acrobat-sdk-docs
3307b714e270d5aac70dc5883d15037f6d299507
[ "MIT" ]
1
2022-03-22T10:13:50.000Z
2022-03-22T10:13:50.000Z
docs/acrobatsdk/html2015/whxdata/package_743_xml.js
mjsir911/dc-acrobat-sdk-docs
3307b714e270d5aac70dc5883d15037f6d299507
[ "MIT" ]
null
null
null
docs/acrobatsdk/html2015/whxdata/package_743_xml.js
mjsir911/dc-acrobat-sdk-docs
3307b714e270d5aac70dc5883d15037f6d299507
[ "MIT" ]
3
2021-08-05T22:59:29.000Z
2022-01-13T19:36:46.000Z
gXMLBuffer="<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?><pk><wd nm=\"nsoleinput\" rd=\"863,0:1358,1574:0\"/><wd nm=\"nsoleopen\" rd=\"863,0:1346:0\"/><wd nm=\"nsolidating\" rd=\"1959,0:3541:0|1973,0:3445:0\"/><wd nm=\"nsolidation\" rd=\"608,0:249:0\"/><wd nm=\"nsortby\" rd=\"947,0:1070,1561:0|958,0:101,136,569:0|1130,0:54595,55009,55737,129498:0|1231,0:3442:0|1555,0:262,357:0|1561,0:25794,30279:0\"/><wd nm=\"nsorted\" rd=\"1195,0:443:0\"/><wd nm=\"nsortium’s\" rd=\"86,0:351:0\"/><wd nm=\"nsortoffset\" rd=\"1915,0:560,3568,3641,3693,3712,3762:0\"/><wd nm=\"nsortoffsets\" rd=\"1915,0:1120:0\"/><wd nm=\"nsoundslike\" rd=\"1284,0:132:0|1920,0:1973:0\"/><wd nm=\"nsourcepage\" rd=\"891,0:733:0|1130,0:12831,15733:0\"/><wd nm=\"nsoverridetag\" rd=\"1920,0:1263,1284:0\"/><wd nm=\"nspace\" rd=\"1106,0:4785,4841:0\"/><wd nm=\"nsparencies\" rd=\"775,0:2005:0\"/><wd nm=\"nsparency\" rd=\"367,0:1794,1807,1852:0|523,0:1007:0|570,0:2949:0|584,0:1477,1499,1657:0|589,0:1154:0|591,0:946:0|664,132:0,18,39,93,179,329,1089:0|669,0:1081:0|682,0:3156,3287,3654,3764,3847:0|693,0:69:0|697,0:504,697:0|710,0:261,286:0|757,0:583,596:0|775,130:0,13,30,43,113,167,200,238,372,1052,1103,1199,1300,1501,1610,1668,1810,1878,1938,2079,2498,2993,3472,3485:0|776,140:0,36,148,201,303,506,1017,1328,1581,1802,1904,3684:0|894,0:454:0|899,0:155:0|1223,0:675,21175,21479,22174,22368,22473,22697:0\"/><wd nm=\"nsparencylevel\" rd=\"894,0:2059:0|1223,8:384,23973:0|1297,0:2384:0\"/><wd nm=\"nsparencysnip\" rd=\"120,0:5021:0\"/><wd nm=\"nsparent\" rd=\"248,0:2911:0|904,0:2225:0|919,0:137:0|922,0:152:0|1055,0:1189,1806:0|1076,0:6838,10965,17227:0|1102,0:107,491,513:0|1103,0:128,146:0|1106,0:2489:0|1130,0:15292,19124:0|1155,0:15539,17013,25005,26550:0|1192,0:1310:0|1304,0:1929:0|1378,0:1114:0|1415,0:461,485,577,606:0|1436,0:1386,1488,1612,1727:0|1459,0:756,774,954,1030,3164,3188,3280,3309,3669,3795,4285,4365,4569:0|1561,0:23718:0|1907,0:1232,2066,5202,5384:0|1908,0:1390:0\"/><wd nm=\"nsparent_\" rd=\"1459,0:3575,3693,4478:0\"/><wd nm=\"nsparentboundsrendermodecolor\" rd=\"1436,0:1416:0\"/><wd nm=\"nsparentgridcoloreven\" rd=\"1436,0:1512:0\"/><wd nm=\"nsparentgridcolorodd\" rd=\"1436,0:1629:0\"/><wd nm=\"nsparently\" rd=\"561,0:507:0\"/><wd nm=\"nspdetextcolorsnip\" rd=\"120,0:3904:0\"/><wd nm=\"nspecified\" rd=\"614,0:1005:0|756,0:527:0|1060,0:258:0|1130,0:1875:0|1137,0:1137:0|1155,0:10421:0|1228,0:888:0\"/><wd nm=\"nspect\" rd=\"863,0:144:0|866,0:527,683,739:0|870,0:474,556,744,797,872:0|871,140:0,21,45,143,276,341,479,511,604,721,819,863,930,1607,1654,1741,2033,2113,2197,3713,3799,3839,4692,4983:0|872,0:1387,1438:0|1022,0:1190:0|1124,0:2583:0\"/><wd nm=\"nspected\" rd=\"871,0:205,1407:0|1117,0:236:0|1939,0:379:0\"/><wd nm=\"nspecting\" rd=\"840,0:306:0|871,8:581:0\"/><wd nm=\"nspection\" rd=\"665,0:4083:0|871,0:1215:0\"/><wd nm=\"nspector\" rd=\"574,0:867:0\"/><wd nm=\"nspects\" rd=\"1939,0:136:0\"/><wd nm=\"nspolicy\" rd=\"1019,0:1799:0\"/><wd nm=\"nsport\" rd=\"82,0:847:0|212,0:557:0|567,0:464,1360,1411:0|1046,0:529:0|1248,0:3901:0|1251,0:17086:0\"/><wd nm=\"nspose\" rd=\"1380,0:355,383:0|1410,0:69:0\"/><wd nm=\"nsposeinplace\" rd=\"1410,132:0,17,86,322:0\"/><wd nm=\"nspreviewsnip\" rd=\"120,0:3714:0\"/><wd nm=\"nsproc\" rd=\"432,0:736:0\"/><wd nm=\"nsred\" rd=\"1907,0:7741:0\"/><wd nm=\"nssnip\" rd=\"120,0:3289:0|237,0:219:0\"/><wd nm=\"nsstack\" rd=\"553,0:436:0\"/><wd nm=\"nsstackgetcount\" rd=\"550,0:1334:0|553,0:655:0\"/><wd nm=\"nsstackindexgetarrayindex\" rd=\"550,0:1499:0|553,0:1183:0\"/><wd nm=\"nsstackindexgetdictkey\" rd=\"550,0:1473:0|553,0:945:0\"/><wd nm=\"nsstackindexgetobj\" rd=\"550,0:1353:0\"/><wd nm=\"nsstackindexgettypeat\" rd=\"550,0:1403:0\"/><wd nm=\"nsstackindexgettypecount\" rd=\"550,0:1375:0\"/><wd nm=\"nsstackindexisarray\" rd=\"550,0:1450:0|553,0:1121:0\"/><wd nm=\"nsstackindexisdict\" rd=\"550,0:1428:0|553,0:874:0\"/><wd nm=\"nst\" rd=\"233,0:2745:0|258,0:3065:0|259,0:506:0|260,0:3313,3876,3894,3911:0|293,0:1577:0|320,0:546:0|328,0:174:0|333,0:1145:0|335,0:499:0|337,0:691:0|350,0:2151:0|363,0:1268:0|383,0:2260:0|385,0:741:0|388,0:996:0|389,0:1594:0|390,0:790:0|391,0:655:0|392,0:2803:0|435,0:470:0|437,0:2066,2105:0|438,0:227,291,330:0|439,0:1453,1487,1521:0|465,0:1258,1381:0|495,0:859,1050:0|518,0:244:0|524,0:4207,5654:0|535,0:5847:0|555,0:329,369,601,637:0|556,0:1007,1051,1106:0|564,0:3996:0|583,0:7338,7445,7455,10636:0|617,0:311:0|732,0:490:0|739,0:1133:0|974,0:1542:0|1085,0:69534:0|1105,0:395:0|1130,0:25632,25843:0|1155,0:11178:0|1186,0:1663:0|1228,0:2411:0|1240,0:1082:0|1579,0:875:0|1907,0:383,406,4519,8025,8848:0|1910,0:3004,4140:0|1960,0:1543,1603:0|1963,0:307:0\"/><wd nm=\"nstag\" rd=\"1920,0:1070:0\"/><wd nm=\"nstall\" rd=\"104,0:590,621:0|125,0:1484:0|127,0:416:0|128,0:490:0|130,0:1224:0|131,0:467:0|134,0:587:0|136,0:758:0|140,0:377:0|141,0:393:0|142,0:386:0|144,0:595:0|146,0:521:0|180,0:359:0|231,0:1647:0|258,0:2864:0|279,0:163,415:0|336,0:1780:0|904,0:18114:0|972,0:1461:0|977,0:2978:0|1146,0:1204:0|1575,0:457:0|1581,0:309:0\"/><wd nm=\"nstallation\" rd=\"16,0:362:0|101,0:1662:0|127,0:469,736,769:0|180,0:258,404:0|198,0:1456:0|200,0:186,248,999:0|201,0:211:0|207,0:428:0|231,0:1770:0|233,0:1957:0|266,0:1234:0|326,0:442:0|595,0:868:0|603,0:476:0|766,0:1223,1788:0|863,0:832:0|883,0:1986:0|1085,0:34444:0|1258,0:585,1266,1833:0\"/><wd nm=\"nstallations\" rd=\"594,0:569:0|1130,0:65063:0\"/><wd nm=\"nstalled\" rd=\"20,0:458:0|101,0:1375,1472:0|154,0:782:0|155,0:388:0|164,0:460:0|167,0:600:0|180,0:291:0|198,0:4531:0|215,0:371:0|219,0:207:0|230,0:1287:0|231,0:728,1229,1697,1886,1915:0|233,0:903:0|266,0:1534:0|343,0:119:0|508,0:464:0|509,0:1181:0|510,0:501:0|518,0:365:0|570,0:292,1367:0|594,132:15,40,125,662,909,983,5275:0|610,0:152:0|877,0:981,1235:0|977,0:435,1303,1376,3235:0|1033,0:513:0|1077,0:2975:0|1084,0:6173,6910:0|1085,0:6539:0|1092,0:108:0|1112,0:644:0|1129,0:22185,22658:0|1130,0:120481:0|1206,0:1221:0|1213,0:1222,2136,2404,2519:0|1216,0:131:0|1235,0:122:0|1241,0:10474:0|1257,0:140:0|1259,0:1817,2584,3625,4372,11786,12139:0|1267,0:151,411:0|1294,0:1592:0|1560,32:649:0|1575,0:129,542:0|1992,0:633:0|1998,0:282:0|2020,0:322:0\"/><wd nm=\"nstalled_path\" rd=\"118,0:353,430:0|261,0:546,625:0\"/><wd nm=\"nstaller\" rd=\"16,0:446,579:0|180,0:328,346:0|189,0:208:0|193,0:839:0|197,0:485,548,565,594,722,761:0|200,132:26,63,1391:0|208,0:1349:0\"/><wd nm=\"nstalling\" rd=\"101,0:150:0|190,0:400:0|191,0:469:0|230,130:0,34,1828:0|231,8:1508,2003:0|965,8:645:0|977,0:1192,1205:0|1130,0:80375:0|1560,130:0,34,1775:0\"/><wd nm=\"nstalls\" rd=\"119,0:473:0|594,0:59:0|977,0:1032,1327:0|1130,0:80190:0|1146,0:1033:0\"/><wd nm=\"nstallshield\" rd=\"200,0:960:0|738,0:168:0|1997,0:178:0|1998,130:26,71,186,471,715:0\"/><wd nm=\"nstance\" rd=\"26,0:1022:0|136,0:402:0|167,0:438:0|227,0:603:0|273,0:347:0|313,0:743,1034:0|319,0:6291:0|320,0:3459:0|356,0:2612,4506,4516:0|366,0:806:0|374,0:1183,3401,3454,3483,3544:0|377,0:2733:0|384,0:1402,1447,1467,1477,1884:0|385,0:575:0|386,0:1080:0|389,0:1426:0|390,0:622:0|392,0:2635:0|435,0:223:0|439,0:352:0|543,0:864:0|570,0:1148,5355,5966,6433,6707:0|571,0:1372:0|610,0:2488:0|714,0:435:0|716,0:31,85,309:0|735,0:389,3064,3106,3186,3206,4564:0|749,0:378:0|774,0:923:0|815,0:2819:0|860,0:307,682,781,879:0|861,0:475:0|940,0:394:0|967,0:519:0|1120,0:16:0|1129,0:8923,25703,25793:0|1130,0:126575,126670:0|1135,0:1397:0|1138,0:553:0|1147,0:6466:0|1165,0:2081,2341:0|1184,0:54:0|1186,0:948:0|1203,0:92:0|1223,0:5575:0|1240,0:1049:0|1241,0:5433:0|1251,0:9109,18886:0|1309,0:64:0|1317,0:64:0|1439,0:49:0|1549,0:7706,8621:0|1561,0:3856:0|1579,0:359,3390,6187:0|1619,0:291:0|1639,0:24:0|1646,0:189:0|1647,0:558:0|1652,0:258:0|1663,0:280:0|1677,0:211:0|1680,0:206:0|1683,0:175:0|1685,0:201:0|1689,0:404:0|1692,0:198:0|1694,0:1365:0|1699,0:482:0|1707,0:35,199:0|1712,0:474:0|1714,0:24:0|1716,0:547:0|1722,0:351:0|1723,0:549:0|1724,0:357:0|1725,0:432:0|1726,0:422:0|1729,0:660:0|1731,0:237:0|2008,0:123:0\"/><wd nm=\"nstanceid\" rd=\"1694,0:1343:0|1707,132:0,14,111,444:0|1711,0:234:0\"/><wd nm=\"nstances\" rd=\"374,0:3363:0|375,0:824:0|376,0:1004:0|570,0:4043:0|656,0:1817:0|735,0:3360:0|815,0:2758:0|970,0:445:0|981,0:730,1400,1521:0|996,0:1625:0|999,0:1428:0|1130,0:19675,20443:0|1439,0:753:0|1575,0:2657:0|1853,0:29,128,172:0\"/><wd nm=\"nstandard\" rd=\"89,0:508:0|813,0:1292:0\"/><wd nm=\"nstant\" rd=\"310,0:1359:0|383,0:319:0|385,0:326:0|495,0:462,965:0|501,0:1751:0|556,0:213:0|731,0:237:0|775,0:501,673,695,710:0|1076,0:10701:0|1084,0:2379:0|1155,0:1486:0|1203,0:172:0|1223,0:5655,5848,5872:0|1239,0:886:0|1240,0:926:0|1241,0:5252:0|1326,0:91:0|1330,0:469,551,626,706,1697,1794:0|1352,0:605,677,753:0|1356,0:321,403,484,565,2285,2375,2465,2655,2744,2834:0|1377,0:1130,1213,2322,2398,2470:0|1437,0:297,373,451,528:0|1439,0:282,417,908,1042,2595,2943,3036,3133,3225,3320,3412,3504:0|1459,0:848,923,1006,1088,1303,1380,1458,1535,1613,1691,1768,1846,1922,1998,2074,2154,3446,3536,3643,3769,3877,3971,4065,4161,4252,4339,4436,4543,4646,4742,4845,4950:0|1485,0:583,703:0|1574,0:2426:0|1575,0:679,1657:0|1827,0:984:0|1828,0:856:0|1830,0:684:0|1832,0:917:0|1843,0:1083:0|1852,0:58:0|1860,0:62:0|1866,0:71:0\"/><wd nm=\"nstantiate\" rd=\"436,0:121:0|503,0:819,7320,7425,7495:0|595,0:914:0|1903,0:296,488:0|1905,0:67:0|1909,0:321,479:0\"/><wd nm=\"nstantiated\" rd=\"506,0:796,825:0|1909,0:100:0\"/><wd nm=\"nstantiating\" rd=\"1579,0:3175:0\"/><wd nm=\"nstantiations\" rd=\"120,0:1905:0\"/><wd nm=\"nstantly\" rd=\"141,0:860:0|1527,0:173:0\"/><wd nm=\"nstants\" rd=\"248,0:1508,7497,7729:0|317,0:392:0|318,0:290:0|554,0:910:0|729,0:292:0|730,0:377:0|731,0:224:0|894,0:578,616:0|895,0:1949:0|896,0:434,716,859:0|897,0:322,372:0|898,0:203,705,886,931,980,1120,1237,1285,1342:0|899,0:584,888,1143,1988,2181,2617,2770:0|1084,8:107,2326,2459:0|1106,16:377,442,453,1121,2098,2177,2673,2821,2854,3067,3207,3436,3520,4344,4422,5438,5670,5808:0|1130,0:13874,13920,14027,14073,15770,15804,16222,17713,17759,17866,17912,19492,19528,19563,57098,57155,57239,57371,75950,95567,97564:0|1203,8:28,66,826:0|1204,0:150,243,1115,1420,1449:0|1222,0:406,449,587,649:0|1223,24:235,1195,1396,2638,3283,4475,4520,4683,4731,4919,5549,6648,6712,7230,8462,8581,10178,10396,10629,10789,10862,12071,12382,12602,13177,14255,14295,15167,15337,15701,15741,16035,16166,16273,17177,17344,17384,17608,17742,17804,18081,18557,18625,18957,19007,19553,20802,20890,22528,22752,23248,23352,24467,24602,24996,25199:0|1239,132:8,26,120,205,1058,1881:0|1240,0:863,1005:0|1241,0:4084,5313,7408,7649,7802,8126:0|1244,0:4461:0|1246,0:643,790:0|1292,0:2371,2396,2424:0|1294,0:2137,2753,3051:0|1297,0:2148:0|1574,0:2222:0|1575,0:1023:0|1914,0:204:0|1915,8:796,988,1772,2185:0\"/></pk>";
10,676
10,676
0.683402
191cad7890699d071ad65473965a3d9df3f86cfb
6,901
js
JavaScript
textract-pipeline/node_modules/aws-cdk/test/test.init.js
musa-b/amazon-textract-serverless-large-scale-document-processing
eb628684bc661c9a1fdde4d9d5032b5b3632eece
[ "Apache-2.0" ]
null
null
null
textract-pipeline/node_modules/aws-cdk/test/test.init.js
musa-b/amazon-textract-serverless-large-scale-document-processing
eb628684bc661c9a1fdde4d9d5032b5b3632eece
[ "Apache-2.0" ]
null
null
null
textract-pipeline/node_modules/aws-cdk/test/test.init.js
musa-b/amazon-textract-serverless-large-scale-document-processing
eb628684bc661c9a1fdde4d9d5032b5b3632eece
[ "Apache-2.0" ]
null
null
null
"use strict"; const fs = require("fs-extra"); const os = require("os"); const path = require("path"); const init_1 = require("../lib/init"); const state = {}; module.exports = { async "setUp"(callback) { state.previousWorkingDir = process.cwd(); state.tempDir = await fs.mkdtemp(path.join(os.tmpdir(), 'aws-cdk-test')); // tslint:disable-next-line:no-console console.log('Temporary working directory:', state.tempDir); process.chdir(state.tempDir); callback(); }, async "tearDown"(callback) { // tslint:disable-next-line:no-console console.log('Switching back to', state.previousWorkingDir, 'cleaning up', state.tempDir); process.chdir(state.previousWorkingDir); await fs.remove(state.tempDir); callback(); }, async 'create a TypeScript library project'(test) { await init_1.cliInit('lib', 'typescript', false); // Check that package.json and lib/ got created in the current directory test.equal(true, await fs.pathExists('package.json')); test.equal(true, await fs.pathExists('lib')); test.done(); }, async 'create a TypeScript app project'(test) { await init_1.cliInit('app', 'typescript', false); // Check that package.json and bin/ got created in the current directory test.equal(true, await fs.pathExists('package.json')); test.equal(true, await fs.pathExists('bin')); test.done(); }, async 'git directory does not throw off the initer!'(test) { fs.mkdirSync('.git'); await init_1.cliInit('app', 'typescript', false); // Check that package.json and bin/ got created in the current directory test.equal(true, await fs.pathExists('package.json')); test.equal(true, await fs.pathExists('bin')); test.done(); } }; //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVzdC5pbml0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsidGVzdC5pbml0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSwrQkFBZ0M7QUFFaEMseUJBQTBCO0FBQzFCLDZCQUE4QjtBQUM5QixzQ0FBc0M7QUFFdEMsTUFBTSxLQUFLLEdBR1AsRUFBRSxDQUFDO0FBRVAsaUJBQVM7SUFDUCxLQUFLLENBQUMsT0FBTyxDQUFDLFFBQW9CO1FBQ2hDLEtBQUssQ0FBQyxrQkFBa0IsR0FBRyxPQUFPLENBQUMsR0FBRyxFQUFFLENBQUM7UUFDekMsS0FBSyxDQUFDLE9BQU8sR0FBRyxNQUFNLEVBQUUsQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsTUFBTSxFQUFFLEVBQUUsY0FBYyxDQUFDLENBQUMsQ0FBQztRQUN6RSxzQ0FBc0M7UUFDdEMsT0FBTyxDQUFDLEdBQUcsQ0FBQyw4QkFBOEIsRUFBRSxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDM0QsT0FBTyxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsT0FBTyxDQUFDLENBQUM7UUFDN0IsUUFBUSxFQUFFLENBQUM7SUFDYixDQUFDO0lBRUQsS0FBSyxDQUFDLFVBQVUsQ0FBQyxRQUFvQjtRQUNuQyxzQ0FBc0M7UUFDdEMsT0FBTyxDQUFDLEdBQUcsQ0FBQyxtQkFBbUIsRUFBRSxLQUFLLENBQUMsa0JBQWtCLEVBQUUsYUFBYSxFQUFFLEtBQUssQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUN6RixPQUFPLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxrQkFBbUIsQ0FBQyxDQUFDO1FBQ3pDLE1BQU0sRUFBRSxDQUFDLE1BQU0sQ0FBQyxLQUFLLENBQUMsT0FBUSxDQUFDLENBQUM7UUFFaEMsUUFBUSxFQUFFLENBQUM7SUFDYixDQUFDO0lBRUQsS0FBSyxDQUFDLHFDQUFxQyxDQUFDLElBQVU7UUFDcEQsTUFBTSxjQUFPLENBQUMsS0FBSyxFQUFFLFlBQVksRUFBRSxLQUFLLENBQUMsQ0FBQztRQUUxQyx3RUFBd0U7UUFDeEUsSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUsTUFBTSxFQUFFLENBQUMsVUFBVSxDQUFDLGNBQWMsQ0FBQyxDQUFDLENBQUM7UUFDdEQsSUFBSSxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUsTUFBTSxFQUFFLENBQUMsVUFBVSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUM7UUFFN0MsSUFBSSxDQUFDLElBQUksRUFBRSxDQUFDO0lBQ2QsQ0FBQztJQUVELEtBQUssQ0FBQyxpQ0FBaUMsQ0FBQyxJQUFVO1FBQ2hELE1BQU0sY0FBTyxDQUFDLEtBQUssRUFBRSxZQUFZLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFMUMsd0VBQXdFO1FBQ3hFLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLE1BQU0sRUFBRSxDQUFDLFVBQVUsQ0FBQyxjQUFjLENBQUMsQ0FBQyxDQUFDO1FBQ3RELElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLE1BQU0sRUFBRSxDQUFDLFVBQVUsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDO1FBRTdDLElBQUksQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUNkLENBQUM7SUFFRCxLQUFLLENBQUMsOENBQThDLENBQUMsSUFBVTtRQUM3RCxFQUFFLENBQUMsU0FBUyxDQUFDLE1BQU0sQ0FBQyxDQUFDO1FBRXJCLE1BQU0sY0FBTyxDQUFDLEtBQUssRUFBRSxZQUFZLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFFMUMsd0VBQXdFO1FBQ3hFLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLE1BQU0sRUFBRSxDQUFDLFVBQVUsQ0FBQyxjQUFjLENBQUMsQ0FBQyxDQUFDO1FBQ3RELElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxFQUFFLE1BQU0sRUFBRSxDQUFDLFVBQVUsQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDO1FBRTdDLElBQUksQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUNkLENBQUM7Q0FDRixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IGZzID0gcmVxdWlyZSgnZnMtZXh0cmEnKTtcbmltcG9ydCB7IFRlc3QgfSBmcm9tICdub2RldW5pdCc7XG5pbXBvcnQgb3MgPSByZXF1aXJlKCdvcycpO1xuaW1wb3J0IHBhdGggPSByZXF1aXJlKCdwYXRoJyk7XG5pbXBvcnQgeyBjbGlJbml0IH0gZnJvbSAnLi4vbGliL2luaXQnO1xuXG5jb25zdCBzdGF0ZToge1xuICBwcmV2aW91c1dvcmtpbmdEaXI/OiBzdHJpbmc7XG4gIHRlbXBEaXI/OiBzdHJpbmc7XG59ID0ge307XG5cbmV4cG9ydCA9IHtcbiAgYXN5bmMgXCJzZXRVcFwiKGNhbGxiYWNrOiAoKSA9PiB2b2lkKSB7XG4gICAgc3RhdGUucHJldmlvdXNXb3JraW5nRGlyID0gcHJvY2Vzcy5jd2QoKTtcbiAgICBzdGF0ZS50ZW1wRGlyID0gYXdhaXQgZnMubWtkdGVtcChwYXRoLmpvaW4ob3MudG1wZGlyKCksICdhd3MtY2RrLXRlc3QnKSk7XG4gICAgLy8gdHNsaW50OmRpc2FibGUtbmV4dC1saW5lOm5vLWNvbnNvbGVcbiAgICBjb25zb2xlLmxvZygnVGVtcG9yYXJ5IHdvcmtpbmcgZGlyZWN0b3J5OicsIHN0YXRlLnRlbXBEaXIpO1xuICAgIHByb2Nlc3MuY2hkaXIoc3RhdGUudGVtcERpcik7XG4gICAgY2FsbGJhY2soKTtcbiAgfSxcblxuICBhc3luYyBcInRlYXJEb3duXCIoY2FsbGJhY2s6ICgpID0+IHZvaWQpIHtcbiAgICAvLyB0c2xpbnQ6ZGlzYWJsZS1uZXh0LWxpbmU6bm8tY29uc29sZVxuICAgIGNvbnNvbGUubG9nKCdTd2l0Y2hpbmcgYmFjayB0bycsIHN0YXRlLnByZXZpb3VzV29ya2luZ0RpciwgJ2NsZWFuaW5nIHVwJywgc3RhdGUudGVtcERpcik7XG4gICAgcHJvY2Vzcy5jaGRpcihzdGF0ZS5wcmV2aW91c1dvcmtpbmdEaXIhKTtcbiAgICBhd2FpdCBmcy5yZW1vdmUoc3RhdGUudGVtcERpciEpO1xuXG4gICAgY2FsbGJhY2soKTtcbiAgfSxcblxuICBhc3luYyAnY3JlYXRlIGEgVHlwZVNjcmlwdCBsaWJyYXJ5IHByb2plY3QnKHRlc3Q6IFRlc3QpIHtcbiAgICBhd2FpdCBjbGlJbml0KCdsaWInLCAndHlwZXNjcmlwdCcsIGZhbHNlKTtcblxuICAgIC8vIENoZWNrIHRoYXQgcGFja2FnZS5qc29uIGFuZCBsaWIvIGdvdCBjcmVhdGVkIGluIHRoZSBjdXJyZW50IGRpcmVjdG9yeVxuICAgIHRlc3QuZXF1YWwodHJ1ZSwgYXdhaXQgZnMucGF0aEV4aXN0cygncGFja2FnZS5qc29uJykpO1xuICAgIHRlc3QuZXF1YWwodHJ1ZSwgYXdhaXQgZnMucGF0aEV4aXN0cygnbGliJykpO1xuXG4gICAgdGVzdC5kb25lKCk7XG4gIH0sXG5cbiAgYXN5bmMgJ2NyZWF0ZSBhIFR5cGVTY3JpcHQgYXBwIHByb2plY3QnKHRlc3Q6IFRlc3QpIHtcbiAgICBhd2FpdCBjbGlJbml0KCdhcHAnLCAndHlwZXNjcmlwdCcsIGZhbHNlKTtcblxuICAgIC8vIENoZWNrIHRoYXQgcGFja2FnZS5qc29uIGFuZCBiaW4vIGdvdCBjcmVhdGVkIGluIHRoZSBjdXJyZW50IGRpcmVjdG9yeVxuICAgIHRlc3QuZXF1YWwodHJ1ZSwgYXdhaXQgZnMucGF0aEV4aXN0cygncGFja2FnZS5qc29uJykpO1xuICAgIHRlc3QuZXF1YWwodHJ1ZSwgYXdhaXQgZnMucGF0aEV4aXN0cygnYmluJykpO1xuXG4gICAgdGVzdC5kb25lKCk7XG4gIH0sXG5cbiAgYXN5bmMgJ2dpdCBkaXJlY3RvcnkgZG9lcyBub3QgdGhyb3cgb2ZmIHRoZSBpbml0ZXIhJyh0ZXN0OiBUZXN0KSB7XG4gICAgZnMubWtkaXJTeW5jKCcuZ2l0Jyk7XG5cbiAgICBhd2FpdCBjbGlJbml0KCdhcHAnLCAndHlwZXNjcmlwdCcsIGZhbHNlKTtcblxuICAgIC8vIENoZWNrIHRoYXQgcGFja2FnZS5qc29uIGFuZCBiaW4vIGdvdCBjcmVhdGVkIGluIHRoZSBjdXJyZW50IGRpcmVjdG9yeVxuICAgIHRlc3QuZXF1YWwodHJ1ZSwgYXdhaXQgZnMucGF0aEV4aXN0cygncGFja2FnZS5qc29uJykpO1xuICAgIHRlc3QuZXF1YWwodHJ1ZSwgYXdhaXQgZnMucGF0aEV4aXN0cygnYmluJykpO1xuXG4gICAgdGVzdC5kb25lKCk7XG4gIH1cbn07XG4iXX0=
150.021739
5,030
0.897261
191cc14911583e977d8dbb6518730e993a5a81b6
1,191
js
JavaScript
src/router/index.js
mengmengdaliuyanzi/supermall
274be55bb2eb60e97a7fe5ec5104f1ccc04f82d0
[ "MIT" ]
null
null
null
src/router/index.js
mengmengdaliuyanzi/supermall
274be55bb2eb60e97a7fe5ec5104f1ccc04f82d0
[ "MIT" ]
null
null
null
src/router/index.js
mengmengdaliuyanzi/supermall
274be55bb2eb60e97a7fe5ec5104f1ccc04f82d0
[ "MIT" ]
null
null
null
import Vue from 'vue' import VueRouter from 'vue-router' import Home from '../views/Home' Vue.use(VueRouter) //解决重复点击报错 const originalPush = VueRouter.prototype.push VueRouter.prototype.push = function push(location) { return originalPush.call(this, location).catch((err) => err) } const originalReplace = VueRouter.prototype.replace VueRouter.prototype.replace = function replace(location) { return originalReplace.call(this, location).catch((err) => err) } const routes = [ { path: '/', name: 'Home', component: Home }, { path: '/about', name: 'About', // route level code-splitting // this generates a separate chunk (about.[hash].js) for this route // which is lazy-loaded when the route is visited. component: () => import(/* webpackChunkName: "about" */ '../views/About.vue') } ] const router = new VueRouter({ routes, mode:'history', // 定义 用hash 还是 history 默认hash }) router.beforeEach((to, from, next) => { //${to and from are Route Object,next() must be called to resolve the hook} // 从 from 跳转到 to document.title = to.matched[0].meta.title; // console.log('++++++++') next(); //必须要调一下 }) export default router
24.8125
81
0.667506
191d92aaf7dc2be3be2e6e584d4d68de05484e2f
307
js
JavaScript
_conf/test_config.template.js
mganeko/tts_googlehome
5fb6bd335b33994217623588c0266adc8c6b0735
[ "MIT" ]
null
null
null
_conf/test_config.template.js
mganeko/tts_googlehome
5fb6bd335b33994217623588c0266adc8c6b0735
[ "MIT" ]
null
null
null
_conf/test_config.template.js
mganeko/tts_googlehome
5fb6bd335b33994217623588c0266adc8c6b0735
[ "MIT" ]
null
null
null
'use strict'; module.exports = { // --- for altair --- deviceConfig: { TEST_DEVICE1_HOSTNAME: 'device1.local', // test device 1 (Please modify) TEST_DEVICE2_HOSTNAME: 'device2.local', // test device 2 (Please modify) TEST_DEVICE_NG_HOSTNAME: 'dummy.local', // dummy, not exist device } }
25.583333
76
0.674267
191ded432816cf2cdbb16f15f33a5b15bff88bb1
331
js
JavaScript
index.js
quincinia/Full-Stack-Open-part-4
2051ebce6447b81318c8b1604f4a06a9598ab562
[ "MIT" ]
null
null
null
index.js
quincinia/Full-Stack-Open-part-4
2051ebce6447b81318c8b1604f4a06a9598ab562
[ "MIT" ]
null
null
null
index.js
quincinia/Full-Stack-Open-part-4
2051ebce6447b81318c8b1604f4a06a9598ab562
[ "MIT" ]
null
null
null
// External dependencies const http = require('http') // Custom modules const app = require('./app') const config = require('./utils/config') const logger = require('./utils/logger') // Begin app const server = http.createServer(app) server.listen(config.PORT, () => { logger.info(`Server running on port ${config.PORT}`) })
23.642857
56
0.688822
191e57b3d2a8cc18960ef4053e66ce5375b40d6d
1,412
js
JavaScript
src/components/Contact.js
ScotteRoberts/ScotteRoberts.github.io
3319b2249007dbca5f0ad50e5ab1e45f1849a7a9
[ "MIT" ]
null
null
null
src/components/Contact.js
ScotteRoberts/ScotteRoberts.github.io
3319b2249007dbca5f0ad50e5ab1e45f1849a7a9
[ "MIT" ]
30
2019-02-21T04:54:05.000Z
2022-03-23T01:52:50.000Z
src/components/Contact.js
ScotteRoberts/ScotteRoberts.github.io
3319b2249007dbca5f0ad50e5ab1e45f1849a7a9
[ "MIT" ]
null
null
null
import React from 'react'; import scottRobertsIcon from '../assets/img/scott_roberts_icon_wedding.png'; import '../styles/contacts.scss'; const Contact = () => ( <section id="contact"> <img src={scottRobertsIcon} alt="A handsome man" /> <div> <h2>Contact Information</h2> <div> <a className="icon" href="tel:1-714-833-7051" target="_blank" rel="noopener noreferrer" aria-label="Scott Roberts Phone Number" > <i className="fas fa-mobile-alt" /> </a> <a className="icon" href="mailto:sroberts@talentpath.com" target="_blank" rel="noopener noreferrer" aria-label="Scott Roberts Email" > <i className="far fa-envelope" /> </a> <a className="icon" href="https://www.linkedin.com/in/scott-e-roberts" target="_blank" rel="noopener noreferrer" aria-label="Scott Roberts LinkedIn" > <i className="fab fa-linkedin" /> </a> <a className="icon" href="https://github.com/ScotteRoberts" target="_blank" rel="noopener noreferrer" aria-label="Scott Roberts GitHub" > <i className="fab fa-github" /> </a> </div> </div> </section> ); export default Contact;
26.641509
76
0.530453
191f089269dec5ed493e34c4e1a86a21310144fa
210
js
JavaScript
client/src/redux/reducer/coordsReducer.js
Decidophobia/Gorki-Lavo4ki
50d3d62f16d6a7ed18b9054c30c5ad0193d2b03b
[ "MIT" ]
1
2020-11-23T09:50:25.000Z
2020-11-23T09:50:25.000Z
client/src/redux/reducer/coordsReducer.js
Decidophobia/Gorki-Lavo4ki
50d3d62f16d6a7ed18b9054c30c5ad0193d2b03b
[ "MIT" ]
null
null
null
client/src/redux/reducer/coordsReducer.js
Decidophobia/Gorki-Lavo4ki
50d3d62f16d6a7ed18b9054c30c5ad0193d2b03b
[ "MIT" ]
3
2020-11-30T07:15:47.000Z
2021-01-13T11:35:23.000Z
import {GET_COORDS} from '../actionTypes'; export const coordsReducer = (state =[], action) => { switch (action.type) { case GET_COORDS: return action.payload default: return state } }
19.090909
53
0.633333
19222c9e99fcf09338d864ea1e8d56f48dac6a2c
1,251
js
JavaScript
gatsby-config.js
SebastianE-dev/sandra
5dd523a2a5a407129210738198b9e2b2c72d9498
[ "MIT" ]
null
null
null
gatsby-config.js
SebastianE-dev/sandra
5dd523a2a5a407129210738198b9e2b2c72d9498
[ "MIT" ]
null
null
null
gatsby-config.js
SebastianE-dev/sandra
5dd523a2a5a407129210738198b9e2b2c72d9498
[ "MIT" ]
null
null
null
/** * Configure your Gatsby site with this file. * * See: https://www.gatsbyjs.org/docs/gatsby-config/ */ module.exports = { siteMetadata: { title: "Sandra", description: "be a freelancer", develop: "Sebastian E", siteUrl: "https://sebastiane-dev.github.io/sandra", }, pathPrefix: `/sandra`, plugins: [ `gatsby-plugin-sitemap`, `gatsby-plugin-react-helmet`, { resolve: `gatsby-plugin-layout`, options: { component: require.resolve(`./src/layout/Layout.js`), }, }, { resolve: `gatsby-plugin-typography`, options: { pathToConfigModule: `src/utils/typography`, }, }, { resolve: `gatsby-plugin-emotion`, }, { resolve: "gatsby-source-wordpress", options: { baseUrl: "sandra.local", protocol: "http", restApiRoutePrefix: "wp-json", hostingWPCOM: false, useACF: true, acfOptionPageIds: [], perPage: 100, concurrentRequests: 10, includedRoutes: [ "**/categories", "**/posts", "**/pages", "**/media", "**/tags", "**/taxonomies", "**/users", ], }, }, ], }
19.246154
61
0.514788
1923611c1965d438b9b3e8f2e24300cb764d998b
210
js
JavaScript
test/electron-tests/page-preload.js
pyeongoh5/electron-common-ipc
3c5fb3f736fe559e6684c9f5d7357168ce8bfcb8
[ "MIT" ]
null
null
null
test/electron-tests/page-preload.js
pyeongoh5/electron-common-ipc
3c5fb3f736fe559e6684c9f5d7357168ce8bfcb8
[ "MIT" ]
null
null
null
test/electron-tests/page-preload.js
pyeongoh5/electron-common-ipc
3c5fb3f736fe559e6684c9f5d7357168ce8bfcb8
[ "MIT" ]
null
null
null
const electronCommonIpcModule = require('../..'); electronCommonIpcModule.PreloadElectronCommonIpc(); console.log(`IsElectronCommonIpcAvailable=${electronCommonIpcModule.IsElectronCommonIpcAvailable()}`);
42
103
0.814286
1923d0ea730a6e403bb02f4521d2013836ae2b7d
703
js
JavaScript
src/api/data/spells/ColossalImpact.js
tri-chandra/ssh-bot
b26ffcc55b4d4b2fb62eae9aa7149957b3f5e9ef
[ "MIT" ]
2
2019-09-08T17:22:36.000Z
2022-03-21T23:06:18.000Z
src/api/data/spells/ColossalImpact.js
boinary/ssh-bot
b26ffcc55b4d4b2fb62eae9aa7149957b3f5e9ef
[ "MIT" ]
1
2019-09-20T23:11:44.000Z
2019-09-20T23:11:44.000Z
src/api/data/spells/ColossalImpact.js
boinary/ssh-bot
b26ffcc55b4d4b2fb62eae9aa7149957b3f5e9ef
[ "MIT" ]
2
2019-09-08T19:46:13.000Z
2019-09-09T22:46:19.000Z
import Spell from '../../models/Spell'; import Token from '../tokens'; import C from '../../models/Constants'; class ColossalImpact extends Spell { constructor(level) { super({ name: 'Colossal Impact', code: 'colossalImpact', type: C.OvertimeSpell, tier: C.Elite, element: C.Earth, breakPower: 44, fixedDamage: 100, speed: C.Fast, target: C.AllPlayers, onCast: 'You get a weakness token on your playfield.', onHit: 'Delas %dmg% to each player for each token on their own playfield.', tokens: [Token.Weakness], unlockAt: [ { hero: C.RaJu, level: C.Arena8 }, ] }); } } export default ColossalImpact;
26.037037
81
0.607397
1924038425a89d6293077c942e676591156a7658
386
js
JavaScript
test/fixtures/multiple-roots/src/index.js
step2yeung/inspectpack
0e332956d5268fb0421b14a9b5a317704cd424bf
[ "MIT" ]
574
2016-03-28T16:06:02.000Z
2022-03-31T13:50:39.000Z
test/fixtures/multiple-roots/src/index.js
step2yeung/inspectpack
0e332956d5268fb0421b14a9b5a317704cd424bf
[ "MIT" ]
137
2016-03-22T17:53:02.000Z
2022-01-04T11:52:31.000Z
test/fixtures/multiple-roots/src/index.js
step2yeung/inspectpack
0e332956d5268fb0421b14a9b5a317704cd424bf
[ "MIT" ]
21
2017-04-28T01:54:37.000Z
2022-01-02T19:25:05.000Z
/* eslint-disable no-console*/ // Aliased in with webpack config. const { foo1 } = require("package1"); // eslint-disable-line import/no-unresolved const { foo2 } = require("package2"); // eslint-disable-line import/no-unresolved const { differentFoo } = require("different-foo"); console.log("foo1", foo1()); console.log("foo2", foo2()); console.log("differentFoo", differentFoo());
35.090909
81
0.704663
1924112587f15d1f2d055032cd26f8d138846ffd
383
js
JavaScript
router/index.js
haoweichen/LostAndFound
a07d58a92d42db8e2a1209bf9be924496657f895
[ "MIT" ]
6
2017-06-05T13:17:48.000Z
2021-01-08T09:37:05.000Z
router/index.js
haoweichen/LostAndFound
a07d58a92d42db8e2a1209bf9be924496657f895
[ "MIT" ]
null
null
null
router/index.js
haoweichen/LostAndFound
a07d58a92d42db8e2a1209bf9be924496657f895
[ "MIT" ]
1
2020-01-30T11:21:40.000Z
2020-01-30T11:21:40.000Z
var dashboardRouter = require('./dashboard'); var loginRouter = require('./login'); var registerRouter = require('./register'); var logoutRouter = require('./logout'); let configRoutes = (app) => { app.use('/', dashboardRouter); app.use('/login', loginRouter); app.use('/register', registerRouter); app.use('/logout', logoutRouter); } module.exports = configRoutes;
29.461538
45
0.673629
1924eb3cdaf708eeb742b32d3e7bdcb8dab698a7
232
js
JavaScript
resources/assets/js/app.js
esclapes/foodhub.es
d5a2e9cd7ef895630b639cf324aa78bc3e896823
[ "MIT" ]
1
2016-01-30T09:00:17.000Z
2016-01-30T09:00:17.000Z
resources/assets/js/app.js
esclapes/foodhub.es
d5a2e9cd7ef895630b639cf324aa78bc3e896823
[ "MIT" ]
null
null
null
resources/assets/js/app.js
esclapes/foodhub.es
d5a2e9cd7ef895630b639cf324aa78bc3e896823
[ "MIT" ]
null
null
null
import Vue from 'vue'; import Vuex from 'vuex'; import Basket from './components/basket.vue'; import store from './vuex/store'; Vue.use(Vuex); new Vue({ el: '#app', store, components: { basket: Basket } });
16.571429
45
0.607759
1926abe909fef64efa047ba8ec437888d71d5bc9
135
js
JavaScript
docs/html/search/functions_4.js
denpufa/PetFera
fbd313c5f3510edd43a93535150af46322fc5b53
[ "MIT" ]
null
null
null
docs/html/search/functions_4.js
denpufa/PetFera
fbd313c5f3510edd43a93535150af46322fc5b53
[ "MIT" ]
null
null
null
docs/html/search/functions_4.js
denpufa/PetFera
fbd313c5f3510edd43a93535150af46322fc5b53
[ "MIT" ]
null
null
null
var searchData= [ ['funcionario',['Funcionario',['../class_funcionario.html#a7cd39b2c6cd2449162481a8c0e7a2429',1,'Funcionario']]] ];
27
113
0.748148
1926bfa4f29abc9fa52a8a58f14c36292c179073
1,227
js
JavaScript
src/templates/post-bulletins.js
scrumptiousdev/nlnvchurch-gatsbyxwp
3b1830d9b6930f4f766d56928ac9a1b5b6697ae7
[ "MIT" ]
null
null
null
src/templates/post-bulletins.js
scrumptiousdev/nlnvchurch-gatsbyxwp
3b1830d9b6930f4f766d56928ac9a1b5b6697ae7
[ "MIT" ]
null
null
null
src/templates/post-bulletins.js
scrumptiousdev/nlnvchurch-gatsbyxwp
3b1830d9b6930f4f766d56928ac9a1b5b6697ae7
[ "MIT" ]
null
null
null
import React, { Component } from 'react' import PropTypes from 'prop-types' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faChevronLeft } from '@fortawesome/free-solid-svg-icons' import Layout from '../components/Layout' import BulletinCard from '../components/BulletinCard' class BulletinsPostPage extends Component { render() { const { bulletins } = this.props; return ( <> <div className="news__banner text-center bg--offwhite"> <h1 className="nlnv__heading kor-main">교회 주보</h1> <hr className="divider divider--green" /> <a className="nlnv__btn kor-main margin-top-none js-transition" href="/news"><FontAwesomeIcon icon={faChevronLeft} /> 돌아가기</a> </div> <div className="news__container clearfix text-center bg--offwhite"> <div className="col-md-12 col-lg-10 offset-lg-1 text-center margin-top-xl"> <BulletinCard bulletins={bulletins} /> </div> </div> </> ); } } BulletinsPostPage.propTypes = { bulletins: PropTypes.array } const Page = ({ pageContext: { bulletins } }) => ( <Layout> <BulletinsPostPage bulletins={bulletins} /> </Layout> ) export default Page
31.461538
136
0.658517
1926cd7fc5d0410b485c9d3159d6e701f15fbeed
1,335
js
JavaScript
src/data/header-banner.js
github-clonner/pride-london-app
b0001117deab7b47c8717c59826ae2010eb89236
[ "MIT" ]
90
2018-02-18T10:58:27.000Z
2022-01-19T08:11:21.000Z
src/data/header-banner.js
github-clonner/pride-london-app
b0001117deab7b47c8717c59826ae2010eb89236
[ "MIT" ]
445
2018-02-08T11:44:58.000Z
2019-02-20T08:31:21.000Z
src/data/header-banner.js
github-clonner/pride-london-app
b0001117deab7b47c8717c59826ae2010eb89236
[ "MIT" ]
26
2018-02-12T17:25:40.000Z
2020-12-13T10:21:34.000Z
// @flow import * as decode from "../lib/decode"; import type { Decoder } from "../lib/decode"; import type { FieldRef } from "./field-ref"; import decodeFieldRef from "./field-ref"; export type HeaderBanner = { // important to keep this at the top level so type refinement works contentType: "headerBanner", id: string, locale: string, revision: number, fields: { heading: string, headingLine2: string, subHeading: string, heroImage: FieldRef, backgroundColour: string } }; const decodeHeaderBanner = (locale: string): Decoder<HeaderBanner> => decode.shape({ contentType: decode.at( ["sys", "contentType", "sys", "id"], decode.value("headerBanner") ), id: decode.at(["sys", "id"], decode.string), locale: decode.succeed(locale), revision: decode.at(["sys", "revision"], decode.number), fields: decode.field( "fields", decode.shape({ heading: decode.at(["heading", locale], decode.string), headingLine2: decode.at(["headingLine2", locale], decode.string), subHeading: decode.at(["subHeading", locale], decode.string), heroImage: decode.at(["heroImage", locale], decodeFieldRef), backgroundColour: decode.at(["backgroundColour", locale], decode.string) }) ) }); export default decodeHeaderBanner;
30.340909
80
0.650936
192a113eada0d539b088a9777dc13387cca67db9
404
js
JavaScript
bin/discover-and-build-models.js
history-map/history-map-api
13149d8308c9d2e4f369982a10f86403ddb4d570
[ "MIT" ]
null
null
null
bin/discover-and-build-models.js
history-map/history-map-api
13149d8308c9d2e4f369982a10f86403ddb4d570
[ "MIT" ]
null
null
null
bin/discover-and-build-models.js
history-map/history-map-api
13149d8308c9d2e4f369982a10f86403ddb4d570
[ "MIT" ]
null
null
null
var path = require('path'); var app = require(path.resolve(__dirname, '../server/server')); var ds = app.datasources.mapDS; ds.discoverAndBuildModels('Building', { schema: 'history-map' }, function(err, models) { if (err) throw err; models.Building.find(function(err, buildings) { if (err) throw err; console.log('Found:', buildings); ds.disconnect(); }); });
21.263158
63
0.623762
192ad1219af18aca8a0d2b8808c06ff8ed732440
1,481
js
JavaScript
src/javascript/app/ng-wig/ngWigEditableDirective.js
besuhoff/ngWig
9348bbc4b3536d2ada7b895777d3801fd2d25598
[ "MIT" ]
null
null
null
src/javascript/app/ng-wig/ngWigEditableDirective.js
besuhoff/ngWig
9348bbc4b3536d2ada7b895777d3801fd2d25598
[ "MIT" ]
null
null
null
src/javascript/app/ng-wig/ngWigEditableDirective.js
besuhoff/ngWig
9348bbc4b3536d2ada7b895777d3801fd2d25598
[ "MIT" ]
null
null
null
angular.module('ngWig') .directive('ngWigEditable', function () { function init(scope, $element, attrs, ngModelController) { var document = $element[0].ownerDocument; $element.attr('contenteditable', true); //model --> view ngModelController.$render = function () { $element.html(ngModelController.$viewValue || ''); }; //view --> model function viewToModel() { ngModelController.$setViewValue($element.html()); //to support Angular 1.2.x //if (angular.version.minor < 3) { // scope.$apply(); //} } $element.bind('blur keyup change paste', viewToModel); scope.$on('execCommand', function (event, params) { $element[0].focus(); var ieStyleTextSelection = document.selection, command = params.command, options = params.options; if (ieStyleTextSelection) { var textRange = ieStyleTextSelection.createRange(); } if (document.queryCommandSupported && !document.queryCommandSupported(command)) { throw 'The command "' + command + '" is not supported'; } document.execCommand(command, false, options); if (ieStyleTextSelection) { textRange.collapse(false); textRange.select(); } viewToModel(); }); } return { restrict: 'A', require: 'ngModel', replace: true, link: init } } );
25.534483
89
0.572586
192ae2deeb017063c2b36b35993d26fb3f3388f4
5,187
js
JavaScript
wp-content/plugins/wp-recall/add-on/magazin/js/scripts.js
RomaniukVadim/automatic-movies-website
9f96768757c5cb3e9d5ce2902e321cd47cea8885
[ "WTFPL" ]
null
null
null
wp-content/plugins/wp-recall/add-on/magazin/js/scripts.js
RomaniukVadim/automatic-movies-website
9f96768757c5cb3e9d5ce2902e321cd47cea8885
[ "WTFPL" ]
null
null
null
wp-content/plugins/wp-recall/add-on/magazin/js/scripts.js
RomaniukVadim/automatic-movies-website
9f96768757c5cb3e9d5ce2902e321cd47cea8885
[ "WTFPL" ]
5
2018-06-11T23:25:02.000Z
2022-03-27T23:49:04.000Z
/* Удаляем заказ пользователя в корзину */ function rcl_trash_order(e,data){ jQuery('#manage-order, table.order-data').remove(); jQuery('.redirectform').html(data.result); } /* Увеличиваем количество товара в большой корзине */ function rcl_cart_add_product(e){ rcl_preloader_show('#cart-form > table'); var id_post = jQuery(e).parent().data('product'); var number = 1; var dataString = 'action=rcl_add_cart&id_post='+ id_post+'&number='+ number; dataString += '&ajax_nonce='+Rcl.nonce; jQuery.ajax({ type: 'POST', data: dataString, dataType: 'json', url: Rcl.ajaxurl, success: function(data){ rcl_preloader_hide(); if(data['error']){ rcl_notice(data['error'],'error',10000); return false; } if(data['recall']==100){ jQuery('.cart-summa').text(data['data_sumprice']); jQuery('#product-'+data['id_prod']+' .sumprice-product').text(data['sumproduct']); jQuery('#product-'+data['id_prod']+' .number-product').text(data['num_product']); jQuery('.cart-numbers').text(data['allprod']); } } }); return false; } /* Уменьшаем товар количество товара в большой корзине */ function rcl_cart_remove_product(e){ rcl_preloader_show('#cart-form > table'); var id_post = jQuery(e).parent().data('product'); var number = 1; if(number>0){ var dataString = 'action=rcl_remove_product_cart&id_post='+ id_post+'&number='+ number; dataString += '&ajax_nonce='+Rcl.nonce; jQuery.ajax({ type: 'POST', data: dataString, dataType: 'json', url: Rcl.ajaxurl, success: function(data){ rcl_preloader_hide(); if(data['error']){ rcl_notice(data['error'],'error',10000); return false; } if(data['recall']==100){ jQuery('.cart-summa').text(data['data_sumprice']); jQuery('#product-'+data['id_prod']+' .sumprice-product').text(data['sumproduct']); var numprod = data['num_product']; if(numprod>0){ jQuery('#product-'+data['id_prod']+' .number-product').text(data['num_product']); }else{ var numberproduct = 0; jQuery('#product-'+data['id_prod']).remove(); } if(data['allprod']==0) jQuery('.confirm').remove(); jQuery('.cart-numbers').text(data['allprod']); } } }); } return false; } /* Кладем товар в малую корзину */ function rcl_add_cart(e){ var id_post = jQuery(e).data('product'); rcl_preloader_show('#product-'+id_post+' > div'); var id_custom_prod = jQuery(e).attr('name'); if(id_custom_prod){ var number = jQuery('#number-custom-product-'+id_custom_prod).val(); }else{ var number = jQuery('#number_product').val(); } var dataString = 'action=rcl_add_minicart&id_post='+id_post+'&number='+number+'&custom='+id_custom_prod; dataString += '&ajax_nonce='+Rcl.nonce; jQuery.ajax({ type: 'POST', data: dataString, dataType: 'json', url: Rcl.ajaxurl, success: function(data){ rcl_preloader_hide(); if(data['error']){ rcl_notice(data['error'],'error',10000); return false; } if(data['recall']==100){ rcl_close_notice('#rcl-notice > div'); jQuery('.empty-basket').replaceWith(data['empty-content']); jQuery('.cart-summa').html(data['data_sumprice']); jQuery('.cart-numbers').html(data['allprod']); rcl_notice(data['success'],'success'); } } }); return false; } function rcl_pay_order_private_account(e){ var idorder = jQuery(e).data('order'); var dataString = 'action=rcl_pay_order_private_account&idorder='+ idorder; dataString += '&ajax_nonce='+Rcl.nonce; rcl_preloader_show('#cart-form > table'); jQuery.ajax({ type: 'POST', data: dataString, dataType: 'json', url: Rcl.ajaxurl, success: function(data){ rcl_preloader_hide(); if(data['error']){ rcl_notice(data['error'],'error',10000); return false; } if(data['otvet']==100){ jQuery('.order_block').find('.pay_order').each(function() { if(jQuery(e).attr('name')==data['idorder']) jQuery(e).remove(); }); jQuery('.redirectform').html(data['recall']); jQuery('.usercount').html(data['count']); jQuery('.order-'+data['idorder']+' .remove_order').remove(); jQuery('#manage-order').remove(); } } }); return false; }
37.05
109
0.51899
192ae55476dcbf903ba55317a2ddc5a04d9446d1
705
js
JavaScript
src/components/video_list_item.js
suemcnab/react-youtube-pxn-open
bb0d51c2077f679a0d1ba409dca94c63d78f9669
[ "Unlicense" ]
null
null
null
src/components/video_list_item.js
suemcnab/react-youtube-pxn-open
bb0d51c2077f679a0d1ba409dca94c63d78f9669
[ "Unlicense" ]
null
null
null
src/components/video_list_item.js
suemcnab/react-youtube-pxn-open
bb0d51c2077f679a0d1ba409dca94c63d78f9669
[ "Unlicense" ]
null
null
null
import React from 'react'; import Moment from 'moment'; import { Grid } from 'semantic-ui-react'; const VideoListItem = ({video, onVideoSelect}) => { const imageUrl = video.snippet.thumbnails.default.url const pubTime = Moment(video.snippet.publishedAt).format('DD-MM-YYYY, h:mm:ss a') return ( <Grid.Column className="item-panel"> <div onClick={() => onVideoSelect(video)}> <img className='thumbnail' alt='{video.snippet.title}' src={imageUrl} /> <h5 className="meta-small-title">{video.snippet.title}</h5> <div className="meta-info">{video.snippet.channelTitle}</div> <div className="meta-time">{pubTime}</div> </div> </Grid.Column> ); }; export default VideoListItem;
32.045455
82
0.69078
192b826828cf6d669ed3f406eec1bf0fe86196ea
69,378
js
JavaScript
assets/js/prism.js
stephannv/Dawn
2cedd2c761dda9412ba38bdf5a9834c1007e77cb
[ "MIT" ]
null
null
null
assets/js/prism.js
stephannv/Dawn
2cedd2c761dda9412ba38bdf5a9834c1007e77cb
[ "MIT" ]
null
null
null
assets/js/prism.js
stephannv/Dawn
2cedd2c761dda9412ba38bdf5a9834c1007e77cb
[ "MIT" ]
null
null
null
/* PrismJS 1.23.0 https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript+bash+clojure+coffeescript+crystal+docker+elixir+erb+gdscript+git+go+graphql+handlebars+ignore+java+json+latex+liquid+lua+markdown+markup-templating+plsql+pug+python+jsx+ruby+rust+sass+scss+sql+swift+typescript+yaml */ var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(u){var c=/\blang(?:uage)?-([\w-]+)\b/i,n=0,M={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function e(n){return n instanceof W?new W(n.type,e(n.content),n.alias):Array.isArray(n)?n.map(e):n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function r(e,t){var a,n;switch(t=t||{},M.util.type(e)){case"Object":if(n=M.util.objId(e),t[n])return t[n];for(var i in a={},t[n]=a,e)e.hasOwnProperty(i)&&(a[i]=r(e[i],t));return a;case"Array":return n=M.util.objId(e),t[n]?t[n]:(a=[],t[n]=a,e.forEach(function(e,n){a[n]=r(e,t)}),a);default:return e}},getLanguage:function(e){for(;e&&!c.test(e.className);)e=e.parentElement;return e?(e.className.match(c)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(e){var n=(/at [^(\r\n]*\((.*):.+:.+\)$/i.exec(e.stack)||[])[1];if(n){var r=document.getElementsByTagName("script");for(var t in r)if(r[t].src==n)return r[t]}return null}},isActive:function(e,n,r){for(var t="no-"+n;e;){var a=e.classList;if(a.contains(n))return!0;if(a.contains(t))return!1;e=e.parentElement}return!!r}},languages:{extend:function(e,n){var r=M.util.clone(M.languages[e]);for(var t in n)r[t]=n[t];return r},insertBefore:function(r,e,n,t){var a=(t=t||M.languages)[r],i={};for(var l in a)if(a.hasOwnProperty(l)){if(l==e)for(var o in n)n.hasOwnProperty(o)&&(i[o]=n[o]);n.hasOwnProperty(l)||(i[l]=a[l])}var s=t[r];return t[r]=i,M.languages.DFS(M.languages,function(e,n){n===s&&e!=r&&(this[e]=i)}),i},DFS:function e(n,r,t,a){a=a||{};var i=M.util.objId;for(var l in n)if(n.hasOwnProperty(l)){r.call(n,l,n[l],t||l);var o=n[l],s=M.util.type(o);"Object"!==s||a[i(o)]?"Array"!==s||a[i(o)]||(a[i(o)]=!0,e(o,r,l,a)):(a[i(o)]=!0,e(o,r,null,a))}}},plugins:{},highlightAll:function(e,n){M.highlightAllUnder(document,e,n)},highlightAllUnder:function(e,n,r){var t={callback:r,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};M.hooks.run("before-highlightall",t),t.elements=Array.prototype.slice.apply(t.container.querySelectorAll(t.selector)),M.hooks.run("before-all-elements-highlight",t);for(var a,i=0;a=t.elements[i++];)M.highlightElement(a,!0===n,t.callback)},highlightElement:function(e,n,r){var t=M.util.getLanguage(e),a=M.languages[t];e.className=e.className.replace(c,"").replace(/\s+/g," ")+" language-"+t;var i=e.parentElement;i&&"pre"===i.nodeName.toLowerCase()&&(i.className=i.className.replace(c,"").replace(/\s+/g," ")+" language-"+t);var l={element:e,language:t,grammar:a,code:e.textContent};function o(e){l.highlightedCode=e,M.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,M.hooks.run("after-highlight",l),M.hooks.run("complete",l),r&&r.call(l.element)}if(M.hooks.run("before-sanity-check",l),!l.code)return M.hooks.run("complete",l),void(r&&r.call(l.element));if(M.hooks.run("before-highlight",l),l.grammar)if(n&&u.Worker){var s=new Worker(M.filename);s.onmessage=function(e){o(e.data)},s.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else o(M.highlight(l.code,l.grammar,l.language));else o(M.util.encode(l.code))},highlight:function(e,n,r){var t={code:e,grammar:n,language:r};return M.hooks.run("before-tokenize",t),t.tokens=M.tokenize(t.code,t.grammar),M.hooks.run("after-tokenize",t),W.stringify(M.util.encode(t.tokens),t.language)},tokenize:function(e,n){var r=n.rest;if(r){for(var t in r)n[t]=r[t];delete n.rest}var a=new i;return I(a,a.head,e),function e(n,r,t,a,i,l){for(var o in t)if(t.hasOwnProperty(o)&&t[o]){var s=t[o];s=Array.isArray(s)?s:[s];for(var u=0;u<s.length;++u){if(l&&l.cause==o+","+u)return;var c=s[u],g=c.inside,f=!!c.lookbehind,h=!!c.greedy,d=c.alias;if(h&&!c.pattern.global){var v=c.pattern.toString().match(/[imsuy]*$/)[0];c.pattern=RegExp(c.pattern.source,v+"g")}for(var p=c.pattern||c,m=a.next,y=i;m!==r.tail&&!(l&&y>=l.reach);y+=m.value.length,m=m.next){var k=m.value;if(r.length>n.length)return;if(!(k instanceof W)){var b,x=1;if(h){if(!(b=z(p,y,n,f)))break;var w=b.index,A=b.index+b[0].length,P=y;for(P+=m.value.length;P<=w;)m=m.next,P+=m.value.length;if(P-=m.value.length,y=P,m.value instanceof W)continue;for(var S=m;S!==r.tail&&(P<A||"string"==typeof S.value);S=S.next)x++,P+=S.value.length;x--,k=n.slice(y,P),b.index-=y}else if(!(b=z(p,0,k,f)))continue;var w=b.index,E=b[0],O=k.slice(0,w),L=k.slice(w+E.length),N=y+k.length;l&&N>l.reach&&(l.reach=N);var j=m.prev;O&&(j=I(r,j,O),y+=O.length),q(r,j,x);var C=new W(o,g?M.tokenize(E,g):E,d,E);if(m=I(r,j,C),L&&I(r,m,L),1<x){var _={cause:o+","+u,reach:N};e(n,r,t,m.prev,y,_),l&&_.reach>l.reach&&(l.reach=_.reach)}}}}}}(e,a,n,a.head,0),function(e){var n=[],r=e.head.next;for(;r!==e.tail;)n.push(r.value),r=r.next;return n}(a)},hooks:{all:{},add:function(e,n){var r=M.hooks.all;r[e]=r[e]||[],r[e].push(n)},run:function(e,n){var r=M.hooks.all[e];if(r&&r.length)for(var t,a=0;t=r[a++];)t(n)}},Token:W};function W(e,n,r,t){this.type=e,this.content=n,this.alias=r,this.length=0|(t||"").length}function z(e,n,r,t){e.lastIndex=n;var a=e.exec(r);if(a&&t&&a[1]){var i=a[1].length;a.index+=i,a[0]=a[0].slice(i)}return a}function i(){var e={value:null,prev:null,next:null},n={value:null,prev:e,next:null};e.next=n,this.head=e,this.tail=n,this.length=0}function I(e,n,r){var t=n.next,a={value:r,prev:n,next:t};return n.next=a,t.prev=a,e.length++,a}function q(e,n,r){for(var t=n.next,a=0;a<r&&t!==e.tail;a++)t=t.next;(n.next=t).prev=n,e.length-=a}if(u.Prism=M,W.stringify=function n(e,r){if("string"==typeof e)return e;if(Array.isArray(e)){var t="";return e.forEach(function(e){t+=n(e,r)}),t}var a={type:e.type,content:n(e.content,r),tag:"span",classes:["token",e.type],attributes:{},language:r},i=e.alias;i&&(Array.isArray(i)?Array.prototype.push.apply(a.classes,i):a.classes.push(i)),M.hooks.run("wrap",a);var l="";for(var o in a.attributes)l+=" "+o+'="'+(a.attributes[o]||"").replace(/"/g,"&quot;")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+l+">"+a.content+"</"+a.tag+">"},!u.document)return u.addEventListener&&(M.disableWorkerMessageHandler||u.addEventListener("message",function(e){var n=JSON.parse(e.data),r=n.language,t=n.code,a=n.immediateClose;u.postMessage(M.highlight(t,M.languages[r],r)),a&&u.close()},!1)),M;var e=M.util.currentScript();function r(){M.manual||M.highlightAll()}if(e&&(M.filename=e.src,e.hasAttribute("data-manual")&&(M.manual=!0)),!M.manual){var t=document.readyState;"loading"===t||"interactive"===t&&e&&e.defer?document.addEventListener("DOMContentLoaded",r):window.requestAnimationFrame?window.requestAnimationFrame(r):window.setTimeout(r,16)}return M}(_self);"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism); Prism.languages.markup={comment:/<!--[\s\S]*?-->/,prolog:/<\?[\s\S]+?\?>/,doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/,name:/[^\s<>'"]+/}},cdata:/<!\[CDATA\[[\s\S]*?]]>/i,tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(a){"entity"===a.type&&(a.attributes.title=a.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(a,e){var s={};s["language-"+e]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[e]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};n["language-"+e]={pattern:/[\s\S]+/,inside:Prism.languages[e]};var t={};t[a]={pattern:RegExp("(<__[^>]*>)(?:<!\\[CDATA\\[(?:[^\\]]|\\](?!\\]>))*\\]\\]>|(?!<!\\[CDATA\\[)[^])*?(?=</__>)".replace(/__/g,function(){return a}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",t)}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml; !function(s){var e=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;s.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|(?:[^\\\\\r\n()\"']|\\\\[^])*)\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:RegExp("[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+e.source+")*(?=\\s*\\{)"),string:{pattern:e,greedy:!0},property:/(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,important:/!important\b/i,function:/[-a-z0-9]+(?=\()/i,punctuation:/[(){};:,]/},s.languages.css.atrule.inside.rest=s.languages.css;var t=s.languages.markup;t&&(t.tag.addInlined("style","css"),s.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/(^|["'\s])style\s*=\s*(?:"[^"]*"|'[^']*')/i,lookbehind:!0,inside:{"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{style:{pattern:/(["'])[\s\S]+(?=["']$)/,lookbehind:!0,alias:"language-css",inside:s.languages.css},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},"attr-name":/^style/i}}},t.tag))}(Prism); Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}; Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-flags":/[a-z]+$/,"regex-delimiter":/^\/|\/$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.js=Prism.languages.javascript; !function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},a={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|-=|\+\+?|\+=|!=?|~|\*\*?|\*=|\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\^=?|\|\|?|\|=|\?|:/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)\w+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b\w+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+?)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:a},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)(["'])(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|(?!\2)[^\\`$])*\2/,lookbehind:!0,greedy:!0,inside:a}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:a.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|==?|!=?|=~|<<[<-]?|[&\d]?>>|\d?[<>]&?|&[>&]?|\|[&|]?|<=?|>=?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var s=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=a.variable[1].inside,o=0;o<s.length;o++)i[s[o]]=e.languages.bash[s[o]];e.languages.shell=e.languages.bash}(Prism); Prism.languages.clojure={comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},operator:/(?:::|[:|'])\b[a-z][\w*+!?-]*\b/i,keyword:{pattern:/([^\w+*'?-])(?:def|if|do|let|\.\.|quote|var|->>|->|fn|loop|recur|throw|try|monitor-enter|\.|new|set!|def\-|defn|defn\-|defmacro|defmulti|defmethod|defstruct|defonce|declare|definline|definterface|defprotocol|==|defrecord|>=|deftype|<=|defproject|ns|\*|\+|\-|\/|<|=|>|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|conj|cons|constantly|cond|if-not|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|deref|difference|disj|dissoc|distinct|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|for|fnseq|frest|gensym|get-proxy-class|get|hash-map|hash-set|identical\?|identity|if-let|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|line-seq|list\*|list|load|load-file|locking|long|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|name|namespace|neg\?|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|time|to-array|to-array-2d|tree-seq|true\?|union|up|update-proxy|val|vals|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[^\w+*'?-])/,lookbehind:!0},boolean:/\b(?:true|false|nil)\b/,number:/\b[\da-f]+\b/i,punctuation:/[{}\[\](),]/}; !function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(Prism); !function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var n={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp("%r(?:"+["([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[^])*\\1[gim]{0,3}","\\((?:[^()\\\\]|\\\\[^])*\\)[gim]{0,3}","\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[^])*\\}[gim]{0,3}","\\[(?:[^\\[\\]\\\\]|\\\\[^])*\\][gim]{0,3}","<(?:[^<>\\\\]|\\\\[^])*>[gim]{0,3}"].join("|")+")"),greedy:!0,inside:{interpolation:n}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[gim]{0,3}(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp("%[qQiIwWxs]?(?:"+["([^a-zA-Z0-9\\s{(\\[<])(?:(?!\\1)[^\\\\]|\\\\[^])*\\1","\\((?:[^()\\\\]|\\\\[^])*\\)","\\{(?:[^#{}\\\\]|#(?:\\{[^}]+\\})?|\\\\[^])*\\}","\\[(?:[^\\[\\]\\\\]|\\\\[^])*\\]","<(?:[^<>\\\\]|\\\\[^])*>"].join("|")+")"),greedy:!0,inside:{interpolation:n}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n}}],e.languages.rb=e.languages.ruby}(Prism); !function(e){e.languages.crystal=e.languages.extend("ruby",{keyword:[/\b(?:abstract|alias|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|rescue|return|require|select|self|sizeof|struct|super|then|type|typeof|uninitialized|union|unless|until|when|while|with|yield|__DIR__|__END_LINE__|__FILE__|__LINE__)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/}),e.languages.insertBefore("crystal","string",{attribute:{pattern:/@\[.+?\]/,alias:"attr-name",inside:{delimiter:{pattern:/^@\[|\]$/,alias:"tag"},rest:e.languages.crystal}},expansion:[{pattern:/\{\{.+?\}\}/,inside:{delimiter:{pattern:/^\{\{|\}\}$/,alias:"tag"},rest:e.languages.crystal}},{pattern:/\{%.+?%\}/,inside:{delimiter:{pattern:/^\{%|%\}$/,alias:"tag"},rest:e.languages.crystal}}]})}(Prism); !function(e){var r="(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)".replace(/<SP_BS>/g,function(){return"\\\\[\r\n](?:\\s|\\\\[\r\n]|#.*(?!.))*(?![\\s#]|\\\\[\r\n])"}),n="\"(?:[^\"\\\\\r\n]|\\\\(?:\r\n|[^]))*\"|'(?:[^'\\\\\r\n]|\\\\(?:\r\n|[^]))*'",t="--[\\w-]+=(?:<STR>|(?![\"'])(?:[^\\s\\\\]|\\\\.)+)".replace(/<STR>/g,function(){return n}),o={pattern:RegExp(n),greedy:!0},i={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function a(e,n){return e=e.replace(/<OPT>/g,function(){return t}).replace(/<SP>/g,function(){return r}),RegExp(e,n)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:a("(^(?:ONBUILD<SP>)?\\w+<SP>)<OPT>(?:<SP><OPT>)*","i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[o,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:a("(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\\b","i"),lookbehind:!0,greedy:!0},{pattern:a("(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\\\]+<SP>)AS","i"),lookbehind:!0,greedy:!0},{pattern:a("(^ONBUILD<SP>)\\w+","i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:i,string:o,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:i},e.languages.dockerfile=e.languages.docker}(Prism); Prism.languages.elixir={comment:/#.*/m,regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},"attr-name":/\w+\??:(?!:)/,capture:{pattern:/(^|[^&])&(?:[^&\s\d()][^\s()]*|(?=\())/,lookbehind:!0,alias:"function"},argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|exception|impl|module|p|protocol|struct|delegate)?|do|else|end|fn|for|if|import|not|or|require|rescue|try|unless|use|when)\b/,boolean:/\b(?:true|false|nil)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},Prism.languages.insertBefore("elixir","keyword",{module:{pattern:/\b(defmodule\s)[A-Z][\w.\\]+/,lookbehind:!0,alias:"class-name"},function:{pattern:/\b(defp?\s)[\w.\\]+/,lookbehind:!0}}),Prism.languages.elixir.string.forEach(function(e){e.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:Prism.languages.elixir}}}}); !function(h){function v(e,n){return"___"+e.toUpperCase()+n+"___"}Object.defineProperties(h.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,r,e,o){if(a.language===r){var c=a.tokenStack=[];a.code=a.code.replace(e,function(e){if("function"==typeof o&&!o(e))return e;for(var n,t=c.length;-1!==a.code.indexOf(n=v(r,t));)++t;return c[t]=e,n}),a.grammar=h.languages.markup}}},tokenizePlaceholders:{value:function(p,k){if(p.language===k&&p.tokenStack){p.grammar=h.languages[k];var m=0,d=Object.keys(p.tokenStack);!function e(n){for(var t=0;t<n.length&&!(m>=d.length);t++){var a=n[t];if("string"==typeof a||a.content&&"string"==typeof a.content){var r=d[m],o=p.tokenStack[r],c="string"==typeof a?a:a.content,i=v(k,r),u=c.indexOf(i);if(-1<u){++m;var g=c.substring(0,u),l=new h.Token(k,h.tokenize(o,p.grammar),"language-"+k,o),s=c.substring(u+i.length),f=[];g&&f.push.apply(f,e([g])),f.push(l),s&&f.push.apply(f,e([s])),"string"==typeof a?n.splice.apply(n,[t,1].concat(f)):a.content=f}}else a.content&&e(a.content)}return n}(p.tokens)}}}})}(Prism); !function(n){n.languages.erb=n.languages.extend("ruby",{}),n.languages.insertBefore("erb","comment",{delimiter:{pattern:/^<%=?|%>$/,alias:"punctuation"}}),n.hooks.add("before-tokenize",function(e){n.languages["markup-templating"].buildPlaceholders(e,"erb",/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s[\s\S]*?^=end)+?%>/gm)}),n.hooks.add("after-tokenize",function(e){n.languages["markup-templating"].tokenizePlaceholders(e,"erb")})}(Prism); Prism.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class_name|class|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}; Prism.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/m,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/m}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}; Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"]; Prism.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Prism.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:true|false)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*)[a-zA-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,punctuation:/[!(){}\[\]:=,]/,constant:/\b(?!ID\b)[A-Z][A-Z_\d]*\b/}; !function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/i,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:true|false)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/i,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",function(a){e.languages["markup-templating"].buildPlaceholders(a,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)}),e.hooks.add("after-tokenize",function(a){e.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")})}(Prism); !function(n){n.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},n.languages.gitignore=n.languages.ignore,n.languages.hgignore=n.languages.ignore,n.languages.npmignore=n.languages.ignore}(Prism); !function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n="(^|[^\\w.])(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*",a={pattern:RegExp(n+"[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b"),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[a,{pattern:RegExp(n+"[A-Z]\\w*(?=\\s+\\w+\\s*[;,=())])"),lookbehind:!0,inside:a.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(\:\:\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":a,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp("(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?".replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism); Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:true|false)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json; !function(a){var e=/\\(?:[^a-z()[\]]|[a-z*]+)/i,n={"equation-command":{pattern:e,alias:"regex"}};a.languages.latex={comment:/%.*/m,cdata:{pattern:/(\\begin\{((?:verbatim|lstlisting)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:n,alias:"string"},{pattern:/(\\begin\{((?:equation|math|eqnarray|align|multline|gather)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"string"}],keyword:{pattern:/(\\(?:begin|end|ref|cite|label|usepackage|documentclass)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:part|chapter|section|subsection|frametitle|subsubsection|paragraph|subparagraph|subsubparagraph|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\}(?:\[[^\]]+\])?)/,lookbehind:!0,alias:"class-name"},function:{pattern:e,alias:"selector"},punctuation:/[[\]{}&]/},a.languages.tex=a.languages.latex,a.languages.context=a.languages.latex}(Prism); Prism.languages.liquid={keyword:/\b(?:comment|endcomment|if|elsif|else|endif|unless|endunless|for|endfor|case|endcase|when|in|break|assign|continue|limit|offset|range|reversed|raw|endraw|capture|endcapture|tablerow|endtablerow)\b/,number:/\b0b[01]+\b|\b0x(?:\.[\da-fp-]+|[\da-f]+(?:\.[\da-fp-]+)?)\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?[df]?/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]?|\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m,lookbehind:!0},function:{pattern:/(^|[\s;|&])(?:append|prepend|capitalize|cycle|cols|increment|decrement|abs|at_least|at_most|ceil|compact|concat|date|default|divided_by|downcase|escape|escape_once|first|floor|join|last|lstrip|map|minus|modulo|newline_to_br|plus|remove|remove_first|replace|replace_first|reverse|round|rstrip|size|slice|sort|sort_natural|split|strip|strip_html|strip_newlines|times|truncate|truncatewords|uniq|upcase|url_decode|url_encode|include|paginate)(?=$|[\s;|&])/,lookbehind:!0}}; Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}; !function(u){function n(n){return n=n.replace(/<inner>/g,function(){return"(?:\\\\.|[^\\\\\n\r]|(?:\n|\r\n?)(?!\n|\r\n?))"}),RegExp("((?:^|[^\\\\])(?:\\\\{2})*)(?:"+n+")")}var e="(?:\\\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\\\|\r\n`])+",t="\\|?__(?:\\|__)+\\|?(?:(?:\n|\r\n?)|(?![^]))".replace(/__/g,function(){return e}),a="\\|?[ \t]*:?-{3,}:?[ \t]*(?:\\|[ \t]*:?-{3,}:?[ \t]*)+\\|?(?:\n|\r\n?)";u.languages.markdown=u.languages.extend("markup",{}),u.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:u.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+t+a+"(?:"+t+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+t+a+")(?:"+t+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(e),inside:u.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+t+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+t+"$"),inside:{"table-header":{pattern:RegExp(e),alias:"important",inside:u.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/``.+?``|`[^`\r\n]+`/,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n("\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*"),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n("\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*"),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n("(~~?)(?:(?!~)<inner>)+?\\2"),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},url:{pattern:n('!?\\[(?:(?!\\])<inner>)+\\](?:\\([^\\s)]+(?:[\t ]+"(?:\\\\.|[^"\\\\])*")?\\)|[ \t]?\\[(?:(?!\\])<inner>)+\\])'),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(e){["url","bold","italic","strike"].forEach(function(n){e!==n&&(u.languages.markdown[e].inside.content.inside[n]=u.languages.markdown[n])})}),u.hooks.add("after-tokenize",function(n){"markdown"!==n.language&&"md"!==n.language||!function n(e){if(e&&"string"!=typeof e)for(var t=0,a=e.length;t<a;t++){var i=e[t];if("code"===i.type){var r=i.content[1],o=i.content[3];if(r&&o&&"code-language"===r.type&&"code-block"===o.type&&"string"==typeof r.content){var l=r.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(l=(/[a-z][\w-]*/i.exec(l)||[""])[0].toLowerCase());o.alias?"string"==typeof o.alias?o.alias=[o.alias,s]:o.alias.push(s):o.alias=[s]}}else n(i.content)}}(n.tokens)}),u.hooks.add("wrap",function(n){if("code-block"===n.type){for(var e="",t=0,a=n.classes.length;t<a;t++){var i=n.classes[t],r=/language-(.+)/.exec(i);if(r){e=r[1];break}}var o=u.languages[e];if(o){var l=document.createElement("div");l.innerHTML=n.content;var s=l.textContent;n.content=u.highlight(s,o,e)}else if(e&&"none"!==e&&u.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());n.attributes.id=d,u.plugins.autoloader.loadLanguages(e,function(){var n=document.getElementById(d);n&&(n.innerHTML=u.highlight(n.textContent,u.languages[e],e))})}}}),u.languages.md=u.languages.markdown}(Prism); Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}; !function(E){var A=E.languages.plsql=E.languages.extend("sql",{comment:[/\/\*[\s\S]*?\*\//,/--.*/]}),T=A.keyword;Array.isArray(T)||(T=A.keyword=[T]),T.unshift(/\b(?:ACCESS|AGENT|AGGREGATE|ARRAY|ARROW|AT|ATTRIBUTE|AUDIT|AUTHID|BFILE_BASE|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BYTE|CALLING|CHAR_BASE|CHARSET(?:FORM|ID)|CLOB_BASE|COLAUTH|COLLECT|CLUSTERS?|COMPILED|COMPRESS|CONSTANT|CONSTRUCTOR|CONTEXT|CRASH|CUSTOMDATUM|DANGLING|DATE_BASE|DEFINE|DETERMINISTIC|DURATION|ELEMENT|EMPTY|EXCEPTIONS?|EXCLUSIVE|EXTERNAL|FINAL|FORALL|FORM|FOUND|GENERAL|HEAP|HIDDEN|IDENTIFIED|IMMEDIATE|INCLUDING|INCREMENT|INDICATOR|INDEXES|INDICES|INFINITE|INITIAL|ISOPEN|INSTANTIABLE|INTERFACE|INVALIDATE|JAVA|LARGE|LEADING|LENGTH|LIBRARY|LIKE[24C]|LIMITED|LONG|LOOP|MAP|MAXEXTENTS|MAXLEN|MEMBER|MINUS|MLSLABEL|MULTISET|NAME|NAN|NATIVE|NEW|NOAUDIT|NOCOMPRESS|NOCOPY|NOTFOUND|NOWAIT|NUMBER(?:_BASE)?|OBJECT|OCI(?:COLL|DATE|DATETIME|DURATION|INTERVAL|LOBLOCATOR|NUMBER|RAW|REF|REFCURSOR|ROWID|STRING|TYPE)|OFFLINE|ONLINE|ONLY|OPAQUE|OPERATOR|ORACLE|ORADATA|ORGANIZATION|ORL(?:ANY|VARY)|OTHERS|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETERS?|PASCAL|PCTFREE|PIPE(?:LINED)?|PRAGMA|PRIOR|PRIVATE|RAISE|RANGE|RAW|RECORD|REF|REFERENCE|REM|REMAINDER|RESULT|RESOURCE|RETURNING|REVERSE|ROW(?:ID|NUM|TYPE)|SAMPLE|SB[124]|SEGMENT|SELF|SEPARATE|SEQUENCE|SHORT|SIZE(?:_T)?|SPARSE|SQL(?:CODE|DATA|NAME|STATE)|STANDARD|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUCCESSFUL|SYNONYM|SYSDATE|TABAUTH|TDO|THE|TIMEZONE_(?:ABBR|HOUR|MINUTE|REGION)|TRAILING|TRANSAC(?:TIONAL)?|TRUSTED|UB[124]|UID|UNDER|UNTRUSTED|VALIDATE|VALIST|VARCHAR2|VARIABLE|VARIANCE|VARRAY|VIEWS|VOID|WHENEVER|WRAPPED|ZONE)\b/i);var R=A.operator;Array.isArray(R)||(R=A.operator=[R]),R.unshift(/:=/)}(Prism); !function(e){e.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:e.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"}}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:if|unless|else|case|when|default|each|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:if|unless|else|case|when|default|while)\b/,alias:"keyword"},rest:e.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:block|extends|include|append|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:e.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:e.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:e.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:e.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:e.languages.javascript}],punctuation:/[.\-!=|]+/};for(var t=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],n={},a=0,i=t.length;a<i;a++){var r=t[a];r="string"==typeof r?{filter:r,language:r}:r,e.languages[r.language]&&(n["filter-"+r.filter]={pattern:RegExp("(^([\t ]*)):{{filter_name}}(?:(?:\r?\n|\r(?!\n))(?:\\2[\t ].+|\\s*?(?=\r?\n|\r)))+".replace("{{filter_name}}",function(){return r.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},rest:e.languages[r.language]}})}e.languages.insertBefore("pug","filter",n)}(Prism); Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:{{)*){(?!{)(?:[^{}]|{(?!{)(?:[^{}]|{(?!{)(?:[^{}])+})+})+}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^\s*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python; !function(o){var t=o.util.clone(o.languages.javascript),e="(?:\\{<S>*\\.{3}(?:[^{}]|<BRACES>)*\\})";function n(t,n){return t=t.replace(/<S>/g,function(){return"(?:\\s|//.*(?!.)|/\\*(?:[^*]|\\*(?!/))\\*/)"}).replace(/<BRACES>/g,function(){return"(?:\\{(?:\\{(?:\\{[^{}]*\\}|[^{}])*\\}|[^{}])*\\})"}).replace(/<SPREAD>/g,function(){return e}),RegExp(t,n)}e=n(e).source,o.languages.jsx=o.languages.extend("markup",t),o.languages.jsx.tag.pattern=n("</?(?:[\\w.:-]+(?:<S>+(?:[\\w.:$-]+(?:=(?:\"(?:\\\\[^]|[^\\\\\"])*\"|'(?:\\\\[^]|[^\\\\'])*'|[^\\s{'\"/>=]+|<BRACES>))?|<SPREAD>))*<S>*/?)?>"),o.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,o.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[^]|[^\\"])*"|'(?:\\[^]|[^\\'])*'|[^\s'">]+)/i,o.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,o.languages.jsx.tag.inside.comment=t.comment,o.languages.insertBefore("inside","attr-name",{spread:{pattern:n("<SPREAD>"),inside:o.languages.jsx}},o.languages.jsx.tag),o.languages.insertBefore("inside","attr-value",{script:{pattern:n("=<BRACES>"),inside:{"script-punctuation":{pattern:/^=(?={)/,alias:"punctuation"},rest:o.languages.jsx},alias:"language-javascript"}},o.languages.jsx.tag);var i=function(t){return t?"string"==typeof t?t:"string"==typeof t.content?t.content:t.content.map(i).join(""):""},r=function(t){for(var n=[],e=0;e<t.length;e++){var a=t[e],g=!1;if("string"!=typeof a&&("tag"===a.type&&a.content[0]&&"tag"===a.content[0].type?"</"===a.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===i(a.content[0].content[1])&&n.pop():"/>"===a.content[a.content.length-1].content||n.push({tagName:i(a.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===a.type&&"{"===a.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===a.type&&"}"===a.content?n[n.length-1].openedBraces--:g=!0),(g||"string"==typeof a)&&0<n.length&&0===n[n.length-1].openedBraces){var s=i(a);e<t.length-1&&("string"==typeof t[e+1]||"plain-text"===t[e+1].type)&&(s+=i(t[e+1]),t.splice(e+1,1)),0<e&&("string"==typeof t[e-1]||"plain-text"===t[e-1].type)&&(s=i(t[e-1])+s,t.splice(e-1,1),e--),t[e]=new o.Token("plain-text",s,null,s)}a.content&&"string"!=typeof a.content&&r(a.content)}};o.hooks.add("after-tokenize",function(t){"jsx"!==t.language&&"tsx"!==t.language||r(t.tokens)})}(Prism); !function(e){for(var a="/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|<self>)*\\*/",t=0;t<2;t++)a=a.replace(/<self>/g,function(){return a});a=a.replace(/<self>/g,function(){return"[^\\s\\S]"}),e.languages.rust={comment:[{pattern:RegExp("(^|[^\\\\])"+a),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0,alias:"string"},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|Self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:[ui](?:8|16|32|64|128|size)|f(?:32|64)|bool|char|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:[iu](?:8|16|32|64|size)?|f32|f64))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism); !function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,inside:{atrule:/(?:@[\w-]+|[+=])/m}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|or|not)\b/,{pattern:/(\s+)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,inside:{punctuation:/:/,variable:t,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:a,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/,lookbehind:!0}})}(Prism); Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]+))/m,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:if|else(?: if)?|forward|for|each|while|import|use|extend|debug|warn|mixin|include|function|return|content)\b/i,{pattern:/( +)(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|with|show|hide)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:true|false)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|or|not)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss; Prism.languages.swift=Prism.languages.extend("clike",{string:{pattern:/("|')(?:\\(?:\((?:[^()]|\([^)]+\))+\)|\r\n|[^(])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/\\\((?:[^()]|\([^)]+\))+\)/,inside:{delimiter:{pattern:/^\\\(|\)$/,alias:"variable"}}}}},keyword:/\b(?:as|associativity|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic(?:Type)?|else|enum|extension|fallthrough|final|for|func|get|guard|if|import|in|infix|init|inout|internal|is|lazy|left|let|mutating|new|none|nonmutating|operator|optional|override|postfix|precedence|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|Self|set|some|static|struct|subscript|super|switch|throws?|try|Type|typealias|unowned|unsafe|var|weak|where|while|willSet|__(?:COLUMN__|FILE__|FUNCTION__|LINE__))\b/,number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,constant:/\b(?:nil|[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,atrule:/@\b(?:IB(?:Outlet|Designable|Action|Inspectable)|class_protocol|exported|noreturn|NS(?:Copying|Managed)|objc|UIApplicationMain|auto_closure)\b/,builtin:/\b(?:[A-Z]\S+|abs|advance|alignof(?:Value)?|assert|contains|count(?:Elements)?|debugPrint(?:ln)?|distance|drop(?:First|Last)|dump|enumerate|equal|filter|find|first|getVaList|indices|isEmpty|join|last|lexicographicalCompare|map|max(?:Element)?|min(?:Element)?|numericCast|overlaps|partition|print(?:ln)?|reduce|reflect|reverse|sizeof(?:Value)?|sort(?:ed)?|split|startsWith|stride(?:of(?:Value)?)?|suffix|swap|toDebugString|toString|transcode|underestimateCount|unsafeBitCast|with(?:ExtendedLifetime|Unsafe(?:MutablePointers?|Pointers?)|VaList))\b/}),Prism.languages.swift.string.inside.interpolation.inside.rest=Prism.languages.swift; !function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},keyword:/\b(?:abstract|as|asserts|async|await|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|is|keyof|let|module|namespace|new|null|of|package|private|protected|public|readonly|return|require|set|static|super|switch|this|throw|try|type|typeof|undefined|var|void|while|with|yield)\b/,builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),delete e.languages.typescript.parameter;var n=e.languages.extend("typescript",{});delete n["class-name"],e.languages.typescript["class-name"].inside=n,e.languages.insertBefore("typescript","function",{"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),e.languages.ts=e.languages.typescript}(Prism); !function(e){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,t="(?:"+r.source+"(?:[ \t]+"+n.source+")?|"+n.source+"(?:[ \t]+"+r.source+")?)",a="(?:[^\\s\\x00-\\x08\\x0e-\\x1f!\"#%&'*,\\-:>?@[\\]`{|}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*".replace(/<PLAIN>/g,function(){return"[^\\s\\x00-\\x08\\x0e-\\x1f,[\\]{}\\x7f-\\x84\\x86-\\x9f\\ud800-\\udfff\\ufffe\\uffff]"}),d="\"(?:[^\"\\\\\r\n]|\\\\.)*\"|'(?:[^'\\\\\r\n]|\\\\.)*'";function o(e,n){n=(n||"").replace(/m/g,"")+"m";var r="([:\\-,[{]\\s*(?:\\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|]|}|(?:[\r\n]\\s*)?#))".replace(/<<prop>>/g,function(){return t}).replace(/<<value>>/g,function(){return e});return RegExp(r,n)}e.languages.yaml={scalar:{pattern:RegExp("([\\-:]\\s*(?:\\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\\S[^\r\n]*(?:\\2[^\r\n]+)*)".replace(/<<prop>>/g,function(){return t})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp("((?:^|[:\\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\\s*:\\s)".replace(/<<prop>>/g,function(){return t}).replace(/<<key>>/g,function(){return"(?:"+a+"|"+d+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o("\\d{4}-\\d\\d?-\\d\\d?(?:[tT]|[ \t]+)\\d\\d?:\\d{2}:\\d{2}(?:\\.\\d*)?(?:[ \t]*(?:Z|[-+]\\d\\d?(?::\\d{2})?))?|\\d{4}-\\d{2}-\\d{2}|\\d\\d?:\\d{2}(?::\\d{2}(?:\\.\\d*)?)?"),lookbehind:!0,alias:"number"},boolean:{pattern:o("true|false","i"),lookbehind:!0,alias:"important"},null:{pattern:o("null|~","i"),lookbehind:!0,alias:"important"},string:{pattern:o(d),lookbehind:!0,greedy:!0},number:{pattern:o("[+-]?(?:0x[\\da-f]+|0o[0-7]+|(?:\\d+(?:\\.\\d*)?|\\.?\\d+)(?:e[+-]?\\d+)?|\\.inf|\\.nan)","i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism);
1,734.45
7,155
0.605869
192c5e86aaf590c6a145094279b32fb932ec0823
788
js
JavaScript
services/blueprint/accessMqttCredentials.js
mattotodd/the-beach
b04300096179483ac5a14e290c0aa7bf72822371
[ "MIT" ]
null
null
null
services/blueprint/accessMqttCredentials.js
mattotodd/the-beach
b04300096179483ac5a14e290c0aa7bf72822371
[ "MIT" ]
null
null
null
services/blueprint/accessMqttCredentials.js
mattotodd/the-beach
b04300096179483ac5a14e290c0aa7bf72822371
[ "MIT" ]
null
null
null
var when = require("when"); var request = require('request'); var getApiRoot = require('../../config').getApiRoot; var BLUEPRINT_BASE_URL = getApiRoot('xively.services.blueprint'); var createMqttCredentials = function(accountId, jwt, entityType, entityId){ return when.promise(function(resolve) { request.post({ url: BLUEPRINT_BASE_URL+'access/mqtt-credentials', headers: { Authorization: "Bearer "+ jwt }, form:{ accountId: accountId, entityId: entityId, entityType: entityType } }, function(err,httpResponse,body){ var resp = JSON.parse(body); resolve(resp); }); }); } module.exports = { create: createMqttCredentials };
26.266667
75
0.588832
192dbd907c6ca6108a52d61aa3340e555426f438
443
js
JavaScript
src/components/Chart/Chart.js
JahanU/expense-tracker
7cf4173a1cb5799c9319f02b8a9401dfc4d152b1
[ "MIT" ]
1
2022-02-26T20:46:08.000Z
2022-02-26T20:46:08.000Z
src/components/Chart/Chart.js
JahanU/expense-tracker
7cf4173a1cb5799c9319f02b8a9401dfc4d152b1
[ "MIT" ]
null
null
null
src/components/Chart/Chart.js
JahanU/expense-tracker
7cf4173a1cb5799c9319f02b8a9401dfc4d152b1
[ "MIT" ]
null
null
null
import './Chart.css'; import ChartBar from './ChartBar'; function Chart(props) { return ( <div className='chart'> {props.dataPoints.map((month) => ( <ChartBar key={month.id} value={month.value} maxValue={props.maxValue} label={month.label} /> ))} </ div> ) } export default Chart;
22.15
46
0.437923
192e304278e8216a395d59249f0dcac861c463c6
2,009
js
JavaScript
docs/dev/sample-plugin/lib/open-sidecar.js
rvennam/kui
cee9c6f78a3df0698b5bb02cb48331908f5243e5
[ "Apache-2.0" ]
null
null
null
docs/dev/sample-plugin/lib/open-sidecar.js
rvennam/kui
cee9c6f78a3df0698b5bb02cb48331908f5243e5
[ "Apache-2.0" ]
null
null
null
docs/dev/sample-plugin/lib/open-sidecar.js
rvennam/kui
cee9c6f78a3df0698b5bb02cb48331908f5243e5
[ "Apache-2.0" ]
null
null
null
/* * Copyright 2017 IBM Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /** * This sample plugin uses the companion "create-echo" plugin to create a sample action, * then adds a field, and opens the sidecar to show that field. * */ 'use strict' const { ui } = require('../../../content/js/ui') const repl = require('../../../content/js/repl') /** * This is the command handler. Handlers can return plain strings, * which will then be printed in the CLI portion of the UI. * * More sophisticated examples can return Promises of values. If the * value, or promise thereof, evaluates to a whisk entity, then the * sidecar will be opened to show it. * * If you want the repl only to print "ok", then return true * * If you want the repl to print an error string in red text, then throw new Error("error message") * */ const openSidecar = ({ argv, command, argvNoOptions, parsedOptions }) => { return repl.qexec('sample create action') // qexec will use the repl to perform a nested evaluation .then(action => { action.demo = { sampleField: 'This is a sample sidecar mode' } // here we add a field return ui.showEntity(action, { show: 'demo' }) // and open the sidecar, specifying that our new field should be shown }) } /** * This is the exported module. It registers a handler for "sample sidecar" commands * */ module.exports = (commandTree, prequire) => { commandTree.listen('/sample/sidecar', openSidecar, { docs: 'Open the sidecar' }) }
35.875
123
0.703335
192ed58c0ba7e3a3a3dea43eb95329dbc16fe9d8
230
js
JavaScript
food-online/src/state/store/index.js
april5622/ordering-food-online
41a7b411c6be5214d7d66e34c8c445f81bb167df
[ "MIT" ]
null
null
null
food-online/src/state/store/index.js
april5622/ordering-food-online
41a7b411c6be5214d7d66e34c8c445f81bb167df
[ "MIT" ]
null
null
null
food-online/src/state/store/index.js
april5622/ordering-food-online
41a7b411c6be5214d7d66e34c8c445f81bb167df
[ "MIT" ]
null
null
null
import { createStore, applyMiddleware } from "redux"; import thunkMiddleware from "redux-thunk"; import Reducer from "../reducer/index"; const store = createStore(Reducer, applyMiddleware(thunkMiddleware)); export default store;
32.857143
69
0.786957
193038debb6659f97009e56091cb0554e8500d60
1,822
js
JavaScript
js/db.js
azwar75/azwar75.github.io
638b8228ff67525e1f75b077a437c51818ef2b13
[ "MIT" ]
null
null
null
js/db.js
azwar75/azwar75.github.io
638b8228ff67525e1f75b077a437c51818ef2b13
[ "MIT" ]
null
null
null
js/db.js
azwar75/azwar75.github.io
638b8228ff67525e1f75b077a437c51818ef2b13
[ "MIT" ]
null
null
null
const dbPromised = idb.open("seputar-bola", 1, function(upgradeDb) { const teamsObjectStore = upgradeDb.createObjectStore("teams", { keyPath: "id" }); }); function saveForLater(team) { dbPromised .then(function(db) { const tx = db.transaction("teams", "readwrite"); const store = tx.objectStore("teams"); console.log(team); store.put(team); return tx.complete; }) .then(function() { console.log("team favorite berhasil di simpan."); }); } function deleteForTeam(team) { dbPromised.then(function(db) { const tx = db.transaction('teams', 'readwrite'); const store = tx.objectStore('teams'); console.log(team + "abang"); store.delete(team); return tx.complete; }).then(function() { console.log('team telah di hapuss'); }); } function getAll() { return new Promise(function(resolve, reject) { dbPromised .then(function(db) { const tx = db.transaction("teams", "readonly"); const store = tx.objectStore("teams"); return store.getAll(); }) .then(function(teams) { resolve(teams); }); }); } function getById(id) { return new Promise(function(resolve, reject) { dbPromised .then(function(db) { const tx = db.transaction("teams", "readonly"); const store = tx.objectStore("teams"); return store.get(id); }) .then(function(team) { resolve(team); }); }); } // CHECK DATA exist function isFav(id) { return dbPromised.then(async (db) => { const tx = await db.transaction("teams", "readonly"); const data = await tx.objectStore("teams").get(id); console.log(data) return data === undefined ? false : true; }); }
25.305556
68
0.576839
1930b862c429c202c6f09ef4ad3db0fdc91a9cdb
364
js
JavaScript
lib/requiredGtmFields.js
Konsumentverket/visitor-statistics-to-sdg
a5842e8cdf73cad26800bff229c2eb4c5a8feb5b
[ "Apache-2.0" ]
null
null
null
lib/requiredGtmFields.js
Konsumentverket/visitor-statistics-to-sdg
a5842e8cdf73cad26800bff229c2eb4c5a8feb5b
[ "Apache-2.0" ]
1
2020-11-18T08:27:43.000Z
2020-11-18T08:27:43.000Z
lib/requiredGtmFields.js
Konsumentverket/visitor-statistics-to-sdg
a5842e8cdf73cad26800bff229c2eb4c5a8feb5b
[ "Apache-2.0" ]
null
null
null
const moment = require("moment"); /** * requiredGtmFields The fields that are required to be collected from GTM to meet SDG requirements */ module.exports = { hostName: "ga:hostname", deviceCategory: "ga:deviceCategory", pagePath: "ga:pagePath", countryIsoCode: "ga:countryIsoCode", uniquePageviews: ["ga:pageviews","ga:uniquePageviews"], }
28
99
0.708791
1931614fac76aa9b3a0b5333d5106c1fbf195bff
3,378
js
JavaScript
src/views/madara/situationMap/map-data/get-city-value.js
Freankll/vue-cli-3.0
9b58516679c33bf2e7fc163485756c6ad692bf35
[ "MIT" ]
null
null
null
src/views/madara/situationMap/map-data/get-city-value.js
Freankll/vue-cli-3.0
9b58516679c33bf2e7fc163485756c6ad692bf35
[ "MIT" ]
null
null
null
src/views/madara/situationMap/map-data/get-city-value.js
Freankll/vue-cli-3.0
9b58516679c33bf2e7fc163485756c6ad692bf35
[ "MIT" ]
null
null
null
export const CSValue = [ {name: '天心区', count: 327, money: 244, alert: 80,}, {name: '芙蓉区', count: 436, money: 300, alert: 70}, {name: '开福区', count: 545, money: 400, alert: 100}, {name: '岳麓区', count: 293, money: 200, alert: 90}, {name: '雨花区', count: 357, money: 238, alert: 120}, {name: '长沙县', count: 365, money: 100, alert: 140}, {name: '望城区', count: 435, money: 424, alert: 320}, {name: '浏阳市', count: 545, money: 543, alert: 190}, {name: '宁乡县', count: 135, money: 100, alert: 150}, ]; export const HNValue = [ {name: '长沙市', count: 327, money: 244, alert: 80,}, {name: '株洲市', count: 436, money: 300, alert: 70}, {name: '湘潭市', count: 545, money: 400, alert: 100}, {name: '衡阳市', count: 293, money: 200, alert: 90}, {name: '邵阳市', count: 357, money: 238, alert: 120}, {name: '岳阳市', count: 365, money: 100, alert: 140}, {name: '常德市', count: 435, money: 424, alert: 320}, {name: '张家界市', count: 295, money: 543, alert: 190}, {name: '益阳市', count: 235, money: 100, alert: 150}, {name: '郴州市', count: 232, money: 100, alert: 150}, {name: '永州市', count: 345, money: 100, alert: 150}, {name: '怀化市', count: 435, money: 100, alert: 150}, {name: '娄底市', count: 135, money: 100, alert: 150}, {name: '湘西州', count: 135, money: 100, alert: 150}, ]; export const highCasesValue = [ { name: '案件高发低1', caseSum: 1345, transferMoney: 100, alert: 323 }, { name: '案件高发低2', caseSum: 5468, transferMoney: 100, alert: 323 }, { name: '案件高发低3', caseSum: 6454, transferMoney: 100, alert: 323 }, ]; export const highAlertValue = [ { name: '案件高发中1', caseSum: 1435, transferMoney: 200, alert: 323 }, { name: '案件高发中2', caseSum: 1435, transferMoney: 200, alert: 323 }, { name: '案件高发中3', caseSum: 1335, transferMoney: 200, alert: 323 }, ]; export const highConcernValue = [ { name: '案件高发高1', caseSum: 2135, transferMoney: 300, alert: 323 }, { name: '案件高发高2', caseSum: 1335, transferMoney: 300, alert: 323 }, { name: '案件高发高3', caseSum: 3435, transferMoney: 300, alert: 323 }, ]; /**/ export const mapDataArr = [ { name: '长沙市', jsonData: 'changsha.json', }, { name: '湘潭市', jsonData: 'xiangtan.json', }, { name: '湘西州', jsonData: 'xiangxi.json' }, { name: '益阳市', jsonData: 'yiyang.json' }, { name: '张家界市', jsonData: 'zhangjiajie.json' }, { name: '常德市', jsonData: 'changde.json' }, { name: '岳阳市', jsonData: 'yueyang.json' }, { name: '株洲市', jsonData: 'zhuzhou.json' }, { name: '郴州市', jsonData: 'chenzhou.json' }, { name: '娄底市', jsonData: 'loudi.json' }, { name: '永州市', jsonData: 'yongzhou.json' }, { name: '衡阳市', jsonData: 'hengyang.json' }, { name: '邵阳市', jsonData: 'shaoyang.json' }, { name: '怀化市', jsonData: 'huaihua.json' }, ];
22.078431
55
0.479278
1931b661e7a2733cf0d39a882000169863768f09
1,011
js
JavaScript
src/components/main/tags.js
zhougonglai/jackblog-react-redux
c169ce5ae62580fe7b255e410f49fed3cc74fb4a
[ "MIT" ]
1
2020-07-23T16:36:51.000Z
2020-07-23T16:36:51.000Z
src/components/main/tags.js
zhougonglai/jackblog-react-redux
c169ce5ae62580fe7b255e410f49fed3cc74fb4a
[ "MIT" ]
1
2019-09-09T07:17:11.000Z
2019-09-09T07:17:11.000Z
src/components/main/tags.js
zanjs/julian-react-redux
b672df8fe509696abbff188381602c7113163737
[ "MIT" ]
null
null
null
import React,{Component,PropTypes} from 'react' import tiny from '../../assets/images/tiny.gif' //列表View export default class Tags extends Component{ render(){ const {options,changeSort,isFetching,tagList} = this.props return ( <ul className="sort-tags list-unstyled clearfix"> <li> <a className={(options.sortName == 'publish_time')&&'active'} onClick={ e => changeSort(e,{'currentPage':1,'sortName':'publish_time','tagId':''})} href="#">最新</a> </li> <li> <a className={(options.sortName == 'visit_count')&&'active'} onClick={ e => changeSort(e,{'currentPage':1,'sortName':'visit_count','tagId':''})} href="#">热门</a> </li> { tagList.map((tag,i)=> <li key={i}> <a className={(options.tagId == tag._id)&&'active'} onClick={ e => changeSort(e,{'currentPage':1,'sortName':'','tagId':tag._id})} href="#">{tag.name}</a> </li> ) } {isFetching&& <li> <img className="loader-tiny" src={tiny} /> </li> } </ul> ) } }
31.59375
168
0.588526
1931c9dfcb3fc52d7298fc3d5b9ad94046b19468
1,027
js
JavaScript
Fundamentos/strings.js
GabrielCarneiroDEV/JavaScript-DesenvovilmentoWeb
64387b5b044a69325c02f898aa1cce5710f61489
[ "MIT" ]
null
null
null
Fundamentos/strings.js
GabrielCarneiroDEV/JavaScript-DesenvovilmentoWeb
64387b5b044a69325c02f898aa1cce5710f61489
[ "MIT" ]
null
null
null
Fundamentos/strings.js
GabrielCarneiroDEV/JavaScript-DesenvovilmentoWeb
64387b5b044a69325c02f898aa1cce5710f61489
[ "MIT" ]
null
null
null
// pode ser usado aspas duplas, aspas simples ou crase // a função charAt pode ser utilizada para mostrar um determinado caractere dentro da string. Assim como em uma array o indice tem inicio em 0. const nome = "Gabriel" console.log(nome.charAt(0)); // a função charCodeAt busca o código relacionado ao caractere na tabela unicode: console.log(nome.charCodeAt(0)); // a função indexOf retorna a posição de determinado caractere dentro do indice console.log(nome.indexOf("G")) // substring pode determinar o ponto em que a string é exibida. Também pode ser indicado o final. console.log(nome.substring(0, 3)) // concatenação console.log("Olá ".concat(nome).concat("!")) //outra forma de concatenar console.log ("Olá " + nome + "!") // replace pode modificar um caractere ou vários dentro da string console.log(nome.replace("Gabriel", "Gabzin")) // split converter string em array a partir de um ponto determinado pode ser um espaço, virgula, ponto, caractere... console.log("João, Maria, josé".split(","))
27.026316
144
0.737098
193328016542a6d80e06018a5a806e54abe34249
1,090
js
JavaScript
examples/addition.js
twitterdev/serverless-flow-framework
3d064774bb54c23b82a359b9153fecf3296070eb
[ "Apache-2.0" ]
2
2021-08-19T08:40:53.000Z
2021-08-31T05:34:51.000Z
examples/addition.js
twitterdev/serverless-flow-framework
3d064774bb54c23b82a359b9153fecf3296070eb
[ "Apache-2.0" ]
null
null
null
examples/addition.js
twitterdev/serverless-flow-framework
3d064774bb54c23b82a359b9153fecf3296070eb
[ "Apache-2.0" ]
null
null
null
// Copyright 2021 Twitter, Inc. // SPDX-License-Identifier: Apache-2.0 // Create a data flow named "add". This flow generates // two random numbers and adds them together. // // You can run this flow from the root folder (..) by // running the command: // // ./seff run examples/additions.js add // add = seff // This is the first function in this data flow. It // generates two random numbers between 0 and 10. // .then( function generateRandomPair() { const a = Math.round(Math.random() * 10) const b = Math.round(Math.random() * 10) console.log(`Generated a=${a} b=${b}`) return { a, b } } ) // Output from each stage is directed to the // input of the next. Using JavaScript's object // deconstruction we can simply add the two numbers. // .then( function addTwoNumbers({ a, b }) { const c = a + b console.log(`Adding ${a} + ${b} = ${c}`) return c } ) // Finally, we print the sum to the log. // .then( function printNumber(number) { console.log(`YOUR NUMBER IS ${number}`) } )
24.222222
54
0.609174
19340968623dea6136e1909aa15346cd42a6e34f
192
js
JavaScript
test/fixtures/apps/jwt-router-middleware/app/controller/success.js
virtoolswebplayer/egg-jwt
0934e71b60e5643657e83a8249b5f54cab711ddc
[ "MIT" ]
264
2016-10-18T09:52:38.000Z
2022-03-20T05:11:57.000Z
test/fixtures/apps/jwt-router-middleware/app/controller/success.js
virtoolswebplayer/egg-jwt
0934e71b60e5643657e83a8249b5f54cab711ddc
[ "MIT" ]
54
2017-05-27T03:10:06.000Z
2022-03-20T10:35:00.000Z
test/fixtures/apps/jwt-router-middleware/app/controller/success.js
virtoolswebplayer/egg-jwt
0934e71b60e5643657e83a8249b5f54cab711ddc
[ "MIT" ]
38
2017-06-15T15:03:49.000Z
2022-03-23T13:20:27.000Z
'use strict'; module.exports = app => { class SuccessController extends app.Controller { * index() { this.ctx.body = this.ctx.state.user; } } return SuccessController; };
17.454545
50
0.635417
1934ae12b81906a4f9a22ed56d8e132a50cf847e
118
js
JavaScript
src/containers/index.js
happya/tupl-ui
c8b1565e13fd2e93b2fa0bd73b72b21c808be2b8
[ "MIT" ]
null
null
null
src/containers/index.js
happya/tupl-ui
c8b1565e13fd2e93b2fa0bd73b72b21c808be2b8
[ "MIT" ]
null
null
null
src/containers/index.js
happya/tupl-ui
c8b1565e13fd2e93b2fa0bd73b72b21c808be2b8
[ "MIT" ]
null
null
null
import DefaultLayout from './DefaultLayout'; import CusLayout from './CusLayout' export { DefaultLayout, CusLayout };
29.5
44
0.779661
1935b9f650e8efbb9c0c539efa2014f15295d179
432
js
JavaScript
src/pages/contact.js
mwangiKibui/gatsby-blo
470843638cc5cab5731b3d0722c6b3a7dc6924e4
[ "MIT" ]
null
null
null
src/pages/contact.js
mwangiKibui/gatsby-blo
470843638cc5cab5731b3d0722c6b3a7dc6924e4
[ "MIT" ]
6
2021-05-10T13:57:32.000Z
2022-02-26T17:47:04.000Z
src/pages/contact.js
mwangiKibui/gatsby-blog
470843638cc5cab5731b3d0722c6b3a7dc6924e4
[ "MIT" ]
null
null
null
import React from 'react' import {Link} from "gatsby" import Layout from "../components/layout"; import Head from '../components/head'; const Contact = () => { return ( <div> <Head title="contact"/> <Layout> <h1>Contact</h1> <p> reach me on<Link to="www.twritter.com">twitter</Link></p> </Layout> </div> ) } export default Contact;
27
77
0.520833
193616541abea6b67a718dfa38bea3cdee220bc7
884
js
JavaScript
routes/clickStreamStatistics.js
abskr82/quizRT4
10bb2bdd51b5d9a18f2b075be35a3dbf02fb0c07
[ "Apache-2.0" ]
null
null
null
routes/clickStreamStatistics.js
abskr82/quizRT4
10bb2bdd51b5d9a18f2b075be35a3dbf02fb0c07
[ "Apache-2.0" ]
null
null
null
routes/clickStreamStatistics.js
abskr82/quizRT4
10bb2bdd51b5d9a18f2b075be35a3dbf02fb0c07
[ "Apache-2.0" ]
null
null
null
var userAnalytics=require('../models/userAnalytics'), userAnalyticsSave = function(data,type){ var isCorrect=data.ans=='correct'? true:false, analyticsObj= { 'tournamentId': 'null', 'userId': data.userId, 'questionId': data.questionId, 'topicId': data.topicId, 'responseTime': 10 - Number(data.responseTime), 'gameTime': new Date().toString(), 'selectedOptionId': Number(data.selectedOption) + 1, 'isCorrect': isCorrect }; if(type=='tournament') { analyticsObj.tournamentId=data.tournamentId; } new userAnalytics(analyticsObj).save(function(err,storeData){ if(err){ console.error(err); } else{ console.log('addedd successfully'); } }); } module.exports = userAnalyticsSave;
30.482759
65
0.570136
19363290e82e49e977b695339c1f80946ddcd82c
4,716
js
JavaScript
src/plugins/Mockstar.js
matmanjs/devops-web-test
eb37e3fc71098488bb726afeb6616383ffd65cfb
[ "MIT" ]
null
null
null
src/plugins/Mockstar.js
matmanjs/devops-web-test
eb37e3fc71098488bb726afeb6616383ffd65cfb
[ "MIT" ]
null
null
null
src/plugins/Mockstar.js
matmanjs/devops-web-test
eb37e3fc71098488bb726afeb6616383ffd65cfb
[ "MIT" ]
null
null
null
const util = require('../util'); const businessProcessHandler = require('../business/process-handler'); const businessLocalCache = require('../business/local-cache'); const BasePlugin = require('./BasePlugin'); class PluginMockstar extends BasePlugin { constructor(name, opts = {}) { super(name || 'pluginMockstar', opts); /** * mockstar 项目的根路径,由于我们推荐 DWT 路径为 DevOps/devops-app ,因此相对而言项目路径为 ../mockstar-app * * @type {String} */ this.rootPath = opts.rootPath || '../mockstar-app'; /** * 项目启动时需要占用的端口号,取值为 >= 0 and < 65536 * * @type {Number} */ this.port = opts.port || 0; /** * 安装依赖时执行的命令,当其为函数时,会传入参数 testRecorder * * @type {String|Function} */ this.installCmd = opts.installCmd || function (testRecord) { return `npm install`; }; /** * 启动项目时执行的命令,当其为函数时,会传入参数 testRecorder 和 port * * @type {String|Function} */ this.startCmd = opts.startCmd || function (testRecord, port) { return `npx mockstar run -p ${port}`; }; } /** * 初始化 * @override */ async init(testRecord) { await super.init(testRecord); // 特殊处理下目录,将其修改为绝对路径 this.rootPath = util.getAbsolutePath(testRecord.dwtPath, this.rootPath); // 进程中追加一些唯一标识 this._processKey = `mockstar-e2etest-${testRecord.seqId}`; } /** * 执行之前 * @override */ async beforeRun(testRecord) { await super.beforeRun(testRecord); await this.clean(testRecord); } /** * 执行 * @override */ async run(testRecord) { await super.run(testRecord); console.log('\n'); console.log('ready to start mockstar ...'); // 进入项目中安装依赖 await this.install(testRecord); // 获取 mockstar 的端口号 await this.findPort(testRecord); // 启动 mockstar await this.start(testRecord); console.log('start mockstar finished!'); console.log('\n'); } /** * 执行之后 * @override */ async afterRun(testRecord) { await super.afterRun(testRecord); await this.clean(testRecord); } /** * 清理 * * @param testRecord */ async clean(testRecord) { await businessProcessHandler.kill(this._processKey) .catch((err) => { console.log(`businessProcessHandler.kill failed`, this._processKey, err); }); // 清理 mockstar 的端口 if (this.port) { await util.killPort(this.port) .catch((err) => { console.log(`util.kill killPort`, this.port, err); }); console.log(`already clean mockstar port=${this.port}!`); } } /** * 获得可用的端口号 * * @param testRecord */ async findPort(testRecord) { // 如果传递了固定端口,则返回 if (this.port) { console.log(`mockstar already use port=${this.port}!`); return Promise.resolve(); } // 获得本地缓存的已经被占用的端口 const usedPort = businessLocalCache.getUsedPort(); // 获得可用的端口 this.port = await util.findAvailablePort(9528, usedPort); // 缓存在本地 businessLocalCache.saveUsedPort('mockstar', this.port, testRecord); console.log(`get mockstar port: ${this.port}`); } /** * 进入项目中安装依赖 * * @param testRecord */ async install(testRecord) { if (testRecord.isDev) { return Promise.resolve(); } if (typeof this.installCmd === 'function') { this.installCmd = this.installCmd.bind(this); } const cmd = util.getFromStrOrFunc(this.installCmd, testRecord); const command = `${cmd} --${this._processKey}`; await util.runByExec(command, { cwd: this.rootPath }); } /** * 启动 mockstar * * @param testRecord */ async start(testRecord) { if (typeof this.startCmd === 'function') { this.startCmd = this.startCmd.bind(this); } const cmd = util.getFromStrOrFunc(this.startCmd, testRecord, this.port); const command = `${cmd} --${this._processKey}`; const cmdRun = await util.runByExec(command, { cwd: this.rootPath }, (data) => { return data && data.indexOf(`127.0.0.1:${this.port}`) > -1; }); // 缓存在本地 businessLocalCache.saveUsedPid('mockstar', cmdRun.pid, testRecord); // TODO 自检一下 mockstar 是否真正启动了,参考检查 whistle 的方式来实现 } } module.exports = PluginMockstar;
24.435233
89
0.539652
1937d1284878f600e9dbfdf1997fe14f99894ba0
215
js
JavaScript
kodea/HTML5_aurreratua_ariketak/1.gaia/skriptak/gizaki.js
Bingentzio/bingentzio.github.io
caf7533a1f92c7fa04d1a201ad26c9ce673bd4fb
[ "MIT" ]
null
null
null
kodea/HTML5_aurreratua_ariketak/1.gaia/skriptak/gizaki.js
Bingentzio/bingentzio.github.io
caf7533a1f92c7fa04d1a201ad26c9ce673bd4fb
[ "MIT" ]
null
null
null
kodea/HTML5_aurreratua_ariketak/1.gaia/skriptak/gizaki.js
Bingentzio/bingentzio.github.io
caf7533a1f92c7fa04d1a201ad26c9ce673bd4fb
[ "MIT" ]
null
null
null
var Gizaki = function Gizaki(izena){ var indarra = 70; var osasuna = 150; Jokalari.apply(this, [izena, indarra, osasuna]); }; Gizaki.prototype = new Jokalari(); Gizaki.prototype.constructor = Gizaki;
17.916667
50
0.683721