mirror of
https://github.com/penpot/penpot.git
synced 2025-07-25 15:37:24 +02:00
🐛 Fix typos in frontend
This commit is contained in:
parent
b7ba3098ae
commit
589e646023
65 changed files with 128 additions and 128 deletions
|
@ -44,7 +44,7 @@
|
|||
(.insertAdjacentHTML head "beforeend"
|
||||
(str "<style>"
|
||||
" @page {" style-str "}"
|
||||
" html, body {" ; Fix issue having Chromium to add random 1px marging at the bottom
|
||||
" html, body {" ; Fix issue having Chromium to add random 1px margin at the bottom
|
||||
" overflow: hidden;" ; https://github.com/puppeteer/puppeteer/issues/2278#issuecomment-410381934
|
||||
" font-size: 0;"
|
||||
" }"
|
||||
|
@ -81,7 +81,7 @@
|
|||
|
||||
(defn get-current-target
|
||||
"Extract the current target from event instance (different from target
|
||||
when event triggered in a child of the suscribing element)."
|
||||
when event triggered in a child of the subscribing element)."
|
||||
[event]
|
||||
(.-currentTarget event))
|
||||
|
||||
|
@ -241,7 +241,7 @@
|
|||
|
||||
:else
|
||||
(ex/raise :type :not-supported
|
||||
:hint "seems like the current browset does not support fullscreen api.")))
|
||||
:hint "seems like the current browser does not support fullscreen api.")))
|
||||
|
||||
(defn ^boolean blob?
|
||||
[v]
|
||||
|
|
|
@ -20,7 +20,7 @@ goog.provide("app.util.globals");
|
|||
goog.scope(function() {
|
||||
app.util.globals.global = goog.global;
|
||||
|
||||
function createGlobalEventEmiter(k) {
|
||||
function createGlobalEventEmitter(k) {
|
||||
/* Allow mocked objects to be event emitters, so other modules
|
||||
* may subscribe to them.
|
||||
*/
|
||||
|
@ -36,7 +36,7 @@ goog.scope(function() {
|
|||
if (typeof goog.global.window !== "undefined") {
|
||||
return goog.global.window;
|
||||
} else {
|
||||
return createGlobalEventEmiter();
|
||||
return createGlobalEventEmitter();
|
||||
}
|
||||
})();
|
||||
|
||||
|
@ -44,7 +44,7 @@ goog.scope(function() {
|
|||
if (typeof goog.global.document !== "undefined") {
|
||||
return goog.global.document;
|
||||
} else {
|
||||
return createGlobalEventEmiter();
|
||||
return createGlobalEventEmitter();
|
||||
}
|
||||
})();
|
||||
|
||||
|
@ -52,7 +52,7 @@ goog.scope(function() {
|
|||
if (typeof goog.global.location !== "undefined") {
|
||||
return goog.global.location;
|
||||
} else {
|
||||
return createGlobalEventEmiter();
|
||||
return createGlobalEventEmitter();
|
||||
}
|
||||
})();
|
||||
|
||||
|
@ -60,7 +60,7 @@ goog.scope(function() {
|
|||
if (typeof goog.global.navigator !== "undefined") {
|
||||
return goog.global.navigator;
|
||||
} else {
|
||||
return createGlobalEventEmiter();
|
||||
return createGlobalEventEmitter();
|
||||
}
|
||||
})();
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
[promesa.core :as p]))
|
||||
|
||||
(defprotocol IBodyData
|
||||
"A helper for define body data with the appropiate headers."
|
||||
"A helper for define body data with the appropriate headers."
|
||||
(-update-headers [_ headers])
|
||||
(-get-body-data [_]))
|
||||
|
||||
|
@ -136,8 +136,8 @@
|
|||
|
||||
(defn conditional-decode-transit
|
||||
[{:keys [body headers] :as response}]
|
||||
(let [contentype (get headers "content-type")]
|
||||
(if (and (str/starts-with? contentype "application/transit+json")
|
||||
(let [contenttype (get headers "content-type")]
|
||||
(if (and (str/starts-with? contenttype "application/transit+json")
|
||||
(pos? (count body)))
|
||||
(assoc response :body (t/decode-str body))
|
||||
response)))
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
(defonce locale (l/atom (or (get @storage ::locale)
|
||||
(autodetect))))
|
||||
|
||||
;; The traslations `data` is a javascript object and should be treated
|
||||
;; The translations `data` is a javascript object and should be treated
|
||||
;; with `goog.object` namespace functions instead of a standart
|
||||
;; clojure functions. This is for performance reasons because this
|
||||
;; code is executed in the critical part (application bootstrap) and
|
||||
|
@ -102,7 +102,7 @@
|
|||
;; A main public api for translate strings.
|
||||
|
||||
;; A marker type that is used just for mark
|
||||
;; a parameter that reprsentes the counter.
|
||||
;; a parameter that represented the counter.
|
||||
|
||||
(defn c
|
||||
[x]
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
(defn setup!
|
||||
"Generate new kd-tree instance with provided generation parameter
|
||||
or just return a prevuously created from internal LRU cache."
|
||||
or just return a previously created from internal LRU cache."
|
||||
[t w h ws hs]
|
||||
(impl/setup t w h ws hs))
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/**
|
||||
* Arc to Bezier curves transformer
|
||||
*
|
||||
* Is a modified and google closure complatible version of the a2c
|
||||
* Is a modified and google closure compatible version of the a2c
|
||||
* functions by https://github.com/fontello/svgpath
|
||||
*
|
||||
* @author UXBOX Labs SL
|
||||
|
|
|
@ -197,8 +197,8 @@
|
|||
"Removes some commands and convert relative to absolute coordinates"
|
||||
[commands]
|
||||
(let [simplify-command
|
||||
;; prev-pos : previous position for the current path. Necesary for relative commands
|
||||
;; prev-start : previous move-to necesary for Z commands
|
||||
;; prev-pos : previous position for the current path. Necessary for relative commands
|
||||
;; prev-start : previous move-to necessary for Z commands
|
||||
;; prev-cc : previous command control point for cubic beziers
|
||||
;; prev-qc : previous command control point for quadratic curves
|
||||
(fn [[result prev-pos prev-start prev-cc prev-qc] [command _prev]]
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
(defn remove-line-curves
|
||||
"Remove all curves that have both handlers in the same position that the
|
||||
beggining and end points. This makes them really line-to commands"
|
||||
beginning and end points. This makes them really line-to commands"
|
||||
[content]
|
||||
(let [with-prev (d/enumerate (d/with-prev content))
|
||||
process-command
|
||||
|
@ -426,7 +426,7 @@
|
|||
(mapv replace-command))))
|
||||
|
||||
(defn merge-nodes
|
||||
"Reduces the continguous segments in points to a single point"
|
||||
"Reduces the contiguous segments in points to a single point"
|
||||
[content points]
|
||||
(let [point->merge-point (-> content
|
||||
(get-segments points)
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
;;
|
||||
;; This will catch all renders and print to the console the
|
||||
;; percentiles of render time measures. The log function is
|
||||
;; automatically debouced for avod excesive spam to the console.
|
||||
;; automatically debounced to avoid excessive spam to the console.
|
||||
|
||||
(defn tdigest
|
||||
[]
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* Changes to the original code:
|
||||
* - Use ES6+.
|
||||
* - Add the Node class for manage childs.
|
||||
* - Use generators where is posible.
|
||||
* - Use generators where is possible.
|
||||
**/
|
||||
|
||||
"use strict";
|
||||
|
|
|
@ -37,7 +37,7 @@ goog.scope(function() {
|
|||
|
||||
// Will store a map from key to list of data
|
||||
// value => [ data ]
|
||||
// The values can be queried in range and the data stored will be retrived whole
|
||||
// The values can be queried in range and the data stored will be retrieved whole
|
||||
// but can be removed/updated individually using clojurescript equality
|
||||
class RangeTree {
|
||||
constructor() {
|
||||
|
@ -151,7 +151,7 @@ goog.scope(function() {
|
|||
}
|
||||
}
|
||||
|
||||
// Remove the lefmost node of the current branch
|
||||
// Remove the leftmost node of the current branch
|
||||
function recRemoveMin(branch) {
|
||||
if (!branch.left) {
|
||||
return null;
|
||||
|
|
|
@ -463,7 +463,7 @@
|
|||
#{:mask-type})
|
||||
|
||||
;; Defaults for some tags per spec https://www.w3.org/TR/SVG11/single-page.html
|
||||
;; they are basicaly the defaults that can be percents and we need to replace because
|
||||
;; they are basically the defaults that can be percents and we need to replace because
|
||||
;; otherwise won't work as expected in the workspace
|
||||
(defonce svg-tag-defaults
|
||||
(let [filter-default {:units :filterUnits
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
|
||||
:else
|
||||
(ex/raise :type :not-supported
|
||||
:hint "seems like the current browset does not support fullscreen api.")))
|
||||
:hint "seems like the current browser does not support fullscreen api.")))
|
||||
|
||||
(defn exit-fullscreen
|
||||
[]
|
||||
|
@ -128,7 +128,7 @@
|
|||
|
||||
:else
|
||||
(ex/raise :type :not-supported
|
||||
:hint "seems like the current browset does not support fullscreen api.")))
|
||||
:hint "seems like the current browser does not support fullscreen api.")))
|
||||
|
||||
(defn observe-resize
|
||||
[node]
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
goog.net.WebSocket.EventType))
|
||||
|
||||
(defprotocol IWebSocket
|
||||
(-stream [_] "Retrienve the message stream")
|
||||
(-stream [_] "Retrieve the message stream")
|
||||
(-send [_ message] "send a message")
|
||||
(-close [_] "close websocket"))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue