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
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/pretty-markup/layout.js
pretty-markup/layout.js
/** * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/pretty-markup/schemarama-parsing.bundle.min.js
pretty-markup/schemarama-parsing.bundle.min.js
/*! For license information please see schemarama-parsing.bundle.min.js.LICENSE.txt */
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
true
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/shaclValidator.js
core/shaclValidator.js
/** * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/parsing-index.js
core/parsing-index.js
/** * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/cli.js
core/cli.js
/** * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/index.js
core/index.js
/** * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/shexValidator.js
core/shexValidator.js
/** * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/webpack.config.js
core/webpack.config.js
const TerserJsPlugin = require('terser-webpack-plugin'); const LicensePlugin = require('webpack-license-plugin'); const NodePolyfillPlugin = require("node-polyfill-webpack-plugin"); module.exports = { mode: 'production', // 'development' entry: { 'schemarama.bundle': './index.js', 'schemarama.b...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/parser.js
core/parser.js
/** * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/util.js
core/util.js
/** * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/errors.js
core/errors.js
/** * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/test/shacl-test.js
core/test/shacl-test.js
/** * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/test/shex-test.js
core/test/shex-test.js
/** * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/test/cli-test.js
core/test/cli-test.js
/** * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/dist/schemarama.bundle.min.js
core/dist/schemarama.bundle.min.js
/*! For license information please see schemarama.bundle.min.js.LICENSE.txt */
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
true
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/dist/schemarama.bundle.js
core/dist/schemarama.bundle.js
var schemarama; /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ 6733: /***/ ((module) => { /** * Copyright 2020 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 c...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
true
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/dist/schemarama-parsing.bundle.min.js
core/dist/schemarama-parsing.bundle.min.js
/*! For license information please see schemarama-parsing.bundle.min.js.LICENSE.txt */
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
true
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/core/dist/schemarama-parsing.bundle.js
core/dist/schemarama-parsing.bundle.js
var schemarama; /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ 6733: /***/ ((module) => { /** * Copyright 2020 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 c...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
true
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/demo/shex-html.js
demo/shex-html.js
var ShExHTML = (function () { const UPCLASS = 'extends up' const KEYWORD = 'keyword' const SHEXMI = 'http://www.w3.org/ns/shex-xmi#' const COMMONMARK = 'https://github.com/commonmark/commonmark.js' const CLASS_comment = 'comment' const CLASS_pname = 'pname' const CLASS_prefix = 'prefix' const CLASS_loc...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/demo/static/js/scc/core.js
demo/static/js/scc/core.js
/* * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/demo/static/js/scc/pretty-markup.js
demo/static/js/scc/pretty-markup.js
const TYPE_URI = 'http://www.w3.org/1999/02/22-rdf-syntax-ns#type'; const NAME_URI = 'http://schema.org/name'; const defaultBase = 'http://example.org/' const htmlIndentStep = 30; // one indentation step in HTML representation (in px) const textIndentStep = 4; // one indentation step in text representation (in spaces)...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/demo/static/js/scc/shex.js
demo/static/js/scc/shex.js
/* * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/demo/static/js/scc/layout.js
demo/static/js/scc/layout.js
/* * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/demo/static/js/scc/shacl.js
demo/static/js/scc/shacl.js
/* * Copyright 2020 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/demo/static/js/shapes/core.js
demo/static/js/shapes/core.js
let shexShapesMap = {}; const XsdUrl = 'http://www.w3.org/2001/XMLSchema#'; const SchOrgUrl = 'http://schema.org/'; const SchOrgShEx = SchOrgUrl + 'validation#'; const ShExRenderer = ShExHTML($, {Renderer: function () { throw Error(47) // fake a markdown renderer 'cause we don't have annotations }}) $(document).read...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/demo/static/js/shapes/shex-html.js
demo/static/js/shapes/shex-html.js
var ShExHTML = (function () { const UPCLASS = 'extends up' const KEYWORD = 'keyword' const SHEXMI = 'http://www.w3.org/ns/shex-xmi#' const COMMONMARK = 'https://github.com/commonmark/commonmark.js' const CLASS_comment = 'comment' const CLASS_pname = 'pname' const CLASS_prefix = 'prefix' const CLASS_loc...
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
false
google/schemarama
https://github.com/google/schemarama/blob/1201e54148d4f9886ce4cb773e850f6adb208b05/demo/static/js/libs/schemarama.bundle.min.js
demo/static/js/libs/schemarama.bundle.min.js
/*! For license information please see schemarama.bundle.min.js.LICENSE.txt */
javascript
Apache-2.0
1201e54148d4f9886ce4cb773e850f6adb208b05
2026-01-05T03:40:50.580426Z
true
Lallassu/Qake
https://github.com/Lallassu/Qake/blob/6c8da7a83b72870024473663c48d7516e218db80/js/proc.js
js/proc.js
function Proc() { this.worldSize = 0; this.worldSpace = 0; this.landHeight = 4; this.currentType = 0; this.addBuffer = []; this.lastBuffer = []; this.freeDraw = []; Proc.prototype.DrawType = function(x, y, z) { switch(this.currentType) { case 2: // block ...
javascript
MIT
6c8da7a83b72870024473663c48d7516e218db80
2026-01-05T03:40:57.351246Z
false
Lallassu/Qake
https://github.com/Lallassu/Qake/blob/6c8da7a83b72870024473663c48d7516e218db80/js/player.js
js/player.js
const WEAPON_ROCKET = 0; const WEAPON_SHOTGUN = 1; const WEAPON_NONE = 2; const MAX_HP = 100; const MODEL_STAND = 0; const MODEL_JUMP = 1; const MODEL_RUN1 = 2; const MODEL_RUN2 = 3; const MODEL_SHOOT = 4; const MODEL_FALL = 5; const MOVE_FORWARD = 0; const MOVE_BACKWARD = 1; const MOVE_LEFT = 2; const MOVE_RIGHT = ...
javascript
MIT
6c8da7a83b72870024473663c48d7516e218db80
2026-01-05T03:40:57.351246Z
false
Lallassu/Qake
https://github.com/Lallassu/Qake/blob/6c8da7a83b72870024473663c48d7516e218db80/js/main.js
js/main.js
//============================================================================== // Author: Nergal // Date: 2015-11-17 //============================================================================== "use strict"; function Game() { this.container; this.scene; this.camera; this.renderer; this.stats;...
javascript
MIT
6c8da7a83b72870024473663c48d7516e218db80
2026-01-05T03:40:57.351246Z
false
Lallassu/Qake
https://github.com/Lallassu/Qake/blob/6c8da7a83b72870024473663c48d7516e218db80/js/phys.js
js/phys.js
//============================================================================== // Author: Nergal // Date: 2015-11-17 //============================================================================== // TBD: enum const PHYS_REGULAR = 0; const PHYS_SMOKE = 1; const PHYS_MISSILE = 2; const PHYS_SNOW = 3; const PHYS_GRENA...
javascript
MIT
6c8da7a83b72870024473663c48d7516e218db80
2026-01-05T03:40:57.351246Z
false
Lallassu/Qake
https://github.com/Lallassu/Qake/blob/6c8da7a83b72870024473663c48d7516e218db80/js/objects.js
js/objects.js
use "strict" function Objects () { this.type = 0; this.hp = 0; this.weapon = WEAPON_SHOTGUN; this.chunk = undefined; Objects.prototype.Init = function(name, position, chunk) { this.name = name; this.hp = MAX_HP; chunk.dirty = true; chunk.fromX = 1000; // just some...
javascript
MIT
6c8da7a83b72870024473663c48d7516e218db80
2026-01-05T03:40:57.351246Z
false
Lallassu/Qake
https://github.com/Lallassu/Qake/blob/6c8da7a83b72870024473663c48d7516e218db80/js/world.js
js/world.js
//============================================================================== // Author: Nergal // Date: 2015-11-10 //============================================================================== const CHUNK_WORLD = 0; const CHUNK_OBJECT = 1; const CHUNK_FF = 2; // Binary string to decimal conversion String.prototy...
javascript
MIT
6c8da7a83b72870024473663c48d7516e218db80
2026-01-05T03:40:57.351246Z
true
Lallassu/Qake
https://github.com/Lallassu/Qake/blob/6c8da7a83b72870024473663c48d7516e218db80/js/utils.js
js/utils.js
// https://en.wikipedia.org/wiki/Linear_feedback_shift_register var lfsr = (function(){ var max = Math.pow(2, 16), period = 0, seed, out; return { setSeed : function(val) { out = seed = val || Math.round(Math.random() * max); }, rand : function() { var bit; // From http://e...
javascript
MIT
6c8da7a83b72870024473663c48d7516e218db80
2026-01-05T03:40:57.351246Z
false
Lallassu/Qake
https://github.com/Lallassu/Qake/blob/6c8da7a83b72870024473663c48d7516e218db80/js/vox.js
js/vox.js
//============================================================================== // Author: Nergal // http://webgl.nu // Date: 2014-11-17 //============================================================================== const TYPE_OBJECT = 0; const TYPE_MAP = 1; function VoxelData() { this.x; this.y; this.z...
javascript
MIT
6c8da7a83b72870024473663c48d7516e218db80
2026-01-05T03:40:57.351246Z
false
Lallassu/Qake
https://github.com/Lallassu/Qake/blob/6c8da7a83b72870024473663c48d7516e218db80/libs/OrbitControls.js
libs/OrbitControls.js
/** * @author qiao / https://github.com/qiao * @author mrdoob / http://mrdoob.com * @author alteredq / http://alteredqualia.com/ * @author WestLangley / http://github.com/WestLangley */ THREE.OrbitControls = function ( object, domElement ) { this.object = object; this.domElement = ( domElement !== undefined ) ...
javascript
MIT
6c8da7a83b72870024473663c48d7516e218db80
2026-01-05T03:40:57.351246Z
false
Lallassu/Qake
https://github.com/Lallassu/Qake/blob/6c8da7a83b72870024473663c48d7516e218db80/libs/three.min.js
libs/three.min.js
// threejs.org/license 'use strict';var THREE={REVISION:"73"};"function"===typeof define&&define.amd?define("three",THREE):"undefined"!==typeof exports&&"undefined"!==typeof module&&(module.exports=THREE); void 0!==self.requestAnimationFrame&&void 0!==self.cancelAnimationFrame||function(){for(var a=0,b=["ms","moz","web...
javascript
MIT
6c8da7a83b72870024473663c48d7516e218db80
2026-01-05T03:40:57.351246Z
true
Lallassu/Qake
https://github.com/Lallassu/Qake/blob/6c8da7a83b72870024473663c48d7516e218db80/libs/THREEx.KeyboardState.js
libs/THREEx.KeyboardState.js
// THREEx.KeyboardState.js keep the current state of the keyboard. // It is possible to query it at any time. No need of an event. // This is particularly convenient in loop driven case, like in // 3D demos or games. // // # Usage // // **Step 1**: Create the object // // ```var keyboard = new THREEx.KeyboardState();``...
javascript
MIT
6c8da7a83b72870024473663c48d7516e218db80
2026-01-05T03:40:57.351246Z
false
Lallassu/Qake
https://github.com/Lallassu/Qake/blob/6c8da7a83b72870024473663c48d7516e218db80/libs/jquery-1.11.1.min.js
libs/jquery-1.11.1.min.js
/*! jQuery v1.11.1 | (c) 2005, 2014 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
6c8da7a83b72870024473663c48d7516e218db80
2026-01-05T03:40:57.351246Z
true
Lallassu/Qake
https://github.com/Lallassu/Qake/blob/6c8da7a83b72870024473663c48d7516e218db80/libs/Stats.js
libs/Stats.js
// stats.js r8 - http://github.com/mrdoob/stats.js var Stats=function(){var h,a,n=0,o=0,i=Date.now(),u=i,p=i,l=0,q=1E3,r=0,e,j,f,b=[[16,16,48],[0,255,255]],m=0,s=1E3,t=0,d,k,g,c=[[16,48,16],[0,255,0]];h=document.createElement("div");h.style.cursor="pointer";h.style.width="80px";h.style.opacity="0.9";h.style.zIndex="100...
javascript
MIT
6c8da7a83b72870024473663c48d7516e218db80
2026-01-05T03:40:57.351246Z
false
Lallassu/Qake
https://github.com/Lallassu/Qake/blob/6c8da7a83b72870024473663c48d7516e218db80/libs/THREEx.WindowResize.js
libs/THREEx.WindowResize.js
// This THREEx helper makes it easy to handle window resize. // It will update renderer and camera when window is resized. // // # Usage // // **Step 1**: Start updating renderer and camera // // ```var windowResize = THREEx.WindowResize(aRenderer, aCamera)``` // // **Step 2**: Start updating renderer and camera //...
javascript
MIT
6c8da7a83b72870024473663c48d7516e218db80
2026-01-05T03:40:57.351246Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/server.js
frontend/server.js
const express = require("express"); const path = require("path"); const app = express(); app.use(express.static(path.join(__dirname, "build"))); app.get("/", function (req, res) { res.sendFile(path.join(__dirname, "build", "index.html")); }); app.listen(3000);
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/src/index.js
frontend/src/index.js
import React from "react"; import ReactDOM from "react-dom"; import "antd/dist/antd.css" import { Provider } from "react-redux"; // Step 5: Add the redux store to the React App import store from "./redux/store"; import App from "./App"; const rootElement = document.getElementById("root"); ReactDOM.render( <Provider...
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/src/App.js
frontend/src/App.js
import React from "react"; import SearchBar from "./components/SearchBar"; import SearchResults from "./components/SearchResults"; import Nav from "./components/Nav"; import { connect } from "react-redux"; import { Layout} from "antd"; const { Footer, Content } = Layout; class App extends React.Component { render(){...
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/src/redux/actionTypes.js
frontend/src/redux/actionTypes.js
// Step 1: Create Action Types export const UPDATE_AUTOCOMPLETE_OPTIONS = "UPDATE_AUTOCOMPLETE_OPTIONS"; export const UPDATE_SEARCH_QUERY = "UPDATE_SEARCH_QUERY"; export const UPDATE_SEARCH_RESULTS = "UPDATE_SEARCH_RESULTS";
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/src/redux/store.js
frontend/src/redux/store.js
// Step 4: Add all the reducers to the redux store. import { createStore } from "redux"; import rootReducer from "./reducers"; export default createStore(rootReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__());
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/src/redux/actions.js
frontend/src/redux/actions.js
// Step 2: Create Actions for your Action Types import { UPDATE_AUTOCOMPLETE_OPTIONS, UPDATE_SEARCH_QUERY, UPDATE_SEARCH_RESULTS} from "./actionTypes"; export const updateAutoCompleteOptions = (autocomplete_options) => { return { type: UPDATE_AUTOCOMPLETE_OPTIONS, pay...
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/src/redux/reducers/index.js
frontend/src/redux/reducers/index.js
// Step 3: Create reducers for the action types import { combineReducers } from "redux"; import searchReducer from "./searchReducer"; export default combineReducers({ searchReducer });
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/src/redux/reducers/searchReducer.js
frontend/src/redux/reducers/searchReducer.js
// Step 3: Create reducers for the action types import {UPDATE_AUTOCOMPLETE_OPTIONS, UPDATE_SEARCH_QUERY, UPDATE_SEARCH_RESULTS} from "../actionTypes"; const initialState = { autocomplete_options: [], search_query: "", search_results: [] }; const searchReducer = (state=initialState, actions) => { swit...
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/src/components/ResponsiveAntMenu.js
frontend/src/components/ResponsiveAntMenu.js
import React, { useEffect, useState } from "react"; import { number, string, func, oneOfType, bool, oneOf } from "prop-types"; import { Popover } from "antd"; import throttle from "lodash.throttle"; const ResponsiveAntMenu = (props) => { const { children: MenuMarkup, activeLinkKey, menuClassName: className...
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/src/components/Nav.js
frontend/src/components/Nav.js
import React from "react"; import ResponsiveAntMenu from "./ResponsiveAntMenu"; import { Menu } from "antd"; const Nav = () => ( <ResponsiveAntMenu mobileMenuContent={isMenuShown => isMenuShown ? <button>Close</button> : <button>Open</button>} menuClassName={"responsive-ant-menu"} > {(o...
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/src/components/SearchBar.js
frontend/src/components/SearchBar.js
import React from "react"; import { Input, AutoComplete } from "antd"; import { updateAutoCompleteOptions, updateSearchQuery } from "../redux/actions"; import { connect } from "react-redux"; class SearchBar extends React.Component { async getData(url) { const response = await fetch(url); return ...
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/src/components/SearchResults.js
frontend/src/components/SearchResults.js
import React from "react"; import { updateSearchResults, updateSearchQuery } from "../redux/actions"; import { List, Space, Tag } from "antd"; import { LikeOutlined, TagOutlined } from "@ant-design/icons"; import { connect } from "react-redux"; class SearchResults extends React.Component { postData(url) { const...
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/cypress/support/index.js
frontend/cypress/support/index.js
// *********************************************************** // This example support/index.js is processed and // loaded automatically before your test files. // // This is a great place to put global configuration and // behavior that modifies Cypress. // // You can change the location of this file or turn off // au...
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/cypress/support/commands.js
frontend/cypress/support/commands.js
// *********************************************** // This example commands.js shows you how to // create various custom commands and overwrite // existing commands. // // For more comprehensive examples of custom // commands please read more here: // https://on.cypress.io/custom-commands // ***************************...
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/cypress/integration/search-courses.spec.js
frontend/cypress/integration/search-courses.spec.js
describe("Search courses", () => { it("Load search page", () => { cy.visit("http://localhost:3000"); cy.wait(5000); }); it("Type the course", () => { cy.get("#rc_select_0").type("rust").type("{enter}"); cy.wait(5000); }); it("Compare search result", () => {...
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
dineshsonachalam/tech-courses-search-engine
https://github.com/dineshsonachalam/tech-courses-search-engine/blob/ba5a6bd6c4791de3102af91450b8542a42a45d19/frontend/cypress/plugins/index.js
frontend/cypress/plugins/index.js
// *********************************************************** // This example plugins/index.js can be used to load plugins // // You can change the location of this file or turn off loading // the plugins file with the 'pluginsFile' configuration option. // // You can read more here: // https://on.cypress.io/plugins-g...
javascript
MIT
ba5a6bd6c4791de3102af91450b8542a42a45d19
2026-01-05T03:40:57.991581Z
false
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/mv/project.js
wwwroot/mv/project.js
var Module=typeof Module!="undefined"?Module:{};if(!Module.expectedDataFileDownloads){Module.expectedDataFileDownloads=0}Module.expectedDataFileDownloads++;(function(){if(Module["ENVIRONMENT_IS_PTHREAD"])return;var loadPackage=function(metadata){var PACKAGE_PATH="";if(typeof window==="object"){PACKAGE_PATH=window["enco...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
true
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/jquery.min.js
wwwroot/js/jquery.min.js
/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
true
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/datatables.min.js
wwwroot/js/datatables.min.js
/* * This combined file was created by the DataTables downloader builder: * https://datatables.net/download * * To rebuild or modify this file with the latest versions of the included * software please visit: * https://datatables.net/download/#bs5/dt-2.3.5 * * Included libraries: * DataTables 2.3.5 */ ...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
true
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/diff_match_patch.js
wwwroot/js/diff_match_patch.js
(function () { function diff_match_patch() { this.Diff_Timeout = 1; this.Diff_EditCost = 4; this.Match_Threshold = 0.5; this.Match_Distance = 1E3; this.Patch_DeleteThreshold = 0.5; this.Patch_Margin = 4; this.Match_MaxBits = 32 } diff_match_patch.prototype.diff_main = function (a, b, c, d) { "undefined" == typ...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
false
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/js-blp.js
wwwroot/js/js-blp.js
/*! js-blp (https://github.com/Kruithne/js-blp) Author: Kruithne <kruithne@gmail.com> License: MIT */ const BLPFile = ((Bufo) => { /** * Error thrown by the BLPFile class. * @class BLPError */ class BLPError extends Error { constructor(message, ...args) { message = 'BLPFile: ' + message.replace(/{(\d+...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
false
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/dbc.js
wwwroot/js/dbc.js
function makeBuild(text){ if (text == null){ return ""; } let rawdesc = text.replace("WOW-", ""); const build = rawdesc.substring(0, 5); rawdesc = rawdesc.replace(build, "").replace("patch", ""); const descexpl = rawdesc.split("_"); return descexpl[0] + "." + build; } function g...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
false
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/main.js
wwwroot/js/main.js
/*! * Color mode toggler for Bootstrap's docs (https://getbootstrap.com/) * Copyright 2011-2024 The Bootstrap Authors * Licensed under the Creative Commons Attribution 3.0 Unported License. */ const getStoredTheme = () => localStorage.getItem('theme') const setStoredTheme = theme => localStorage.setItem('theme', th...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
false
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/m3modelviewer.js
wwwroot/js/m3modelviewer.js
import * as THREE from 'three'; import { OrbitControls } from 'three/addons/controls/OrbitControls.js'; function showError(error) { $("#errors").append("<div class='error alert alert-danger'>" + error +"</div>") } window.onerror = function(message, source, lineno, colno, error) { showError("An error occured! Y...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
false
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/modelviewer.js
wwwroot/js/modelviewer.js
const NUM_TEXTURE_SLOTS = 27; // As the first configurable texture slot is #0, the value here is 1 more than the highest texture slot # var Module = { onRuntimeInitialized: function() { createscene(); }, locateFile: function (path, prefix) { return prefix + path+"?v="+window.emscriptenBuild...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
true
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/select2.min.js
wwwroot/js/select2.min.js
/*! Select2 4.0.13 | https://github.com/select2/select2/blob/master/LICENSE.md */
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
true
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/flags.js
wwwroot/js/flags.js
// Flags are currently retrieved from TrinityCore repo, in a best case scenario these would come from DBD. const classMask = { 0x1 : 'WARRIOR', 0x2 : 'PALADIN', 0x4 : 'HUNTER', 0x8 : 'ROGUE', 0x10 : 'PRIEST', 0x20 : 'DEATH_KNIGHT', 0x40 : 'SHAMAN', 0x80 : 'MAGE', 0x100 : 'WARLOCK', ...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
true
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/bootstrap.bundle.min.js
wwwroot/js/bootstrap.bundle.min.js
/*! * Bootstrap v5.3.8 (https://getbootstrap.com/) * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) */
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
true
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/tooltips.js
wwwroot/js/tooltips.js
document.addEventListener('mousemove', (e) => { if (!e.target.matches('[data-tooltip]')) { return; } tooltip2.call(this, e.target, e); }); function tooltip2(el, event){ if (document.getElementById("tooltipToggle")){ if (!document.getElementById("tooltipToggle").checked){ re...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
false
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/hammer.min.js
wwwroot/js/hammer.min.js
/*! Hammer.JS - v2.0.7 - 2016-04-22 * http://hammerjs.github.io/ * * Copyright (c) 2016 Jorik Tangelder; * Licensed under the MIT license */ !function(a,b,c,d){"use strict";function e(a,b,c){return setTimeout(j(a,c),b)}function f(a,b,c){return Array.isArray(a)?(g(a,c[b],c),!0):!1}function g(a,b,c){var e;if(a)if(a.f...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
false
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/maps.js
wwwroot/js/maps.js
/* UI */ const CONSTANTS = { MAP_SIZE: 64, MAP_SIZE_SQ: 4096, // 64x64 MAP_COORD_BASE: 51200 / 3, // 17066,66666666667 TILE_SIZE: (51200 / 3) / 32, // 533,3333333333333 MAP_OFFSET: 17066, } const Elements = { Maps: document.getElementById('js-map-select'), Versions: document.getElementById('js-version-select')...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
false
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/bufo.js
wwwroot/js/bufo.js
/*! Bufo (https://github.com/Kruithne/node-bufo) Author: Kruithne <kruithne@gmail.com> License: MIT */ const ENDIAN_LITTLE = 0x0; const ENDIAN_BIG = 0x1; const TYPE_BUFFER = 0x0; const TYPE_WEB = 0x1; const TYPE_INT8 = 0x0; const TYPE_UINT8 = 0x1; const TYPE_INT16 = 0x2; const TYPE_UINT16 = 0x3; const ...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
false
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/builds.js
wwwroot/js/builds.js
$(document).ready(function () { let build1; let build2; function resetDiffs() { build1 = null; build2 = null; $('.diffbadge').remove(); $('#openDiffButton').hide(); $('#openInstallDiffButton').hide(); $('#resetButton').hide(); $('#diffButton').show()...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
false
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/enums.js
wwwroot/js/enums.js
// Enums are currently retrieved from TrinityCore repo and game data, in a best case scenario these would come from DBD.. const reputationLevels = { 0: 'None/Hated', 1: 'Hostile', 2: 'Unfriendly', 3: 'Neutral', 4: 'Friendly', 5: 'Honored', 6: 'Revered', 7: 'Exalted', } const expansionL...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
true
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/anims.js
wwwroot/js/anims.js
var animationNames = [ "Stand", "Death", "Spell", "Stop", "Walk", "Run", "Dead", "Rise", "StandWound", "CombatWound", "CombatCritical", "ShuffleLeft", "ShuffleRight", "Walkbackwards", "Stun", "HandsClosed", "AttackUnarmed", "Attack1H", "Attack2...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
true
Marlamin/wow.tools.local
https://github.com/Marlamin/wow.tools.local/blob/aefef168e603efc0c261e2c8b676afcc2cbfd273/wwwroot/js/files.js
wwwroot/js/files.js
$("#files").on('click', '.fileTableDL', function(e){ if (e.altKey || e.shiftKey){ showButtons(); addFileToDownloadQueue(this.href); event.preventDefault(); } }); $("#multipleFileAddAll").on('click', function(e){ queueAllFiles(); event.preventDefault(); }); $("#multipleFileReset...
javascript
MIT
aefef168e603efc0c261e2c8b676afcc2cbfd273
2026-01-05T03:41:03.076944Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/.eslintrc.js
.eslintrc.js
// https://eslint.org/docs/user-guide/configuring module.exports = { root: true, parser: 'babel-eslint', parserOptions: { sourceType: 'module' }, env: { browser: true, }, // https://github.com/standard/standard/blob/master/docs/RULES-en.md extends: 'standard', // required to lint *.vue files ...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/.postcssrc.js
.postcssrc.js
// https://github.com/michael-ciniawsky/postcss-load-config module.exports = { 'plugins': { // to edit target browsers: use "browserslist" field in package.json 'autoprefixer': {} } }
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/src/view/demo/router.js
src/view/demo/router.js
/** * Created by yaoze on 2016/9/26. */ // 组件只有import之后才能使用 import base from './components/base.vue' const routes = [ { path: '/', component: base } ] export default routes
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/src/view/demo/index.js
src/view/demo/index.js
import Vue from 'vue' import VueRouter from 'vue-router' import routes from './router.js' import http from 'src/lib/http' import main from './main.vue' Vue.use(VueRouter) // 1. 开启debug模式 Vue.config.debug = true // 将axios实例绑定到$http变量上,方便使用this & 兼容之前的代码 Vue.prototype.$http = http // 3. 创建 router 实例,然后传 `routes` 配置...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/src/lib/blog_demo/index.js
src/lib/blog_demo/index.js
/** * Created by yaoze on 2017/4/1. */ module.exports = { log: function (content) { // 示例,调用该函数后会在控制台打印指定log console.log(`%c demo-log : ${content}`, 'font-size:100px;color:#fff;text-shadow:0 1px 0#ccc,0 2px 0 #c9c9c9,0 3px 0 #bbb,0 4px 0 #b9b9b9,0 5px 0 #aaa,0 6px 1px rgba(0,0,0,.1),0 0 5px rgba(0,0,0,.1),0...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/src/lib/http/index.js
src/lib/http/index.js
'use strict' /** * 统一获取http数据 * Created by yaoze on 2017/2/17. */ import axios from 'axios' // 引入axios组件 import querystring from 'querystring' // 使用体积更小的querystring替代qs以进行表单提交 import vueJsonp from 'vue-jsonp' // 引入jsonp方法 // 创建axios实例 let http = axios.create({ // baseURL: process.env.BASE_API, // api的base_url,后台开...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/build/webpack.prod.conf.js
build/webpack.prod.conf.js
'use strict' const path = require('path') const utils = require('./utils') const webpack = require('webpack') const config = require('../config') const merge = require('webpack-merge') const baseWebpackConfig = require('./webpack.base.conf') const CopyWebpackPlugin = require('copy-webpack-plugin') const ExtractTextPlug...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/build/dev-client.js
build/dev-client.js
/* eslint-disable */ 'use strict' require('eventsource-polyfill') var hotClient = require('webpack-hot-middleware/client?noInfo=true&reload=true') hotClient.subscribe(function (event) { if (event.action === 'reload') { window.location.reload() } })
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/build/build.js
build/build.js
'use strict' require('./check-versions')() process.env.NODE_ENV = 'production' let shell = require('shelljs') let ora = require('ora') let path = require('path') let chalk = require('chalk') let webpack = require('webpack') let config = require('../config') let webpackConfig = require('./webpack.prod.conf') let spin...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/build/dev-server.js
build/dev-server.js
'use strict' require('./check-versions')() const config = require('../config') if (!process.env.NODE_ENV) { process.env.NODE_ENV = JSON.parse(config.dev.env.NODE_ENV) } const opn = require('opn') const path = require('path') const express = require('express') const webpack = require('webpack') const proxyMiddleware...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/build/check-versions.js
build/check-versions.js
'use strict' let chalk = require('chalk') let semver = require('semver') let packageConfig = require('../package.json') let shell = require('shelljs') function exec (cmd) { return require('child_process').execSync(cmd).toString().trim() } const versionRequirements = [ { name: 'node', currentVersion: semv...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/build/vue-loader.conf.js
build/vue-loader.conf.js
'use strict' const utils = require('./utils') const config = require('../config') const isProduction = process.env.NODE_ENV === 'production' module.exports = { loaders: utils.cssLoaders({ sourceMap: isProduction ? config.build.productionSourceMap : config.dev.cssSourceMap, extract: isProduction ...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/build/webpack.dev.conf.js
build/webpack.dev.conf.js
'use strict' const utils = require('./utils') const webpack = require('webpack') const config = require('../config') const merge = require('webpack-merge') const baseWebpackConfig = require('./webpack.base.conf') let htmlTemplateGenerator = require('./plugin/webpack/generate_html_template_list') const FriendlyErrorsPlu...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/build/utils.js
build/utils.js
'use strict' const path = require('path') const config = require('../config') const ExtractTextPlugin = require('extract-text-webpack-plugin') exports.assetsPath = function (_path) { const assetsSubDirectory = process.env.NODE_ENV === 'production' ? config.build.assetsSubDirectory : config.dev.assetsSubDirec...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/build/webpack.base.conf.js
build/webpack.base.conf.js
'use strict' const path = require('path') const utils = require('./utils') const config = require('../config') const vueLoaderConfig = require('./vue-loader.conf') let projectRoot = path.resolve(__dirname, '../') function resolve (dir) { return path.join(__dirname, '..', dir) } module.exports = { cache: true, // ...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/build/plugin/webpack/generate_map_json.js
build/plugin/webpack/generate_map_json.js
'use strict' let cwd = process.cwd() let path = require('path') let fs = require('fs') let tool = { createPathSync: function (dirPath, mode) { // 根据字符串形式的路径创建文件夹 if (fs.existsSync(dirPath)) { // 路径已存在,直接返回 return true } let pathUri // 将路径按分隔符拆分 dirPath.split(path.sep).forEach(fun...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/build/plugin/webpack/generate_html_template_list.js
build/plugin/webpack/generate_html_template_list.js
'use strict' let config = require('../../../config') let HtmlWebpackPlugin = require('html-webpack-plugin') // 生成html模版配置 // 传入参数env : 当前环境配置信息 function generateChunks (project, env) { let chunks = [ project, 'manifest', 'vendor' ] if (env.NODE_ENV !== 'production') { // 当环境不为production线上时 //...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/config/prod.env.js
config/prod.env.js
'use strict' module.exports = { NODE_ENV: '"production"'// 注意,由于这里的值会被作为代码执行,所以必须要加上引号,否则会导致错误! }
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/config/index.js
config/index.js
"use strict"; // Template version: 1.1.3 // see http://vuejs-templates.github.io/webpack for documentation. let path = require("path"); let projectConfig = require("./project.js"); // 在配置生成路径时需要projectConfig中的相关信息,故预先导入 let cdn = require("./cdn.js"); // cdn配置 // 本地debug配置 let debug = {}; try { debug = require("./deb...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/config/cdn.js
config/cdn.js
// /** // * 该配置用于在map.json中生成静态资源路径 // * 真正的cdn发布操作由系统命令进行 // * // * qiniu-upload './dist/multi_vue_demo/**/*' --base='/线上基路径/' --url='http://qiniu.com/zip_upload' --timeout=60000 --user='qiniu_account' --password=123456 // * qiniu-upload './map/multi_vue_demo/**/*' --base='/线上基路径/map/multi_vue_demo/' --url='...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/config/dev.env.js
config/dev.env.js
'use strict' const merge = require('webpack-merge') const prodEnv = require('./prod.env') module.exports = merge(prodEnv, { NODE_ENV: '"development"'// 注意,由于这里的值会被作为代码执行,所以必须要加上引号,否则会导致错误! })
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
YaoZeyuan/vue-multi-page
https://github.com/YaoZeyuan/vue-multi-page/blob/74ae9d6bf509190e8bd5df774b0993bda72e9a4f/config/project.js
config/project.js
'use strict' // 使用"use strict"前缀以启用ES6语法 const VcsTypeHg = 'hg' const VcsTypeGit = 'git' let fs = require('fs') const exit = require('shelljs') const ChildProcess = require('child_process') let projectConfig = { name: 'multi_vue_demo', vcsType: VcsTypeGit, // 设定版本控制工具,用于自动获取版本号 version: 'undefined', // 如果使用hg/...
javascript
MIT
74ae9d6bf509190e8bd5df774b0993bda72e9a4f
2026-01-05T03:41:04.838183Z
false
artgenexyz/webflow-nft-components
https://github.com/artgenexyz/webflow-nft-components/blob/68e9c8f3f94085337b4df953627324f2e10f8745/craco.config.js
craco.config.js
module.exports = { webpack: { alias: {}, configure: (webpackConfig, {env, paths}) => { const isEnvProduction = env === "production"; const isEnvDevelopment = env === "development"; webpackConfig.output.libraryTarget = "umd"; webpackConfig.output.librar...
javascript
MIT
68e9c8f3f94085337b4df953627324f2e10f8745
2026-01-05T03:41:12.582672Z
false