This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const downloadFile = async () => { | |
setDownLoading(true); | |
setProgress(0); | |
let content; | |
if (files && files.length > 0) { | |
content = JSON.stringify({ | |
"package-name": props.filename ?? "download-bundle.zip", | |
"error-log-name": "errors.txt", | |
groups: [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const resolveFeatureTypes = (userSelection, data) => { | |
const resolved = {} | |
const visited = {} | |
const resolveFeatureType = (id) => { | |
// If we have already resolved this feature type we return the result | |
if (resolved[id]) { | |
return resolved[id] | |
} | |
// If we have visited the feature types, but not resolved it we have ciscular dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import message from './message' | |
console.log(message); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import styles from './Cover.css'; | |
import withStyles from '../../decorators/withStyles'; | |
import Link from '../../utils/Link'; | |
import Avatar from './Avatar'; | |
import { Button } from 'react-bootstrap'; | |
@withStyles(styles) | |
class Cover extends React.Component { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Your snippets | |
# | |
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
# expand the prefix into a larger code block with templated values. | |
# | |
# You can create a new snippet in this file by typing "snip" and then hitting | |
# tab. | |
# | |
# An example CoffeeScript snippet to expand log to console.log: | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
/*jslint browser:true, nomen:true*/ | |
/*global app:true, \$:true, console: false*/ | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>jslint</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.js</scope> | |
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
/*jslint node:true, nomen:true*/ | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>jslint</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<scope>source.js</scope> | |
</snippet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
/** | |
* ${1:name} | |
*/ | |
/*jslint browser: true, nomen:true*/ | |
/*global \$:true, console:false*/ | |
(function () { | |
"use strict"; | |
\$.fn.${2:func} = function (${3:params}) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
/** | |
* ${1:filename}.js | |
* Model class for ${1} | |
* @author ${3:author} | |
* @date ${4:dd}/${5:mm}/${6:yyyy} | |
*/ | |
/*jslint browser:true, nomen:true*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"bitwise" : true, | |
"camelCase" : true, | |
"curly" : true, | |
"eqeqeq":true, | |
"forin":true, | |
"freeze":true, | |
"indent" :4, | |
"latedef":true, | |
"newcap":true, |
NewerOlder