解决 github pages 缓存问题

This commit is contained in:
SmallMain
2022-06-21 23:42:01 +08:00
parent e57f6e5e9f
commit e9c7c6c96a
161 changed files with 8 additions and 8 deletions

View File

@@ -0,0 +1,98 @@
{
"paths": {
"76ZjeTsCNJMYn7/rwRXCpD": [
"batch/spine-batch",
"cc.Prefab"
],
"03EprhmOVCZKUbb5XyPXQq": [
"skin/spine-skin",
"cc.Prefab"
]
},
"uuids": [
"76ZjeTsCNJMYn7/rwRXCpD",
"03EprhmOVCZKUbb5XyPXQq",
"ecpdLyjvZBwrvm+cedCcQy",
"a7ZscqX+JCIZRS157bMyhq",
"7a/QZLET9IDreTiBfRn2PD",
"93dM6KrkZCf5dgNpQwf7T6",
"85yTK+9shIo7RQfQ1TDEUi",
"09o3P/9gBP/Yc7AnxUBZ+Q",
"5cO7kybDxGj4ipyMYdRYZB",
"5f5dyqtRNNxaFmVzYns6FZ",
"a2MjXRFdtLlYQ5ouAFv/+R",
"f0BIwQ8D5Ml7nTNQbh1YlS",
"e97GVMl6JHh5Ml5qEDdSGa",
"29FYIk+N1GYaeWH/q1NxQO",
"70VXjGE0JMUqGli0jmCmTF",
"87/8ZHBEVIkKeNxmalrn9r",
"d0Bu8c2MBCKJc+mKBWzjsJ",
"e8Ueib+qJEhL6mXAHdnwbi",
"b4P/PCArtIdIH38t6mlw8Y",
"71VhFCTINJM6/Ky3oX9nBT"
],
"scenes": {},
"redirect": [
"ecpdLyjvZBwrvm+cedCcQy",
0,
"a7ZscqX+JCIZRS157bMyhq",
1,
"7a/QZLET9IDreTiBfRn2PD",
0,
"93dM6KrkZCf5dgNpQwf7T6",
1,
"85yTK+9shIo7RQfQ1TDEUi",
1,
"09o3P/9gBP/Yc7AnxUBZ+Q",
1,
"5cO7kybDxGj4ipyMYdRYZB",
2,
"5f5dyqtRNNxaFmVzYns6FZ",
2,
"a2MjXRFdtLlYQ5ouAFv/+R",
2,
"70VXjGE0JMUqGli0jmCmTF",
1,
"87/8ZHBEVIkKeNxmalrn9r",
1,
"d0Bu8c2MBCKJc+mKBWzjsJ",
1
],
"deps": [
"internal",
"common",
"main"
],
"packs": {
"05fa2ad10": [
"03EprhmOVCZKUbb5XyPXQq",
"29FYIk+N1GYaeWH/q1NxQO",
"71VhFCTINJM6/Ky3oX9nBT",
"76ZjeTsCNJMYn7/rwRXCpD",
"b4P/PCArtIdIH38t6mlw8Y",
"e8Ueib+qJEhL6mXAHdnwbi",
"e97GVMl6JHh5Ml5qEDdSGa",
"f0BIwQ8D5Ml7nTNQbh1YlS"
]
},
"name": "spine",
"importBase": "import",
"nativeBase": "native",
"debug": true,
"isZip": false,
"encrypted": false,
"versions": {
"import": [
"05fa2ad10",
"ef553"
],
"native": [
"71VhFCTINJM6/Ky3oX9nBT",
"c06a9",
"b4P/PCArtIdIH38t6mlw8Y",
"83fcc",
"e8Ueib+qJEhL6mXAHdnwbi",
"90cf4"
]
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,117 @@
window.__require = function e(t, n, r) {
function s(o, u) {
if (!n[o]) {
if (!t[o]) {
var b = o.split("/");
b = b[b.length - 1];
if (!t[b]) {
var a = "function" == typeof __require && __require;
if (!u && a) return a(b, !0);
if (i) return i(b, !0);
throw new Error("Cannot find module '" + o + "'");
}
o = b;
}
var f = n[o] = {
exports: {}
};
t[o][0].call(f.exports, function(e) {
var n = t[o][1][e];
return s(n || e);
}, f, f.exports, e, t, n, r);
}
return n[o].exports;
}
var i = "function" == typeof __require && __require;
for (var o = 0; o < r.length; o++) s(r[o]);
return s;
}({
"spine-skin": [ function(require, module, exports) {
"use strict";
cc._RF.push(module, "27990QihT9DxaLHUpAMue3v", "spine-skin");
"use strict";
var __extends = this && this.__extends || function() {
var extendStatics = function(d, b) {
extendStatics = Object.setPrototypeOf || {
__proto__: []
} instanceof Array && function(d, b) {
d.__proto__ = b;
} || function(d, b) {
for (var p in b) Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]);
};
return extendStatics(d, b);
};
return function(d, b) {
extendStatics(d, b);
function __() {
this.constructor = d;
}
d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, new __());
};
}();
var __decorate = this && this.__decorate || function(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : null === desc ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if ("object" === typeof Reflect && "function" === typeof Reflect.decorate) r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) (d = decorators[i]) && (r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r);
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", {
value: true
});
var _a = cc._decorator, ccclass = _a.ccclass, property = _a.property;
var SpineSkin = function(_super) {
__extends(SpineSkin, _super);
function SpineSkin() {
var _this = null !== _super && _super.apply(this, arguments) || this;
_this.addBoyBtn = null;
_this.removeBoyBtn = null;
_this.randomChangeBtn = null;
_this.boy = null;
_this.heads = [];
_this.boys = [];
return _this;
}
SpineSkin.prototype.start = function() {
var _this = this;
var boySpine = this.boy.getComponentInChildren(sp.Skeleton);
var newSkeletonData = boySpine.skeletonData.clone();
boySpine.skeletonData = newSkeletonData;
boySpine.animation = "attack";
this.boys.push(this.boy);
this.addBoyBtn.on("click", function() {
var newBoy = cc.instantiate(_this.boy);
var newBoySpine = newBoy.getComponentInChildren(sp.Skeleton);
newBoySpine.skeletonData = boySpine.skeletonData.clone();
newBoySpine.animation = "attack";
_this.boy.parent.addChild(newBoy);
newBoy.setPosition(_this.boys[_this.boys.length - 1].position);
newBoy.x += 100;
if (_this.boys.length % 2 === 1) {
newBoy.getComponentInChildren(sp.Skeleton).setAnimationCacheMode(sp.Skeleton.AnimationCacheMode.PRIVATE_CACHE);
newBoy.getComponentInChildren(cc.Label).string = "Spine - Cache";
}
_this.boys.push(newBoy);
});
this.removeBoyBtn.on("click", function() {
if (_this.boys.length > 1) {
_this.boys[_this.boys.length - 1].destroy();
_this.boys.length -= 1;
}
});
this.randomChangeBtn.on("click", function() {
var boy = _this.boys[_this.boys.length - 1].getComponentInChildren(sp.Skeleton);
boy.setRegion("Head", "Head", sp.SkeletonData.createRegion(_this.heads[Math.floor(Math.random() * _this.heads.length)]));
});
};
__decorate([ property(cc.Node) ], SpineSkin.prototype, "addBoyBtn", void 0);
__decorate([ property(cc.Node) ], SpineSkin.prototype, "removeBoyBtn", void 0);
__decorate([ property(cc.Node) ], SpineSkin.prototype, "randomChangeBtn", void 0);
__decorate([ property(cc.Node) ], SpineSkin.prototype, "boy", void 0);
__decorate([ property([ cc.SpriteFrame ]) ], SpineSkin.prototype, "heads", void 0);
SpineSkin = __decorate([ ccclass ], SpineSkin);
return SpineSkin;
}(cc.Component);
exports.default = SpineSkin;
cc._RF.pop();
}, {} ]
}, {}, [ "spine-skin" ]);
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"sources":["assets/spine/skin/spine-skin.ts"],"names":["_a","cc","_decorator","ccclass","property","SpineSkin","_super","__extends","_this","apply","this","arguments","addBoyBtn","removeBoyBtn","randomChangeBtn","boy","heads","boys","prototype","start","boySpine","getComponentInChildren","sp","Skeleton","newSkeletonData","skeletonData","clone","animation","push","on","newBoy","instantiate","newBoySpine","parent","addChild","setPosition","length","position","x","setAnimationCacheMode","AnimationCacheMode","PRIVATE_CACHE","Label","string","destroy","setRegion","SkeletonData","createRegion","Math","floor","random","__decorate","Node","SpriteFrame","Component","exports","default"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAM,IAAAA,KAAAC,GAAAC,YAAAC,UAAAH,GAAAG,SAAAC,WAAAJ,GAAAI;IAGN,IAAAC,YAAA,SAAAC;MAAuCC,UAAAF,WAAAC;MAAvC,SAAAD;QAAA,IAAAG,QAAA,SAAAF,UAAAA,OAAAG,MAAAC,MAAAC,cAAAD;QAGIF,MAAAI,YAAA;QAGAJ,MAAAK,eAAA;QAGAL,MAAAM,kBAAA;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AAA;MAG1BiC,WAAA,EADC/C,SAAAH,GAAAmD,SAC4B/C,UAAAa,WAAA,qBAAA;MAG7BiC,WAAA,EADC/C,SAAAH,GAAAmD,SAC+B/C,UAAAa,WAAA,wBAAA;MAGhCiC,WAAA,EADC/C,SAAAH,GAAAmD,SACmB/C,UAAAa,WAAA,YAAA;MAGpBiC,WAAA,EADC/C,SAAA,EAAAH,GAAAoD,kBAC4BhD,UAAAa,WAAA,cAAA;MAfZb,YAAA8C,WAAA,EADpBhD,WACoBE;MAwDrB,OAAAA;KAxDA,CAAAJ,GAAAqD;IAAqBC,QAAAC,UAAAnD","sourcesContent":["const { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class SpineSkin extends cc.Component {\n\n @property(cc.Node)\n addBoyBtn: cc.Node = null;\n\n @property(cc.Node)\n removeBoyBtn: cc.Node = null;\n\n @property(cc.Node)\n randomChangeBtn: cc.Node = null;\n\n @property(cc.Node)\n boy: cc.Node = null;\n\n @property([cc.SpriteFrame])\n heads: cc.SpriteFrame[] = [];\n\n boys: cc.Node[] = [];\n\n protected start(): void {\n const boySpine = this.boy.getComponentInChildren(sp.Skeleton);\n const newSkeletonData = boySpine.skeletonData.clone();\n boySpine.skeletonData = newSkeletonData;\n boySpine.animation = 'attack';\n\n this.boys.push(this.boy);\n\n this.addBoyBtn.on('click', () => {\n const newBoy = cc.instantiate(this.boy);\n const newBoySpine = newBoy.getComponentInChildren(sp.Skeleton);\n newBoySpine.skeletonData = boySpine.skeletonData.clone();\n newBoySpine.animation = 'attack';\n\n this.boy.parent.addChild(newBoy);\n newBoy.setPosition(this.boys[this.boys.length - 1].position);\n newBoy.x += 100;\n if (this.boys.length % 2 === 1) {\n newBoy.getComponentInChildren(sp.Skeleton).setAnimationCacheMode(sp.Skeleton.AnimationCacheMode.PRIVATE_CACHE);\n newBoy.getComponentInChildren(cc.Label).string = `Spine - Cache`;\n }\n this.boys.push(newBoy);\n });\n\n this.removeBoyBtn.on('click', () => {\n if (this.boys.length > 1) {\n this.boys[this.boys.length - 1].destroy();\n this.boys.length -= 1;\n }\n });\n\n this.randomChangeBtn.on('click', () => {\n const boy = this.boys[this.boys.length - 1].getComponentInChildren(sp.Skeleton);\n boy.setRegion('Head', 'Head', sp.SkeletonData.createRegion(this.heads[Math.floor(Math.random() * (this.heads.length))]));\n });\n }\n\n}\n"],"file":"index.js"}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB