Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zeroing-libs
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
劳工
zeroing-libs
Commits
92e888cf
Commit
92e888cf
authored
Dec 30, 2019
by
rockyl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
d6adfb44
Changes
9
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
264 additions
and
444 deletions
+264
-444
shoot-planet.json
dist/customs/shoot-planet.json
+1
-1
api-request.json
dist/processes/projectX/api-request.json
+1
-1
buried-point.json
dist/scripts/buried-point.json
+1
-1
ShootPlanet.d.ts
libs/ShootPlanet.d.ts
+0
-17
process-context.d.ts
libs/process-context.d.ts
+21
-0
types.d.ts
libs/types.d.ts
+235
-421
meta.json
src/process/projectX/api-request/meta.json
+1
-1
index.ts
src/script/buried-point/index.ts
+1
-1
zeroing-libs.iml
zeroing-libs.iml
+3
-1
No files found.
dist/customs/shoot-planet.json
View file @
92e888cf
This source diff could not be displayed because it is too large. You can
view the blob
instead.
dist/processes/projectX/api-request.json
View file @
92e888cf
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
"metas"
:
[
"metas"
:
[
{
{
"id"
:
"a4b27753-4cbb-47e3-9b31-51ced475e41a"
,
"id"
:
"a4b27753-4cbb-47e3-9b31-51ced475e41a"
,
"script"
:
"var uri = engine.findVariable('uri', args, props);
\n
var url;
\n
if(uri.indexOf('//') !== 0 && uri.indexOf('://') < 0 && location.pathname === '/preview' || top.location.hash.indexOf('preview/') >= 0){
\n\t
var projectX = 'projectx';
\n\t
var projectID = engine.env.projectID;
\n
url = engine.joinPath(projectX, projectID, uri);
\n
}else{
\n
url = uri;
\n
}
\n
next('success', {url:url}
);"
,
"script"
:
"var uri = engine.findVariable('uri', args, props);
\n
var url;
\n
if(uri.indexOf('//') !== 0 && uri.indexOf('://') < 0 && location.pathname === '/preview' || top.location.hash.indexOf('preview/') >= 0){
\n\t
var projectX = 'projectx';
\n\t
var projectID = engine.env.projectID;
\n
url = engine.joinPath(projectX, projectID, uri);
\n
}else{
\n
url = uri;
\n
}
\n
var payload = args || {};
\n
payload.url = url;
\n
next('success', payload
);"
,
"props"
:
{
"props"
:
{
"uri"
:
{
"uri"
:
{
"type"
:
"string"
,
"type"
:
"string"
,
...
...
dist/scripts/buried-point.json
View file @
92e888cf
...
@@ -28,5 +28,5 @@
...
@@ -28,5 +28,5 @@
}
}
},
},
"id"
:
"buried-point"
,
"id"
:
"buried-point"
,
"code"
:
"
\"
use strict
\"
;
\n
Object.defineProperty(exports,
\"
__esModule
\"
, { value: true });
\n
var BuriedPoint = (function (_super) {
\n
__extends(BuriedPoint, _super);
\n
function BuriedPoint() {
\n
var _this = _super !== null && _super.apply(this, arguments) || this;
\n
_this.dpm = '0.0.0.0';
\n
_this.dcm = '0.0.0.0';
\n
_this.dom = '0.0.0.0';
\n
_this.autoExposure = true;
\n
_this.autoClick = true;
\n
return _this;
\n
}
\n
BuriedPoint.prototype.onModify = function (value, key, oldValue) {
\n
switch (key) {
\n
case 'dpm':
\n
case 'dcm':
\n
case 'dom':
\n
this['__' + key] = fill(value);
\n
break;
\n
}
\n
};
\n
BuriedPoint.prototype.mounted = function () {
\n
this.host.addEventListener(engine.MouseEvent.CLICK, this._onClick, this);
\n
};
\n
BuriedPoint.prototype.awake = function () {
\n
if (this.autoExposure) {
\n
this.logExposure();
\n
}
\n
};
\n
BuriedPoint.prototype._onClick = function (e) {
\n
if (this.autoClick) {
\n
this.logClick();
\n
}
\n
};
\n
BuriedPoint.prototype.logExposure = function () {
\n
this.log('exposure');
\n
};
\n
BuriedPoint.prototype.logClick = function () {
\n
this.log('click');
\n
};
\n
BuriedPoint.prototype.log = function (type) {
\n
log(type, {
\n
dpm: this['__dpm'],
\n
dcm: this['__dcm'],
\n
dom: this['__dom'],
\n
});
\n
};
\n
BuriedPoint.id = 'buried-point';
\n
__decorate([
\n
engine.dirtyFieldTrigger
\n
], BuriedPoint.prototype,
\"
dpm
\"
, void 0);
\n
__decorate([
\n
engine.dirtyFieldTrigger
\n
], BuriedPoint.prototype,
\"
dcm
\"
, void 0);
\n
__decorate([
\n
engine.dirtyFieldTrigger
\n
], BuriedPoint.prototype,
\"
dom
\"
, void 0);
\n
return BuriedPoint;
\n
}(engine.ScriptBase));
\n
exports.default = BuriedPoint;
\n
function fill(src) {
\n
var result = src;
\n
for (var key in engine.env) {
\n
result = result.replace(key, engine.env[key]);
\n
}
\n
return result;
\n
}
\n
function log(type, data) {
\n
var dpm = data.dpm, dcm = data.dcm, dom = data.dom;
\n
var params = {
\n
dpm: dpm, dcm: dcm, appId: engine.env.app
_id
\n
};
\n
if (dom !== '0.0.0.0') {
\n
params.dom = dom;
\n
}
\n
var isExposure = type === 'exposure';
\n
engine.httpRequest(isExposure ? '//embedlog.duiba.com.cn/exposure/standard' : '/log/click', 'get', params, isExposure ? 'jsonp' : 'text');
\n
}
\n
"
"code"
:
"
\"
use strict
\"
;
\n
Object.defineProperty(exports,
\"
__esModule
\"
, { value: true });
\n
var BuriedPoint = (function (_super) {
\n
__extends(BuriedPoint, _super);
\n
function BuriedPoint() {
\n
var _this = _super !== null && _super.apply(this, arguments) || this;
\n
_this.dpm = '0.0.0.0';
\n
_this.dcm = '0.0.0.0';
\n
_this.dom = '0.0.0.0';
\n
_this.autoExposure = true;
\n
_this.autoClick = true;
\n
return _this;
\n
}
\n
BuriedPoint.prototype.onModify = function (value, key, oldValue) {
\n
switch (key) {
\n
case 'dpm':
\n
case 'dcm':
\n
case 'dom':
\n
this['__' + key] = fill(value);
\n
break;
\n
}
\n
};
\n
BuriedPoint.prototype.mounted = function () {
\n
this.host.addEventListener(engine.MouseEvent.CLICK, this._onClick, this);
\n
};
\n
BuriedPoint.prototype.awake = function () {
\n
if (this.autoExposure) {
\n
this.logExposure();
\n
}
\n
};
\n
BuriedPoint.prototype._onClick = function (e) {
\n
if (this.autoClick) {
\n
this.logClick();
\n
}
\n
};
\n
BuriedPoint.prototype.logExposure = function () {
\n
this.log('exposure');
\n
};
\n
BuriedPoint.prototype.logClick = function () {
\n
this.log('click');
\n
};
\n
BuriedPoint.prototype.log = function (type) {
\n
log(type, {
\n
dpm: this['__dpm'],
\n
dcm: this['__dcm'],
\n
dom: this['__dom'],
\n
});
\n
};
\n
BuriedPoint.id = 'buried-point';
\n
__decorate([
\n
engine.dirtyFieldTrigger
\n
], BuriedPoint.prototype,
\"
dpm
\"
, void 0);
\n
__decorate([
\n
engine.dirtyFieldTrigger
\n
], BuriedPoint.prototype,
\"
dcm
\"
, void 0);
\n
__decorate([
\n
engine.dirtyFieldTrigger
\n
], BuriedPoint.prototype,
\"
dom
\"
, void 0);
\n
return BuriedPoint;
\n
}(engine.ScriptBase));
\n
exports.default = BuriedPoint;
\n
function fill(src) {
\n
var result = src;
\n
for (var key in engine.env) {
\n
result = result.replace(key, engine.env[key]);
\n
}
\n
return result;
\n
}
\n
function log(type, data) {
\n
var dpm = data.dpm, dcm = data.dcm, dom = data.dom;
\n
var params = {
\n
dpm: dpm, dcm: dcm, appId: engine.env.app
ID
\n
};
\n
if (dom !== '0.0.0.0') {
\n
params.dom = dom;
\n
}
\n
var isExposure = type === 'exposure';
\n
engine.httpRequest(isExposure ? '//embedlog.duiba.com.cn/exposure/standard' : '/log/click', 'get', params, isExposure ? 'jsonp' : 'text');
\n
}
\n
"
}
}
libs/ShootPlanet.d.ts
deleted
100644 → 0
View file @
d6adfb44
declare
namespace
RES
{
function
getRes
(
uuid
:
string
):
engine
.
Texture
;
}
declare
interface
Math
{
clamp
(
target
:
number
,
min
:
number
,
max
:
number
):
number
;
}
declare
namespace
engine
{
interface
Point
{
length
:
number
;
}
interface
DisplayObject
{
destroy
():
void
;
}
}
\ No newline at end of file
libs/process-context.d.ts
0 → 100644
View file @
92e888cf
type
NodeClass
=
any
|
engine
.
Container
|
engine
.
Label
|
engine
.
Image
|
engine
.
ShapeBase
|
engine
.
TextInput
|
engine
.
BitmapText
|
engine
.
ScrollList
;
declare
const
args
:
any
;
declare
const
props
:
any
|
ProcessProps
;
declare
const
target
:
NodeClass
;
declare
const
global
:
any
|
{
gameStage
:
engine
.
GameStage
,
dataCenter
:
engine
.
DataCenter
,
env
:
any
,
};
declare
const
vm
:
engine
.
VM
;
declare
function
next
(
type
:
string
,
payload
?:
any
);
libs/types.d.ts
View file @
92e888cf
This diff is collapsed.
Click to expand it.
src/process/projectX/api-request/meta.json
View file @
92e888cf
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
"metas"
:
[
"metas"
:
[
{
{
"id"
:
"a4b27753-4cbb-47e3-9b31-51ced475e41a"
,
"id"
:
"a4b27753-4cbb-47e3-9b31-51ced475e41a"
,
"script"
:
"var uri = engine.findVariable('uri', args, props);
\n
var url;
\n
if(uri.indexOf('//') !== 0 && uri.indexOf('://') < 0 && location.pathname === '/preview' || top.location.hash.indexOf('preview/') >= 0){
\n\t
var projectX = 'projectx';
\n\t
var projectID = engine.env.projectID;
\n
url = engine.joinPath(projectX, projectID, uri);
\n
}else{
\n
url = uri;
\n
}
\n
next('success', {url:url}
);"
,
"script"
:
"var uri = engine.findVariable('uri', args, props);
\n
var url;
\n
if(uri.indexOf('//') !== 0 && uri.indexOf('://') < 0 && location.pathname === '/preview' || top.location.hash.indexOf('preview/') >= 0){
\n\t
var projectX = 'projectx';
\n\t
var projectID = engine.env.projectID;
\n
url = engine.joinPath(projectX, projectID, uri);
\n
}else{
\n
url = uri;
\n
}
\n
var payload = args || {};
\n
payload.url = url;
\n
next('success', payload
);"
,
"props"
:
{
"props"
:
{
"uri"
:
{
"uri"
:
{
"type"
:
"string"
,
"type"
:
"string"
,
...
...
src/script/buried-point/index.ts
View file @
92e888cf
...
@@ -70,7 +70,7 @@ function log(type, data) {
...
@@ -70,7 +70,7 @@ function log(type, data) {
let
{
dpm
,
dcm
,
dom
}
=
data
;
let
{
dpm
,
dcm
,
dom
}
=
data
;
const
params
:
any
=
{
const
params
:
any
=
{
dpm
,
dcm
,
appId
:
engine
.
env
.
app
_id
dpm
,
dcm
,
appId
:
engine
.
env
.
app
ID
};
};
if
(
dom
!==
'0.0.0.0'
)
{
if
(
dom
!==
'0.0.0.0'
)
{
params
.
dom
=
dom
;
params
.
dom
=
dom
;
...
...
zeroing-libs.iml
View file @
92e888cf
...
@@ -2,7 +2,9 @@
...
@@ -2,7 +2,9 @@
<module
type=
"WEB_MODULE"
version=
"4"
>
<module
type=
"WEB_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
inherit-compiler-output=
"true"
>
<component
name=
"NewModuleRootManager"
inherit-compiler-output=
"true"
>
<exclude-output
/>
<exclude-output
/>
<content
url=
"file://$MODULE_DIR$/../zeroing-libs"
/>
<content
url=
"file://$MODULE_DIR$"
>
<excludeFolder
url=
"file://$MODULE_DIR$/dist"
/>
</content>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</component>
</module>
</module>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment