lucy-console
Advanced tools
Sorry, the diff of this file is too big to display
| { | ||
| "fonts": { | ||
| "Acme": { | ||
| "names": [ | ||
| "regular" | ||
| ] | ||
| } | ||
| }, | ||
| "bootstrap": { | ||
| "vars": { | ||
| "@gray-base": { | ||
| "default": "#000", | ||
| "value": "#000", | ||
| "type": "color" | ||
| }, | ||
| "@gray-darker": { | ||
| "default": "lighten(@gray-base, 13.5%)", | ||
| "value": "lighten(@gray-base, 13.5%)", | ||
| "type": "color" | ||
| }, | ||
| "@gray-dark": { | ||
| "default": "lighten(@gray-base, 20%)", | ||
| "value": "lighten(@gray-base, 20%)", | ||
| "type": "color" | ||
| }, | ||
| "@gray": { | ||
| "default": "lighten(@gray-base, 33.5%)", | ||
| "value": "#6f6f6f", | ||
| "type": "color" | ||
| }, | ||
| "@gray-light": { | ||
| "default": "lighten(@gray-base, 46.7%)", | ||
| "value": "lighten(@gray-base, 60%)", | ||
| "type": "color" | ||
| }, | ||
| "@gray-lighter": { | ||
| "default": "lighten(@gray-base, 93.5%)", | ||
| "value": "lighten(@gray-base, 93.5%)", | ||
| "type": "color" | ||
| }, | ||
| "@brand-primary": { | ||
| "default": "darken(#428bca, 6.5%)", | ||
| "value": "#008cba", | ||
| "type": "color" | ||
| }, | ||
| "@brand-success": { | ||
| "default": "#5cb85c", | ||
| "value": "#43ac6a", | ||
| "type": "color" | ||
| }, | ||
| "@brand-info": { | ||
| "default": "#5bc0de", | ||
| "value": "#5bc0de", | ||
| "type": "color" | ||
| }, | ||
| "@brand-warning": { | ||
| "default": "#f0ad4e", | ||
| "value": "#E99002", | ||
| "type": "color" | ||
| }, | ||
| "@brand-danger": { | ||
| "default": "#d9534f", | ||
| "value": "#F04124", | ||
| "type": "color" | ||
| }, | ||
| "@body-bg": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@text-color": { | ||
| "default": "@gray-dark", | ||
| "value": "@gray-darker", | ||
| "type": "color" | ||
| }, | ||
| "@link-color": { | ||
| "default": "@brand-primary", | ||
| "value": "@brand-primary", | ||
| "type": "color" | ||
| }, | ||
| "@link-hover-color": { | ||
| "default": "darken(@link-color, 15%)", | ||
| "value": "@link-color", | ||
| "type": "color" | ||
| }, | ||
| "@link-hover-decoration": { | ||
| "default": "underline", | ||
| "value": "underline" | ||
| }, | ||
| "@font-family-sans-serif": { | ||
| "default": "\"Helvetica Neue\", Helvetica, Arial, sans-serif", | ||
| "value": "\"Open Sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif", | ||
| "type": "font" | ||
| }, | ||
| "@font-family-serif": { | ||
| "default": "Georgia, \"Times New Roman\", Times, serif", | ||
| "value": "Georgia, \"Times New Roman\", Times, serif", | ||
| "type": "font" | ||
| }, | ||
| "@font-family-monospace": { | ||
| "default": "Menlo, Monaco, Consolas, \"Courier New\", monospace", | ||
| "value": "Menlo, Monaco, Consolas, \"Courier New\", monospace", | ||
| "type": "font" | ||
| }, | ||
| "@font-family-base": { | ||
| "default": "@font-family-sans-serif", | ||
| "value": "@font-family-sans-serif", | ||
| "type": "font" | ||
| }, | ||
| "@font-size-base": { | ||
| "default": "14px", | ||
| "value": "15px", | ||
| "type": "font-size" | ||
| }, | ||
| "@font-size-large": { | ||
| "default": "ceil((@font-size-base * 1.25))", | ||
| "value": "ceil((@font-size-base * 1.25))", | ||
| "type": "font-size" | ||
| }, | ||
| "@font-size-small": { | ||
| "default": "ceil((@font-size-base * 0.85))", | ||
| "value": "12px", | ||
| "type": "font-size" | ||
| }, | ||
| "@font-size-h1": { | ||
| "default": "floor((@font-size-base * 2.6))", | ||
| "value": "floor((@font-size-base * 2.6))", | ||
| "type": "font-size" | ||
| }, | ||
| "@font-size-h2": { | ||
| "default": "floor((@font-size-base * 2.15))", | ||
| "value": "floor((@font-size-base * 2.15))", | ||
| "type": "font-size" | ||
| }, | ||
| "@font-size-h3": { | ||
| "default": "ceil((@font-size-base * 1.7))", | ||
| "value": "ceil((@font-size-base * 1.7))", | ||
| "type": "font-size" | ||
| }, | ||
| "@font-size-h4": { | ||
| "default": "ceil((@font-size-base * 1.25))", | ||
| "value": "ceil((@font-size-base * 1.25))", | ||
| "type": "font-size" | ||
| }, | ||
| "@font-size-h5": { | ||
| "default": "@font-size-base", | ||
| "value": "@font-size-base", | ||
| "type": "font-size" | ||
| }, | ||
| "@font-size-h6": { | ||
| "default": "ceil((@font-size-base * 0.85))", | ||
| "value": "ceil((@font-size-base * 0.85))", | ||
| "type": "font-size" | ||
| }, | ||
| "@line-height-base": { | ||
| "default": "1.428571429", | ||
| "value": "1.4" | ||
| }, | ||
| "@line-height-computed": { | ||
| "default": "floor((@font-size-base * @line-height-base))", | ||
| "value": "floor((@font-size-base * @line-height-base))" | ||
| }, | ||
| "@headings-font-family": { | ||
| "default": "inherit", | ||
| "value": "@font-family-base", | ||
| "type": "font" | ||
| }, | ||
| "@headings-font-weight": { | ||
| "default": "500", | ||
| "value": "300" | ||
| }, | ||
| "@headings-line-height": { | ||
| "default": "1.1", | ||
| "value": "1.1" | ||
| }, | ||
| "@headings-color": { | ||
| "default": "inherit", | ||
| "value": "inherit" | ||
| }, | ||
| "@icon-font-path": { | ||
| "default": "\"../fonts/\"", | ||
| "value": "\"../fonts/\"" | ||
| }, | ||
| "@icon-font-name": { | ||
| "default": "\"glyphicons-halflings-regular\"", | ||
| "value": "\"glyphicons-halflings-regular\"" | ||
| }, | ||
| "@icon-font-svg-id": { | ||
| "default": "\"glyphicons_halflingsregular\"", | ||
| "value": "\"glyphicons_halflingsregular\"" | ||
| }, | ||
| "@padding-base-vertical": { | ||
| "default": "6px", | ||
| "value": "8px", | ||
| "type": "size" | ||
| }, | ||
| "@padding-base-horizontal": { | ||
| "default": "12px", | ||
| "value": "12px", | ||
| "type": "size" | ||
| }, | ||
| "@padding-large-vertical": { | ||
| "default": "10px", | ||
| "value": "16px", | ||
| "type": "size" | ||
| }, | ||
| "@padding-large-horizontal": { | ||
| "default": "16px", | ||
| "value": "20px", | ||
| "type": "size" | ||
| }, | ||
| "@padding-small-vertical": { | ||
| "default": "5px", | ||
| "value": "8px", | ||
| "type": "size" | ||
| }, | ||
| "@padding-small-horizontal": { | ||
| "default": "10px", | ||
| "value": "12px", | ||
| "type": "size" | ||
| }, | ||
| "@padding-xs-vertical": { | ||
| "default": "1px", | ||
| "value": "4px", | ||
| "type": "size" | ||
| }, | ||
| "@padding-xs-horizontal": { | ||
| "default": "5px", | ||
| "value": "6px", | ||
| "type": "size" | ||
| }, | ||
| "@line-height-large": { | ||
| "default": "1.3333333", | ||
| "value": "1.3333333" | ||
| }, | ||
| "@line-height-small": { | ||
| "default": "1.5", | ||
| "value": "1.5" | ||
| }, | ||
| "@border-radius-base": { | ||
| "default": "4px", | ||
| "value": "0", | ||
| "type": "size" | ||
| }, | ||
| "@border-radius-large": { | ||
| "default": "6px", | ||
| "value": "0", | ||
| "type": "size" | ||
| }, | ||
| "@border-radius-small": { | ||
| "default": "3px", | ||
| "value": "0", | ||
| "type": "size" | ||
| }, | ||
| "@component-active-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@component-active-bg": { | ||
| "default": "@brand-primary", | ||
| "value": "@brand-primary", | ||
| "type": "color" | ||
| }, | ||
| "@caret-width-base": { | ||
| "default": "4px", | ||
| "value": "4px", | ||
| "type": "size" | ||
| }, | ||
| "@caret-width-large": { | ||
| "default": "5px", | ||
| "value": "5px", | ||
| "type": "size" | ||
| }, | ||
| "@table-cell-padding": { | ||
| "default": "8px", | ||
| "value": "8px", | ||
| "type": "size" | ||
| }, | ||
| "@table-condensed-cell-padding": { | ||
| "default": "5px", | ||
| "value": "5px", | ||
| "type": "size" | ||
| }, | ||
| "@table-bg": { | ||
| "default": "transparent", | ||
| "value": "transparent" | ||
| }, | ||
| "@table-bg-accent": { | ||
| "default": "#f9f9f9", | ||
| "value": "#f9f9f9", | ||
| "type": "color" | ||
| }, | ||
| "@table-bg-hover": { | ||
| "default": "#f5f5f5", | ||
| "value": "#f5f5f5", | ||
| "type": "color" | ||
| }, | ||
| "@table-bg-active": { | ||
| "default": "@table-bg-hover", | ||
| "value": "@table-bg-hover", | ||
| "type": "color" | ||
| }, | ||
| "@table-border-color": { | ||
| "default": "#ddd", | ||
| "value": "#ddd", | ||
| "type": "color" | ||
| }, | ||
| "@btn-font-weight": { | ||
| "default": "normal", | ||
| "value": "normal" | ||
| }, | ||
| "@btn-default-color": { | ||
| "default": "#333", | ||
| "value": "@gray-dark", | ||
| "type": "color" | ||
| }, | ||
| "@btn-default-bg": { | ||
| "default": "#fff", | ||
| "value": "#e7e7e7", | ||
| "type": "color" | ||
| }, | ||
| "@btn-default-border": { | ||
| "default": "#ccc", | ||
| "value": "#ccc", | ||
| "type": "color" | ||
| }, | ||
| "@btn-primary-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@btn-primary-bg": { | ||
| "default": "@brand-primary", | ||
| "value": "@brand-primary", | ||
| "type": "color" | ||
| }, | ||
| "@btn-primary-border": { | ||
| "default": "darken(@btn-primary-bg, 5%)", | ||
| "value": "darken(@btn-primary-bg, 5%)", | ||
| "type": "color" | ||
| }, | ||
| "@btn-success-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@btn-success-bg": { | ||
| "default": "@brand-success", | ||
| "value": "@brand-success", | ||
| "type": "color" | ||
| }, | ||
| "@btn-success-border": { | ||
| "default": "darken(@btn-success-bg, 5%)", | ||
| "value": "darken(@btn-success-bg, 5%)", | ||
| "type": "color" | ||
| }, | ||
| "@btn-info-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@btn-info-bg": { | ||
| "default": "@brand-info", | ||
| "value": "@brand-info", | ||
| "type": "color" | ||
| }, | ||
| "@btn-info-border": { | ||
| "default": "darken(@btn-info-bg, 5%)", | ||
| "value": "darken(@btn-info-bg, 5%)", | ||
| "type": "color" | ||
| }, | ||
| "@btn-warning-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@btn-warning-bg": { | ||
| "default": "@brand-warning", | ||
| "value": "@brand-warning", | ||
| "type": "color" | ||
| }, | ||
| "@btn-warning-border": { | ||
| "default": "darken(@btn-warning-bg, 5%)", | ||
| "value": "darken(@btn-warning-bg, 5%)", | ||
| "type": "color" | ||
| }, | ||
| "@btn-danger-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@btn-danger-bg": { | ||
| "default": "@brand-danger", | ||
| "value": "@brand-danger", | ||
| "type": "color" | ||
| }, | ||
| "@btn-danger-border": { | ||
| "default": "darken(@btn-danger-bg, 5%)", | ||
| "value": "darken(@btn-danger-bg, 5%)", | ||
| "type": "color" | ||
| }, | ||
| "@btn-link-disabled-color": { | ||
| "default": "@gray-light", | ||
| "value": "@gray-light", | ||
| "type": "color" | ||
| }, | ||
| "@btn-border-radius-base": { | ||
| "default": "@border-radius-base", | ||
| "value": "@border-radius-base", | ||
| "type": "size" | ||
| }, | ||
| "@btn-border-radius-large": { | ||
| "default": "@border-radius-large", | ||
| "value": "@border-radius-large", | ||
| "type": "size" | ||
| }, | ||
| "@btn-border-radius-small": { | ||
| "default": "@border-radius-small", | ||
| "value": "@border-radius-small", | ||
| "type": "size" | ||
| }, | ||
| "@input-bg": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@input-bg-disabled": { | ||
| "default": "@gray-lighter", | ||
| "value": "@gray-lighter", | ||
| "type": "color" | ||
| }, | ||
| "@input-color": { | ||
| "default": "@gray", | ||
| "value": "@gray", | ||
| "type": "color" | ||
| }, | ||
| "@input-border": { | ||
| "default": "#ccc", | ||
| "value": "#ccc", | ||
| "type": "color" | ||
| }, | ||
| "@input-border-radius": { | ||
| "default": "@border-radius-base", | ||
| "value": "@border-radius-base", | ||
| "type": "size" | ||
| }, | ||
| "@input-border-radius-large": { | ||
| "default": "@border-radius-large", | ||
| "value": "@border-radius-large", | ||
| "type": "size" | ||
| }, | ||
| "@input-border-radius-small": { | ||
| "default": "@border-radius-small", | ||
| "value": "@border-radius-small", | ||
| "type": "size" | ||
| }, | ||
| "@input-border-focus": { | ||
| "default": "#66afe9", | ||
| "value": "#66afe9", | ||
| "type": "color" | ||
| }, | ||
| "@input-color-placeholder": { | ||
| "default": "#999", | ||
| "value": "@gray-light", | ||
| "type": "color" | ||
| }, | ||
| "@input-height-base": { | ||
| "default": "(@line-height-computed + (@padding-base-vertical * 2) + 2)", | ||
| "value": "(@line-height-computed + (@padding-base-vertical * 2) + 2)" | ||
| }, | ||
| "@input-height-large": { | ||
| "default": "(ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2)", | ||
| "value": "(ceil(@font-size-large * @line-height-large) + (@padding-large-vertical * 2) + 2)" | ||
| }, | ||
| "@input-height-small": { | ||
| "default": "(floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2)", | ||
| "value": "(floor(@font-size-small * @line-height-small) + (@padding-small-vertical * 2) + 2)" | ||
| }, | ||
| "@form-group-margin-bottom": { | ||
| "default": "15px", | ||
| "value": "15px", | ||
| "type": "size" | ||
| }, | ||
| "@legend-color": { | ||
| "default": "@gray-dark", | ||
| "value": "@gray-dark", | ||
| "type": "color" | ||
| }, | ||
| "@legend-border-color": { | ||
| "default": "#e5e5e5", | ||
| "value": "#e5e5e5", | ||
| "type": "color" | ||
| }, | ||
| "@input-group-addon-bg": { | ||
| "default": "@gray-lighter", | ||
| "value": "@gray-lighter", | ||
| "type": "color" | ||
| }, | ||
| "@input-group-addon-border-color": { | ||
| "default": "@input-border", | ||
| "value": "@input-border", | ||
| "type": "color" | ||
| }, | ||
| "@cursor-disabled": { | ||
| "default": "not-allowed", | ||
| "value": "not-allowed" | ||
| }, | ||
| "@dropdown-bg": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@dropdown-border": { | ||
| "default": "rgba(0,0,0,.15)", | ||
| "value": "rgba(0,0,0,.15)" | ||
| }, | ||
| "@dropdown-fallback-border": { | ||
| "default": "#ccc", | ||
| "value": "#ccc", | ||
| "type": "color" | ||
| }, | ||
| "@dropdown-divider-bg": { | ||
| "default": "#e5e5e5", | ||
| "value": "rgba(0,0,0,.2)", | ||
| "type": "color" | ||
| }, | ||
| "@dropdown-link-color": { | ||
| "default": "@gray-dark", | ||
| "value": "#555", | ||
| "type": "color" | ||
| }, | ||
| "@dropdown-link-hover-color": { | ||
| "default": "darken(@gray-dark, 5%)", | ||
| "value": "darken(@gray-dark, 5%)", | ||
| "type": "color" | ||
| }, | ||
| "@dropdown-link-hover-bg": { | ||
| "default": "#f5f5f5", | ||
| "value": "#eee", | ||
| "type": "color" | ||
| }, | ||
| "@dropdown-link-active-color": { | ||
| "default": "@component-active-color", | ||
| "value": "@component-active-color", | ||
| "type": "color" | ||
| }, | ||
| "@dropdown-link-active-bg": { | ||
| "default": "@component-active-bg", | ||
| "value": "@component-active-bg", | ||
| "type": "color" | ||
| }, | ||
| "@dropdown-link-disabled-color": { | ||
| "default": "@gray-light", | ||
| "value": "@gray-light", | ||
| "type": "color" | ||
| }, | ||
| "@dropdown-header-color": { | ||
| "default": "@gray-light", | ||
| "value": "@gray-light", | ||
| "type": "color" | ||
| }, | ||
| "@dropdown-caret-color": { | ||
| "default": "#000", | ||
| "value": "#000", | ||
| "type": "color" | ||
| }, | ||
| "@screen-xs": { | ||
| "default": "480px", | ||
| "value": "480px", | ||
| "type": "size" | ||
| }, | ||
| "@screen-xs-min": { | ||
| "default": "@screen-xs", | ||
| "value": "@screen-xs", | ||
| "type": "size" | ||
| }, | ||
| "@screen-phone": { | ||
| "default": "@screen-xs-min", | ||
| "value": "@screen-xs-min", | ||
| "type": "size" | ||
| }, | ||
| "@screen-sm": { | ||
| "default": "768px", | ||
| "value": "768px", | ||
| "type": "size" | ||
| }, | ||
| "@screen-sm-min": { | ||
| "default": "@screen-sm", | ||
| "value": "@screen-sm", | ||
| "type": "size" | ||
| }, | ||
| "@screen-tablet": { | ||
| "default": "@screen-sm-min", | ||
| "value": "@screen-sm-min", | ||
| "type": "size" | ||
| }, | ||
| "@screen-md": { | ||
| "default": "992px", | ||
| "value": "992px", | ||
| "type": "size" | ||
| }, | ||
| "@screen-md-min": { | ||
| "default": "@screen-md", | ||
| "value": "@screen-md", | ||
| "type": "size" | ||
| }, | ||
| "@screen-desktop": { | ||
| "default": "@screen-md-min", | ||
| "value": "@screen-md-min", | ||
| "type": "size" | ||
| }, | ||
| "@screen-lg": { | ||
| "default": "1200px", | ||
| "value": "1200px", | ||
| "type": "size" | ||
| }, | ||
| "@screen-lg-min": { | ||
| "default": "@screen-lg", | ||
| "value": "@screen-lg", | ||
| "type": "size" | ||
| }, | ||
| "@screen-lg-desktop": { | ||
| "default": "@screen-lg-min", | ||
| "value": "@screen-lg-min", | ||
| "type": "size" | ||
| }, | ||
| "@screen-xs-max": { | ||
| "default": "(@screen-sm-min - 1)", | ||
| "value": "(@screen-sm-min - 1)" | ||
| }, | ||
| "@screen-sm-max": { | ||
| "default": "(@screen-md-min - 1)", | ||
| "value": "(@screen-md-min - 1)" | ||
| }, | ||
| "@screen-md-max": { | ||
| "default": "(@screen-lg-min - 1)", | ||
| "value": "(@screen-lg-min - 1)" | ||
| }, | ||
| "@grid-columns": { | ||
| "default": "12", | ||
| "value": "12" | ||
| }, | ||
| "@grid-gutter-width": { | ||
| "default": "30px", | ||
| "value": "30px", | ||
| "type": "size" | ||
| }, | ||
| "@grid-float-breakpoint": { | ||
| "default": "@screen-sm-min", | ||
| "value": "@screen-sm-min", | ||
| "type": "size" | ||
| }, | ||
| "@grid-float-breakpoint-max": { | ||
| "default": "(@grid-float-breakpoint - 1)", | ||
| "value": "(@grid-float-breakpoint - 1)" | ||
| }, | ||
| "@container-tablet": { | ||
| "default": "(720px + @grid-gutter-width)", | ||
| "value": "(720px + @grid-gutter-width)", | ||
| "type": "size" | ||
| }, | ||
| "@container-sm": { | ||
| "default": "@container-tablet", | ||
| "value": "@container-tablet", | ||
| "type": "size" | ||
| }, | ||
| "@container-desktop": { | ||
| "default": "(940px + @grid-gutter-width)", | ||
| "value": "(940px + @grid-gutter-width)", | ||
| "type": "size" | ||
| }, | ||
| "@container-md": { | ||
| "default": "@container-desktop", | ||
| "value": "@container-desktop", | ||
| "type": "size" | ||
| }, | ||
| "@container-large-desktop": { | ||
| "default": "(1140px + @grid-gutter-width)", | ||
| "value": "(1140px + @grid-gutter-width)", | ||
| "type": "size" | ||
| }, | ||
| "@container-lg": { | ||
| "default": "@container-large-desktop", | ||
| "value": "@container-large-desktop", | ||
| "type": "size" | ||
| }, | ||
| "@navbar-height": { | ||
| "default": "50px", | ||
| "value": "45px", | ||
| "type": "size" | ||
| }, | ||
| "@navbar-margin-bottom": { | ||
| "default": "@line-height-computed", | ||
| "value": "@line-height-computed" | ||
| }, | ||
| "@navbar-border-radius": { | ||
| "default": "@border-radius-base", | ||
| "value": "@border-radius-base", | ||
| "type": "size" | ||
| }, | ||
| "@navbar-padding-horizontal": { | ||
| "default": "floor((@grid-gutter-width / 2))", | ||
| "value": "floor((@grid-gutter-width / 2))" | ||
| }, | ||
| "@navbar-padding-vertical": { | ||
| "default": "((@navbar-height - @line-height-computed) / 2)", | ||
| "value": "((@navbar-height - @line-height-computed) / 2)" | ||
| }, | ||
| "@navbar-collapse-max-height": { | ||
| "default": "340px", | ||
| "value": "340px", | ||
| "type": "size" | ||
| }, | ||
| "@navbar-default-color": { | ||
| "default": "#777", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-default-bg": { | ||
| "default": "#f8f8f8", | ||
| "value": "@gray-dark", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-default-border": { | ||
| "default": "darken(@navbar-default-bg, 6.5%)", | ||
| "value": "darken(@navbar-default-bg, 6.5%)", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-default-link-color": { | ||
| "default": "#777", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-default-link-hover-color": { | ||
| "default": "#333", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-default-link-hover-bg": { | ||
| "default": "transparent", | ||
| "value": "#272727" | ||
| }, | ||
| "@navbar-default-link-active-color": { | ||
| "default": "#555", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-default-link-active-bg": { | ||
| "default": "darken(@navbar-default-bg, 6.5%)", | ||
| "value": "#272727", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-default-link-disabled-color": { | ||
| "default": "#ccc", | ||
| "value": "#ccc", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-default-link-disabled-bg": { | ||
| "default": "transparent", | ||
| "value": "transparent" | ||
| }, | ||
| "@navbar-default-brand-color": { | ||
| "default": "@navbar-default-link-color", | ||
| "value": "@navbar-default-link-color", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-default-brand-hover-color": { | ||
| "default": "darken(@navbar-default-brand-color, 10%)", | ||
| "value": "@navbar-default-brand-color", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-default-brand-hover-bg": { | ||
| "default": "transparent", | ||
| "value": "transparent" | ||
| }, | ||
| "@navbar-default-toggle-hover-bg": { | ||
| "default": "#ddd", | ||
| "value": "transparent", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-default-toggle-icon-bar-bg": { | ||
| "default": "#888", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-default-toggle-border-color": { | ||
| "default": "#ddd", | ||
| "value": "transparent", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-inverse-color": { | ||
| "default": "lighten(@gray-light, 15%)", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-inverse-bg": { | ||
| "default": "#222", | ||
| "value": "@brand-primary", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-inverse-border": { | ||
| "default": "darken(@navbar-inverse-bg, 10%)", | ||
| "value": "darken(@navbar-inverse-bg, 10%)", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-inverse-link-color": { | ||
| "default": "lighten(@gray-light, 15%)", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-inverse-link-hover-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-inverse-link-hover-bg": { | ||
| "default": "transparent", | ||
| "value": "darken(@navbar-inverse-bg, 10%)" | ||
| }, | ||
| "@navbar-inverse-link-active-color": { | ||
| "default": "@navbar-inverse-link-hover-color", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-inverse-link-active-bg": { | ||
| "default": "darken(@navbar-inverse-bg, 10%)", | ||
| "value": "darken(@navbar-inverse-bg, 10%)", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-inverse-link-disabled-color": { | ||
| "default": "#444", | ||
| "value": "#444", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-inverse-link-disabled-bg": { | ||
| "default": "transparent", | ||
| "value": "transparent" | ||
| }, | ||
| "@navbar-inverse-brand-color": { | ||
| "default": "@navbar-inverse-link-color", | ||
| "value": "@navbar-inverse-link-color", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-inverse-brand-hover-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-inverse-brand-hover-bg": { | ||
| "default": "transparent", | ||
| "value": "transparent" | ||
| }, | ||
| "@navbar-inverse-toggle-hover-bg": { | ||
| "default": "#333", | ||
| "value": "transparent", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-inverse-toggle-icon-bar-bg": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@navbar-inverse-toggle-border-color": { | ||
| "default": "#333", | ||
| "value": "transparent", | ||
| "type": "color" | ||
| }, | ||
| "@nav-link-padding": { | ||
| "default": "10px 15px", | ||
| "value": "10px 15px", | ||
| "type": "size" | ||
| }, | ||
| "@nav-link-hover-bg": { | ||
| "default": "@gray-lighter", | ||
| "value": "@gray-lighter", | ||
| "type": "color" | ||
| }, | ||
| "@nav-disabled-link-color": { | ||
| "default": "@gray-light", | ||
| "value": "@gray-light", | ||
| "type": "color" | ||
| }, | ||
| "@nav-disabled-link-hover-color": { | ||
| "default": "@gray-light", | ||
| "value": "@gray-light", | ||
| "type": "color" | ||
| }, | ||
| "@nav-tabs-border-color": { | ||
| "default": "#ddd", | ||
| "value": "@table-border-color", | ||
| "type": "color" | ||
| }, | ||
| "@nav-tabs-link-hover-border-color": { | ||
| "default": "@gray-lighter", | ||
| "value": "@gray-lighter", | ||
| "type": "color" | ||
| }, | ||
| "@nav-tabs-active-link-hover-bg": { | ||
| "default": "@body-bg", | ||
| "value": "@body-bg", | ||
| "type": "color" | ||
| }, | ||
| "@nav-tabs-active-link-hover-color": { | ||
| "default": "@gray", | ||
| "value": "@gray", | ||
| "type": "color" | ||
| }, | ||
| "@nav-tabs-active-link-hover-border-color": { | ||
| "default": "#ddd", | ||
| "value": "@table-border-color", | ||
| "type": "color" | ||
| }, | ||
| "@nav-tabs-justified-link-border-color": { | ||
| "default": "#ddd", | ||
| "value": "@table-border-color", | ||
| "type": "color" | ||
| }, | ||
| "@nav-tabs-justified-active-link-border-color": { | ||
| "default": "@body-bg", | ||
| "value": "@body-bg", | ||
| "type": "color" | ||
| }, | ||
| "@nav-pills-border-radius": { | ||
| "default": "@border-radius-base", | ||
| "value": "@border-radius-base", | ||
| "type": "size" | ||
| }, | ||
| "@nav-pills-active-link-hover-bg": { | ||
| "default": "@component-active-bg", | ||
| "value": "@component-active-bg", | ||
| "type": "color" | ||
| }, | ||
| "@nav-pills-active-link-hover-color": { | ||
| "default": "@component-active-color", | ||
| "value": "@component-active-color", | ||
| "type": "color" | ||
| }, | ||
| "@pagination-color": { | ||
| "default": "@link-color", | ||
| "value": "@link-color", | ||
| "type": "color" | ||
| }, | ||
| "@pagination-bg": { | ||
| "default": "#fff", | ||
| "value": "transparent", | ||
| "type": "color" | ||
| }, | ||
| "@pagination-border": { | ||
| "default": "#ddd", | ||
| "value": "transparent", | ||
| "type": "color" | ||
| }, | ||
| "@pagination-hover-color": { | ||
| "default": "@link-hover-color", | ||
| "value": "@link-hover-color", | ||
| "type": "color" | ||
| }, | ||
| "@pagination-hover-bg": { | ||
| "default": "@gray-lighter", | ||
| "value": "@gray-lighter", | ||
| "type": "color" | ||
| }, | ||
| "@pagination-hover-border": { | ||
| "default": "#ddd", | ||
| "value": "transparent", | ||
| "type": "color" | ||
| }, | ||
| "@pagination-active-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@pagination-active-bg": { | ||
| "default": "@brand-primary", | ||
| "value": "@brand-primary", | ||
| "type": "color" | ||
| }, | ||
| "@pagination-active-border": { | ||
| "default": "@brand-primary", | ||
| "value": "transparent", | ||
| "type": "color" | ||
| }, | ||
| "@pagination-disabled-color": { | ||
| "default": "@gray-light", | ||
| "value": "@gray-light", | ||
| "type": "color" | ||
| }, | ||
| "@pagination-disabled-bg": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@pagination-disabled-border": { | ||
| "default": "#ddd", | ||
| "value": "transparent", | ||
| "type": "color" | ||
| }, | ||
| "@pager-bg": { | ||
| "default": "@pagination-bg", | ||
| "value": "@pagination-bg", | ||
| "type": "color" | ||
| }, | ||
| "@pager-border": { | ||
| "default": "@pagination-border", | ||
| "value": "@pagination-border", | ||
| "type": "color" | ||
| }, | ||
| "@pager-border-radius": { | ||
| "default": "15px", | ||
| "value": "3px", | ||
| "type": "size" | ||
| }, | ||
| "@pager-hover-bg": { | ||
| "default": "@pagination-hover-bg", | ||
| "value": "@pagination-hover-bg", | ||
| "type": "color" | ||
| }, | ||
| "@pager-active-bg": { | ||
| "default": "@pagination-active-bg", | ||
| "value": "@pagination-active-bg", | ||
| "type": "color" | ||
| }, | ||
| "@pager-active-color": { | ||
| "default": "@pagination-active-color", | ||
| "value": "@pagination-active-color", | ||
| "type": "color" | ||
| }, | ||
| "@pager-disabled-color": { | ||
| "default": "@pagination-disabled-color", | ||
| "value": "@gray-light", | ||
| "type": "color" | ||
| }, | ||
| "@jumbotron-padding": { | ||
| "default": "30px", | ||
| "value": "30px", | ||
| "type": "size" | ||
| }, | ||
| "@jumbotron-color": { | ||
| "default": "inherit", | ||
| "value": "inherit" | ||
| }, | ||
| "@jumbotron-bg": { | ||
| "default": "@gray-lighter", | ||
| "value": "#fafafa", | ||
| "type": "color" | ||
| }, | ||
| "@jumbotron-heading-color": { | ||
| "default": "inherit", | ||
| "value": "inherit" | ||
| }, | ||
| "@jumbotron-font-size": { | ||
| "default": "ceil((@font-size-base * 1.5))", | ||
| "value": "ceil((@font-size-base * 1.5))", | ||
| "type": "font-size" | ||
| }, | ||
| "@jumbotron-heading-font-size": { | ||
| "default": "ceil((@font-size-base * 4.5))", | ||
| "value": "ceil((@font-size-base * 4.5))", | ||
| "type": "font-size" | ||
| }, | ||
| "@state-success-text": { | ||
| "default": "#3c763d", | ||
| "value": "@brand-success", | ||
| "type": "color" | ||
| }, | ||
| "@state-success-bg": { | ||
| "default": "#dff0d8", | ||
| "value": "#dff0d8", | ||
| "type": "color" | ||
| }, | ||
| "@state-success-border": { | ||
| "default": "darken(spin(@state-success-bg, -10), 5%)", | ||
| "value": "darken(@state-success-text, 5%)", | ||
| "type": "color" | ||
| }, | ||
| "@state-info-text": { | ||
| "default": "#31708f", | ||
| "value": "@brand-info", | ||
| "type": "color" | ||
| }, | ||
| "@state-info-bg": { | ||
| "default": "#d9edf7", | ||
| "value": "#d9edf7", | ||
| "type": "color" | ||
| }, | ||
| "@state-info-border": { | ||
| "default": "darken(spin(@state-info-bg, -10), 7%)", | ||
| "value": "darken(@state-info-text, 7%)", | ||
| "type": "color" | ||
| }, | ||
| "@state-warning-text": { | ||
| "default": "#8a6d3b", | ||
| "value": "@brand-warning", | ||
| "type": "color" | ||
| }, | ||
| "@state-warning-bg": { | ||
| "default": "#fcf8e3", | ||
| "value": "#fcf8e3", | ||
| "type": "color" | ||
| }, | ||
| "@state-warning-border": { | ||
| "default": "darken(spin(@state-warning-bg, -10), 5%)", | ||
| "value": "darken(@state-warning-text, 5%)", | ||
| "type": "color" | ||
| }, | ||
| "@state-danger-text": { | ||
| "default": "#a94442", | ||
| "value": "@brand-danger", | ||
| "type": "color" | ||
| }, | ||
| "@state-danger-bg": { | ||
| "default": "#f2dede", | ||
| "value": "#f2dede", | ||
| "type": "color" | ||
| }, | ||
| "@state-danger-border": { | ||
| "default": "darken(spin(@state-danger-bg, -10), 5%)", | ||
| "value": "darken(@state-danger-text, 5%)", | ||
| "type": "color" | ||
| }, | ||
| "@tooltip-max-width": { | ||
| "default": "200px", | ||
| "value": "200px", | ||
| "type": "size" | ||
| }, | ||
| "@tooltip-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@tooltip-bg": { | ||
| "default": "#000", | ||
| "value": "@gray-dark", | ||
| "type": "color" | ||
| }, | ||
| "@tooltip-opacity": { | ||
| "default": ".9", | ||
| "value": ".9" | ||
| }, | ||
| "@tooltip-arrow-width": { | ||
| "default": "5px", | ||
| "value": "5px", | ||
| "type": "size" | ||
| }, | ||
| "@tooltip-arrow-color": { | ||
| "default": "@tooltip-bg", | ||
| "value": "@tooltip-bg", | ||
| "type": "color" | ||
| }, | ||
| "@popover-bg": { | ||
| "default": "#fff", | ||
| "value": "@gray-dark", | ||
| "type": "color" | ||
| }, | ||
| "@popover-max-width": { | ||
| "default": "276px", | ||
| "value": "276px", | ||
| "type": "size" | ||
| }, | ||
| "@popover-border-color": { | ||
| "default": "rgba(0,0,0,.2)", | ||
| "value": "transparent" | ||
| }, | ||
| "@popover-fallback-border-color": { | ||
| "default": "#ccc", | ||
| "value": "@gray-dark", | ||
| "type": "color" | ||
| }, | ||
| "@popover-title-bg": { | ||
| "default": "darken(@popover-bg, 3%)", | ||
| "value": "@popover-bg", | ||
| "type": "color" | ||
| }, | ||
| "@popover-arrow-width": { | ||
| "default": "10px", | ||
| "value": "10px", | ||
| "type": "size" | ||
| }, | ||
| "@popover-arrow-color": { | ||
| "default": "@popover-bg", | ||
| "value": "@popover-bg", | ||
| "type": "color" | ||
| }, | ||
| "@popover-arrow-outer-width": { | ||
| "default": "(@popover-arrow-width + 1)", | ||
| "value": "(@popover-arrow-width + 1)" | ||
| }, | ||
| "@popover-arrow-outer-color": { | ||
| "default": "fadein(@popover-border-color, 5%)", | ||
| "value": "fadein(@popover-border-color, 5%)" | ||
| }, | ||
| "@popover-arrow-outer-fallback-color": { | ||
| "default": "darken(@popover-fallback-border-color, 20%)", | ||
| "value": "darken(@popover-fallback-border-color, 20%)", | ||
| "type": "color" | ||
| }, | ||
| "@label-default-bg": { | ||
| "default": "@gray-light", | ||
| "value": "@gray-light", | ||
| "type": "color" | ||
| }, | ||
| "@label-primary-bg": { | ||
| "default": "@brand-primary", | ||
| "value": "@brand-primary", | ||
| "type": "color" | ||
| }, | ||
| "@label-success-bg": { | ||
| "default": "@brand-success", | ||
| "value": "@brand-success", | ||
| "type": "color" | ||
| }, | ||
| "@label-info-bg": { | ||
| "default": "@brand-info", | ||
| "value": "@brand-info", | ||
| "type": "color" | ||
| }, | ||
| "@label-warning-bg": { | ||
| "default": "@brand-warning", | ||
| "value": "@brand-warning", | ||
| "type": "color" | ||
| }, | ||
| "@label-danger-bg": { | ||
| "default": "@brand-danger", | ||
| "value": "@brand-danger", | ||
| "type": "color" | ||
| }, | ||
| "@label-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@label-link-hover-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@modal-inner-padding": { | ||
| "default": "15px", | ||
| "value": "20px", | ||
| "type": "size" | ||
| }, | ||
| "@modal-title-padding": { | ||
| "default": "15px", | ||
| "value": "15px", | ||
| "type": "size" | ||
| }, | ||
| "@modal-title-line-height": { | ||
| "default": "@line-height-base", | ||
| "value": "@line-height-base" | ||
| }, | ||
| "@modal-content-bg": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@modal-content-border-color": { | ||
| "default": "rgba(0,0,0,.2)", | ||
| "value": "rgba(0,0,0,.2)" | ||
| }, | ||
| "@modal-content-fallback-border-color": { | ||
| "default": "#999", | ||
| "value": "#999", | ||
| "type": "color" | ||
| }, | ||
| "@modal-backdrop-bg": { | ||
| "default": "#000", | ||
| "value": "#000", | ||
| "type": "color" | ||
| }, | ||
| "@modal-backdrop-opacity": { | ||
| "default": ".5", | ||
| "value": ".5" | ||
| }, | ||
| "@modal-header-border-color": { | ||
| "default": "#e5e5e5", | ||
| "value": "#e5e5e5", | ||
| "type": "color" | ||
| }, | ||
| "@modal-footer-border-color": { | ||
| "default": "@modal-header-border-color", | ||
| "value": "@modal-header-border-color", | ||
| "type": "color" | ||
| }, | ||
| "@modal-lg": { | ||
| "default": "900px", | ||
| "value": "900px", | ||
| "type": "size" | ||
| }, | ||
| "@modal-md": { | ||
| "default": "600px", | ||
| "value": "600px", | ||
| "type": "size" | ||
| }, | ||
| "@modal-sm": { | ||
| "default": "300px", | ||
| "value": "300px", | ||
| "type": "size" | ||
| }, | ||
| "@alert-padding": { | ||
| "default": "15px", | ||
| "value": "15px", | ||
| "type": "size" | ||
| }, | ||
| "@alert-border-radius": { | ||
| "default": "@border-radius-base", | ||
| "value": "@border-radius-base", | ||
| "type": "size" | ||
| }, | ||
| "@alert-link-font-weight": { | ||
| "default": "bold", | ||
| "value": "bold" | ||
| }, | ||
| "@alert-success-bg": { | ||
| "default": "@state-success-bg", | ||
| "value": "@brand-success", | ||
| "type": "color" | ||
| }, | ||
| "@alert-success-text": { | ||
| "default": "@state-success-text", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@alert-success-border": { | ||
| "default": "@state-success-border", | ||
| "value": "@state-success-border", | ||
| "type": "color" | ||
| }, | ||
| "@alert-info-bg": { | ||
| "default": "@state-info-bg", | ||
| "value": "@brand-info", | ||
| "type": "color" | ||
| }, | ||
| "@alert-info-text": { | ||
| "default": "@state-info-text", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@alert-info-border": { | ||
| "default": "@state-info-border", | ||
| "value": "@state-info-border", | ||
| "type": "color" | ||
| }, | ||
| "@alert-warning-bg": { | ||
| "default": "@state-warning-bg", | ||
| "value": "@brand-warning", | ||
| "type": "color" | ||
| }, | ||
| "@alert-warning-text": { | ||
| "default": "@state-warning-text", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@alert-warning-border": { | ||
| "default": "@state-warning-border", | ||
| "value": "@state-warning-border", | ||
| "type": "color" | ||
| }, | ||
| "@alert-danger-bg": { | ||
| "default": "@state-danger-bg", | ||
| "value": "@brand-danger", | ||
| "type": "color" | ||
| }, | ||
| "@alert-danger-text": { | ||
| "default": "@state-danger-text", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@alert-danger-border": { | ||
| "default": "@state-danger-border", | ||
| "value": "@state-danger-border", | ||
| "type": "color" | ||
| }, | ||
| "@progress-bg": { | ||
| "default": "#f5f5f5", | ||
| "value": "#f5f5f5", | ||
| "type": "color" | ||
| }, | ||
| "@progress-bar-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@progress-border-radius": { | ||
| "default": "@border-radius-base", | ||
| "value": "@border-radius-base", | ||
| "type": "size" | ||
| }, | ||
| "@progress-bar-bg": { | ||
| "default": "@brand-primary", | ||
| "value": "@brand-primary", | ||
| "type": "color" | ||
| }, | ||
| "@progress-bar-success-bg": { | ||
| "default": "@brand-success", | ||
| "value": "@brand-success", | ||
| "type": "color" | ||
| }, | ||
| "@progress-bar-warning-bg": { | ||
| "default": "@brand-warning", | ||
| "value": "@brand-warning", | ||
| "type": "color" | ||
| }, | ||
| "@progress-bar-danger-bg": { | ||
| "default": "@brand-danger", | ||
| "value": "@brand-danger", | ||
| "type": "color" | ||
| }, | ||
| "@progress-bar-info-bg": { | ||
| "default": "@brand-info", | ||
| "value": "@brand-info", | ||
| "type": "color" | ||
| }, | ||
| "@list-group-bg": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@list-group-border": { | ||
| "default": "#ddd", | ||
| "value": "@table-border-color", | ||
| "type": "color" | ||
| }, | ||
| "@list-group-border-radius": { | ||
| "default": "@border-radius-base", | ||
| "value": "@border-radius-base", | ||
| "type": "size" | ||
| }, | ||
| "@list-group-hover-bg": { | ||
| "default": "#f5f5f5", | ||
| "value": "#f5f5f5", | ||
| "type": "color" | ||
| }, | ||
| "@list-group-active-color": { | ||
| "default": "@component-active-color", | ||
| "value": "@component-active-color", | ||
| "type": "color" | ||
| }, | ||
| "@list-group-active-bg": { | ||
| "default": "@component-active-bg", | ||
| "value": "@component-active-bg", | ||
| "type": "color" | ||
| }, | ||
| "@list-group-active-border": { | ||
| "default": "@list-group-active-bg", | ||
| "value": "@list-group-active-bg", | ||
| "type": "color" | ||
| }, | ||
| "@list-group-active-text-color": { | ||
| "default": "lighten(@list-group-active-bg, 40%)", | ||
| "value": "lighten(@list-group-active-bg, 40%)", | ||
| "type": "color" | ||
| }, | ||
| "@list-group-disabled-color": { | ||
| "default": "@gray-light", | ||
| "value": "@gray-light", | ||
| "type": "color" | ||
| }, | ||
| "@list-group-disabled-bg": { | ||
| "default": "@gray-lighter", | ||
| "value": "@gray-lighter", | ||
| "type": "color" | ||
| }, | ||
| "@list-group-disabled-text-color": { | ||
| "default": "@list-group-disabled-color", | ||
| "value": "@list-group-disabled-color", | ||
| "type": "color" | ||
| }, | ||
| "@list-group-link-color": { | ||
| "default": "#555", | ||
| "value": "#555", | ||
| "type": "color" | ||
| }, | ||
| "@list-group-link-hover-color": { | ||
| "default": "@list-group-link-color", | ||
| "value": "@list-group-link-color", | ||
| "type": "color" | ||
| }, | ||
| "@list-group-link-heading-color": { | ||
| "default": "#333", | ||
| "value": "#333", | ||
| "type": "color" | ||
| }, | ||
| "@panel-bg": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@panel-body-padding": { | ||
| "default": "15px", | ||
| "value": "15px", | ||
| "type": "size" | ||
| }, | ||
| "@panel-heading-padding": { | ||
| "default": "10px 15px", | ||
| "value": "10px 15px", | ||
| "type": "size" | ||
| }, | ||
| "@panel-footer-padding": { | ||
| "default": "@panel-heading-padding", | ||
| "value": "@panel-heading-padding", | ||
| "type": "size" | ||
| }, | ||
| "@panel-border-radius": { | ||
| "default": "@border-radius-base", | ||
| "value": "@border-radius-base", | ||
| "type": "size" | ||
| }, | ||
| "@panel-inner-border": { | ||
| "default": "#ddd", | ||
| "value": "@table-border-color", | ||
| "type": "color" | ||
| }, | ||
| "@panel-footer-bg": { | ||
| "default": "#f5f5f5", | ||
| "value": "#f5f5f5", | ||
| "type": "color" | ||
| }, | ||
| "@panel-default-text": { | ||
| "default": "@gray-dark", | ||
| "value": "@gray-dark", | ||
| "type": "color" | ||
| }, | ||
| "@panel-default-border": { | ||
| "default": "#ddd", | ||
| "value": "@table-border-color", | ||
| "type": "color" | ||
| }, | ||
| "@panel-default-heading-bg": { | ||
| "default": "#f5f5f5", | ||
| "value": "#f5f5f5", | ||
| "type": "color" | ||
| }, | ||
| "@panel-primary-text": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@panel-primary-border": { | ||
| "default": "@brand-primary", | ||
| "value": "@brand-primary", | ||
| "type": "color" | ||
| }, | ||
| "@panel-primary-heading-bg": { | ||
| "default": "@brand-primary", | ||
| "value": "@brand-primary", | ||
| "type": "color" | ||
| }, | ||
| "@panel-success-text": { | ||
| "default": "@state-success-text", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@panel-success-border": { | ||
| "default": "@state-success-border", | ||
| "value": "@state-success-border", | ||
| "type": "color" | ||
| }, | ||
| "@panel-success-heading-bg": { | ||
| "default": "@state-success-bg", | ||
| "value": "@brand-success", | ||
| "type": "color" | ||
| }, | ||
| "@panel-info-text": { | ||
| "default": "@state-info-text", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@panel-info-border": { | ||
| "default": "@state-info-border", | ||
| "value": "@state-info-border", | ||
| "type": "color" | ||
| }, | ||
| "@panel-info-heading-bg": { | ||
| "default": "@state-info-bg", | ||
| "value": "@brand-info", | ||
| "type": "color" | ||
| }, | ||
| "@panel-warning-text": { | ||
| "default": "@state-warning-text", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@panel-warning-border": { | ||
| "default": "@state-warning-border", | ||
| "value": "@state-warning-border", | ||
| "type": "color" | ||
| }, | ||
| "@panel-warning-heading-bg": { | ||
| "default": "@state-warning-bg", | ||
| "value": "@brand-warning", | ||
| "type": "color" | ||
| }, | ||
| "@panel-danger-text": { | ||
| "default": "@state-danger-text", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@panel-danger-border": { | ||
| "default": "@state-danger-border", | ||
| "value": "@state-danger-border", | ||
| "type": "color" | ||
| }, | ||
| "@panel-danger-heading-bg": { | ||
| "default": "@state-danger-bg", | ||
| "value": "@brand-danger", | ||
| "type": "color" | ||
| }, | ||
| "@thumbnail-padding": { | ||
| "default": "4px", | ||
| "value": "4px", | ||
| "type": "size" | ||
| }, | ||
| "@thumbnail-bg": { | ||
| "default": "@body-bg", | ||
| "value": "@body-bg", | ||
| "type": "color" | ||
| }, | ||
| "@thumbnail-border": { | ||
| "default": "#ddd", | ||
| "value": "@table-border-color", | ||
| "type": "color" | ||
| }, | ||
| "@thumbnail-border-radius": { | ||
| "default": "@border-radius-base", | ||
| "value": "@border-radius-base", | ||
| "type": "size" | ||
| }, | ||
| "@thumbnail-caption-color": { | ||
| "default": "@text-color", | ||
| "value": "@text-color", | ||
| "type": "color" | ||
| }, | ||
| "@thumbnail-caption-padding": { | ||
| "default": "9px", | ||
| "value": "9px", | ||
| "type": "size" | ||
| }, | ||
| "@well-bg": { | ||
| "default": "#f5f5f5", | ||
| "value": "@jumbotron-bg", | ||
| "type": "color" | ||
| }, | ||
| "@well-border": { | ||
| "default": "darken(@well-bg, 7%)", | ||
| "value": "darken(@well-bg, 7%)", | ||
| "type": "color" | ||
| }, | ||
| "@badge-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@badge-link-hover-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@badge-bg": { | ||
| "default": "@gray-light", | ||
| "value": "@btn-primary-bg", | ||
| "type": "color" | ||
| }, | ||
| "@badge-active-color": { | ||
| "default": "@link-color", | ||
| "value": "@link-color", | ||
| "type": "color" | ||
| }, | ||
| "@badge-active-bg": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@badge-font-weight": { | ||
| "default": "bold", | ||
| "value": "bold" | ||
| }, | ||
| "@badge-line-height": { | ||
| "default": "1", | ||
| "value": "1" | ||
| }, | ||
| "@badge-border-radius": { | ||
| "default": "10px", | ||
| "value": "10px", | ||
| "type": "size" | ||
| }, | ||
| "@breadcrumb-padding-vertical": { | ||
| "default": "8px", | ||
| "value": "8px", | ||
| "type": "size" | ||
| }, | ||
| "@breadcrumb-padding-horizontal": { | ||
| "default": "15px", | ||
| "value": "15px", | ||
| "type": "size" | ||
| }, | ||
| "@breadcrumb-bg": { | ||
| "default": "#f5f5f5", | ||
| "value": "#f5f5f5", | ||
| "type": "color" | ||
| }, | ||
| "@breadcrumb-color": { | ||
| "default": "#ccc", | ||
| "value": "@gray-light", | ||
| "type": "color" | ||
| }, | ||
| "@breadcrumb-active-color": { | ||
| "default": "@gray-light", | ||
| "value": "@gray-dark", | ||
| "type": "color" | ||
| }, | ||
| "@breadcrumb-separator": { | ||
| "default": "\"/\"", | ||
| "value": "\"/\"" | ||
| }, | ||
| "@carousel-text-shadow": { | ||
| "default": "0 1px 2px rgba(0,0,0,.6)", | ||
| "value": "0 1px 2px rgba(0,0,0,.6)", | ||
| "type": "size" | ||
| }, | ||
| "@carousel-control-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@carousel-control-width": { | ||
| "default": "15%", | ||
| "value": "15%" | ||
| }, | ||
| "@carousel-control-opacity": { | ||
| "default": ".5", | ||
| "value": ".5" | ||
| }, | ||
| "@carousel-control-font-size": { | ||
| "default": "20px", | ||
| "value": "20px", | ||
| "type": "font-size" | ||
| }, | ||
| "@carousel-indicator-active-bg": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@carousel-indicator-border-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@carousel-caption-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@close-font-weight": { | ||
| "default": "bold", | ||
| "value": "bold" | ||
| }, | ||
| "@close-color": { | ||
| "default": "#000", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@close-text-shadow": { | ||
| "default": "0 1px 0 #fff", | ||
| "value": "0 1px 0 #fff", | ||
| "type": "size" | ||
| }, | ||
| "@code-color": { | ||
| "default": "#c7254e", | ||
| "value": "#c7254e", | ||
| "type": "color" | ||
| }, | ||
| "@code-bg": { | ||
| "default": "#f9f2f4", | ||
| "value": "#f9f2f4", | ||
| "type": "color" | ||
| }, | ||
| "@kbd-color": { | ||
| "default": "#fff", | ||
| "value": "#fff", | ||
| "type": "color" | ||
| }, | ||
| "@kbd-bg": { | ||
| "default": "#333", | ||
| "value": "#333", | ||
| "type": "color" | ||
| }, | ||
| "@pre-bg": { | ||
| "default": "#f5f5f5", | ||
| "value": "#f5f5f5", | ||
| "type": "color" | ||
| }, | ||
| "@pre-color": { | ||
| "default": "@gray-dark", | ||
| "value": "@gray-dark", | ||
| "type": "color" | ||
| }, | ||
| "@pre-border-color": { | ||
| "default": "#ccc", | ||
| "value": "#ccc", | ||
| "type": "color" | ||
| }, | ||
| "@pre-scrollable-max-height": { | ||
| "default": "340px", | ||
| "value": "340px", | ||
| "type": "size" | ||
| }, | ||
| "@component-offset-horizontal": { | ||
| "default": "180px", | ||
| "value": "180px", | ||
| "type": "size" | ||
| }, | ||
| "@text-muted": { | ||
| "default": "@gray-light", | ||
| "value": "@gray-light", | ||
| "type": "color" | ||
| }, | ||
| "@abbr-border-color": { | ||
| "default": "@gray-light", | ||
| "value": "@gray-light", | ||
| "type": "color" | ||
| }, | ||
| "@headings-small-color": { | ||
| "default": "@gray-light", | ||
| "value": "@gray-light", | ||
| "type": "color" | ||
| }, | ||
| "@blockquote-small-color": { | ||
| "default": "@gray-light", | ||
| "value": "@gray", | ||
| "type": "color" | ||
| }, | ||
| "@blockquote-font-size": { | ||
| "default": "(@font-size-base * 1.25)", | ||
| "value": "(@font-size-base * 1.25)", | ||
| "type": "font-size" | ||
| }, | ||
| "@blockquote-border-color": { | ||
| "default": "@gray-lighter", | ||
| "value": "@table-border-color", | ||
| "type": "color" | ||
| }, | ||
| "@page-header-border-color": { | ||
| "default": "@gray-lighter", | ||
| "value": "@table-border-color", | ||
| "type": "color" | ||
| }, | ||
| "@dl-horizontal-offset": { | ||
| "default": "@component-offset-horizontal", | ||
| "value": "@component-offset-horizontal", | ||
| "type": "size" | ||
| }, | ||
| "@hr-border": { | ||
| "default": "@gray-lighter", | ||
| "value": "@table-border-color", | ||
| "type": "color" | ||
| } | ||
| }, | ||
| "css": [ | ||
| "print.less", | ||
| "type.less", | ||
| "code.less", | ||
| "grid.less", | ||
| "tables.less", | ||
| "forms.less", | ||
| "buttons.less", | ||
| "responsive-utilities.less", | ||
| "glyphicons.less", | ||
| "button-groups.less", | ||
| "input-groups.less", | ||
| "navs.less", | ||
| "navbar.less", | ||
| "breadcrumbs.less", | ||
| "pagination.less", | ||
| "pager.less", | ||
| "labels.less", | ||
| "badges.less", | ||
| "jumbotron.less", | ||
| "thumbnails.less", | ||
| "alerts.less", | ||
| "progress-bars.less", | ||
| "media.less", | ||
| "list-group.less", | ||
| "panels.less", | ||
| "responsive-embed.less", | ||
| "wells.less", | ||
| "close.less", | ||
| "component-animations.less", | ||
| "dropdowns.less", | ||
| "tooltip.less", | ||
| "popovers.less", | ||
| "modals.less", | ||
| "carousel.less" | ||
| ], | ||
| "js": [ | ||
| "alert.js", | ||
| "button.js", | ||
| "carousel.js", | ||
| "dropdown.js", | ||
| "modal.js", | ||
| "tooltip.js", | ||
| "popover.js", | ||
| "tab.js", | ||
| "affix.js", | ||
| "collapse.js", | ||
| "scrollspy.js", | ||
| "transition.js" | ||
| ] | ||
| }, | ||
| "extensions": {}, | ||
| "theme": { | ||
| "name": "Yeti", | ||
| "description": "A friendly foundation", | ||
| "thumbnail": "https://bootswatch.com/yeti/thumbnail.png", | ||
| "preview": "https://bootswatch.com/yeti/", | ||
| "css": "https://bootswatch.com/yeti/bootstrap.css", | ||
| "cssMin": "https://bootswatch.com/yeti/bootstrap.min.css", | ||
| "cssCdn": "https://maxcdn.bootstrapcdn.com/bootswatch/latest/yeti/bootstrap.min.css", | ||
| "less": "https://bootswatch.com/yeti/bootswatch.less", | ||
| "lessVariables": "https://bootswatch.com/yeti/variables.less", | ||
| "scss": "https://bootswatch.com/yeti/_bootswatch.scss", | ||
| "scssVariables": "https://bootswatch.com/yeti/_variables.scss" | ||
| } | ||
| } |
Sorry, the diff of this file is too big to display
| .left-col, .right-col, | ||
| .sidebar, .docs-col { | ||
| top: 45px; | ||
| } |
+1
-1
@@ -48,2 +48,3 @@ var FS = require('fs'); | ||
| "bower/angular-highlightjs/angular-highlightjs.min.js", | ||
| "bower/angular-route/angular-route.js", | ||
| "bower/angular-marked/angular-marked.js", | ||
@@ -57,3 +58,2 @@ "bower/angular-xeditable/dist/js/xeditable.min.js", | ||
| "bower/angular-ui-codemirror/ui-codemirror.js", | ||
| "js/smooth-scroll.js", | ||
| "js/examples.js", | ||
@@ -60,0 +60,0 @@ "js/lucy.js", |
+4
-3
@@ -24,9 +24,10 @@ { | ||
| "jquery": "~2.1.4", | ||
| "swagger-parser": "~2.4.1", | ||
| "swagger-parser": "~3.4.0", | ||
| "WebCodeBeauty": "~1.0.0", | ||
| "zeroclipboard": "~2.2.0" | ||
| "zeroclipboard": "~2.2.0", | ||
| "angular-route": "~1.5.0" | ||
| }, | ||
| "resolutions": { | ||
| "angular": "1.4.3" | ||
| "angular": "1.5.0" | ||
| } | ||
| } |
@@ -12,2 +12,3 @@ var _ = require('underscore'); | ||
| self.options.oauth_callback = self.options.oauth_callback || ''; | ||
| self.options.codegenPath = self.options.codegenPath || '/code/build/request'; | ||
@@ -19,3 +20,3 @@ self.router = Express.Router(); | ||
| } | ||
| var codeRouter = require('../routes/code.js'); | ||
| var codeRouter = require('../routes/code.js')(); | ||
| self.router.use('/code', codeRouter); | ||
@@ -48,5 +49,12 @@ codeRouter.proxy = self.options.proxy; | ||
| jsIncludes: self.options.jsIncludes || [], | ||
| options: { | ||
| disableAutorefresh: self.options.disableAutorefresh, | ||
| codegenPath: self.options.codegenPath, | ||
| embedParameters: self.options.embedParameters, | ||
| credentialCookie: self.options.credentialCookie, | ||
| }, | ||
| } | ||
| if (self.options.swagger) { | ||
| renderOpts.specURL = self.options.basePath + '/swagger.json', | ||
| renderOpts.options.disableSwaggerUpload = true; | ||
| codeRouter.swagger = self.options.swagger; | ||
@@ -53,0 +61,0 @@ self.router.get('/swagger.json', function(req, res) { |
@@ -298,6 +298,13 @@ var Path = require('path'); | ||
| if (oauthFlow === 'implicit') { | ||
| query['access_token'] = {answer: 'oauth2'}; | ||
| } else { | ||
| query['access_token'] = {answer: 'oauth2'}; | ||
| } else if (oauthFlow) { | ||
| headers['Authorization'] = {join: ['Bearer ', {answer: 'oauth2'}]}; | ||
| } | ||
| for (var def in spec.securityDefinitions) { | ||
| def = spec.securityDefinitions[def]; | ||
| if (def.type === 'apiKey') { | ||
| if (def.in === 'header') headers[def.name] = {answer: def.name}; | ||
| if (def.in === 'query') query[def.name] = {answer: def.name}; | ||
| } | ||
| } | ||
| var pathParts = [basePath + path]; | ||
@@ -304,0 +311,0 @@ while (pathParts[0].indexOf('/') === 0) pathParts[0] = pathParts[0].substring(1); |
+2
-2
| { | ||
| "name": "lucy-console", | ||
| "version": "1.0.8", | ||
| "version": "1.1.0", | ||
| "description": "", | ||
@@ -34,4 +34,4 @@ "main": "index.js", | ||
| "devDependencies": { | ||
| "strapping": "^1.5.2" | ||
| "strapping": "^1.6.0" | ||
| } | ||
| } |
+60
-59
@@ -5,69 +5,70 @@ var Util = require('util'); | ||
| var RequestBuilder = Codegen.generators.request; | ||
| var Router = module.exports = require('express').Router(); | ||
| var SwaggerImporter = require('../lib/swagger-importer.js'); | ||
| module.exports = function() { | ||
| var Router = require('express').Router(); | ||
| Router.use(require('body-parser').json({limit: '500kb'})); | ||
| var SwaggerImporter = require('../lib/swagger-importer.js'); | ||
| Router.use(require('body-parser').json({limit: '500kb'})); | ||
| Router.get('/languages', function(req, res) { | ||
| res.json(RequestBuilder.getLanguages()); | ||
| }); | ||
| Router.get('/languages', function(req, res) { | ||
| res.json(RequestBuilder.getLanguages()); | ||
| }); | ||
| Router.post('/build/request', function(req, res) { | ||
| RequestBuilder.build(req.body, function(err, code) { | ||
| if (err) return res.status(500).json(err); | ||
| else res.json({code: code}); | ||
| Router.post('/build/request', function(req, res) { | ||
| RequestBuilder.build(req.body, function(err, code) { | ||
| if (err) return res.status(500).json(err); | ||
| else res.json({code: code}); | ||
| }) | ||
| }) | ||
| }) | ||
| var getSpec = function(req, res, next) { | ||
| if (req.body && req.body.swagger) { | ||
| req.swagger = req.body.swagger; | ||
| } else if (Router.swagger) { | ||
| req.swagger = Router.swagger; | ||
| } | ||
| next(); | ||
| } | ||
| var getSpec = function(req, res, next) { | ||
| if (req.body && req.body.swagger) { | ||
| req.swagger = req.body.swagger; | ||
| } else if (Router.swagger) { | ||
| req.swagger = Router.swagger; | ||
| } | ||
| next(); | ||
| } | ||
| var buildEmbed = function(req, res) { | ||
| var buildOpts = { | ||
| language: 'javascript', | ||
| main: {}, | ||
| answers: Util._extend({}, req.body.answers, req.body.keys), | ||
| actions: {}, | ||
| views: {}, | ||
| }; | ||
| var path = req.swagger.paths[req.body.path]; | ||
| if (!path) return res.status(400).json({error: "Path " + req.body.path + " not found"}); | ||
| var route = path[req.body.method]; | ||
| if (!route) return res.status(400).json({error: "Method " + req.body.method + " not found for path " + req.body.method}); | ||
| route.responses = route.responses || {} | ||
| route.responses['200'] = route.responses['200'] || {}; | ||
| var buildEmbed = function(req, res) { | ||
| var buildOpts = { | ||
| language: 'javascript', | ||
| main: {}, | ||
| answers: Util._extend({}, req.body.answers, req.body.keys), | ||
| actions: {}, | ||
| views: {}, | ||
| }; | ||
| var path = req.swagger.paths[req.body.path]; | ||
| if (!path) return res.status(400).json({error: "Path " + req.body.path + " not found"}); | ||
| var route = path[req.body.method]; | ||
| if (!route) return res.status(400).json({error: "Method " + req.body.method + " not found for path " + req.body.method}); | ||
| route.responses = route.responses || {} | ||
| route.responses['200'] = route.responses['200'] || {}; | ||
| var viewName = (req.body.method + req.body.path + '200').replace(/\W/g, ''); | ||
| buildOpts.views[viewName] = {}; | ||
| buildOpts.views[viewName].all = route.responses['200']['x-lucy/view'] || ''; | ||
| buildOpts.main.view = viewName; | ||
| buildOpts.main.data = { | ||
| action: (route.operationId || req.body.method + req.body.path).replace(/\W/g, ''), | ||
| answers: JSON.parse(JSON.stringify(buildOpts.answers)), | ||
| }; | ||
| for (var def in req.swagger.definitions) { | ||
| var viewName = def.replace(/\W/g, ''); | ||
| var view = buildOpts.views[viewName] = {}; | ||
| view.all = req.swagger.definitions[def]['x-lucy/view'] || ''; | ||
| var viewName = (req.body.method + req.body.path + '200').replace(/\W/g, ''); | ||
| buildOpts.views[viewName] = {}; | ||
| buildOpts.views[viewName].all = route.responses['200']['x-lucy/view'] || ''; | ||
| buildOpts.main.view = viewName; | ||
| buildOpts.main.data = { | ||
| action: (route.operationId || req.body.method + req.body.path).replace(/\W/g, ''), | ||
| answers: JSON.parse(JSON.stringify(buildOpts.answers)), | ||
| }; | ||
| for (var def in req.swagger.definitions) { | ||
| var viewName = def.replace(/\W/g, ''); | ||
| var view = buildOpts.views[viewName] = {}; | ||
| view.all = req.swagger.definitions[def]['x-lucy/view'] || ''; | ||
| } | ||
| var opts = {proxy: Router.proxy}; | ||
| var actions = SwaggerImporter.importActions(req.swagger, opts); | ||
| actions.forEach(function(action) { | ||
| action.name = action.name.replace(/\W/g, ''); | ||
| buildOpts.actions[action.name] = {}; | ||
| buildOpts.actions[action.name].javascript = action.contents; | ||
| }) | ||
| Codegen.generators.app.build(buildOpts, function(err, files) { | ||
| res.send(files[0].contents); | ||
| }) | ||
| } | ||
| var opts = {proxy: Router.proxy}; | ||
| var actions = SwaggerImporter.importActions(req.swagger, opts); | ||
| actions.forEach(function(action) { | ||
| action.name = action.name.replace(/\W/g, ''); | ||
| buildOpts.actions[action.name] = {}; | ||
| buildOpts.actions[action.name].javascript = action.contents; | ||
| }) | ||
| Codegen.generators.app.build(buildOpts, function(err, files) { | ||
| res.send(files[0].contents); | ||
| }) | ||
| Router.post('/build/embed', getSpec, buildEmbed); | ||
| return Router; | ||
| } | ||
| Router.post('/build/embed', getSpec, buildEmbed); | ||
@@ -26,3 +26,3 @@ .fa.spin-fix { | ||
| margin-top: 0; | ||
| padding-bottom: 100px; | ||
| padding-bottom: 73px; | ||
| } | ||
@@ -48,3 +48,4 @@ | ||
| background-color: #333; | ||
| padding: 20px; | ||
| padding-top: 15px; | ||
| padding-bottom: 15px; | ||
| } | ||
@@ -84,2 +85,6 @@ | ||
| .alert.row.description-alert { | ||
| margin-bottom: 0px; | ||
| } | ||
| .parameter-list { | ||
@@ -86,0 +91,0 @@ max-height: 338px; |
@@ -11,2 +11,3 @@ .docs-row { | ||
| padding-top: 30px; | ||
| padding-bottom: 100px; | ||
| position: relative; | ||
@@ -114,6 +115,2 @@ } | ||
| .scroll-route { | ||
| background-color: #eee; | ||
| } | ||
| .docs-col hr { | ||
@@ -138,21 +135,20 @@ border-color: #333; | ||
| .scroll-route { | ||
| padding-bottom: 20px; | ||
| .tag-header { | ||
| margin-top: 60px; | ||
| } | ||
| .tag-header.tag-header-first { | ||
| margin-top: 0px; | ||
| border-top: 1px solid #333; | ||
| } | ||
| #README.row { | ||
| background-color: #fff; | ||
| padding-top: 20px; | ||
| .scroll-route { | ||
| padding-bottom: 20px; | ||
| } | ||
| #README.row img.logo { | ||
| max-height: 150px; | ||
| margin-bottom: 20px; | ||
| } | ||
| .scroll-route:last-of-type { | ||
| .scroll-route.scroll-route-last { | ||
| margin-bottom: 30px; | ||
| min-height: 100%; | ||
| margin-bottom: 30px; | ||
| } | ||
| .scroll-route h2 { | ||
| word-wrap: break-word; | ||
| } | ||
@@ -163,6 +159,2 @@ .route-description { | ||
| .scroll-route { | ||
| padding-bottom: 20px; | ||
| } | ||
| table.doc-table { | ||
@@ -169,0 +161,0 @@ table-layout: fixed; |
@@ -1,2 +0,2 @@ | ||
| var App = angular.module('App', ['hc.marked', 'zeroclipboard', 'hljs', 'xeditable', 'ui.codemirror']) | ||
| var App = angular.module('App', ['hc.marked', 'zeroclipboard', 'hljs', 'xeditable', 'ui.codemirror', 'ngRoute']) | ||
| App.run(function(editableOptions) { | ||
@@ -3,0 +3,0 @@ editableOptions.buttons = 'no'; |
@@ -21,3 +21,3 @@ var getSeparatorFromFormat = function(format) { | ||
| App.controller('Console', function($scope) { | ||
| App.controller('Console', function($scope, $location) { | ||
| $scope.onAnswerChanged = function() { | ||
@@ -30,2 +30,3 @@ if ($('#SampleCode').length) $('#SampleCode').scope().refresh(); | ||
| $scope.answers = {} | ||
| if ($scope.isActive('Console')) $location.path('/Console/' + route.method + '/' + encodeURIComponent(route.path)); | ||
| route.operation.parameters.forEach(function(parameter) { | ||
@@ -47,2 +48,7 @@ if (parameter['x-consoleDefault']) { | ||
| $scope.goToBestRoute = function() { | ||
| var startRoute = null; | ||
| var requested = $scope.getRouteFromLocation(); | ||
| if (requested) { | ||
| startRoute = $scope.routes.filter(function(r) {return r.method === requested.method && r.path === requested.path})[0]; | ||
| } | ||
| var taggedRoutes= $scope.routes | ||
@@ -52,3 +58,3 @@ .filter(function(r) { | ||
| }) | ||
| var startRoute = taggedRoutes.filter(function(r) {return r.visual})[0]; | ||
| startRoute = startRoute || taggedRoutes.filter(function(r) {return r.visual})[0]; | ||
| startRoute = startRoute || taggedRoutes[0] || $scope.routes[0]; | ||
@@ -65,3 +71,4 @@ $scope.setActiveRoute(startRoute); | ||
| method: $scope.activeRoute.method, | ||
| returns: 'json' | ||
| returns: 'json', | ||
| answers: $scope.answers, | ||
| }; | ||
@@ -155,3 +162,3 @@ var basePath = $scope.spec.basePath || ''; | ||
| }) | ||
| Lucy.post('/code/build/request', { | ||
| Lucy.post(OPTIONS.codegenPath, { | ||
| request: $scope.getRequestParameters(), | ||
@@ -225,4 +232,7 @@ language: language.id | ||
| } | ||
| for (var key in OPTIONS.embedParameters || {}) { | ||
| answers[key] = OPTIONS.embedParameters[key]; | ||
| } | ||
| var req = JSON.stringify({ | ||
| swagger: $scope.spec, | ||
| swagger: OPTIONS.disableSwaggerUpload ? undefined : $scope.spec, | ||
| method: $scope.activeRoute.method, | ||
@@ -316,3 +326,3 @@ path: $scope.activeRoute.path, | ||
| $scope.autorefresh = function() { | ||
| if ($scope.activeRoute.method === 'get') { | ||
| if (!OPTIONS.disableAutorefresh && $scope.activeRoute.method === 'get') { | ||
| $scope.refresh() | ||
@@ -319,0 +329,0 @@ } |
@@ -1,2 +0,2 @@ | ||
| App.controller('Docs', function($scope) { | ||
| App.controller('Docs', function($scope, $location) { | ||
| $scope.printSchema = function(schema) { | ||
@@ -9,9 +9,17 @@ return JSON.stringify(EXAMPLES.schemaExample(schema), null, 2); | ||
| $scope.initMenu = function () { | ||
| var requested = $scope.getRouteFromLocation() || {}; | ||
| $scope.menuItems = []; | ||
| if ($scope.spec.info['x-lucy/readme'] || $scope.spec.info.description) { | ||
| $scope.menuItems.push({ | ||
| title: 'README', | ||
| class: 'readme', | ||
| target: '#README', | ||
| }); | ||
| var active = null; | ||
| var getMenuItemFromRoute = function(route) { | ||
| var index = $scope.routesFiltered.indexOf(route); | ||
| var item = { | ||
| method: route.method, | ||
| title: route.path, | ||
| class: 'route', | ||
| target: '#ScrollRoute' + index + ' h2', | ||
| } | ||
| if (route.method === requested.method && route.path === requested.path) { | ||
| active = item; | ||
| } | ||
| return item; | ||
| } | ||
@@ -22,14 +30,8 @@ if ($scope.spec.tags && $scope.spec.tags.length) { | ||
| return r.operation.tags && r.operation.tags.indexOf(tag.name) !== -1; | ||
| }).map(function(route) { | ||
| var index = $scope.routesFiltered.indexOf(route); | ||
| return { | ||
| method: route.method, | ||
| title: route.path, | ||
| class: 'route', | ||
| target: '#ScrollRoute' + index + ' h2', | ||
| } | ||
| }) | ||
| }).map(getMenuItemFromRoute) | ||
| if (!children.length) return null; | ||
| return { | ||
| title: tag.name, | ||
| description: tag.description, | ||
| target: '[data-tag="' + tag.name + '"] h1', | ||
| class: 'tag', | ||
@@ -40,12 +42,18 @@ children: children, | ||
| } else { | ||
| $scope.menuItems = $scope.menuItems.concat($scope.routesFiltered.map(function(route, index) { | ||
| return { | ||
| method: route.method, | ||
| title: route.path, | ||
| class: 'route', | ||
| target: '#ScrollRoute' + index + ' h2', | ||
| } | ||
| })) | ||
| $scope.menuItems = $scope.menuItems.concat($scope.routesFiltered.map(getMenuItemFromRoute)) | ||
| } | ||
| if (active) { | ||
| $scope.menuItems.active = active; | ||
| setTimeout(function() { | ||
| $scope.scrollToTarget(active.target); | ||
| }, 750); | ||
| } | ||
| } | ||
| $scope.$watch('menuItems.active', function() { | ||
| var active = ($scope.menuItems || []).active; | ||
| if (!active || !active.method) return; | ||
| if ($scope.isActive('Documentation')) $location.path('/Documentation/' + active.method + '/' + encodeURIComponent(active.title)); | ||
| }) | ||
| $scope.scrollTo = function(idx) { | ||
@@ -61,2 +69,3 @@ var newTop = 0; | ||
| $scope.scrollToTarget = function(target) { | ||
| if (!$scope.isActive('Documentation')) return; | ||
| var curTop = $('.docs-col').scrollTop(); | ||
@@ -66,3 +75,3 @@ var colTop = $('.docs-col').offset().top; | ||
| newTop = targetTop - colTop + curTop - 15; | ||
| $scope.animatingScroll = true; | ||
@@ -94,3 +103,3 @@ $('.docs-col').animate({ | ||
| if ($scope.animatingScroll) return; | ||
| if ($scope.activePage !== 'documentation') return; | ||
| if ($location.path().indexOf('/Documentation') !== 0) return; | ||
| var visibleHeight = $('.docs-col').height() - 50; | ||
@@ -226,2 +235,24 @@ var closest = null; | ||
| } | ||
| var getTagIfFirstRoute = function () { | ||
| if ($scope.spec.tags && $scope.spec.tags.length) { | ||
| var tags = $scope.spec.tags.map(function (tag) { | ||
| tag.children = $scope.routesFiltered.filter(function(r) { | ||
| return r.operation.tags && r.operation.tags.indexOf(tag.name) !== -1; | ||
| }) | ||
| return tag; | ||
| }); | ||
| var matched = tags.filter(function(tag) { | ||
| return tag.children.indexOf($scope.route) === 0; | ||
| }); | ||
| if (matched.length > 0) { | ||
| return matched[0]; | ||
| } | ||
| } | ||
| return false; | ||
| } | ||
| $scope.tag = getTagIfFirstRoute(); | ||
| $scope.$watch('routesFiltered', function () { | ||
| $scope.tag = getTagIfFirstRoute(); | ||
| }); | ||
| }); | ||
@@ -228,0 +259,0 @@ |
@@ -1,2 +0,2 @@ | ||
| var LOCAL_STORAGE_KEY = 'API_KEYS:' + window.location.href; | ||
| var LOCAL_STORAGE_KEY = 'API_KEYS:' + window.location.pathname; | ||
| var DEFAULT_KEYS = { | ||
@@ -7,5 +7,20 @@ 'api.gettyimages.com': ['Api-Key'], | ||
| } | ||
| var getKeys = function() { | ||
| var stored = '{}'; | ||
| if (OPTIONS.credentialCookie) { | ||
| var cookieKey = OPTIONS.credentialCookie; | ||
| var cookies = document.cookie.split(';').map(function(c) {return c.trim()}); | ||
| var credCookie = cookies.filter(function(c) { | ||
| return c.indexOf(cookieKey) === 0; | ||
| })[0]; | ||
| if (credCookie) stored = credCookie.substring(cookieKey.length + 1); | ||
| } else { | ||
| stored = localStorage.getItem(LOCAL_STORAGE_KEY) || stored; | ||
| } | ||
| return JSON.parse(stored); | ||
| } | ||
| App.controller('Keys', function($scope) { | ||
| var keys = localStorage.getItem(LOCAL_STORAGE_KEY) || '{}'; | ||
| $scope.keys = JSON.parse(keys) || {}; | ||
| $scope.keys = getKeys(); | ||
| $scope.checks = { | ||
@@ -23,2 +38,3 @@ saveKeys: true | ||
| } | ||
| $scope.$watch('keys', $scope.keyChanged, true) | ||
| $scope.saveChanged = function() { | ||
@@ -79,4 +95,2 @@ if (!$scope.checks.saveKeys) { | ||
| $scope.inputType = 'body'; | ||
| } else if (type === 'number' || type === 'integer') { | ||
| $scope.inputType = 'number'; | ||
| } else if (type === 'array') { | ||
@@ -90,2 +104,4 @@ if ($scope.parameter.enum) { | ||
| $scope.inputType = 'radio'; | ||
| } else if (type === 'number' || type === 'integer') { | ||
| $scope.inputType = 'number'; | ||
| } | ||
@@ -92,0 +108,0 @@ }); |
+47
-21
@@ -21,11 +21,14 @@ var maybeAddExternalDocs = function(description, externalDocs) { | ||
| App.controller('Portal', function($scope, spec) { | ||
| App.controller('Portal', function($scope, $location, spec) { | ||
| $scope.MAX_HIGHLIGHT_LEN = 10000; | ||
| var hash = window.location.hash || START_PAGE; | ||
| $scope.activePage = hash.substring(1); | ||
| $scope.$watch('activePage', function(page) { | ||
| mixpanel.track('set_page_' + page, { | ||
| url: SPEC_URL, | ||
| }) | ||
| }) | ||
| var DEFAULT_PAGE = 'Documentation'; | ||
| $scope.isActive = function(page) { | ||
| return ($location.path() || '/' + DEFAULT_PAGE).indexOf(page) === 1; | ||
| } | ||
| $scope.getRouteFromLocation = function() { | ||
| var loc = $location.path(); | ||
| var match = loc.match(/^\/\w+\/(\w+)\/([^\/]*)/); | ||
| if (!match) return; | ||
| return {method: match[1], path: decodeURIComponent(match[2])}; | ||
| } | ||
| $scope.stripHtml = function(str) { | ||
@@ -130,11 +133,28 @@ if (!str) return str; | ||
| } | ||
| swagger.parser.parse(spec.data, PARSER_OPTS, function(err, api) { | ||
| if (err) console.log(err); | ||
| api = api || spec.data; | ||
| mixpanel.track('get_swagger', { | ||
| host: api.host, | ||
| url: SPEC_URL, | ||
| var maybeHandleErr = function(err) { | ||
| if (err) throw err; | ||
| } | ||
| var addBaseDefs = function(def, bases) { | ||
| bases = bases || def.allOf || []; | ||
| bases.forEach(function(base) { | ||
| for (var propName in base.properties) { | ||
| def.properties[propName] = base.properties[propName]; | ||
| } | ||
| if (base.allOf) addBaseDefs(def, base.allOf); | ||
| }) | ||
| } | ||
| SwaggerParser.parse(spec.data, function(err, data) { | ||
| if (maybeHandleErr(err)) return; | ||
| SwaggerParser.dereference(data, function(err, data) { | ||
| if (maybeHandleErr(err)) return; | ||
| for (var name in data.definitions) { | ||
| addBaseDefs(data.definitions[name]); | ||
| } | ||
| mixpanel.track('get_swagger', { | ||
| host: data.host, | ||
| url: SPEC_URL, | ||
| }); | ||
| $scope.setSpec(data); | ||
| $scope.$apply(); | ||
| }); | ||
| $scope.setSpec(api); | ||
| $scope.$apply(); | ||
| }) | ||
@@ -144,3 +164,3 @@ | ||
| $scope.activeTag = tag; | ||
| if ($scope.activePage === 'documentation') { | ||
| if ($location.path() === '/Documentation') { | ||
| $('#Docs').scope().scrollTo(0); | ||
@@ -152,4 +172,7 @@ } | ||
| $scope.openConsole = function(route) { | ||
| if (route) $('#Console').scope().setActiveRoute(route); | ||
| $scope.activePage = 'console'; | ||
| var loc = '/Console'; | ||
| if (route) { | ||
| $('#Console').scope().setActiveRoute(route); | ||
| loc += '/' + route.method + '/' + encodeURIComponent(route.path); | ||
| } | ||
| if (!promptedOAuth && $scope.startOAuth) { | ||
@@ -159,8 +182,10 @@ promptedOAuth = true; | ||
| } | ||
| $location.path(loc); | ||
| } | ||
| $scope.openDocumentation = function(route) { | ||
| $scope.activePage = 'documentation'; | ||
| var loc = '/Documentation'; | ||
| if (route) { | ||
| $('#Docs').scope().query = ''; | ||
| loc += '/' + route.method + '/' + encodeURIComponent(route.path); | ||
| setTimeout(function() { | ||
@@ -170,2 +195,3 @@ $('#Docs').scope().scrollToRoute(route); | ||
| } | ||
| $location.path(loc); | ||
| } | ||
@@ -176,5 +202,5 @@ | ||
| else if (page === 'documentation') $scope.openDocumentation(); | ||
| else $scope.activePage = page; | ||
| $location.path('/' + page); | ||
| } | ||
| }) | ||
| }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
9623671
17.02%100
4.17%234803
26.61%19
11.76%