repo
stringlengths
5
106
file_url
stringlengths
78
301
file_path
stringlengths
4
211
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 14:56:49
2026-01-05 02:23:25
truncated
bool
2 classes
zizohassan/laraflat
https://github.com/zizohassan/laraflat/blob/f17dbf66c5f6f5844998dd8bf45e4b4d91f41890/resources/assets/js/bootstrap.js
resources/assets/js/bootstrap.js
window._ = require('lodash'); /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ window.$ = window.jQuery = require('jquery'); require('boo...
javascript
MIT
f17dbf66c5f6f5844998dd8bf45e4b4d91f41890
2026-01-05T03:38:40.536480Z
false
eranbo/react-native-base64
https://github.com/eranbo/react-native-base64/blob/c2a2c952bfb9e458c7db2c8548a75de3be5e8e3c/base64.js
base64.js
let keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; export default { encode: function (input) { var output = []; var chr1, chr2, chr3 = ""; var enc1, enc2, enc3, enc4 = ""; var i = 0; do { chr1 = input.charCodeAt(i++); ch...
javascript
MIT
c2a2c952bfb9e458c7db2c8548a75de3be5e8e3c
2026-01-05T03:39:09.043135Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/swagger-ui.js
WebContent/swagger-ui/swagger-ui.js
/** * swagger-ui - Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API * @version v2.2.10 * @link http://swagger.io * @license Apache-2.0 */ (function(){/* jshint ignore:start */ {(function() { var templat...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
true
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/swagger-ui.min.js
WebContent/swagger-ui/swagger-ui.min.js
(function(){function e(){e.history=e.history||[],e.history.push(arguments),this.console&&console.log(Array.prototype.slice.call(arguments)[0])}!function(){var e=Handlebars.template,t=Handlebars.templates=Handlebars.templates||{};t.apikey_auth=e({1:function(e,t,n,r,i){var a;return' <span class="key_auth__...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
true
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/translator.js
WebContent/swagger-ui/lang/translator.js
'use strict'; /** * Translator for documentation pages. * * To enable translation you should include one of language-files in your index.html * after <script src='lang/translator.js' type='text/javascript'></script>. * For example - <script src='lang/ru.js' type='text/javascript'></script> * * If you wish to tr...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/el.js
WebContent/swagger-ui/lang/el.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"Προειδοποίηση: Έχει αποσυρθεί", "Implementation Notes":"Σημειώσεις Υλοποίησης", "Response Class":"Απόκριση", "Status":"Κατάσταση", "Parameters":"Παράμετροι", "Parameter":"Παράμετρος", "Value"...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/pt.js
WebContent/swagger-ui/lang/pt.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"Aviso: Depreciado", "Implementation Notes":"Notas de Implementação", "Response Class":"Classe de resposta", "Status":"Status", "Parameters":"Parâmetros", "Parameter":"Parâmetro", "Value":"Val...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/es.js
WebContent/swagger-ui/lang/es.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"Advertencia: Obsoleto", "Implementation Notes":"Notas de implementación", "Response Class":"Clase de la Respuesta", "Status":"Status", "Parameters":"Parámetros", "Parameter":"Parámetro", "Val...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/en.js
WebContent/swagger-ui/lang/en.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"Warning: Deprecated", "Implementation Notes":"Implementation Notes", "Response Class":"Response Class", "Status":"Status", "Parameters":"Parameters", "Parameter":"Parameter", "Value":"Value",...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/zh-cn.js
WebContent/swagger-ui/lang/zh-cn.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"警告:已过时", "Implementation Notes":"实现备注", "Response Class":"响应类", "Status":"状态", "Parameters":"参数", "Parameter":"参数", "Value":"值", "Description":"描述", "Parameter Type":"参数类型", "Data...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/tr.js
WebContent/swagger-ui/lang/tr.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"Uyarı: Deprecated", "Implementation Notes":"Gerçekleştirim Notları", "Response Class":"Dönen Sınıf", "Status":"Statü", "Parameters":"Parametreler", "Parameter":"Parametre", "Value":"Değer", ...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/fr.js
WebContent/swagger-ui/lang/fr.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"Avertissement : Obsolète", "Implementation Notes":"Notes d'implémentation", "Response Class":"Classe de la réponse", "Status":"Statut", "Parameters":"Paramètres", "Parameter":"Paramètre", "Va...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/ko-kr.js
WebContent/swagger-ui/lang/ko-kr.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"경고:폐기예정됨", "Implementation Notes":"구현 노트", "Response Class":"응답 클래스", "Status":"상태", "Parameters":"매개변수들", "Parameter":"매개변수", "Value":"값", "Description":"설명", "Parameter Type":"매개변수 ...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/pl.js
WebContent/swagger-ui/lang/pl.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"Uwaga: Wycofane", "Implementation Notes":"Uwagi Implementacji", "Response Class":"Klasa Odpowiedzi", "Status":"Status", "Parameters":"Parametry", "Parameter":"Parametr", "Value":"Wartość", ...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/ru.js
WebContent/swagger-ui/lang/ru.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"Предупреждение: Устарело", "Implementation Notes":"Заметки", "Response Class":"Пример ответа", "Status":"Статус", "Parameters":"Параметры", "Parameter":"Параметр", "Value":"Значение", "De...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/geo.js
WebContent/swagger-ui/lang/geo.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"ყურადღება: აღარ გამოიყენება", "Implementation Notes":"იმპლემენტაციის აღწერა", "Response Class":"რესპონს კლასი", "Status":"სტატუსი", "Parameters":"პარამეტრები", "Parameter":"პარამეტრი", "Value...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/it.js
WebContent/swagger-ui/lang/it.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"Attenzione: Deprecato", "Implementation Notes":"Note di implementazione", "Response Class":"Classe della risposta", "Status":"Stato", "Parameters":"Parametri", "Parameter":"Parametro", "Value...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/ca.js
WebContent/swagger-ui/lang/ca.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"Advertència: Obsolet", "Implementation Notes":"Notes d'implementació", "Response Class":"Classe de la Resposta", "Status":"Estatus", "Parameters":"Paràmetres", "Parameter":"Paràmetre", "Value...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lang/ja.js
WebContent/swagger-ui/lang/ja.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"警告: 廃止予定", "Implementation Notes":"実装メモ", "Response Class":"レスポンスクラス", "Status":"ステータス", "Parameters":"パラメータ群", "Parameter":"パラメータ", "Value":"値", "Description":"説明", "Parameter Type":...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/lodash.min.js
WebContent/swagger-ui/lib/lodash.min.js
(function(){function n(n,t){if(n!==t){var r=null===n,e=n===x,u=n===n,o=null===t,i=t===x,f=t===t;if(n>t&&!o||!u||r&&!i&&f||e&&f)return 1;if(n<t&&!r||!f||o&&!e&&u||i&&u)return-1}return 0}function t(n,t,r){for(var e=n.length,u=r?e:-1;r?u--:++u<e;)if(t(n[u],u,n))return u;return-1}function r(n,t,r){if(t!==t)return p(n,r);r-...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
true
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/es5-shim.js
WebContent/swagger-ui/lib/es5-shim.js
!function(t,e){"use strict";"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.returnExports=e()}(this,function(){var t,e,r=Array,n=r.prototype,o=Object,i=o.prototype,a=Function,u=a.prototype,f=String,s=f.prototype,l=Number,c=l.prototype,h=n.slice,p=n.splice,y=n.push,d=n.unshi...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/jsoneditor.min.js
WebContent/swagger-ui/lib/jsoneditor.min.js
!function(){var t;!function(){var e=!1,i=/xyz/.test(function(){window.postMessage("xyz")})?/\b_super\b/:/.*/;return t=function(){},t.extend=function(t){function s(){!e&&this.init&&this.init.apply(this,arguments)}var r=this.prototype;e=!0;var n=new this;e=!1;for(var o in t)n[o]="function"==typeof t[o]&&"function"==typeo...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
true
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/highlight.9.1.0.pack_extended.js
WebContent/swagger-ui/lib/highlight.9.1.0.pack_extended.js
"use strict";!function(){var h,l;h=hljs.configure,hljs.configure=function(l){var i=l.highlightSizeThreshold;hljs.highlightSizeThreshold=i===+i?i:null,h.call(this,l)},l=hljs.highlightBlock,hljs.highlightBlock=function(h){var i=h.innerHTML,g=hljs.highlightSizeThreshold;(null==g||g>i.length)&&l.call(hljs,h)}}();
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/backbone-min.js
WebContent/swagger-ui/lib/backbone-min.js
!function(t,e){if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(i,n,s){t.Backbone=e(t,s,i,n)});else if("undefined"!=typeof exports){var i=require("underscore");e(t,exports,i)}else t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,i,n){var s=t.Backbone,r=...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/jquery-1.8.0.min.js
WebContent/swagger-ui/lib/jquery-1.8.0.min.js
!function(e,t){function n(e){var t=he[e]={};return K.each(e.split(te),function(e,n){t[n]=!0}),t}function r(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(me,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"===r||"false"!==r&&("null"===r?null:+r+""===r?+r:ge.test(r)?K.parseJSON(r):r)...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
true
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/jquery.ba-bbq.min.js
WebContent/swagger-ui/lib/jquery.ba-bbq.min.js
!function(e,t){function n(e){return"string"==typeof e}function r(e){var t=g.call(arguments,1);return function(){return e.apply(this,t.concat(g.call(arguments)))}}function o(e){return e.replace(/^[^#]*#?(.*)$/,"$1")}function a(e){return e.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function i(r,o,a,i,c){var u,s,p,h,d;ret...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/jquery.slideto.min.js
WebContent/swagger-ui/lib/jquery.slideto.min.js
!function(i){i.fn.slideto=function(o){return o=i.extend({slide_duration:"slow",highlight_duration:3e3,highlight:!0,highlight_color:"#FFFF99"},o),this.each(function(){obj=i(this),i("body").animate({scrollTop:obj.offset().top},o.slide_duration,function(){o.highlight&&i.ui.version&&obj.effect("highlight",{color:o.highligh...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/jquery.wiggle.min.js
WebContent/swagger-ui/lib/jquery.wiggle.min.js
jQuery.fn.wiggle=function(e){var a={speed:50,wiggles:3,travel:5,callback:null},e=jQuery.extend(a,e);return this.each(function(){var a=this,l=(jQuery(this).wrap('<div class="wiggle-wrap"></div>').css("position","relative"),0);for(i=1;i<=e.wiggles;i++)jQuery(this).animate({left:"-="+e.travel},e.speed).animate({left:"+="+...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/sanitize-html.min.js
WebContent/swagger-ui/lib/sanitize-html.min.js
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.sanitizeHtml=t()}}(function(){return function t(e,r,n){...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
true
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/js-yaml.min.js
WebContent/swagger-ui/lib/js-yaml.min.js
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.jsyaml=t()}}(function(){var t;return function e(t,n,i){...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
true
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/object-assign-pollyfill.js
WebContent/swagger-ui/lib/object-assign-pollyfill.js
"function"!=typeof Object.assign&&!function(){Object.assign=function(n){"use strict";if(void 0===n||null===n)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),o=1;o<arguments.length;o++){var r=arguments[o];if(void 0!==r&&null!==r)for(var e in r)Object.prototype.hasOwnProperty.call(r,...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/handlebars-4.0.5.js
WebContent/swagger-ui/lib/handlebars-4.0.5.js
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Handlebars=e():t.Handlebars=e()}(this,function(){return function(t){function e(s){if(r[s])return r[s].exports;var i=r[s]={exports:{},id:s,loaded:!1};ret...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
true
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/swagger-oauth.js
WebContent/swagger-ui/lib/swagger-oauth.js
function handleLogin(){var e=[],o=window.swaggerUiAuth.authSchemes||window.swaggerUiAuth.securityDefinitions;if(o){var i,n=o;for(i in n){var a=n[i];if("oauth2"===a.type&&a.scopes){var t;if(Array.isArray(a.scopes)){var p;for(p=0;p<a.scopes.length;p++)e.push(a.scopes[p])}else for(t in a.scopes)e.push({scope:t,description...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/highlight.9.1.0.pack.js
WebContent/swagger-ui/lib/highlight.9.1.0.pack.js
!function(e){"undefined"!=typeof exports?e(exports):(self.hljs=e({}),"function"==typeof define&&define.amd&&define("hljs",[],function(){return self.hljs}))}(function(e){function r(e){return e.replace(/&/gm,"&amp;").replace(/</gm,"&lt;").replace(/>/gm,"&gt;")}function t(e){return e.nodeName.toLowerCase()}function n(e,r)...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
restsql/restsql
https://github.com/restsql/restsql/blob/94f7890cd29fb7506288b3f62cb0058729c0d53b/WebContent/swagger-ui/lib/marked.js
WebContent/swagger-ui/lib/marked.js
(function(){function e(e){this.tokens=[],this.tokens.links={},this.options=e||a.defaults,this.rules=p.normal,this.options.gfm&&(this.options.tables?this.rules=p.tables:this.rules=p.gfm)}function t(e,t){if(this.options=t||a.defaults,this.links=e,this.rules=u.normal,this.renderer=this.options.renderer||new n,this.rendere...
javascript
MIT
94f7890cd29fb7506288b3f62cb0058729c0d53b
2026-01-05T03:39:10.711580Z
false
projectwallace/css-code-quality
https://github.com/projectwallace/css-code-quality/blob/39eb7b7090aa1ac80f91eb2b39361d32dec3f64f/vite.config.js
vite.config.js
import { defineConfig } from "vite" import dts from "vite-plugin-dts" export default defineConfig({ build: { lib: { entry: [ './src/index.js', './src/core.js', ], fileName: () => `[name].js`, formats: ["es"], }, rollupOptions: { // make sure to externalize deps that shouldn't be bundled ...
javascript
MIT
39eb7b7090aa1ac80f91eb2b39361d32dec3f64f
2026-01-05T03:39:16.115861Z
false
projectwallace/css-code-quality
https://github.com/projectwallace/css-code-quality/blob/39eb7b7090aa1ac80f91eb2b39361d32dec3f64f/src/core.js
src/core.js
import { guards as performanceGuards } from './performance.js' import { guards as maintainabilityGuards } from './maintainability.js' import { guards as complexityGuards } from './complexity.js' /** * @param {ReturnType<import('@projectwallace/css-analyzer').analyze>} result * @param {performanceGuards | maintainabi...
javascript
MIT
39eb7b7090aa1ac80f91eb2b39361d32dec3f64f
2026-01-05T03:39:16.115861Z
false
projectwallace/css-code-quality
https://github.com/projectwallace/css-code-quality/blob/39eb7b7090aa1ac80f91eb2b39361d32dec3f64f/src/index.test.js
src/index.test.js
import * as assert from 'uvu/assert' import { suite } from 'uvu' import { calculate } from './index.js' import { calculate as pkgCalculate } from '../dist/index.js' const Index = suite('Index') Index('exposes a calculcate function', () => { assert.is(typeof calculate, 'function') }) Index('smoke test', () => { let...
javascript
MIT
39eb7b7090aa1ac80f91eb2b39361d32dec3f64f
2026-01-05T03:39:16.115861Z
false
projectwallace/css-code-quality
https://github.com/projectwallace/css-code-quality/blob/39eb7b7090aa1ac80f91eb2b39361d32dec3f64f/src/performance.js
src/performance.js
export const guards = [ // Should not contain @import rules /** @param {ReturnType<import('@projectwallace/css-analyzer').analyze>} result */ result => ({ id: 'Imports', score: result.atrules.import.total * 10, value: result.atrules.import.total, actuals: Object.keys(result.atrules.import.unique)...
javascript
MIT
39eb7b7090aa1ac80f91eb2b39361d32dec3f64f
2026-01-05T03:39:16.115861Z
false
projectwallace/css-code-quality
https://github.com/projectwallace/css-code-quality/blob/39eb7b7090aa1ac80f91eb2b39361d32dec3f64f/src/index.js
src/index.js
import { analyze } from '@projectwallace/css-analyzer' import { calculate as calculateFromAnalysis } from './core.js' /** * @param {string} css */ export function calculate(css) { const analysis = analyze(css) return calculateFromAnalysis(analysis) }
javascript
MIT
39eb7b7090aa1ac80f91eb2b39361d32dec3f64f
2026-01-05T03:39:16.115861Z
false
projectwallace/css-code-quality
https://github.com/projectwallace/css-code-quality/blob/39eb7b7090aa1ac80f91eb2b39361d32dec3f64f/src/performance.test.js
src/performance.test.js
import { suite } from 'uvu' import * as assert from 'uvu/assert' import { calculate } from './index.js' const Performance = suite('Performance') Performance('does not deduct points for not having @import', () => { const actual = calculate(` test { color: green; } `) assert.is(actual.performance.score, 100) ...
javascript
MIT
39eb7b7090aa1ac80f91eb2b39361d32dec3f64f
2026-01-05T03:39:16.115861Z
false
projectwallace/css-code-quality
https://github.com/projectwallace/css-code-quality/blob/39eb7b7090aa1ac80f91eb2b39361d32dec3f64f/src/maintainability.js
src/maintainability.js
export const guards = [ // Source Lines of Code should be low /** @param {ReturnType<import('@projectwallace/css-analyzer').analyze>} result */ result => { const outcome = { id: 'SourceLinesOfCode', score: 0, value: result.stylesheet.sourceLinesOfCode, } if (result.stylesheet.sourc...
javascript
MIT
39eb7b7090aa1ac80f91eb2b39361d32dec3f64f
2026-01-05T03:39:16.115861Z
false
projectwallace/css-code-quality
https://github.com/projectwallace/css-code-quality/blob/39eb7b7090aa1ac80f91eb2b39361d32dec3f64f/src/maintainability.test.js
src/maintainability.test.js
import { suite } from 'uvu' import * as assert from 'uvu/assert' import { calculate } from './index.js' const Maintainability = suite('Maintainability') Maintainability('does not deduct points for 1 SLoC', () => { const actual = calculate(`test {}`) assert.is(actual.maintainability.score, 100) assert.is(actual....
javascript
MIT
39eb7b7090aa1ac80f91eb2b39361d32dec3f64f
2026-01-05T03:39:16.115861Z
false
projectwallace/css-code-quality
https://github.com/projectwallace/css-code-quality/blob/39eb7b7090aa1ac80f91eb2b39361d32dec3f64f/src/complexity.test.js
src/complexity.test.js
import * as assert from 'uvu/assert' import { suite } from 'uvu' import { calculate } from './index.js' const Complexity = suite('Complexity') Complexity('should deduct points for a lot of Selectors more complex than most common Complexity', () => { const fixture = ` ${Array.from({ length: 1000 }) .fill('...
javascript
MIT
39eb7b7090aa1ac80f91eb2b39361d32dec3f64f
2026-01-05T03:39:16.115861Z
false
projectwallace/css-code-quality
https://github.com/projectwallace/css-code-quality/blob/39eb7b7090aa1ac80f91eb2b39361d32dec3f64f/src/core.test.js
src/core.test.js
import * as assert from 'uvu/assert' import { suite } from 'uvu' import { calculate } from '../dist/core.js' const Core = suite('Core') Core('exports calculate', () => { assert.is(typeof calculate, 'function') }) Core.run()
javascript
MIT
39eb7b7090aa1ac80f91eb2b39361d32dec3f64f
2026-01-05T03:39:16.115861Z
false
projectwallace/css-code-quality
https://github.com/projectwallace/css-code-quality/blob/39eb7b7090aa1ac80f91eb2b39361d32dec3f64f/src/complexity.js
src/complexity.js
import { compareSpecificity } from '@projectwallace/css-analyzer' export const guards = [ // Complexity per Selector should not differ too much from the most common Complexity /** @param {ReturnType<import('@projectwallace/css-analyzer').analyze>} result */ result => { const mode = result.selectors.complexi...
javascript
MIT
39eb7b7090aa1ac80f91eb2b39361d32dec3f64f
2026-01-05T03:39:16.115861Z
false
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/main.js
main.js
// Modules to control application life and create native browser window const { app, BrowserWindow } = require('electron') // Live reload module which watches `public` folder // const _ = require('electron-reload')(__dirname + '/public') const path = require('path') const url = require('url') // Keep a global refere...
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
false
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/renderer.js
renderer.js
// This file is required by the index.html file and will // be executed in the renderer process for that window. // All of the Node.js APIs are available in this process.
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
false
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/public/button.js
public/button.js
class Button { constructor(name, posx, posy, height='60px', width='120px',font_size='20px',bgc='#0a3242',radius = '1%') { this.button = createButton(name); this.button.parent("sketchHolder"); this.button.position(posx,posy); this.button.style('width', width); thi...
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
false
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/public/curves.js
public/curves.js
function draw_lines() { stroke(line_color); strokeWeight(3); drawingContext.setLineDash([15, 15]); for(let i =1; i < control_points.length; ++i) { line(control_points[i-1].x, control_points[i-1].y, control_points[i].x, control_points[i].y); } drawingContext.setLineDash([]); } function draw_Catmull_Ro...
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
false
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/public/curve.js
public/curve.js
class Curve { constructor() { this.curve_name; } }
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
false
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/public/sketch.js
public/sketch.js
var INITIAL_NUM_PTS = 5; var N = INITIAL_NUM_PTS; var MAX_NUM_PTS = 15; var curr_marker; var control_points = []; var curve_points; var curve_choice = 'Catmull Rom Spline'; var degree = 2; var degree_slider; let clamped_box; var clamped_curve = true; var control_pts_scale = 1.0; var curve_dict = { 'Catmull Rom Splin...
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
false
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/public/bezier.js
public/bezier.js
function bezier_spline(t, p) { var order = p.length - 1; // curve order is number of control point - 1 var d = p[0].length; // control point dimensionality // create a source vector array copy that will be // used to store intermediate results // var v = p.map(function(point) { // return point.slice...
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
false
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/public/mouse_events.js
public/mouse_events.js
function click_point() { for(let i =0; i < control_points.length; ++i) { if (control_points[i].check_in_circle()) { curr_marker = control_points[i]; locked = true; pan_lock=false; curr_point_id = i; text_field_array[i].highlight_ind(); curr_marker.xOffset = mouse...
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
false
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/public/nurbs.js
public/nurbs.js
/* The MIT License (MIT) Copyright (c) 2015 Thibaut Séguy thibaut.seguy@gmail.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to ...
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
false
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/public/text_field.js
public/text_field.js
class TextField { constructor(posx, posy, index) { this.textfield_x = createInput('','Number'); this.textfield_x.attribute('step', '1.00'); this.textfield_x.style('width','70px'); this.textfield_x.style('height','20px'); this.textfield_x.style('font-family...
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
false
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/public/marker.js
public/marker.js
class Marker { constructor() { this.x = 30 + random(WIDTH-50) this.y = 30 + random(HEIGHT-50) this.dimension = 2; this.xOffset = 0; this.yOffset = 0; this.boxSize = 15; this.overBox = false; this.scale_pts(control_pts_scale); } check_in_circle() { if ( (mouseX )/zoom...
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
false
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/public/libraries/p5.sound.js
public/libraries/p5.sound.js
/*! p5.sound.js v0.3.11 2019-03-14 */ /** * p5.sound extends p5 with <a href="http://caniuse.com/audio-api" * target="_blank">Web Audio</a> functionality including audio input, * playback, analysis and synthesis. * <br/><br/> * <a href="#/p5.SoundFile"><b>p5.SoundFile</b></a>: Load and play sound files.<br/> ...
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
true
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/public/libraries/p5.dom.js
public/libraries/p5.dom.js
/*! p5.dom.js v0.4.0 August 9, 2018 */ /** * <p>The web is much more than just canvas and p5.dom makes it easy to interact * with other HTML5 objects, including text, hyperlink, image, input, video, * audio, and webcam.</p> * <p>There is a set of creation methods, DOM manipulation methods, and * an extended <a hre...
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
true
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/public/libraries/p5.js
public/libraries/p5.js
/*! p5.js v0.8.0 April 08, 2019 */ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){...
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
true
AntixK/Curve-Studio
https://github.com/AntixK/Curve-Studio/blob/f3e73db3408ebd2ee7b53eb748fe7895b43e4d51/public/libraries/p5.min.js
public/libraries/p5.min.js
/*! p5.js v0.8.0 April 08, 2019 */
javascript
MIT
f3e73db3408ebd2ee7b53eb748fe7895b43e4d51
2026-01-05T03:39:16.934742Z
true
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/_webpack.config.js
_webpack.config.js
/** * Bundle config */ let webpack = require('webpack'); let ExtractTextPlugin = require('extract-text-webpack-plugin'); let path = require('path'); require('dotenv').config(); /** * Configure plugins * @type {Array} */ let plugins = [ /** Block build if errors found */ new webpack.NoE...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/webpack.config.js
webpack.config.js
const path = require('path'); const webpack = require('webpack'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); module.exports = { /** * Define entry point */ entry: path.resolve( __dirname, 'public', 'javascripts', 'app.js'), /** * Set bundle params */ output: { path: path...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/env.sample.js
env.sample.js
let vars = { // PRODUCTION: true, HAWK_TOKEN: '', LOG_LEVEL: 'debug', // DEBUG: true, /** Webhook link from t.me/codex_bot */ // WEBHOOK_DEBUG: '', GOOGLE_CLIENT_ID: '', GOOGLE_REDIRECT_URI: 'https://api.notes.ifmo.su/oauth/code', API_ENDPOINT: 'https://api.notes.ifmo.su/graphql', REALTIME_DAE...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/menu.js
src/menu.js
module.exports = function (app) { const pkg = require('./../package'); let info = { bugReportUrl: pkg.bugs, landingPage: pkg.homepage, githubRepo: pkg.repository.url, iconPath: __dirname + '/build/icon.png', description: pkg.description, name: pkg.productName }; let menuBar = [ { l...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/updater.js
src/updater.js
const {app, ipcMain} = require('electron'); /** * Read more about auto-updater events on this page * https://www.electron.build/auto-update */ const {autoUpdater} = require('electron-updater'); /** * Log wrapper * * @param message */ const showLog = (message) => { global.logger.debug('[updater] %O', message)...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/codex-notes.js
src/codex-notes.js
'use strict'; const {app, BrowserWindow, Menu} = require('electron'); const fs = require('fs'); /** * Load env params */ require('../env.js'); /** * Set and create app folder */ global.appFolder = app.getPath('userData'); if (!fs.existsSync(global.appFolder)) { fs.mkdirSync(global.appFolder); } /** * Enable...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/graphql/sync.js
src/graphql/sync.js
/** * Sync Query * @type {string} */ module.exports = `query Sync($userId: ID!) { user(id: $userId){ id, name, email, photo, googleId, dtReg, dtModify, folders { id, title, owner { name, id }, isRoot, dtModify, dtCreate, ...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/graphql/mutations/note.js
src/graphql/mutations/note.js
/** * Sync Query * @type {string} */ module.exports = `mutation Note( $id: ID!, $title: String!, $content: String!, $authorId: ID!, $folderId: ID!, $dtModify: Int, $dtCreate: Int, $isRemoved: Boolean = false ){ note( id: $id, title: $title, content: $content, fo...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/graphql/mutations/folder.js
src/graphql/mutations/folder.js
/** * Sync Query * @type {string} */ module.exports = `mutation Folder( $id: ID!, $title: String!, $ownerId: ID!, $dtModify: Int, $dtCreate: Int, $isRoot: Boolean = false, $isRemoved: Boolean = false ){ folder( id: $id, title: $title, ownerId: $ownerId, dtModify: $dtMo...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/graphql/mutations/user.js
src/graphql/mutations/user.js
/** * Sync Query * @type {string} */ module.exports = `mutation User( $id: ID!, $name: String!, $photo: String!, $email: String!, $dtReg: Int!, $dtModify: Int!, ){ user( id: $id, name: $name, photo: $photo, email: $email, dtReg: $dtReg, dtModify: $dtModify, ){ ...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/graphql/mutations/invite.js
src/graphql/mutations/invite.js
/** * Sync Query * @type {string} */ module.exports = `mutation InviteCollaborator( $id: ID!, $email: String!, $folderId: ID!, $ownerId: ID!, $dtInvite: Int ){ invite( id: $id, email: $email, ownerId: $ownerId, folderId: $folderId, dtInvite: $dtInvite ){ token, ...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/graphql/mutations/join.js
src/graphql/mutations/join.js
/** * Sync Query * @type {string} */ module.exports = `mutation CollaboratorJoin( $userId: ID!, $token: String! $ownerId: ID!, $folderId: ID!, ){ join( userId: $userId, ownerId: $ownerId, folderId: $folderId, token: $token ){ token, email } }`;
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/controllers/user.js
src/controllers/user.js
'use strict'; let {ipcMain} = require('electron'); /** * User controller. * Works with events: * - user - get */ class UserController { /** * Bind event handlers * * @constructor */ constructor() { ipcMain.on('user - get', (event) => { this.get(event); }); ipcMain.on('user - sy...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/controllers/clientSyncObserver.js
src/controllers/clientSyncObserver.js
'use strict'; let {ipcMain} = require('electron'); let db = require('../utils/database'); /** * Client Sync Observer * * Class in responsible for sending updates to the Client */ class ClientSyncObserver { constructor() { } /** * Sends updated or added Note to the client * @param {Note} note - changed...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/controllers/folders.js
src/controllers/folders.js
/** * Folders controller. * Works with events: * - create folder * - load folders list * - delete folder */ 'use strict'; let {ipcMain} = require('electron'); const Folder = require('../models/folder'); const FoldersList = require('../models/foldersList'); /** * Time helper */ const Time = require('../util...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/controllers/seenStateObserver.js
src/controllers/seenStateObserver.js
/** * @module SeenStateObserver * Manipulates seen-state of Notes */ 'use strict'; const Time = require('../utils/time'); const Note = require('../models/note'); const Visits = require('../models/visits'); /** * @class SeenStateObserver * Class can "touch" note (mark as seen) or get information about visited n...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/controllers/syncQueue.js
src/controllers/syncQueue.js
/** * Manipulates with with synchronization queue * Resolves problem with syncing the updated entities — which Note or Folder was changed and need to be updated in the cloud */ 'use strict'; const SyncableItem = require('../models/syncableItem'); /** Database adapter */ const db = require('../utils/database'); /...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/controllers/auth.js
src/controllers/auth.js
'use strict'; const {ipcMain, BrowserWindow, dialog, app} = require('electron'); const utils = require('../utils/utils'); const User = require('../models/user'); const isOnline = require('is-online'); const db = require('../utils/database'); /** * @class AuthController * @classdesc Work with user`s authentication ...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/controllers/pushNotifications.js
src/controllers/pushNotifications.js
'use strict'; /** * @module pushNotifications */ /** * Using node-notifier library to support all Windows versions, Linux, BSD and others * https://github.com/mikaelbr/node-notifier/blob/master/DECISION_FLOW.md */ const notifier = require('node-notifier'); /** * In case of OS X we decided to use native Electro...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/controllers/sockets.js
src/controllers/sockets.js
/** * WebSocket implementation. * {@link https://github.com/websockets/ws} * @type {*|WebSocket} */ const WebSocket = require('ws'); /** * Communicates with the Cloud by Sockets * @typedef {Sockets} Sockets * @property {array} channels - list of active channels */ class Sockets { /** * @constructor */...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/controllers/cloudSyncObserver.js
src/controllers/cloudSyncObserver.js
const Folder = require('../models/folder'); const Note = require('../models/note'); const Collaborator = require('../models/collaborator'); const User = require('../models/user'); /** * Time helper * * @type {Time} */ const Time = require('../utils/time'); /** * Simple GraphQL requests provider * {@link https:/...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/controllers/notes.js
src/controllers/notes.js
'use strict'; let {ipcMain} = require('electron'); const Note = require('../models/note'); const NotesList = require('../models/notesList'); /** * Time helper */ const Time = require('../utils/time.js'); /** * Notes controller. * Works with events: * - note - save * - notes list - load (in specified Folder) ...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/controllers/app-protocol.js
src/controllers/app-protocol.js
const parser = require('url'); /** * @class AppProtocol * @classdesc Class to handle URLs with the custom protocol * * For example: codex://join/john@doe.com */ class AppProtocol { /** * Process url with custom protocol * * @param event * @param {String} url - url to process * @returns void *...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/models/note.js
src/models/note.js
'use strict'; /** * HTML Sanitizer {@link https://github.com/punkave/sanitize-html} * @type {sanitizeHtml} */ const sanitizeHtml = require('sanitize-html'); /** * Database wrapper * @type {Database} */ const db = require('../utils/database'); /** * Time helper */ const Time = require('../utils/time.js'); /*...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/models/folder.js
src/models/folder.js
'use strict'; const db = require('../utils/database'); const utils = require('../utils/utils'); const NotesList = require('./notesList'); /** * Time helper */ const Time = require('../utils/time.js'); /** * Abstract Syncable class * @type {Syncable} */ const Syncable = require('./syncable'); /** * Collaborat...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/models/user.js
src/models/user.js
'use strict'; const db = require('../utils/database'), Time = require('../utils/time'), _ = require('../utils/utils'), fs = require('fs'), request = require('request'), path = require('path'); const Syncable = require('./syncable'); /** * Model for current user representation. * @typedef {User} ...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/models/collaborator.js
src/models/collaborator.js
const db = require('../utils/database'); const Time = require('../utils/time'); /** * @typedef {Object} CollaboratorData * @property {String} _id — Collaborator's id * @property {String} email — Collaborator's email * @property {String} token — Collaborator's invitation token * @prope...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/models/visits.js
src/models/visits.js
const db = require('../utils/database'); /** * Model that represents db.VISITS * * @typedef {Visits} Visits * @property {string} _id - visit row id * @property {string} noteId - Note's id * @property {number} lastSeen - time of Note's last open */ class Visits { /** * @constructor * @param {string} n...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/models/api.js
src/models/api.js
'use strict'; const request = require('request-promise'); const isOnline = require('is-online'); /** * @deprecated - not actual with GraphQL scheme * @since 26 dec 2017 * * * @class ApiController * @classdesc Api methods * * @typedef {ApiController} ApiController * @property {String} apiVersion - API...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/models/foldersList.js
src/models/foldersList.js
const db = require('../utils/database'); const Folder = require('./folder.js'); /** * @typedef {FoldersList} FoldersList * @property {Object} query - search query to compose Folders List * @type {module.FoldersList} */ class FoldersList { constructor(query) { this.query = query || { isRoot: {$ne: true...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/models/notesList.js
src/models/notesList.js
const db = require('../utils/database'); const Note = require('./note.js'); /** * @typedef {NotesList} NotesList * @property {string} folderId - in which Folder we should to find Notes */ class NotesList { /** * @param {string} folderId - from which Folder we need to create Notes List */ constructor(fold...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/models/syncable.js
src/models/syncable.js
/** * Abstract class for all entities that need to be synchronized * * For example Note, Folder, User are Syncable Entities so that they need to be extended by this class * Prepares changed data to send to the cloud * * Models must implement getters data according to the syncableType that returns object with sync...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/models/syncableItem.js
src/models/syncableItem.js
/** * Structure for syncable entities * Each queue data must be corresponded by data that describes this class * * Queue Data Example: * 1. type - entity type (it can be Note, Folder, User etc..) * 2. entityId - entity's identifier. */ /** * @typedef {Object} SyncQueueData * @property {String} type - entity...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/utils/database.js
src/utils/database.js
'use strict'; const fs = require('fs'); const path = require('path'); const Datastore = require('nedb'); const Time = require('../utils/time.js'); /** * Database class. neDB - https://github.com/louischatriot/nedb. */ class Database { constructor() {} refresh() { this.USER = new Datastore({ filename: path...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/utils/logger.js
src/utils/logger.js
/** * Logger can save log to file in appData/logs dir * * @usage enable logger * global.logger = require('./utils/logger'); * * @example logger.debug('my log %s', variable); * @example logger.info('my log'); * @example logger.warn('my log'); * @example logger.error('my log'); * @example logger.fatal('my log')...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/utils/time.js
src/utils/time.js
/** * @module Time * @description Helper for working with timestamps in Seconds */ class Time { /** * Return current timestamp in Seconds * Used to corresponds with Server Timestamps * @return {number} */ static get now() { return parseInt(+new Date() / 1000, 10); } } module.exports = Time;
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/src/utils/utils.js
src/utils/utils.js
const crypto = require('crypto'); const request = require('request-promise'); /** * Helpers */ class Utils { /** * Compare some items * * @param items * * @returns {boolean} */ static equals(...items) { let firstStringified = JSON.stringify(items.shift()); for (let i = items.length - ...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/public/javascripts/note.js
public/javascripts/note.js
const $ = require('./dom').default; const AutoResizer = require('./autoresizer').default; const Dialog = require('./dialog').default; // const Shortcut = require('@codexteam/shortcuts').default; const clipboardUtil = require('./utils/clipboard').default; const HashCoder = require('./utils/hashCoder').default; /** * @...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false
codex-team/codex.notes
https://github.com/codex-team/codex.notes/blob/362b294c662fcf881fb28c9b524558fea9ba4020/public/javascripts/editor.js
public/javascripts/editor.js
const common = require('./utils/common').default; /** * CodeX Editor core */ const CodexEditor = require('codex.editor'); /** * Tools for the Editor */ const Header = require('codex.editor.header'); const Quote = require('codex.editor.quote'); const Marker = require('codex.editor.marker'); const Code = require('c...
javascript
MIT
362b294c662fcf881fb28c9b524558fea9ba4020
2026-01-05T03:38:52.476398Z
false