ElectronはNodeとほとんど差がないので、NPMで入れたパッケージも使える。 今回は簡単な画像編集ができるアプリを作ってみる。
npm init
SOURCE: http://htmlpurifier.org/live/smoketests/xssAttacks.php |
[ | |
"1C Enterprise", | |
"ABAP", | |
"ABNF", | |
"AGS Script", | |
"AMPL", | |
"ANTLR", | |
"API Blueprint", | |
"APL", | |
"ASN.1", |
Get Nth | |
Native Object(10) : 22670660.07 +/- 2.14% op/s | |
Native Map(10) : 22534378.75 +/- 0.93% op/s | |
Hashtrie(10) : 13052298.01 +/- 0.99% op/s | |
Hamt(10) : 13362491.37 +/- 0.78% op/s | |
Hamt+(10) : 13020559.46 +/- 0.73% op/s | |
Mori(10) : 9405100.99 +/- 2.80% op/s | |
Immutable(10) : 12250139.06 +/- 2.92% op/s | |
Native Object(100) : 31386478.91 +/- 1.57% op/s | |
Native Map(100) : 17021320.51 +/- 1.36% op/s |
import { | |
createSaga | |
} from '../lib' | |
import { | |
createStore, | |
applyMiddleware, | |
} from 'redux' | |
import { | |
PureAction, | |
createActionCreator, |
app.filter('propsFilter', function() { | |
return function(items, props) { | |
var out = []; | |
if (angular.isArray(items)) { | |
items.forEach(function(item) { | |
var itemMatches = false; | |
var keys = Object.keys(props); | |
for (var i = 0; i < keys.length; i++) { |
import React from 'react' | |
import styled from 'styled-components' | |
import { | |
Switch, | |
Route, | |
Redirect | |
} from 'react-router-dom' | |
import RepoListPage from './pages/repos/list/ReposListPage' | |
import ReposNewPage from './pages/repos/new/ReposNewPage' | |
import PreferencesPage from './pages/preferences/PreferencesPage.js' |
const fs = require('fs') | |
const path = require('path') | |
const moduleMap = [ | |
'base' | |
] | |
function link (modulePath) { | |
const sourcePath = path.join(__dirname, '..', modulePath) | |
const targetPath = path.join(__dirname, '../node_modules', modulePath) |
import React from 'react' | |
import CommentList from './CommentList' | |
import api from '../../lib/api' | |
import { bindActionCreators } from 'redux' | |
import TechReactor from '../shared/TechReactor' | |
const statusPrefix = 'IssueCommentContainer' | |
// Action types | |
const REQUEST_COMMENT_CREATE = `${statusPrefix}/REQUEST_COMMENT_CREATE` |