@gitlab-org/gitlab-svgs
Advanced tools
Comparing version 1.19.0 to 1.20.0
@@ -1,1 +0,1 @@ | ||
{"iconCount":228,"spriteSize":102482,"icons":["abuse","account","admin","angle-double-left","angle-double-right","angle-down","angle-left","angle-right","angle-up","appearance","applications","approval","arrow-down","arrow-right","arrow-up","assignee","blame","bold","book","bookmark","branch","bullhorn","calendar","cancel","canceled-circle","cancelled-circle","car","chart","check-circle","chevron-down","chevron-left","chevron-right","chevron-up","clock","close","code","collapse-left","collapse-right","collapse","comment-dots","comment-next","comment","comments","commit","compress","credit-card","cut","dashboard","disk","doc_code","doc_image","doc_text","doc-code","doc-image","doc-text","double-headed-arrow","download","duplicate","earth","ellipsis_v","emoji_slightly_smiling_face","emoji_smile","emoji_smiley","epic","error","expand","external-link","eye-slash","eye","file-addition-solid","file-addition","file-deletion-solid","file-deletion","file-modified-solid","file-modified","filter","fire","folder-o-open","folder-o","folder-open","folder","fork","geo-nodes","git-merge","go-back","group","hamburger","history","home","hook","hourglass","image-comment-dark","image-comment-light","import","issue-block","issue-child","issue-close","issue-custom","issue-duplicate","issue-external","issue-new","issue-open-m","issue-open","issue-parent","issues","italic","key-2","key-modern","key","label","labels","lable","leave","level-up","license","link","list-bulleted","list-numbered","location-dot","location","lock-open","lock","log","long-arrow","mail","media","menu","merge-request-close-m","merge-request-close","messages","mobile-issue-close","mobile","monitor-lines","monitor-o","monitor","more","notifications-off","notifications","overview","pencil-square","pencil","pipeline","planning","play","plus-square-o","plus-square","plus","podcast","preferences","profile","project","push-rules","question-o","question","quote","redo","remove","repeat","retry","rocket","scale","screen-full","screen-normal","scroll_down","scroll_up","search","settings","shield","slight-frown","slight-smile","smile","smiley","snippet","soft-unwrap","soft-wrap","spam","spinner","staged","star-o","star","status_canceled_borderless","status_canceled","status_closed","status_created_borderless","status_created","status_failed_borderless","status_failed","status_manual_borderless","status_manual","status_notfound_borderless","status_notfound","status_open","status_pending_borderless","status_pending","status_running_borderless","status_running","status_skipped_borderless","status_skipped","status_success_borderless","status_success_solid","status_success","status_warning_borderless","status_warning","stop","table","tablet","tachometer","talic","task-done","template","terminal","thumb-down","thumb-up","thumbtack","time-out","timer","todo-add","todo-done","token","unapproval","unassignee","unlink","unstaged","user","users","volume-up","warning","work"]} | ||
{"iconCount":229,"spriteSize":101959,"icons":["abuse","account","admin","angle-double-left","angle-double-right","angle-down","angle-left","angle-right","angle-up","appearance","applications","approval","arrow-down","arrow-right","arrow-up","assignee","blame","bold","book","bookmark","branch","bullhorn","calendar","cancel","canceled-circle","cancelled-circle","car","chart","check-circle","chevron-down","chevron-left","chevron-right","chevron-up","clock","close","code","collapse-left","collapse-right","collapse","comment-dots","comment-next","comment","comments","commit","compress","credit-card","cut","dashboard","disk","doc_code","doc_image","doc_text","doc-code","doc-image","doc-text","double-headed-arrow","download","duplicate","earth","ellipsis_h","ellipsis_v","emoji_slightly_smiling_face","emoji_smile","emoji_smiley","epic","error","expand","external-link","eye-slash","eye","file-addition-solid","file-addition","file-deletion-solid","file-deletion","file-modified-solid","file-modified","filter","fire","folder-o-open","folder-o","folder-open","folder","fork","geo-nodes","git-merge","go-back","group","hamburger","history","home","hook","hourglass","image-comment-dark","image-comment-light","import","issue-block","issue-child","issue-close","issue-custom","issue-duplicate","issue-external","issue-new","issue-open-m","issue-open","issue-parent","issues","italic","key-2","key-modern","key","label","labels","lable","leave","level-up","license","link","list-bulleted","list-numbered","location-dot","location","lock-open","lock","log","long-arrow","mail","media","menu","merge-request-close-m","merge-request-close","messages","mobile-issue-close","mobile","monitor-lines","monitor-o","monitor","more","notifications-off","notifications","overview","pencil-square","pencil","pipeline","planning","play","plus-square-o","plus-square","plus","podcast","preferences","profile","project","push-rules","question-o","question","quote","redo","remove","repeat","retry","rocket","scale","screen-full","screen-normal","scroll_down","scroll_up","search","settings","shield","slight-frown","slight-smile","smile","smiley","snippet","soft-unwrap","soft-wrap","spam","spinner","staged","star-o","star","status_canceled_borderless","status_canceled","status_closed","status_created_borderless","status_created","status_failed_borderless","status_failed","status_manual_borderless","status_manual","status_notfound_borderless","status_notfound","status_open","status_pending_borderless","status_pending","status_running_borderless","status_running","status_skipped_borderless","status_skipped","status_success_borderless","status_success_solid","status_success","status_warning_borderless","status_warning","stop","table","tablet","tachometer","talic","task-done","template","terminal","thumb-down","thumb-up","thumbtack","time-out","timer","todo-add","todo-done","token","unapproval","unassignee","unlink","unstaged","user","users","volume-up","warning","work"]} |
@@ -1,1 +0,1 @@ | ||
{"illustrationCount":74,"illustrations":[{"name":"illustrations/cluster_popover.svg","size":2921},{"name":"illustrations/canceled-job_empty.svg","size":5710},{"name":"illustrations/clusters_empty.svg","size":1947},{"name":"illustrations/convdev/convdev_no_data.svg","size":8513},{"name":"illustrations/convdev/convdev_no_index.svg","size":10595},{"name":"illustrations/convdev/i2p_step_1.svg","size":1538},{"name":"illustrations/convdev/i2p_step_10.svg","size":1461},{"name":"illustrations/convdev/convdev_overview.svg","size":14397},{"name":"illustrations/convdev/i2p_step_2.svg","size":1073},{"name":"illustrations/convdev/i2p_step_3.svg","size":1039},{"name":"illustrations/convdev/i2p_step_4.svg","size":724},{"name":"illustrations/convdev/i2p_step_6.svg","size":1427},{"name":"illustrations/convdev/i2p_step_5.svg","size":966},{"name":"illustrations/convdev/i2p_step_7.svg","size":1119},{"name":"illustrations/convdev/i2p_step_8.svg","size":1537},{"name":"illustrations/convdev/i2p_step_9.svg","size":1928},{"name":"illustrations/erased-log_empty.svg","size":3310},{"name":"illustrations/epics.svg","size":5791},{"name":"illustrations/epics/list.svg","size":5791},{"name":"illustrations/epics/roadmap.svg","size":11597},{"name":"illustrations/finished-job_empty.svg","size":5442},{"name":"illustrations/feature_moved.svg","size":10725},{"name":"illustrations/gitlab_logo.svg","size":1039},{"name":"illustrations/image_comment_light_cursor.svg","size":570},{"name":"illustrations/image_comment_light_cursor@2x.svg","size":570},{"name":"illustrations/issue-dashboard_results-without-filter.svg","size":1240},{"name":"illustrations/issues.svg","size":11980},{"name":"illustrations/job_not_triggered.svg","size":5246},{"name":"illustrations/labels.svg","size":5745},{"name":"illustrations/lock_promotion.svg","size":780},{"name":"illustrations/logos/go_logo.svg","size":1704},{"name":"illustrations/merge_request_changes_empty.svg","size":5577},{"name":"illustrations/logos/google-cloud-platform_logo.svg","size":2541},{"name":"illustrations/logos/mattermost_logo.svg","size":1036},{"name":"illustrations/milestone_removing-page.svg","size":851},{"name":"illustrations/merge_requests.svg","size":7662},{"name":"illustrations/manual_action.svg","size":6458},{"name":"illustrations/multi_file_editor_empty.svg","size":4757},{"name":"illustrations/monitoring/getting_started.svg","size":3790},{"name":"illustrations/monitoring/unable_to_connect.svg","size":4706},{"name":"illustrations/monitoring/loading.svg","size":5936},{"name":"illustrations/monitoring/no_data.svg","size":3935},{"name":"illustrations/multi-editor_all_changes_committed_empty.svg","size":1590},{"name":"illustrations/multi-editor_no_staged_files_empty.svg","size":1558},{"name":"illustrations/multi-editor_no_changes_empty.svg","size":1829},{"name":"illustrations/pipelines_empty.svg","size":3400},{"name":"illustrations/no_commits.svg","size":2656},{"name":"illustrations/pipelines_failed.svg","size":6640},{"name":"illustrations/pending_job_empty.svg","size":4884},{"name":"illustrations/priority_labels.svg","size":1442},{"name":"illustrations/profile-page/contributed-projects.svg","size":1266},{"name":"illustrations/pipelines_pending.svg","size":3557},{"name":"illustrations/profile-page/groups.svg","size":558},{"name":"illustrations/profile-page/personal-projects.svg","size":1266},{"name":"illustrations/profile-page/snippets.svg","size":2150},{"name":"illustrations/profile-page/personal-project.svg","size":1273},{"name":"illustrations/profile-page/activity.svg","size":776},{"name":"illustrations/service_desk_callout.svg","size":1798},{"name":"illustrations/slack_logo.svg","size":1577},{"name":"illustrations/skipped-job_empty.svg","size":5699},{"name":"illustrations/service_desk_empty.svg","size":5232},{"name":"illustrations/todos_all_done.svg","size":1888},{"name":"illustrations/web-ide_promotion.svg","size":1390},{"name":"illustrations/snippets_empty.svg","size":7642},{"name":"illustrations/todos_empty.svg","size":5787},{"name":"illustrations/welcome/add_new_project.svg","size":843},{"name":"illustrations/welcome/add_new_group.svg","size":1599},{"name":"illustrations/welcome/configure_server.svg","size":1933},{"name":"illustrations/welcome/add_new_user.svg","size":1017},{"name":"illustrations/welcome/ee_trial.svg","size":3967},{"name":"illustrations/welcome/lightbulb.svg","size":1236},{"name":"illustrations/welcome/globe.svg","size":1173},{"name":"illustrations/wiki_login_empty.svg","size":6000},{"name":"illustrations/wiki_logout_empty.svg","size":6162}]} | ||
{"illustrationCount":73,"illustrations":[{"name":"illustrations/canceled-job_empty.svg","size":5655},{"name":"illustrations/convdev/convdev_no_data.svg","size":8491},{"name":"illustrations/convdev/i2p_step_10.svg","size":1461},{"name":"illustrations/convdev/i2p_step_4.svg","size":724},{"name":"illustrations/convdev/i2p_step_3.svg","size":1039},{"name":"illustrations/convdev/i2p_step_6.svg","size":1427},{"name":"illustrations/convdev/i2p_step_7.svg","size":1119},{"name":"illustrations/epics/list.svg","size":5769},{"name":"illustrations/convdev/i2p_step_8.svg","size":1537},{"name":"illustrations/erased-log_empty.svg","size":3257},{"name":"illustrations/convdev/i2p_step_2.svg","size":1073},{"name":"illustrations/cluster_popover.svg","size":2899},{"name":"illustrations/finished-job_empty.svg","size":5387},{"name":"illustrations/gitlab_logo.svg","size":1005},{"name":"illustrations/epics/roadmap.svg","size":11575},{"name":"illustrations/image_comment_light_cursor.svg","size":570},{"name":"illustrations/issues.svg","size":11980},{"name":"illustrations/labels.svg","size":5745},{"name":"illustrations/issue-dashboard_results-without-filter.svg","size":1171},{"name":"illustrations/lock_promotion.svg","size":760},{"name":"illustrations/logos/go_logo.svg","size":1704},{"name":"illustrations/logos/google-cloud-platform_logo.svg","size":2541},{"name":"illustrations/feature_moved.svg","size":10671},{"name":"illustrations/manual_action.svg","size":6458},{"name":"illustrations/convdev/i2p_step_1.svg","size":1538},{"name":"illustrations/merge_request_changes_empty.svg","size":5577},{"name":"illustrations/milestone_removing-page.svg","size":831},{"name":"illustrations/monitoring/getting_started.svg","size":3790},{"name":"illustrations/monitoring/no_data.svg","size":3891},{"name":"illustrations/monitoring/unable_to_connect.svg","size":4706},{"name":"illustrations/multi_file_editor_empty.svg","size":4757},{"name":"illustrations/multi-editor_all_changes_committed_empty.svg","size":1570},{"name":"illustrations/multi-editor_no_staged_files_empty.svg","size":1538},{"name":"illustrations/multi-editor_no_changes_empty.svg","size":1809},{"name":"illustrations/no_commits.svg","size":2656},{"name":"illustrations/job_not_triggered.svg","size":5246},{"name":"illustrations/monitoring/loading.svg","size":5936},{"name":"illustrations/pending_job_empty.svg","size":4862},{"name":"illustrations/pipelines_failed.svg","size":6640},{"name":"illustrations/pipelines_empty.svg","size":3400},{"name":"illustrations/priority_labels.svg","size":1442},{"name":"illustrations/pipelines_pending.svg","size":3535},{"name":"illustrations/profile-page/activity.svg","size":756},{"name":"illustrations/profile-page/groups.svg","size":538},{"name":"illustrations/profile-page/personal-projects.svg","size":1246},{"name":"illustrations/service_desk_empty.svg","size":5210},{"name":"illustrations/profile-page/contributed-projects.svg","size":1246},{"name":"illustrations/profile-page/snippets.svg","size":2130},{"name":"illustrations/service_desk_callout.svg","size":1778},{"name":"illustrations/slack_logo.svg","size":1157},{"name":"illustrations/skipped-job_empty.svg","size":5645},{"name":"illustrations/todos_all_done.svg","size":1888},{"name":"illustrations/snippets_empty.svg","size":7591},{"name":"illustrations/todos_empty.svg","size":5787},{"name":"illustrations/welcome/add_new_user.svg","size":997},{"name":"illustrations/profile-page/personal-project.svg","size":1253},{"name":"illustrations/welcome/add_new_project.svg","size":823},{"name":"illustrations/welcome/add_new_group.svg","size":1579},{"name":"illustrations/web-ide_promotion.svg","size":1369},{"name":"illustrations/welcome/globe.svg","size":1153},{"name":"illustrations/welcome/ee_trial.svg","size":3945},{"name":"illustrations/wiki_login_empty.svg","size":5978},{"name":"illustrations/wiki_logout_empty.svg","size":6140},{"name":"illustrations/convdev/i2p_step_9.svg","size":1928},{"name":"illustrations/welcome/lightbulb.svg","size":1216},{"name":"illustrations/convdev/i2p_step_5.svg","size":966},{"name":"illustrations/welcome/configure_server.svg","size":1913},{"name":"illustrations/logos/mattermost_logo.svg","size":1036},{"name":"illustrations/clusters_empty.svg","size":1925},{"name":"illustrations/image_comment_light_cursor@2x.svg","size":570},{"name":"illustrations/convdev/convdev_no_index.svg","size":10573},{"name":"illustrations/convdev/convdev_overview.svg","size":14375},{"name":"illustrations/merge_requests.svg","size":7662}]} |
@@ -9,3 +9,2 @@ /* eslint-disable import/no-commonjs */ | ||
// an example using an object instead of an array | ||
async.parallel( | ||
@@ -15,2 +14,3 @@ { | ||
svgSpriteIcons.createIconSprite(() => { | ||
console.log('Created Icon Sprite'); | ||
callback(null, true); | ||
@@ -20,3 +20,5 @@ }); | ||
two: callback => { | ||
console.log('Starting illustrations ...'); | ||
illustrations.optimizeIllustrations(() => { | ||
console.log('Created Illustrations'); | ||
callback(null, true); | ||
@@ -27,7 +29,10 @@ }); | ||
(err, results) => { | ||
console.log('Reached copying !'); | ||
const sourcePath = path.join('dist'); | ||
const destPath = path.normalize(path.join('svgpreviewer', 'static')); | ||
console.log('Copying files to dist ...'); | ||
utils.copyFolderRecursiveSync(sourcePath, destPath); | ||
}, | ||
); |
{ | ||
"name": "@gitlab-org/gitlab-svgs", | ||
"version": "1.19.0", | ||
"version": "1.20.0", | ||
"description": "SVG Assets for GitLab", | ||
@@ -32,8 +32,9 @@ "main": " ", | ||
"husky": "^0.14.3", | ||
"nuxt": "^1.0.0-rc11", | ||
"prettier": "^1.11.1", | ||
"nuxt": "^1.4.0", | ||
"prettier": "^1.12.1", | ||
"pretty-quick": "^1.4.1", | ||
"svg-sprite": "^1.3.7", | ||
"svgo": "^0.7.2" | ||
"svg-sprite": "^1.4.0", | ||
"svgo": "^1.0.5", | ||
"webpack-cli": "^2.1.2" | ||
} | ||
} |
@@ -21,2 +21,4 @@ /* eslint-disable import/no-commonjs */ | ||
console.log(`Optimize ${illustrationFiles.length} Illustrations`); | ||
async.forEachOf( | ||
@@ -32,3 +34,3 @@ illustrationFiles, | ||
svgo.optimize(data, result => { | ||
svgo.optimize(data, { path: path.resolve(file) }).then(result => { | ||
const fpath = path.join(dest, file); | ||
@@ -41,4 +43,2 @@ mkdirp.sync(path.dirname(fpath)); | ||
} | ||
console.log(`Optimized : ${file}`); | ||
illustrations.push({ | ||
@@ -56,5 +56,2 @@ name: file, | ||
if (err) console.error(err.message); | ||
// configs is now a map of JSON data | ||
console.log('Found Illustrations : ', illustrations); | ||
// Save the Illustrations Info to a JSON | ||
@@ -61,0 +58,0 @@ const illustrationsInfo = { |
@@ -38,5 +38,3 @@ /* eslint-disable import/no-commonjs */ | ||
const icons = []; | ||
spriteFiles.forEach(file => { | ||
console.log(`Adding Icon : ${path.resolve(spriteFilesPath, file)}`); | ||
const filePath = path.resolve(file); | ||
@@ -53,4 +51,11 @@ spriter.add( | ||
const getFilesizeInBytes = filename => { | ||
const stats = fs.statSync(filename); | ||
const fileSizeInBytes = stats.size; | ||
return fileSizeInBytes; | ||
}; | ||
// Compile the sprite | ||
spriter.compile((error, result) => { | ||
console.log('Compile done : ', error, result); | ||
Object.values(result).forEach(mode => { | ||
@@ -60,27 +65,23 @@ Object.values(mode).forEach(resource => { | ||
fs.writeFileSync(resource.path, resource.contents); | ||
console.log(`Compiled - Saving to ${resource.path}`); | ||
}); | ||
}); | ||
}); | ||
function getFilesizeInBytes(filename) { | ||
const stats = fs.statSync(filename); | ||
const fileSizeInBytes = stats.size; | ||
return fileSizeInBytes; | ||
} | ||
// Save the Icons in here to a json so we can then display a nice help sprite sheet in GitLab | ||
const iconsInfo = { | ||
iconCount: icons.length, | ||
spriteSize: getFilesizeInBytes(path.join(__dirname, '..', 'dist', 'icons.svg')), | ||
icons, | ||
}; | ||
// Save the Icons in here to a json so we can then display a nice help sprite sheet in GitLab | ||
const iconsInfo = { | ||
iconCount: icons.length, | ||
spriteSize: getFilesizeInBytes(path.join(__dirname, '..', 'dist', 'icons.svg')), | ||
icons, | ||
}; | ||
fs.writeFileSync( | ||
path.join(__dirname, '..', 'dist', 'icons.json'), | ||
JSON.stringify(iconsInfo), | ||
'utf8', | ||
); | ||
fs.writeFileSync( | ||
path.join(__dirname, '..', 'dist', 'icons.json'), | ||
JSON.stringify(iconsInfo), | ||
'utf8', | ||
); | ||
if (finishedCallback) finishedCallback(); | ||
if (finishedCallback) finishedCallback(); | ||
}); | ||
}, | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3713242
55175
18