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
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/commands/reactionrole.js
commands/reactionrole.js
exports.run = async (client, message, args, level) => { const language = client.getSettings(message.guild.id).language const lang = require("../lib/languages/" + language + ".json") const { ReactionRole } = require("reaction-role"); try { const emoji = args[0] const role = ...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/commands/dog.js
commands/dog.js
const { MessageEmbed } = require('discord.js') const request = require('request') const colors = require('../lib/colors.json') exports.run = async (client, message, args, level) => { const language = client.getSettings(message.guild.id).language const lang = require("../lib/languages/" + language + ".json...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/commands/marry.js
commands/marry.js
const { MessageEmbed } = require('discord.js') const colors = require('../lib/colors.json') exports.run = async (client, message, args) => { const language = client.getSettings(message.guild.id).language const lang = require("../lib/languages/" + language + ".json") try { const user = message...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/commands/tempmute.js
commands/tempmute.js
const { MessageEmbed } = require('discord.js') const colors = require('../lib/colors.json') const ms = require('ms') exports.run = async (client, message, args, level) => { const language = client.getSettings(message.guild.id).language const lang = require("../lib/languages/" + language + ".json") tr...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/commands/covid.js
commands/covid.js
const { MessageEmbed } = require('discord.js') const axios = require('axios'); const colors = require("../lib/colors.json"); const countries = require('../lib/countries.json'); exports.run = async (client, message, args, level) => { // eslint-disable-line no-unused-vars const language = client.getSettings(mes...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/commands/fish.js
commands/fish.js
const { MessageEmbed } = require('discord.js') const colors = require('../lib/colors.json') const ms = require('ms') exports.run = async (client, message, args) => { const language = client.getSettings(message.guild.id).language const lang = require("../lib/languages/" + language + ".json") try { ...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/commands/water.js
commands/water.js
const Discord = require('discord.js') const colors = require('../lib/colors.json') exports.run = async (client, message, args) => { const language = client.getSettings(message.guild.id).language const lang = require("../lib/languages/" + language + ".json") try { if (message.author.bot === true) r...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/routes/discord.js
routes/discord.js
const router = require('express').Router() const { clientId, clientSecret, scopes, redirectUri } = require('../config.js') const fetch = require('node-fetch') const FormData = require('form-data') router.get('/', (req, res) => { if (req.session.user) return res.redirect('/') const authorizeUr...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/routes/index.js
routes/index.js
const router = require('express').Router() const client = require('../bot.js') router.get('/', async (req, res) => { res.render('index', { user: req.session.user, guilds: req.session.guilds, djsclient: client }) }) module.exports = router
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/routes/me.js
routes/me.js
const router = require('express').Router() const client = require('../bot.js') router.get('/', (req, res) => { if (!req.session.user) { res.redirect('/') return } res.render('me', { pageTitle: 'Home - Tsuyo', user: req.session.user || null, djsclient: client }) }...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/routes/money.js
routes/money.js
const router = require('express').Router() const client = require('../bot.js') router.get('/', async (req, res) => { if (!req.session.user) return res.redirect('/') if (!req.session.guilds) return res.redirect('/') res.render('money', { user: req.session.user, guilds: req.session.guilds, ...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/routes/status.js
routes/status.js
const router = require('express').Router() const djsclient = require('../bot.js') const moment = require('moment') require('moment-duration-format') router.get('/', async (req, res) => { if (!req.session.user) return res.redirect('/') if (!req.session.guilds) return res.redirect('/') require('pidusage')(p...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/routes/server.js
routes/server.js
const router = require('express').Router() const client = require('../bot.js') router.get('/', async (req, res) => { if (!req.session.user) return res.redirect('/') if (!req.session.guilds) return res.redirect('/') if (!client.guilds.cache.has(req.query.id)) return res.redirect('/') if (!client.guilds....
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/routes/servers.js
routes/servers.js
const router = require('express').Router() const client = require('../bot.js') router.get('/', async (req, res) => { if (!req.session.user) { res.redirect('/') return } if (!req.session.guilds) { res.redirect('/') return } res.render('servers', { user: req.se...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/routes/command.js
routes/command.js
const router = require('express').Router() const client = require('../bot.js') router.get('/', (req, res) => { if (!req.session.user) { res.redirect('/') return } res.render('command', { pageTitle: 'Command - Tsuyo', user: req.session.user || null, djsclient: client...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/guildCreate.js
events/guildCreate.js
module.exports = (client, guild) => { let channelToSend guild.channels.cache.forEach((channel) => { if (channel.type === "GUILD_TEXT" && !channelToSend && channel.permissionsFor(guild.me).has("SEND_MESSAGES")) channelToSend = channel }) const confetti = client.emojis.cache.get("635377353849176...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/guildBanAdd.js
events/guildBanAdd.js
const { MessageEmbed } = require('discord.js') const colors = require('../lib/colors.json') module.exports = (client, guild, user) => { const settings = client.getSettings(guild.id) const language = settings.language const lang = require("../lib/languages/" + language + ".json") const modLogChanne...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/messageReactionRemove.js
events/messageReactionRemove.js
const Star = class { constructor(client) { this.client = client; } run(reaction, user) { const message = reaction.message; const settings = this.client.getSettings(message.guild.id); if (reaction.emoji.name !== "⭐") return; if (!this.client.starboard.has(message.id)) return; if (!message....
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/messageCreate.js
events/messageCreate.js
const { Collection, MessageEmbed } = require("discord.js") const colors = require('../lib/colors.json') const fs = require('fs') const cooled = new Collection() module.exports = async (client, message) => { if (message.author.bot) return; if (client.config.blacklisted.includes(message.author.id)) retu...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/messageReactionAdd.js
events/messageReactionAdd.js
const Star = class { constructor(client) { this.client = client; } run(reaction, user) { const message = reaction.message; const settings = this.client.getSettings(message.guild.id); if (reaction.emoji.name !== "⭐") return; if (message.guild.channels.cache.find(c => c.name == settings.starboa...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/ready.js
events/ready.js
const request = require("request"); const colors = require("colors"); module.exports = async (client) => { const statusList = [{ msg: "outside (JK who does that?)", type: "PLAYING" }, { msg: "alone :'(", type: "PLAYING" }, { ...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/guildBanRemove.js
events/guildBanRemove.js
const { MessageEmbed } = require("discord.js") const colors = require('../lib/colors.json') module.exports = (client, guild, user) => { const settings = client.getSettings(guild.id) const language = settings.language const lang = require("../lib/languages/" + language + ".json") const modLogChanne...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/warn.js
events/warn.js
module.exports = async (client, warn) => { if (JSON.stringify(warn).toLowerCase().includes("discordapierror")) return; client.logger.log(warn, "warn"); };
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/error.js
events/error.js
const Discord = require("discord.js"); module.exports = async (client, error) => { if (JSON.stringify(error).toLowerCase().includes("discordapierror")) return; client.logger.log(error.message, "error"); // Log error client.channels.cache.get("828038899825508352").send(error.message); };
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/messageDelete.js
events/messageDelete.js
const { MessageEmbed } = require('discord.js') const colors = require('../lib/colors.json') module.exports = (client, message) => { if (message.author.bot) return if (message.guild === null) return const settings = client.getSettings(message.guild.id) const language = settings.language const ...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/disconnect.js
events/disconnect.js
module.exports = (client) => client.login(process.env.BOT_TOKEN);
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/guildDelete.js
events/guildDelete.js
module.exports = (client, guild) => { // client.logger.cmd(`[GUILD LEAVE] ${guild.name} (${guild.id}). Owenr: ${guild.owner.user.tag} (${guild.owner.user.id}).`); if (client.settings.has(guild.id)) { client.settings.delete(guild.id) } }
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/guildMemberRemove.js
events/guildMemberRemove.js
const { MessageEmbed } = require('discord.js') const colors = require('../lib/colors.json') module.exports = (client, member) => { const settings = client.getSettings(member.guild.id) const language = settings.language const lang = require("../lib/languages/" + language + ".json") if (settings.lo...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/emojiUpdate.js
events/emojiUpdate.js
const { MessageEmbed } = require("discord.js") const colors = require('../lib/colors.json') module.exports = (client, oldemoji, newemoji) => { let settings = client.getSettings(newemoji.guild.id) const language = settings.language const lang = require("../lib/languages/" + language + ".json") if ...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/messageUpdate.js
events/messageUpdate.js
const { MessageEmbed } = require('discord.js') const colors = require('../lib/colors.json') module.exports = (client, message, messageNew) => { if (message.author.bot) return if (message.guild === null) return if (message.pinned && !messageNew.pinned) return if (!message.pinned && messageNew.pinne...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/channelCreate.js
events/channelCreate.js
const { MessageEmbed } = require('discord.js') const colors = require('../lib/colors.json') module.exports = (client, channel) => { if (channel.type == "dm") return const settings = client.getSettings(channel.guild.id) const language = settings.language const lang = require("../lib/languages/" + l...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/guildMemberAdd.js
events/guildMemberAdd.js
const { MessageEmbed } = require('discord.js') const colors = require('../lib/colors.json') module.exports = (client, member) => { const settings = client.getSettings(member.guild.id) const language = settings.language const lang = require("../lib/languages/" + language + ".json") if (settings.we...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/emojiDelete.js
events/emojiDelete.js
const { MessageEmbed } = require("discord.js") const colors = require('../lib/colors.json') module.exports = (client, emoji) => { let settings = client.getSettings(emoji.guild.id) const language = settings.language const lang = require("../lib/languages/" + language + ".json") if (settings.logEmo...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/guildMemberUpdate.js
events/guildMemberUpdate.js
const { MessageEmbed } = require('discord.js') const colors = require('../lib/colors.json') module.exports = (client, oldMember, newMember) => { let embed const settings = client.getSettings(oldMember.guild.id) const language = settings.language const lang = require("../lib/languages/" + language ...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/channelDelete.js
events/channelDelete.js
const { MessageEmbed } = require('discord.js') const colors = require('../lib/colors.json') module.exports = (client, channel) => { const settings = client.getSettings(channel.guild.id) const language = settings.language const lang = require("../lib/languages/" + language + ".json") if (settings....
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/events/emojiCreate.js
events/emojiCreate.js
const { MessageEmbed } = require("discord.js") const colors = require('../lib/colors.json') module.exports = (client, emoji) => { let settings = client.getSettings(emoji.guild.id) const language = settings.language const lang = require("../lib/languages/" + language + ".json") if (settings.logEmo...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/modules/reddit.js
modules/reddit.js
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/modules/reactionRoles.js
modules/reactionRoles.js
const fs = require("fs"); const Discord = require("discord.js"); const colors = require("../lib/colors.json"); const client = new ReactionRole(process.env.BOT_TOKEN, process.env.MONGODB_URI); module.exports = (client, message) => { if (message.author.bot) return; if (!message.guild) return; if (message.ch...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/modules/events.js
modules/events.js
const fs = require("fs"); const util = require("util"); const promisify = util.promisify; const readdir = promisify(fs.readdir); module.exports = (client) => { readdir(__dirname + "/../events/", (err, files) => { if (err) return client.logger.error(err); files.forEach(file => { if (!f...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/modules/censorship.js
modules/censorship.js
const fs = require('fs') const Discord = require('discord.js') const AntiSpam = require('discord-anti-spam'); const antiSpam = new AntiSpam({ warnThreshold: 5, // Amount of messages sent in a row that will cause a warning. muteThreshold: 7, // Amount of messages sent in a row that will cause a mute kickThr...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/modules/commands.js
modules/commands.js
const fs = require("fs") const util = require("util") const promisify = util.promisify const readdir = promisify(fs.readdir) module.exports = (client) => { let i = 1 readdir(__dirname + "/../commands/", (err, files) => { if (err) return client.logger.error(err) files.forEach((file) => { ...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/modules/blacklist.js
modules/blacklist.js
/* const fs = require('fs') const Discord = require('discord.js') const colors = require('../lib/colors.json') module.exports = (client, message) => { if (message.guild === null) return; client.guilds.forEach(guild => { if (!client.blacklist.has(guild.id) return // Don't create unnecessary data con...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/modules/webhooks.js
modules/webhooks.js
const express = require('express') const Topgg = require('@top-gg/sdk') const fetch = require('node-fetch') const app = express() const webhook = new Topgg.Webhook('testPassword123') module.exports = (client) => { // Discord Bot List (now top.gg) API, used for communicating server count and receiving vote hooks ...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/modules/_functions.js
modules/_functions.js
module.exports = (client) => { // Returns the author's permission level client.permlevel = (message) => { let permlvl = 0 // Sorts the permission levels const permOrder = client.config.permLevels.slice(0).sort((p, c) => p.level < c.level ? 1 : -1) while (permOrder.length) { ...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/modules/logger.js
modules/logger.js
const zaq = require("zaq") const { WebhookClient } = require("discord.js"); const webhookClient = new WebhookClient({ id: process.env.LOG_WEBHOOK_ID, token: process.env.LOG_WEBHOOK_TOKEN }); const beautify = require("js-beautify").js; const moment = require("moment"); //nodejs moment const tsuyo = zaq.as("...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/modules/points.js
modules/points.js
const fs = require("fs"); const { MessageEmbed } = require("discord.js") const colors = require("../lib/colors.json"); module.exports = (client, message) => { if (message.author.bot) return; if (!message.guild) return; if (message.channel.type === `dm`) return; if (client.getSettings(message.guild...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/modules/pingWords.js
modules/pingWords.js
/* TODO: - Switch to a whitelist instead of all servers. - Allow blacklisted strings. E.g: don't get pinged by "Venk:" but get pinged by "Venk". - Blacklist people from being allowed to ping you */ const fs = require("fs") const { MessageEmbed } = require("discord.js") const colors = require("../lib/colors...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/modules/web.js
modules/web.js
const express = require("express"); const request = require("request"); const session = require("express-session"); const bodyParser = require("body-parser"); const colors = require("colors"); const ip = require("ip"); // We're only using this to get the IP of the dashboard, only bot developers can see the IP const cor...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
ddinan/tsuyo
https://github.com/ddinan/tsuyo/blob/50feeca06fa17d5420cba3df86e0081508a1b801/modules/errors.js
modules/errors.js
const { MessageEmbed } = require('discord.js') const colors = require('../lib/colors.json') const stack = require('error-stack-parser') module.exports = { embedError: function(err, lang, message) { let embed = new MessageEmbed() .setTitle(`❌ ${lang.ErrorOccurred}`) .setColor(co...
javascript
MIT
50feeca06fa17d5420cba3df86e0081508a1b801
2026-01-05T03:45:38.729948Z
false
sindresorhus/unused-filename
https://github.com/sindresorhus/unused-filename/blob/1d7d4925c7705bc1c094b5b14e670e018b9746ef/index.js
index.js
import path from 'node:path'; import {pathExists, pathExistsSync} from 'path-exists'; import escapeStringRegexp from 'escape-string-regexp'; export class MaxTryError extends Error { constructor(originalPath, lastTriedPath) { super('Max tries reached.'); this.originalPath = originalPath; this.lastTriedPath = las...
javascript
MIT
1d7d4925c7705bc1c094b5b14e670e018b9746ef
2026-01-05T03:45:39.019406Z
false
sindresorhus/unused-filename
https://github.com/sindresorhus/unused-filename/blob/1d7d4925c7705bc1c094b5b14e670e018b9746ef/test.js
test.js
import path from 'node:path'; import test from 'ava'; import {unusedFilename, unusedFilenameSync, separatorIncrementer, MaxTryError} from './index.js'; const fixturePath = file => path.join('fixtures', file); const underscore = {incrementer: separatorIncrementer('_')}; const dash = {incrementer: separatorIncrementer('...
javascript
MIT
1d7d4925c7705bc1c094b5b14e670e018b9746ef
2026-01-05T03:45:39.019406Z
false
appleple/pretty-scroll
https://github.com/appleple/pretty-scroll/blob/08b4ca602ba127f0fb52387a7ac0ad0b84e30517/babel.config.js
babel.config.js
module.exports = { presets: ['@babel/preset-env'], plugins: ['add-module-exports'], };
javascript
MIT
08b4ca602ba127f0fb52387a7ac0ad0b84e30517
2026-01-05T03:45:40.991453Z
false
appleple/pretty-scroll
https://github.com/appleple/pretty-scroll/blob/08b4ca602ba127f0fb52387a7ac0ad0b84e30517/src/index.js
src/index.js
'use strict'; module.exports = require('./core/');
javascript
MIT
08b4ca602ba127f0fb52387a7ac0ad0b84e30517
2026-01-05T03:45:40.991453Z
false
appleple/pretty-scroll
https://github.com/appleple/pretty-scroll/blob/08b4ca602ba127f0fb52387a7ac0ad0b84e30517/src/adaptor/jquery.js
src/adaptor/jquery.js
'use strict'; const ScrollShadow = require('../index'); const applyJQuery = (jQuery) => { jQuery.fn.ScrollShadow = function(settings) { if (typeof settings === 'strings'){ } else { new ScrollShadow(this, settings); } return this; } } if (typeof define === 'function' && define.amd) { defin...
javascript
MIT
08b4ca602ba127f0fb52387a7ac0ad0b84e30517
2026-01-05T03:45:40.991453Z
false
appleple/pretty-scroll
https://github.com/appleple/pretty-scroll/blob/08b4ca602ba127f0fb52387a7ac0ad0b84e30517/src/lib/util.js
src/lib/util.js
export const append = (element, string) => { const parser = new DOMParser(); const doc = parser.parseFromString(string, 'text/html'); element.appendChild(doc.querySelector('body').childNodes[0]); } export const prepend = (element, string) => { const parser = new DOMParser(); const doc = parser.parseFromStrin...
javascript
MIT
08b4ca602ba127f0fb52387a7ac0ad0b84e30517
2026-01-05T03:45:40.991453Z
false
appleple/pretty-scroll
https://github.com/appleple/pretty-scroll/blob/08b4ca602ba127f0fb52387a7ac0ad0b84e30517/src/core/index.js
src/core/index.js
import { before, getScrollTop, getOffset, outerHeight } from '../lib/util'; const defaults = { container: 'body', condition: () => true, offsetTop: 0, offsetBottom: 0, breakpoint: 0, }; export default class PrettyScroll { constructor(ele, option) { this.opt = { ...defaults, ...option, ...
javascript
MIT
08b4ca602ba127f0fb52387a7ac0ad0b84e30517
2026-01-05T03:45:40.991453Z
false
GoogleChromeLabs/kv-storage-polyfill
https://github.com/GoogleChromeLabs/kv-storage-polyfill/blob/f4e607238ae25ecd4358ce3771a6bd61568aed37/src/idb_utils.js
src/idb_utils.js
/** * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
javascript
Apache-2.0
f4e607238ae25ecd4358ce3771a6bd61568aed37
2026-01-05T03:45:41.707121Z
false
GoogleChromeLabs/kv-storage-polyfill
https://github.com/GoogleChromeLabs/kv-storage-polyfill/blob/f4e607238ae25ecd4358ce3771a6bd61568aed37/src/weak_map.js
src/weak_map.js
/** * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
javascript
Apache-2.0
f4e607238ae25ecd4358ce3771a6bd61568aed37
2026-01-05T03:45:41.707121Z
false
GoogleChromeLabs/kv-storage-polyfill
https://github.com/GoogleChromeLabs/kv-storage-polyfill/blob/f4e607238ae25ecd4358ce3771a6bd61568aed37/src/index.js
src/index.js
/** * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
javascript
Apache-2.0
f4e607238ae25ecd4358ce3771a6bd61568aed37
2026-01-05T03:45:41.707121Z
false
GoogleChromeLabs/kv-storage-polyfill
https://github.com/GoogleChromeLabs/kv-storage-polyfill/blob/f4e607238ae25ecd4358ce3771a6bd61568aed37/src/cjs.js
src/cjs.js
/** * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
javascript
Apache-2.0
f4e607238ae25ecd4358ce3771a6bd61568aed37
2026-01-05T03:45:41.707121Z
false
GoogleChromeLabs/kv-storage-polyfill
https://github.com/GoogleChromeLabs/kv-storage-polyfill/blob/f4e607238ae25ecd4358ce3771a6bd61568aed37/src/async_iterator.js
src/async_iterator.js
/** * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
javascript
Apache-2.0
f4e607238ae25ecd4358ce3771a6bd61568aed37
2026-01-05T03:45:41.707121Z
false
GoogleChromeLabs/kv-storage-polyfill
https://github.com/GoogleChromeLabs/kv-storage-polyfill/blob/f4e607238ae25ecd4358ce3771a6bd61568aed37/test/index.test.js
test/index.test.js
/** * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
javascript
Apache-2.0
f4e607238ae25ecd4358ce3771a6bd61568aed37
2026-01-05T03:45:41.707121Z
false
GoogleChromeLabs/kv-storage-polyfill
https://github.com/GoogleChromeLabs/kv-storage-polyfill/blob/f4e607238ae25ecd4358ce3771a6bd61568aed37/test/_helpers.js
test/_helpers.js
// babel-plugin-async-to-promises relies on symbols directly in IE for generator support. if (typeof Symbol === 'undefined') { let c = 0; (self.Symbol = function Symbol (x) { return `$$symbol$${x}$${++c}`; }).for = x => `$$symbol$${x}`; }
javascript
Apache-2.0
f4e607238ae25ecd4358ce3771a6bd61568aed37
2026-01-05T03:45:41.707121Z
false
meteorhacks/search-source
https://github.com/meteorhacks/search-source/blob/351b2c388e547dc9b60b1b15e61d6db84507019a/package.js
package.js
Package.describe({ "summary": "Reactive Data Source for Search", "version": "1.4.3 "git": "https://github.com/meteorhacks/search-source.git", "name": "meteorhacks:search-source" }); Npm.depends({ "body-parser": "1.10.1" }); Package.onUse(function(api) { configurePackage(api); api.export(['SearchSource']...
javascript
MIT
351b2c388e547dc9b60b1b15e61d6db84507019a
2026-01-05T03:45:43.851498Z
false
meteorhacks/search-source
https://github.com/meteorhacks/search-source/blob/351b2c388e547dc9b60b1b15e61d6db84507019a/lib/client.js
lib/client.js
SearchSource = function SearchSource(source, fields, options) { this.source = source; this.searchFields = fields; this.currentQuery = null; this.options = options || {}; this.status = new ReactiveVar({loaded: true}); this.metaData = new ReactiveVar({}); this.history = {}; this.store = new Mongo.Collec...
javascript
MIT
351b2c388e547dc9b60b1b15e61d6db84507019a
2026-01-05T03:45:43.851498Z
false
meteorhacks/search-source
https://github.com/meteorhacks/search-source/blob/351b2c388e547dc9b60b1b15e61d6db84507019a/lib/server.js
lib/server.js
SearchSource = {}; SearchSource._sources = {}; var bodyParser = Npm.require('body-parser'); SearchSource.defineSource = function(name, callback) { SearchSource._sources[name] = callback; }; Meteor.methods({ "search.source": function(name, query, options) { check(name, String); check(query, Match.OneOf(Str...
javascript
MIT
351b2c388e547dc9b60b1b15e61d6db84507019a
2026-01-05T03:45:43.851498Z
false
samturrell/vue-breadcrumbs
https://github.com/samturrell/vue-breadcrumbs/blob/b34f6ac1121d99563d027f8eb811840ddac00b91/src/index.js
src/index.js
function install (Vue, options) { function getMatchedRoutes (routes) { // Convert to an array if Vue 1.x if (parseFloat(Vue.version) < 2) { routes = (Object.keys(routes)).filter(function (key) { return !isNaN(key) }).map(function (key) { return routes[key] }) } retur...
javascript
MIT
b34f6ac1121d99563d027f8eb811840ddac00b91
2026-01-05T03:45:41.460956Z
false
samturrell/vue-breadcrumbs
https://github.com/samturrell/vue-breadcrumbs/blob/b34f6ac1121d99563d027f8eb811840ddac00b91/example/index.js
example/index.js
function renderRoutesForV1 (routes) { var v1routes = {} routes.forEach((route) => { var v1route = route if (route.children) { v1route.subRoutes = renderRoutesForV1(v1route.children) } v1route.breadcrumb = v1route.meta.breadcrumb delete v1route.meta var routePath = route.path if (...
javascript
MIT
b34f6ac1121d99563d027f8eb811840ddac00b91
2026-01-05T03:45:41.460956Z
false
samturrell/vue-breadcrumbs
https://github.com/samturrell/vue-breadcrumbs/blob/b34f6ac1121d99563d027f8eb811840ddac00b91/dist/vue-breadcrumbs.js
dist/vue-breadcrumbs.js
/*! * vue-breadcrumbs v1.2.0 * (c) 2018 Sam Turrell * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : global.VueBreadcrumbs = factory(); }...
javascript
MIT
b34f6ac1121d99563d027f8eb811840ddac00b91
2026-01-05T03:45:41.460956Z
false
samturrell/vue-breadcrumbs
https://github.com/samturrell/vue-breadcrumbs/blob/b34f6ac1121d99563d027f8eb811840ddac00b91/dist/vue-breadcrumbs.common.js
dist/vue-breadcrumbs.common.js
/*! * vue-breadcrumbs v1.2.0 * (c) 2018 Sam Turrell * Released under the MIT License. */ 'use strict'; function install(Vue, options) { function getMatchedRoutes(routes) { // Convert to an array if Vue 1.x if (parseFloat(Vue.version) < 2) { routes = Object.keys(routes).filter(function (key) { ...
javascript
MIT
b34f6ac1121d99563d027f8eb811840ddac00b91
2026-01-05T03:45:41.460956Z
false
samturrell/vue-breadcrumbs
https://github.com/samturrell/vue-breadcrumbs/blob/b34f6ac1121d99563d027f8eb811840ddac00b91/dist/vue-breadcrumbs.min.js
dist/vue-breadcrumbs.min.js
/*! * vue-breadcrumbs v1.2.0 * (c) 2018 Sam Turrell * Released under the MIT License. */ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):e.VueBreadcrumbs=r()}(this,function(){"use strict";function e(e,r){function n(r){return pars...
javascript
MIT
b34f6ac1121d99563d027f8eb811840ddac00b91
2026-01-05T03:45:41.460956Z
false
samturrell/vue-breadcrumbs
https://github.com/samturrell/vue-breadcrumbs/blob/b34f6ac1121d99563d027f8eb811840ddac00b91/config/build.js
config/build.js
var fs = require('fs') var zlib = require('zlib') var rollup = require('rollup') var uglify = require('uglify-js') var babel = require('rollup-plugin-babel') var replace = require('rollup-plugin-replace') var pack = require('../package.json') var banner = require('./banner') var changelog = require('changelog') // upd...
javascript
MIT
b34f6ac1121d99563d027f8eb811840ddac00b91
2026-01-05T03:45:41.460956Z
false
samturrell/vue-breadcrumbs
https://github.com/samturrell/vue-breadcrumbs/blob/b34f6ac1121d99563d027f8eb811840ddac00b91/config/banner.js
config/banner.js
var pack = require('../package.json') var version = process.env.VERSION || pack.version module.exports = '/*!\n' + ' * ' + pack.name + ' v' + version + '\n' + ' * (c) ' + new Date().getFullYear() + ' ' + pack.author.name + '\n' + ' * Released under the ' + pack.license + ' License.\n' + ' */'
javascript
MIT
b34f6ac1121d99563d027f8eb811840ddac00b91
2026-01-05T03:45:41.460956Z
false
samturrell/vue-breadcrumbs
https://github.com/samturrell/vue-breadcrumbs/blob/b34f6ac1121d99563d027f8eb811840ddac00b91/config/karma.conf.js
config/karma.conf.js
// Karma configuration // Generated on Tue Sep 08 2015 19:27:24 GMT+0900 (JST) 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/k...
javascript
MIT
b34f6ac1121d99563d027f8eb811840ddac00b91
2026-01-05T03:45:41.460956Z
false
samturrell/vue-breadcrumbs
https://github.com/samturrell/vue-breadcrumbs/blob/b34f6ac1121d99563d027f8eb811840ddac00b91/config/webpack.dev.conf.js
config/webpack.dev.conf.js
var webpack = require('webpack') module.exports = { entry: 'mocha!./test/index.js', output: { path: './test', filename: 'specs.js', publicPath: '/' }, devtool: 'source-map', module: { preLoaders: [{ test: /\.js$/, exclude: /node_modules/, loader: 'eslint-loader' }], ...
javascript
MIT
b34f6ac1121d99563d027f8eb811840ddac00b91
2026-01-05T03:45:41.460956Z
false
taming-the-state-in-react/react-snake
https://github.com/taming-the-state-in-react/react-snake/blob/3fc2c62989e04f44aa15bf0f7b19e31b6afd311a/src/App.test.js
src/App.test.js
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render(<App />, div); });
javascript
MIT
3fc2c62989e04f44aa15bf0f7b19e31b6afd311a
2026-01-05T03:45:45.737376Z
false
taming-the-state-in-react/react-snake
https://github.com/taming-the-state-in-react/react-snake/blob/3fc2c62989e04f44aa15bf0f7b19e31b6afd311a/src/index.js
src/index.js
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
javascript
MIT
3fc2c62989e04f44aa15bf0f7b19e31b6afd311a
2026-01-05T03:45:45.737376Z
false
taming-the-state-in-react/react-snake
https://github.com/taming-the-state-in-react/react-snake/blob/3fc2c62989e04f44aa15bf0f7b19e31b6afd311a/src/App.js
src/App.js
import React from 'react'; import cs from 'classnames'; import './App.css'; const TICK_RATE = 100; const GRID_SIZE = 35; const GRID = []; for (let i = 0; i <= GRID_SIZE; i++) { GRID.push(i); } const DIRECTIONS = { UP: 'UP', BOTTOM: 'BOTTOM', RIGHT: 'RIGHT', LEFT: 'LEFT', }; const DIRECTION_TICKS = { UP...
javascript
MIT
3fc2c62989e04f44aa15bf0f7b19e31b6afd311a
2026-01-05T03:45:45.737376Z
false
taming-the-state-in-react/react-snake
https://github.com/taming-the-state-in-react/react-snake/blob/3fc2c62989e04f44aa15bf0f7b19e31b6afd311a/src/registerServiceWorker.js
src/registerServiceWorker.js
// In production, we register a service worker to serve assets from local cache. // This lets the app load faster on subsequent visits in production, and gives // it offline capabilities. However, it also means that developers (and users) // will only see deployed updates on the "N+1" visit to a page, since previously...
javascript
MIT
3fc2c62989e04f44aa15bf0f7b19e31b6afd311a
2026-01-05T03:45:45.737376Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/.eslintrc.js
.eslintrc.js
module.exports = { "extends": "eslint-config-egg", "rules": { "space-before-function-paren": 0, "no-unused-vars": 0, "comma-dangle": 0 } };
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/index.js
index.js
'use strict'; require('reflect-metadata'); const _ = require('lodash'); const ControllerHandler = require('./src/handler/controller-handler'); const MethodHandler = require('./src/handler/method-handler'); const ctMap = new Map(); const ctHandler = new ControllerHandler(); const methodHandler = new MethodHandler(ctMa...
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/src/constants.js
src/constants.js
'use strict'; module.exports = { PATH_METADATA: 'path', METHOD_METADATA: 'method', MIDDLEWARE_METADATA: 'middleware', CONTROLLER_PREFIX_METADATA: 'controller_prefix' };
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/src/enum/request-method.js
src/enum/request-method.js
'use strict'; module.exports = { GET: 'get', POST: 'post', PUT: 'put', DELETE: 'delete', PATCH: 'patch', OPTIONS: 'options', HEAD: 'head', ALL: 'all', };
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/src/handler/controller-handler.js
src/handler/controller-handler.js
'use strict'; require('reflect-metadata'); const { CONTROLLER_PREFIX_METADATA, CONTROLLER_RENDER_METADATA } = require('../constants'); const createArrayDecorator = Symbol('createArrayDecorator'); const createSingleDecorator = Symbol('createSingleDecorator'); const createCoupleDecorator = Symbol('createCoupleDeco...
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/src/handler/method-handler.js
src/handler/method-handler.js
'use strict'; const { MIDDLEWARE_METADATA, METHOD_METADATA, PATH_METADATA } = require('../constants'); const RequestMethod = require('../enum/request-method'); const createMappingDecorator = Symbol('createMappingDecorator'); const createSingleDecorator = Symbol('createSingleDecorator'); const createArrayDecorat...
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/test/egg-simple/app.js
test/egg-simple/app.js
'use strict'; require('babel-register')({ plugins: [ 'transform-decorators-legacy', ], });
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/test/egg-simple/app/router.js
test/egg-simple/app/router.js
'use strict'; const { EggShell } = require('egg-shell-decorators'); module.exports = app => { EggShell(app); };
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/test/egg-simple/app/controller/user.js
test/egg-simple/app/controller/user.js
const { Controller } = require('egg'); const { Get, Middleware } = require('egg-shell-decorators'); const Middleware01 = require('../middleware/middleware-01'); const Middleware02 = require('../middleware/middleware-02'); const Middleware03 = require('../middleware/middleware-03'); class JdUserController extends Contr...
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/test/egg-simple/app/controller/home.js
test/egg-simple/app/controller/home.js
'use strict'; const { Controller } = require('egg'); const { Get } = require('egg-shell-decorators'); class HomeController extends Controller { @Get('/') index() { this.ctx.body = 'hi, egg'; } } module.exports = HomeController;
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/test/egg-simple/app/controller/order/suborder.js
test/egg-simple/app/controller/order/suborder.js
'use strict'; const { Controller } = require('egg'); const { Get, Post, Put, Delete, Patch } = require('egg-shell-decorators'); class SubOrderController extends Controller { @Get('/:id') get({ params: { id }, query: { keyword } }) { this.ctx.body = `resuful get : ${id}, ${keyword}`; } @Post('/:id') p...
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/test/egg-simple/app/middleware/middleware-01.js
test/egg-simple/app/middleware/middleware-01.js
'use strict'; module.exports = () => { return async (_ctx, next) => { console.log('middleware-01...'); next(); }; };
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/test/egg-simple/app/middleware/middleware-03.js
test/egg-simple/app/middleware/middleware-03.js
'use strict'; module.exports = () => { return async (_ctx, next) => { console.log('middleware-03...'); next(); }; };
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/test/egg-simple/app/middleware/middleware-02.js
test/egg-simple/app/middleware/middleware-02.js
'use strict'; module.exports = () => { return async (ctx, next) => { console.log('middleware-02...'); const flag = true; if (flag) { ctx.body = '233'; return; } next(); }; };
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/test/egg-simple/config/plugin.js
test/egg-simple/config/plugin.js
'use strict'; exports.security = { enable: false, package: 'egg-security', }; exports.cors = { enable: true, package: 'egg-cors', };
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
reidchan/egg-shell-decorators
https://github.com/reidchan/egg-shell-decorators/blob/16494359b5e64404f257e4057099c9d39f970787/test/egg-simple/config/config.default.js
test/egg-simple/config/config.default.js
'use strict'; module.exports = appInfo => { const config = exports = {}; config.keys = appInfo.name + '_1529456660474_7482'; config.middleware = []; config.onerror = { all (error, ctx) { ctx.response.status = error.status || 500; ctx.response.body = { success: false, message:...
javascript
MIT
16494359b5e64404f257e4057099c9d39f970787
2026-01-05T03:45:47.375156Z
false
harshgupta20/quickstart-react
https://github.com/harshgupta20/quickstart-react/blob/1c1e061a214a33cf5d7c6d1a6d1c7cb312fcdabf/index.js
index.js
#!/usr/bin/env node import { input, select, confirm, checkbox } from "@inquirer/prompts" import { select as selectPro } from 'inquirer-select-pro'; import path from "path"; import { run, createFolder, deleteFile } from './lib/utils.js'; import { initializePWA } from './lib/pwa.js'; import { setupCSSFramework } from './...
javascript
MIT
1c1e061a214a33cf5d7c6d1a6d1c7cb312fcdabf
2026-01-05T03:45:48.480969Z
false
harshgupta20/quickstart-react
https://github.com/harshgupta20/quickstart-react/blob/1c1e061a214a33cf5d7c6d1a6d1c7cb312fcdabf/lib/css-frameworks.js
lib/css-frameworks.js
import { run, writeFile, readFile, fileExists } from './utils.js'; import path from 'path'; export const setupTailwind = (projectPath, isTS) => { run(`npm install tailwindcss @tailwindcss/vite`, projectPath); const viteConfigPath = path.join(projectPath, `vite.config.${isTS ? 'ts' : 'js'}`); let viteConfi...
javascript
MIT
1c1e061a214a33cf5d7c6d1a6d1c7cb312fcdabf
2026-01-05T03:45:48.480969Z
false
harshgupta20/quickstart-react
https://github.com/harshgupta20/quickstart-react/blob/1c1e061a214a33cf5d7c6d1a6d1c7cb312fcdabf/lib/router-setup.js
lib/router-setup.js
import path from 'path'; import { readFile, writeFile } from './utils.js'; // Content for the main.tsx/jsx for react router const mainContentReactRouter = ( cssImports, isTS ) => `${cssImports}import React from 'react'; import ReactDOM from 'react-dom/client'; import { BrowserRouter, Routes, Route } from 'react-ro...
javascript
MIT
1c1e061a214a33cf5d7c6d1a6d1c7cb312fcdabf
2026-01-05T03:45:48.480969Z
false
harshgupta20/quickstart-react
https://github.com/harshgupta20/quickstart-react/blob/1c1e061a214a33cf5d7c6d1a6d1c7cb312fcdabf/lib/templates.js
lib/templates.js
import { writeFile, createFolder } from './utils.js'; import path from 'path'; export const createAxiosSetup = (projectPath, isTS) => { const utilsDir = path.join(projectPath, "src", "utils"); createFolder(utilsDir); const axiosContent = `import axios from "axios"; export const api = axios.create({ ...
javascript
MIT
1c1e061a214a33cf5d7c6d1a6d1c7cb312fcdabf
2026-01-05T03:45:48.480969Z
false
harshgupta20/quickstart-react
https://github.com/harshgupta20/quickstart-react/blob/1c1e061a214a33cf5d7c6d1a6d1c7cb312fcdabf/lib/pwa.js
lib/pwa.js
import { run, writeFile, readFile, createFolder } from './utils.js'; import path from 'path'; export const installPWADependencies = (projectPath) => { run(`npm install vite-plugin-pwa workbox-window`, projectPath); }; export const setupPWAConfig = (projectPath, projectName, isTS) => { const viteConfigPath = p...
javascript
MIT
1c1e061a214a33cf5d7c6d1a6d1c7cb312fcdabf
2026-01-05T03:45:48.480969Z
false