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
TheLarkInn/everything-is-a-plugin
https://github.com/TheLarkInn/everything-is-a-plugin/blob/bd23751d30c0e9d4e96483a0ae54e00578310ab0/src/context/lazy-b.js
src/context/lazy-b.js
javascript
Apache-2.0
bd23751d30c0e9d4e96483a0ae54e00578310ab0
2026-01-05T03:43:16.964923Z
false
TheLarkInn/everything-is-a-plugin
https://github.com/TheLarkInn/everything-is-a-plugin/blob/bd23751d30c0e9d4e96483a0ae54e00578310ab0/src/context/lazy-f.js
src/context/lazy-f.js
javascript
Apache-2.0
bd23751d30c0e9d4e96483a0ae54e00578310ab0
2026-01-05T03:43:16.964923Z
false
TheLarkInn/everything-is-a-plugin
https://github.com/TheLarkInn/everything-is-a-plugin/blob/bd23751d30c0e9d4e96483a0ae54e00578310ab0/src/context/lazy-c.js
src/context/lazy-c.js
javascript
Apache-2.0
bd23751d30c0e9d4e96483a0ae54e00578310ab0
2026-01-05T03:43:16.964923Z
false
TheLarkInn/everything-is-a-plugin
https://github.com/TheLarkInn/everything-is-a-plugin/blob/bd23751d30c0e9d4e96483a0ae54e00578310ab0/src/context/lazy-e.js
src/context/lazy-e.js
javascript
Apache-2.0
bd23751d30c0e9d4e96483a0ae54e00578310ab0
2026-01-05T03:43:16.964923Z
false
TheLarkInn/everything-is-a-plugin
https://github.com/TheLarkInn/everything-is-a-plugin/blob/bd23751d30c0e9d4e96483a0ae54e00578310ab0/src/context/lazy-a.js
src/context/lazy-a.js
javascript
Apache-2.0
bd23751d30c0e9d4e96483a0ae54e00578310ab0
2026-01-05T03:43:16.964923Z
false
TheLarkInn/everything-is-a-plugin
https://github.com/TheLarkInn/everything-is-a-plugin/blob/bd23751d30c0e9d4e96483a0ae54e00578310ab0/src/context/lazy-d.js
src/context/lazy-d.js
javascript
Apache-2.0
bd23751d30c0e9d4e96483a0ae54e00578310ab0
2026-01-05T03:43:16.964923Z
false
TheLarkInn/everything-is-a-plugin
https://github.com/TheLarkInn/everything-is-a-plugin/blob/bd23751d30c0e9d4e96483a0ae54e00578310ab0/src/context/lazy-hijacked-request.js
src/context/lazy-hijacked-request.js
javascript
Apache-2.0
bd23751d30c0e9d4e96483a0ae54e00578310ab0
2026-01-05T03:43:16.964923Z
false
TheLarkInn/everything-is-a-plugin
https://github.com/TheLarkInn/everything-is-a-plugin/blob/bd23751d30c0e9d4e96483a0ae54e00578310ab0/dist/main.chunk.js
dist/main.chunk.js
/******/ (function(modules) { // webpackBootstrap /******/ // install a JSONP callback for chunk loading /******/ var parentJsonpFunction = window["webpackJsonp"]; /******/ window["webpackJsonp"] = function webpackJsonpCallback(chunkIds, moreModules, executeModules) { /******/ // add "moreModules" to the modules o...
javascript
Apache-2.0
bd23751d30c0e9d4e96483a0ae54e00578310ab0
2026-01-05T03:43:16.964923Z
false
TheLarkInn/everything-is-a-plugin
https://github.com/TheLarkInn/everything-is-a-plugin/blob/bd23751d30c0e9d4e96483a0ae54e00578310ab0/dist/0.chunk.js
dist/0.chunk.js
webpackJsonp([0],{ /***/ 14: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony default export */ __webpack_exports__["default"] = ("lazy-hijacked-request"); /***/ }) });
javascript
Apache-2.0
bd23751d30c0e9d4e96483a0ae54e00578310ab0
2026-01-05T03:43:16.964923Z
false
TheLarkInn/everything-is-a-plugin
https://github.com/TheLarkInn/everything-is-a-plugin/blob/bd23751d30c0e9d4e96483a0ae54e00578310ab0/dist/1.chunk.js
dist/1.chunk.js
webpackJsonp([1],{ /***/ 13: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony default export */ __webpack_exports__["default"] = ("lazy-c"); /***/ }) });
javascript
Apache-2.0
bd23751d30c0e9d4e96483a0ae54e00578310ab0
2026-01-05T03:43:16.964923Z
false
TheLarkInn/everything-is-a-plugin
https://github.com/TheLarkInn/everything-is-a-plugin/blob/bd23751d30c0e9d4e96483a0ae54e00578310ab0/dist/2.chunk.js
dist/2.chunk.js
webpackJsonp([2],{ /***/ 12: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony default export */ __webpack_exports__["default"] = ("lazy-b"); /***/ }) });
javascript
Apache-2.0
bd23751d30c0e9d4e96483a0ae54e00578310ab0
2026-01-05T03:43:16.964923Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/app.js
app.js
//app.js App({ onLaunch: function () { // 展示本地存储能力 var logs = wx.getStorageSync('logs') || [] logs.unshift(Date.now()) wx.setStorageSync('logs', logs) // 登录 wx.login({ success: res => { // 发送 res.code 到后台换取 openId, sessionKey, unionId } }) // 获取用户信息 wx.getSetti...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/mocks/data-yule.js
mocks/data-yule.js
module.exports = { "reason": "成功的返回", "result": { "stat": "1", "data": [ { "uniquekey": "505e9c5f9f2e2644b835e2b9bfc7c8fa", "title": "陈泇文时尚大片曝光 元气少女灵动美好", "date": "2019-06-20 11:40", "category": "娱乐", "author_name": "中国网", "url": "http://mini.eastday.com...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/mocks/data-tiyu.js
mocks/data-tiyu.js
module.exports = { "reason": "成功的返回", "result": { "stat": "1", "data": [ { "uniquekey": "7429c11faebad3893e94c2bc5d4b406d", "title": "转载NBA各队队史得分王数量", "date": "2019-06-20 11:39", "category": "体育", "author_name": "小赵说体育", "url": "http://mini.eastday.com/m...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/mocks/data-shishang.js
mocks/data-shishang.js
module.exports = { "reason": "成功的返回", "result": { "stat": "1", "data": [ { "uniquekey": "fde9d8358c300c068ca80177f3005ffd", "title": "微胖多穿这3条裤子,告别小粗腿", "date": "2019-06-20 11:42", "category": "时尚", "author_name": "穿衣打扮美搭配", "url": "http://mini.eastday.co...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/mocks/data-top.js
mocks/data-top.js
module.exports = { "reason": "成功的返回", "result": { "stat": "1", "data": [ { "uniquekey": "f28c82b33c49b11db112838b41768c22", "title": "总投资30亿元 江苏首个纯电动重卡项目在宁开工", "date": "2019-06-20 08:28", "category": "头条", "author_name": "南京日报", "url": "http://mini.eastd...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/mocks/data-caijing.js
mocks/data-caijing.js
module.exports = { "reason": "成功的返回", "result": { "stat": "1", "data": [ { "uniquekey": "3ddfc0e3b338b2f487123818de97eb4a", "title": "原创 政、银、企三方共赢 山西市监局与六家银行签订政银战略合作协议", "date": "2019-06-20 11:39", "category": "财经", "author_name": "消费日报山西", "url": "http:...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/mocks/data-guonei.js
mocks/data-guonei.js
module.exports = { "reason": "成功的返回", "result": { "stat": "1", "data": [ { "uniquekey": "66e9673352e7bf9fb854acd1ed9f6065", "title": "“马旭文博艺术中心”建设者学习马旭精神", "date": "2019-06-20 11:43", "category": "国内", "author_name": "东北网", "url": "http://mini.eastday.co...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/mocks/index.js
mocks/index.js
const topMock = require('./data-top.js') const caijingMock = require('./data-caijing.js') const guojiMock = require('./data-guoji.js') const guoneiMock = require('./data-guonei.js') const junshiMock = require('./data-junshi.js') const shehuiMock = require('./data-shehui.js') const shishangMock = require('./data-shishan...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/mocks/data-guoji.js
mocks/data-guoji.js
module.exports = { "reason": "成功的返回", "result": { "stat": "1", "data": [ { "uniquekey": "aa0b82f72cb6ec6e0385ccf84100b7c4", "title": "美国一高中弄丢440名学生高考试卷 考生愤怒:白努力了", "date": "2019-06-20 11:43", "category": "国际", "author_name": "海外网", "url": "http://mini.ea...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/mocks/data-shehui.js
mocks/data-shehui.js
module.exports = { "reason": "成功的返回", "result": { "stat": "1", "data": [ { "uniquekey": "c4e288c5490d9c1d1113c2176718ee0f", "title": "暴雨袭击四川巴中 多个乡镇街道被淹致上千人转移", "date": "2019-06-20 11:39", "category": "社会", "author_name": "中国新闻网", "url": "http://mini.east...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/mocks/data-junshi.js
mocks/data-junshi.js
module.exports = { "reason": "成功的返回", "result": { "stat": "1", "data": [ { "uniquekey": "4e201795f0019f2b12e983ef962590a0", "title": "速度与精度的极致呈现", "date": "2019-06-20 11:22", "category": "军事", "author_name": "法制网", "url": "http://mini.eastday.com/mobile/...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/mocks/date-keji.js
mocks/date-keji.js
module.exports = { "reason": "成功的返回", "result": { "stat": "1", "data": [ { "uniquekey": "f22c157f013fd2dbff635a5373e68150", "title": "洛克希德马丁和无人机赛车联盟宣布2019年AlphaPilot团队", "date": "2019-06-20 11:30", "category": "科技", "author_name": "无人机网", "url": "http://...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/pages/detail/detail.js
pages/detail/detail.js
// pages/detail/detail.js const request = require('../../utils/request.js') const util = require('../../utils/util.js') var WxParse = require('../../components/wxParse/wxParse.js') Page({ /** * 页面的初始数据 */ data: { newsTitle: '', newsUrl: '', newsAuthor: '', contentTip: '由于后台接口原因,新闻具体内容无法编辑,只返回...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/pages/logs/logs.js
pages/logs/logs.js
//logs.js const util = require('../../utils/util.js') Page({ data: { logs: [] }, onLoad: function () { this.setData({ logs: (wx.getStorageSync('logs') || []).map(log => { return util.formatTime(new Date(log)) }) }) } })
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/pages/index/index.js
pages/index/index.js
const app = getApp() const appKey = 'fc35d7872c25744ab4669c7d9dbcf15e' // 用于访问新闻接口的appKey const request = require('../../utils/request.js') const extractArticleInfo = require('./utils/getArticleTime.js') const shuffle = require('./utils/shuffle.js') Page({ data: { headerTitleName: [ { name: '头条', nameID: '...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/pages/index/utils/getArticleTime.js
pages/index/utils/getArticleTime.js
/* 获取文章时间 */ const extractArticleInfo = articleList => { const nowDay = ('0' + new Date().getDate()).slice(-2) const nowHour = new Date().getHours() const nowMinute = new Date().getMinutes() const tempNowHour = nowHour + 24 let editTime, editDay, editHour, editMinute articleList.map(item => { editDay = ...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/pages/index/utils/shuffle.js
pages/index/utils/shuffle.js
/* 将数组随机排序 */ const shuffle = (arr = []) => { let i = arr.length while (i) { let j = Math.floor(Math.random() * i--); [arr[i], arr[j]] = [arr[j], arr[i]]; } return arr } module.exports = shuffle
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/pages/webview/webview.js
pages/webview/webview.js
// pages/webview/webview.js Page({ data: { newsUrl: '' }, onLoad: function(options) { const newsUrl = options.newsUrl this.setData({ newsUrl }) }, onReady: function() {}, onShow: function() {}, onHide: function() {}, /** * 生命周期函数--监听页面卸载 */ onUnload: function() {}, /** ...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/pages/demo/demo.js
pages/demo/demo.js
const request = require('../../utils/request.js') const util = require('../../utils/util.js') var WxParse = require('../../components/wxParse/wxParse.js') Page({ /** * 页面的初始数据 */ data: { refreshing: false }, onLoad: function() { request({ url: 'http://mini.eastday.com/mobile/190620114335522...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/components/wxParse/htmlparser.js
components/wxParse/htmlparser.js
/** * * htmlParser改造自: https://github.com/blowsie/Pure-JavaScript-HTML5-Parser * * author: Di (微信小程序开发工程师) * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com) * 垂直微信小程序开发交流社区 * * github地址: https://github.com/icindy/wxParse * * for: 微信小程序富文本解析 * detail : http://weappdev.com/t/wxparse-al...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/components/wxParse/wxParse.js
components/wxParse/wxParse.js
/** * author: Di (微信小程序开发工程师) * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com) * 垂直微信小程序开发交流社区 * * github地址: https://github.com/icindy/wxParse * * for: 微信小程序富文本解析 * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/184 */ /** * utils函数引入 **/ import showdown from './showdo...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/components/wxParse/html2json.js
components/wxParse/html2json.js
/** * html2Json 改造来自: https://github.com/Jxck/html2json * * * author: Di (微信小程序开发工程师) * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com) * 垂直微信小程序开发交流社区 * * github地址: https://github.com/icindy/wxParse * * for: 微信小程序富文本解析 * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/components/wxParse/wxDiscode.js
components/wxParse/wxDiscode.js
// HTML 支持的数学符号 function strNumDiscode(str){ str = str.replace(/∀/g, '∀'); str = str.replace(/∂/g, '∂'); str = str.replace(/&exists;/g, '∃'); str = str.replace(/∅/g, '∅'); str = str.replace(/∇/g, '∇'); str = str.replace(/∈/g, '∈'); str = str.replace(/∉/g, '...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/components/wxParse/showdown.js
components/wxParse/showdown.js
/** * * showdown: https://github.com/showdownjs/showdown * * author: Di (微信小程序开发工程师) * organization: WeAppDev(微信小程序开发论坛)(http://weappdev.com) * 垂直微信小程序开发交流社区 * * github地址: https://github.com/icindy/wxParse * * for: 微信小程序富文本解析 * detail : http://weappdev.com/t/wxparse-alpha0-1-html-markdown/1...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
true
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/components/scroll-view-refresh-load/scroll-view-refresh-load.js
components/scroll-view-refresh-load/scroll-view-refresh-load.js
// components/scroll-view-refresh-load/scroll-view-refresh-load.js Component({ /** * 组件的属性列表 */ properties: { pullDownText: { type: String, value: '下拉刷新' }, /* 是否需要下拉 */ pullDown: { type: Boolean, value: true }, /* 下拉触发刷新的高度 */ pullDownHeight: { type: ...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/components/copyright/copyright.js
components/copyright/copyright.js
// components/footer/copyright.js Component({ /** * 组件的属性列表 */ properties: { }, /** * 组件的初始数据 */ data: { }, /** * 组件的方法列表 */ methods: { } })
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/utils/request.js
utils/request.js
const mockData = require('../mocks/index.js') const request = options => { const { url, method } = options const defaultOption = { method: 'GET' } const finalOption = { ...defaultOption, ...options } return new Promise((resolve, reject) => { wx.request({ url: finalOption.url, method: fina...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
KuangPF/wxAPP_toutiaoNews
https://github.com/KuangPF/wxAPP_toutiaoNews/blob/1d60d492d393c5b2a8427def93598ae2588b154b/utils/util.js
utils/util.js
const formatTime = date => { const year = date.getFullYear() const month = date.getMonth() + 1 const day = date.getDate() const hour = date.getHours() const minute = date.getMinutes() const second = date.getSeconds() return [year, month, day].map(formatNumber).join('/') + ' ' + [hour, minute, second].map...
javascript
MIT
1d60d492d393c5b2a8427def93598ae2588b154b
2026-01-05T03:43:26.787295Z
false
magical-paperclip/sics-ground
https://github.com/magical-paperclip/sics-ground/blob/9471a818e00e3bd459374506e70041940bea642a/script.js
script.js
document.addEventListener('DOMContentLoaded', function() { const networkCanvas = document.getElementById('network-background'); const ctx = networkCanvas.getContext('2d'); function resizeCanvas() { networkCanvas.width = window.innerWidth; networkCanvas.height = window.innerHeight; }...
javascript
MIT
9471a818e00e3bd459374506e70041940bea642a
2026-01-05T03:43:29.213411Z
true
magical-paperclip/sics-ground
https://github.com/magical-paperclip/sics-ground/blob/9471a818e00e3bd459374506e70041940bea642a/menu-controls.js
menu-controls.js
document.addEventListener('DOMContentLoaded', function() { initNavbarActiveState(); initScrollReveal(); document.addEventListener('scroll', function() { updateNavbar(); updateNavbarActiveState(); }); }); function updateNavbar() { const navbar = document.querySel...
javascript
MIT
9471a818e00e3bd459374506e70041940bea642a
2026-01-05T03:43:29.213411Z
false
magical-paperclip/sics-ground
https://github.com/magical-paperclip/sics-ground/blob/9471a818e00e3bd459374506e70041940bea642a/lib/matter.min.js
lib/matter.min.js
/*! * matter-js 0.19.0 by @liabru * http://brm.io/matter-js/ * License MIT */
javascript
MIT
9471a818e00e3bd459374506e70041940bea642a
2026-01-05T03:43:29.213411Z
true
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/karma.conf.js
karma.conf.js
module.exports = function (config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/karma-adapter frameworks: ['jasmine'], // list o...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/app.js
app/js/app.js
(function(){ var fileUrl = require('file-url'); var path = require('path'); var request = require('request'); var util = require('./js/node/vl_util.js'); var subtitle = require('./js/node/subtitle.js'); var subsync = require('./js/node/subsync.js'); var encodings = require('./js/node/encodings.js'); var database = req...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
true
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/subtitle.js
app/js/node/subtitle.js
var _ = require('underscore'); /** * Finds caption to be shown at a given time * @param subs - subtitles * @param time - time in seconds * @returns the caption */ exports.findSub = function(subs, time){ // todo: add searchStartIndex argument var index = _.sortedIndex(subs.data, {subtitle: {start: time}}, func...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/database.js
app/js/node/database.js
/** * Created by Ognjen on 6/27/15. */ exports.openDatabase = function (gui) { var path = require('path'); var Datastore = require('nedb'); var db = new Datastore({ filename:path.join(gui.App.dataPath, 'lingo_player_words.nedb'), autoload: true }); db.ensureIndex({ fieldName: 'te...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/encodings.js
app/js/node/encodings.js
var encodings = { 'af': ['windows-1252','iso-8859-1'], 'sq': ['windows-1252','iso-8859-1'], 'ar': ['iso-8859-6'], 'eu': ['windows-1252','iso-8859-1'], 'bg': ['iso-8859-5'], 'be': ['iso-8859-5'], 'ca': ['windows-1252','iso-8859-1'], 'hr': ['windows-1250','iso-8859-2'], ...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/parse.js
app/js/node/parse.js
srt = require('./parsers/popcorn.parserSRT.js'); sub = require('./parsers/parserSUB.js'); exports.parseSubtitles = function(data, extension){ if (extension == 'srt'){ return srt.parseSRT(data); } else if (extension == 'sub' || extension == 'txt'){ return sub.parseSUB(data); } else { ...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/vl_util.js
app/js/node/vl_util.js
/** * Created by Ognjen on 4/18/15. */ var fs = require("fs"); var jschardet = require("jschardet"); var iconv = require('iconv-lite'); var parse = require('./parse.js'); var subtitle = require('./subtitle.js'); var encodings = require('./encodings.js'); var tokenizer = require('./tokenizer.js'); var loadFile = func...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/downloader.js
app/js/node/downloader.js
var http = require('http'); var fs = require('fs'); exports.download = function(url, dest, cb) { // check if file exists fs.stat(dest, function(err, stat) { if(err == null) { // file exists already, just return cb(); } else { var file = fs.createWriteStream(d...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/tokenizer.js
app/js/node/tokenizer.js
/** * Created by Ognjen on 6/24/15. */ 'use strict'; /** * Checks if character is a letter * @param c character * @returns {boolean} */ exports.is_letter = function(c){ return [' ', '.', ',', ';', '!', ':', '?', '@', '%', '^', '&', '=', '\t', '-', '/', '\\', '|', '"', '”', '”', '<', '>', '\n', '(', ')...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/subsync.js
app/js/node/subsync.js
/** * Created by Ognjen on 10/19/15. */ // counts differences between subtitles (text lengths over intervals) function getDiff(subs1, subs2, k, n, searchIntervals, searchNumSubs){ var diffs = {}; var subLen, subTime, key; for (var i in searchIntervals){ var interval = searchIntervals[i]; ...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/parsers/popcorn.parserVTT.js
app/js/node/parsers/popcorn.parserVTT.js
// PARSER: 0.3 WebSRT/VTT (function ( Popcorn ) { /** * WebVTT popcorn parser plug-in * Parses subtitle files in the WebVTT format. * Specification here: http://www.whatwg.org/specs/web-apps/current-work/webvtt.html * Styles which appear after timing information are presently ignored. * Inline styling...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/parsers/popcorn.parserSSA.js
app/js/node/parsers/popcorn.parserSSA.js
// PARSER: 0.3 SSA/ASS (function ( Popcorn ) { /** * SSA/ASS popcorn parser plug-in * Parses subtitle files in the identical SSA and ASS formats. * Style information is ignored, and may be found in these * formats: (\N \n {\pos(400,570)} {\kf89}) * Out of the [Script Info], [V4 Styles], [Eve...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/parsers/popcorn.parserTTXT.js
app/js/node/parsers/popcorn.parserTTXT.js
// PARSER: 0.1 TTXT (function (Popcorn) { /** * TTXT popcorn parser plug-in * Parses subtitle files in the TTXT format. * Style information is ignored. * Data parameter is given by Popcorn, will need an xml. * Xml is the file contents to be parsed as a DOM tree * * @param {Object} data * ...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/parsers/popcorn.parserTTML.js
app/js/node/parsers/popcorn.parserTTML.js
// PARSER: 1.0 TTML (function ( Popcorn ) { /** * TTML popcorn parser plug-in * Parses subtitle files in the TTML format. * Times may be absolute to the timeline or relative * Absolute times are ISO 8601 format (hh:mm:ss[.mmm]) * Relative times are a fraction followed by a unit metric (d.ddu) * ...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/parsers/popcorn.parserSBV.js
app/js/node/parsers/popcorn.parserSBV.js
// PARSER: 0.1 SBV (function (Popcorn) { /** * SBV popcorn parser plug-in * Parses subtitle files in the SBV format. * Times are expected in H:MM:SS.MIL format, with hours optional * Subtitles which don't match expected format are ignored * Data parameter is given by Popcorn, will need a text. * ...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/parsers/parserSUB.js
app/js/node/parsers/parserSUB.js
/** * Created by Ognjen on 10/19/15. */ exports.parseSUB = function( data, frameRate ) { if(! frameRate) frameRate = 23.976; var ret = { data: [] }; var srt = data.replace(/\r\n|\r|\n/g, '\n'); srt = srt.replace(/^\s+|\s+$/g,""); var srty = srt.split('\n'); for (var s = 0; s < sr...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/js/node/parsers/popcorn.parserSRT.js
app/js/node/parsers/popcorn.parserSRT.js
// PARSER: 0.3 SRT /** * SRT popcorn parser plug-in * Parses subtitle files in the SRT format. * Times are expected in HH:MM:SS,MIL format, though HH:MM:SS.MIL also supported * Ignore styling, which may occur after the end time or in-text * While not part of the "official" spec, majority of players sup...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/libs/jquery.min.js
app/libs/jquery.min.js
/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
true
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/libs/ui-bootstrap-tpls-0.14.2.min.js
app/libs/ui-bootstrap-tpls-0.14.2.min.js
/* * angular-ui-bootstrap * http://angular-ui.github.io/bootstrap/ * Version: 0.14.2 - 2015-10-13 * License: MIT */ angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bootstrap.dateparser","ui....
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
true
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/libs/angular.min.js
app/libs/angular.min.js
/* AngularJS v1.4.7 (c) 2010-2015 Google, Inc. http://angularjs.org License: MIT */ (function(Q,X,w){'use strict';function I(b){return function(){var a=arguments[0],c;c="["+(b?b+":":"")+a+"] http://errors.angularjs.org/1.4.7/"+(b?b+"/":"")+a;for(a=1;a<arguments.length;a++){c=c+(1==a?"?":"&")+"p"+(a-1)+"=";var d=enco...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
true
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/libs/select.js
app/libs/select.js
/*! * ui-select * http://github.com/angular-ui/ui-select * Version: 0.11.2 - 2015-03-17T04:08:46.474Z * License: MIT */ (function () { "use strict"; var KEY = { TAB: 9, ENTER: 13, ESC: 27, SPACE: 32, LEFT: 37, UP: 38, RIGHT: 39, DOWN: 40, ...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
true
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/libs/ui-bootstrap-tpls-0.13.4.min.js
app/libs/ui-bootstrap-tpls-0.13.4.min.js
/* * angular-ui-bootstrap * http://angular-ui.github.io/bootstrap/ * Version: 0.13.4 - 2015-09-03 * License: MIT */ angular.module("ui.bootstrap",["ui.bootstrap.tpls","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","ui.bootstrap.carousel","ui.bo...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
true
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/libs/Snowball.js
app/libs/Snowball.js
/*! * Snowball JavaScript Library v0.3 * http://code.google.com/p/urim/ * http://snowball.tartarus.org/ * * Copyright 2010, Oleg Mazko * http://www.mozilla.org/MPL/ */ module.exports = Snowball; function Snowball(lng) { function Among(s, substring_i, result, method) { this.s_size = s.length; this.s = this....
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
true
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/libs/bootstrap.min.js
app/libs/bootstrap.min.js
/*! * Bootstrap v3.3.5 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under the MIT license */ if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
true
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/app/libs/angular-animate.js
app/libs/angular-animate.js
/** * @license AngularJS v1.4.7 * (c) 2010-2015 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular, undefined) {'use strict'; /* jshint ignore:start */ var noop = angular.noop; var extend = angular.extend; var jqLite = angular.element; var forEach = angular.forEach; ...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
true
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/tests/unit/tokenizer_test.js
tests/unit/tokenizer_test.js
describe('tokenizer test', function () { var tokenizer = require('tokenizer'); beforeEach(function () { }); it('tests is_letter', function () { expect(tokenizer.is_letter('a')).toEqual(true); expect(tokenizer.is_letter('!')).toEqual(false); expect(tokenizer.is_letter('\t')).t...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/tests/unit/subtitle_test.js
tests/unit/subtitle_test.js
describe('subtitle test', function () { var subtitle = require('subtitle'); beforeEach(function () { }); it('tests that correct subs are shown for given time', function () { var t1 = {data: [ {subtitle: {start: 0, text: 'a'}}, {subtitle: {start: 3, text: 'b'}}, ...
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
oaprograms/lingo-player
https://github.com/oaprograms/lingo-player/blob/37732ef949ced3d575cf2f079fd5d4461b671fd5/tests/unit/test1.js
tests/unit/test1.js
describe('initial test', function () { //var _ = require('underscore'); beforeEach(function () { }); it('makes sure tests are working', function () { //expect(_.clone({'test': 1})).toEqual({'test': 1}); }); });
javascript
MIT
37732ef949ced3d575cf2f079fd5d4461b671fd5
2026-01-05T03:43:28.046403Z
false
galacemiguel/fluid-system
https://github.com/galacemiguel/fluid-system/blob/b7d64f8f06eb95da5d049985694e8fb8785ee77a/babel.config.js
babel.config.js
const presets = [["@babel/preset-env"], ["minify"]]; module.exports = { presets };
javascript
MIT
b7d64f8f06eb95da5d049985694e8fb8785ee77a
2026-01-05T03:43:26.826959Z
false
galacemiguel/fluid-system
https://github.com/galacemiguel/fluid-system/blob/b7d64f8f06eb95da5d049985694e8fb8785ee77a/src/index.js
src/index.js
import { setDefaultBreakpoints, convertBreakpointsObject, checkBreakpointUnits, setDefaultFluidStart, checkFluidStartUnit } from "./preflightChecks"; import { buildMediaQuery, isMeasurement, pipe, stripUnit, getUnit } from "./utils"; const main = ([stylePropFn, props]) => { const { breakpoints } ...
javascript
MIT
b7d64f8f06eb95da5d049985694e8fb8785ee77a
2026-01-05T03:43:26.826959Z
false
galacemiguel/fluid-system
https://github.com/galacemiguel/fluid-system/blob/b7d64f8f06eb95da5d049985694e8fb8785ee77a/src/preflightChecks.js
src/preflightChecks.js
import { getUnit, stripUnit } from "./utils"; export const setDefaultBreakpoints = ([stylePropFn, props]) => { if (!props.theme.breakpoints) { props.theme.breakpoints = ["40em", "52em", "64em"]; } return [stylePropFn, props]; }; export const convertBreakpointsObject = ([stylePropFn, props]) => { const br...
javascript
MIT
b7d64f8f06eb95da5d049985694e8fb8785ee77a
2026-01-05T03:43:26.826959Z
false
galacemiguel/fluid-system
https://github.com/galacemiguel/fluid-system/blob/b7d64f8f06eb95da5d049985694e8fb8785ee77a/src/utils.js
src/utils.js
const _pipe = (f, g) => (...args) => g(f(...args)); export const pipe = (...fns) => fns.reduce(_pipe); export const isMeasurement = measurement => { return !isNaN(parseInt(measurement)); }; export const getUnit = measurement => { if (!measurement) { return null; } if (typeof measurement === "number") { ...
javascript
MIT
b7d64f8f06eb95da5d049985694e8fb8785ee77a
2026-01-05T03:43:26.826959Z
false
galacemiguel/fluid-system
https://github.com/galacemiguel/fluid-system/blob/b7d64f8f06eb95da5d049985694e8fb8785ee77a/test/index.test.js
test/index.test.js
import space from "@styled-system/space"; import typography from "@styled-system/typography"; import fluid from "../src"; import { buildMediaQuery } from "../src/utils"; const themeFactory = theme => ({ disableStyledSystemCache: true, breakpoints: ["40em", "52em", "64em"], ...theme }); describe("main", () => {...
javascript
MIT
b7d64f8f06eb95da5d049985694e8fb8785ee77a
2026-01-05T03:43:26.826959Z
false
fregante/notifications-preview-github
https://github.com/fregante/notifications-preview-github/blob/2581e4b70dd5a751b31775d34acd1c4fc5ce72b9/source/github-notifications-preview.jsx
source/github-notifications-preview.jsx
import doma from 'doma'; import React from 'dom-chef'; import {$, $$, elementExists} from 'select-dom'; import pushForm from 'push-form'; import delegate from 'delegate-it'; import elementReady from 'element-ready'; import {empty, setTimeoutUntilVisible} from './libs/utils.js'; import optionsStorage from './options-sto...
javascript
MIT
2581e4b70dd5a751b31775d34acd1c4fc5ce72b9
2026-01-05T03:43:19.110819Z
false
fregante/notifications-preview-github
https://github.com/fregante/notifications-preview-github/blob/2581e4b70dd5a751b31775d34acd1c4fc5ce72b9/source/options-storage.js
source/options-storage.js
import OptionsSync from 'webext-options-sync'; const optionsStorage = new OptionsSync({ defaults: { previewCount: true, markAllAsRead: true, dropdown: 'compact', participating: false, closeOnMouseleave: false, }, }); export default optionsStorage;
javascript
MIT
2581e4b70dd5a751b31775d34acd1c4fc5ce72b9
2026-01-05T03:43:19.110819Z
false
fregante/notifications-preview-github
https://github.com/fregante/notifications-preview-github/blob/2581e4b70dd5a751b31775d34acd1c4fc5ce72b9/source/options.js
source/options.js
import optionsStorage from './options-storage.js'; optionsStorage.syncForm('form');
javascript
MIT
2581e4b70dd5a751b31775d34acd1c4fc5ce72b9
2026-01-05T03:43:19.110819Z
false
fregante/notifications-preview-github
https://github.com/fregante/notifications-preview-github/blob/2581e4b70dd5a751b31775d34acd1c4fc5ce72b9/source/libs/utils.js
source/libs/utils.js
export function empty(element) { element.textContent = ''; } // Wait for the timeout, but don't run if tab is not visible export function setTimeoutUntilVisible(callback, ms) { return setTimeout(requestAnimationFrame, ms, callback); }
javascript
MIT
2581e4b70dd5a751b31775d34acd1c4fc5ce72b9
2026-01-05T03:43:19.110819Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/babel.config.js
babel.config.js
module.exports = { presets: [['@babel/env', {loose: true}]], env: { esm: { presets: [['@babel/env', {loose: true, modules: false}]] } } };
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/.commitlintrc.js
.commitlintrc.js
module.exports = {extends: ['@commitlint/config-conventional', '@commitlint/config-lerna-scopes']};
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/.package-template/src/index.js
.package-template/src/index.js
/** * @description This is a sample description * @param {String} text * @example * toPred('b') // returns 'a' * toPred('B') // returns 'A' * toPred('BCD') // returns 'ABC' */ const toPred = text => text .split('') .map(s => String.fromCharCode(s.charCodeAt(0) - 1)) .join(''); export default toPre...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/.package-template/test/index.js
.package-template/test/index.js
it('this is a test', () => { expect(1).toBe(1); });
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/distance/src/index.js
packages/distance/src/index.js
/** * @description Calculates the Levenshtein Distance toStretween two strings * @param {String} [fromStr] * @param {String} [toStr] * @returns {Number} The Levenshtein distance * @example * distance('book', 'back') // returns 2 * distance('black', 'back') // returns 1 * distance('Foo', 'Bar') // returns 3 */ ...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/distance/test/index.js
packages/distance/test/index.js
import distance from '../src'; it('Should calculate Levenshtein Distance between two strings', () => { expect(distance('book', 'back')).toBe(2); expect(distance('black', 'back')).toBe(1); expect(distance('Foo', 'Bar')).toBe(3); expect(distance('cool', 'cool')).toBe(0); expect(distance('There was a black cat'...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/isAlpha/src/index.js
packages/isAlpha/src/index.js
/** * @description Checks whether a given string contains only alpha characters * @param {string} text * @example * isAlpha('Hello') // returns true * isAlpha('Hello, there!') // returns false * isAlpha('123') // returns false * isAlpha('oneTwoThree') // returns true */ const isAlpha = text => { if (!text ||...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/isAlpha/test/index.js
packages/isAlpha/test/index.js
import isAlpha from '../src'; describe('isAlpha function', () => { it('should return false for an empty string', () => { expect(isAlpha('')).toBe(false); }); it('should return false for a numeric input regardless of type', () => { expect(isAlpha(1)).toBe(false); expect(isAlpha('1')).toBe(false); ...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toCamelCase/src/index.js
packages/toCamelCase/src/index.js
/** * @description Converts a string to camel case * @param {String} text * @returns {String} camel case text * @example * toCamelCase('Cool'); //=> 'cool' * toCamelCase('cool mate'); // => 'coolMate' * toCamelCase('Hey how are you today?'); // => 'heyHowAreYouToday' * toCamelCase('PascalCase'); // => 'pascalCa...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toCamelCase/test/index.js
packages/toCamelCase/test/index.js
import toCamelCase from '../src'; it('converts a given string to camel case', () => { expect(toCamelCase('Cool')).toBe('cool'); expect(toCamelCase('cool mate')).toBe('coolMate'); expect(toCamelCase('Hey how are you today?')).toBe('heyHowAreYouToday'); expect(toCamelCase('PascalCase')).toBe('pascalCase'); exp...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toChunks/src/index.js
packages/toChunks/src/index.js
/** * @description Converts a string to its equivalent predecessor * @param {String} text The input String * @param {Integer} chunkSize The size of each chunk, default to 1 * @example * toChunks('Hello world'); // => ['H', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd'] * toChunks(' '); // => [' ', ' ', ' '] ...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toChunks/test/index.js
packages/toChunks/test/index.js
import toChunks from '../src'; it('create chunks with default chunksize', () => { expect(toChunks('Hello world')).toStrictEqual([ 'H', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd' ]); }); it('create chunks of empty strings', () => { expect(toChunks(' ')).toStric...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toSwapCase/src/index.js
packages/toSwapCase/src/index.js
'use strict'; /** * Swaps lowercase to uppercase and vice versa for the input text. * @param {String} input * @returns {String} swaped text * @example * toSwapCase('Hello WORLD'); // => 'hELLO world' * toSwapCase('123 toys'); // => '123 TOYS' */ export default input => input .toString() .split('') ...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toSwapCase/test/swap-case.test.js
packages/toSwapCase/test/swap-case.test.js
import swapCase from '../src'; describe('@plexis/to-swap-case', () => { it('Swap single char', () => { expect(swapCase('a')).toBe('A'); expect(swapCase('B')).toBe('b'); expect(swapCase('5')).toBe('5'); }); it('Swap charters of a sentence', () => { expect(swapCase('Hello WORLD')).toBe('hELLO worl...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toHuman/src/index.js
packages/toHuman/src/index.js
/** * @description Converts a string into a human readable text * @param {String} text * @example * toHuman('foo') // returns 'Foo' * toHuman('foo bar') // returns 'Foo bar' * toHuman(' foo-bar-baz qux quux') // returns 'Foo bar baz qux quux' */ const toHuman = text => text .trim() .replace(/...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toHuman/test/index.js
packages/toHuman/test/index.js
import toHuman from '../src'; describe('@plexis/to-human', () => { it('Converts a string into a human readable text', () => { expect(toHuman('foo')).toBe('Foo'); expect(toHuman('foo bar')).toBe('Foo bar'); expect(toHuman(' foo-bar baz quxQuux corge_grault GarplyWaldo')).toBe( 'Foo bar baz qux ...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toChicago/src/index.js
packages/toChicago/src/index.js
const formatWord = word => word .split('-') .map(s => s.charAt(0).toUpperCase() + s.toLowerCase().substring(1)) .join('-'); // Prepositions list const wordException = [ 'a', 'an', 'the', 'and', 'or', 'aboard', 'about', 'above', 'across', 'after', 'against', 'along', 'amid', 'a...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toChicago/test/index.js
packages/toChicago/test/index.js
import toChicago from '../src'; it('transform normal string', () => { expect(toChicago('This is a title')).toBe('This Is a Title'); }); it('transform mixed sentence', () => { expect(toChicago('in Turabian shows a sample title page for a class paper.')).toBe( 'In Turabian Shows a Sample Title Page for a Class ...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toLower/src/index.js
packages/toLower/src/index.js
/** * @description Lowercase the first letter of the given string. * @param {String} text * @param {Boolean} isLowecase * @example * toLower('Foo Bar', false) // returns 'foo Bar' * toLower('Foo Bar', true) // returns 'foo bar' */ const toLower = (text, isLower) => { const s = isLower ? text.slice(1).toLowerCa...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toLower/test/index.js
packages/toLower/test/index.js
import toLower from '../src'; it('lowercase only the first letter in single word', () => { expect(toLower('HeLLo', false)).toBe('heLLo'); }); it('lowercase only the first letter in multiword sentense', () => { expect(toLower('HeLLo WorLD', false)).toBe('heLLo WorLD'); }); it('lowercase all single word letters', ...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false
plexis-js/plexis
https://github.com/plexis-js/plexis/blob/33f96f4841ec7b9b858f0f88671c8c542d4f5731/packages/toPred/src/index.js
packages/toPred/src/index.js
/** * @description Converts a string to its equivalent predecessor * @param {String} text * @example * toPred('b') // returns 'a' * toPred('B') // returns 'A' * toPred('BCD') // returns 'ABC' */ const toPred = text => text .split('') .map(s => String.fromCharCode(s.charCodeAt(0) - 1)) .join(''); e...
javascript
MIT
33f96f4841ec7b9b858f0f88671c8c542d4f5731
2026-01-05T03:43:19.825618Z
false