Skip to content

Commit 3728c85

Browse files
author
AceMood
committed
add www test case
1 parent 71cecd7 commit 3728c85

File tree

248 files changed

+32356
-15
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

248 files changed

+32356
-15
lines changed

test/BriskPage-Spec.php

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* User: baidu
5+
* Date: 16/6/1
6+
* Time: 下午2:58
7+
*/

test/BriskResourceMap-Spec.php

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
require_once('../src/brisk/BriskResourceMap.php');
4+
5+
$map_basename = 'resource.map';
6+
7+
$map = new BriskResourceMap(dirname(dirname(__FILE__)).'/private/'.$map_basename);
8+
9+
//$map->getMap();

test/BriskyResourceMap-Spec.php

-15
This file was deleted.

www/config/resource.json

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"resource": {
3+
"CSS": {
4+
"CsP2r": {
5+
"uri": "/dist/static/css/M5RLt1wqA.app.css",
6+
"type": "CSS",
7+
"within": [
8+
"p0"
9+
]
10+
},
11+
"fHOVQ": {
12+
"uri": "/dist/static/async/_pQ5DsVmc.async.css",
13+
"type": "CSS"
14+
}
15+
},
16+
"JS": {
17+
"hello.t": {
18+
"uri": "/dist/static/js/b9ereiFc0.hello.js",
19+
"type": "JS",
20+
"css": [
21+
"fHOVQ"
22+
]
23+
},
24+
"app": {
25+
"uri": "/dist/static/js/Ychmriy7Q.index.js",
26+
"type": "JS",
27+
"deps": [
28+
"text.t"
29+
],
30+
"asyncLoaded": [
31+
"hello.t"
32+
]
33+
},
34+
"text.t": {
35+
"uri": "/dist/static/js/D6iCVzEiB.text.js",
36+
"type": "JS"
37+
},
38+
"kernel": {
39+
"uri": "/dist/static/lib/h6HRpR_Vy.kernel.js",
40+
"type": "JS"
41+
},
42+
"quickling": {
43+
"uri": "/dist/static/lib/i+acT3Mhk.quickling.js",
44+
"type": "JS"
45+
},
46+
"+aIF5": {
47+
"uri": "/dist/static/js/oFPwCjtvA.detail.js",
48+
"type": "JS"
49+
},
50+
"jNRnq": {
51+
"uri": "/template/static/widget/9xiFiEqIZ.aaa.js",
52+
"type": "JS",
53+
"deps": [
54+
"dvLDm"
55+
]
56+
},
57+
"dvLDm": {
58+
"uri": "/template/static/widget/bySSUHhGq.b.js",
59+
"type": "JS"
60+
}
61+
},
62+
"TPL": {
63+
"src/widget/detail_content.tpl": {
64+
"uri": "/template/widget/detail_content.tpl",
65+
"type": "TPL"
66+
},
67+
"src/widget/index_content.tpl": {
68+
"uri": "/template/widget/index_content.tpl",
69+
"type": "TPL"
70+
},
71+
"src/page/detail.tpl": {
72+
"uri": "/template/page/detail.tpl",
73+
"type": "TPL"
74+
},
75+
"src/page/footer.tpl": {
76+
"uri": "/template/page/footer.tpl",
77+
"type": "TPL"
78+
},
79+
"src/page/header.tpl": {
80+
"uri": "/template/page/header.tpl",
81+
"type": "TPL"
82+
},
83+
"src/page/index.tpl": {
84+
"uri": "/template/page/index.tpl",
85+
"type": "TPL"
86+
}
87+
}
88+
},
89+
"pkgs": {
90+
"p0": {
91+
"uri": "/dist/static/pkg/hHaAL8qQC.pkg.build.css",
92+
"has": [
93+
"CsP2r"
94+
]
95+
}
96+
}
97+
}

www/detail.php

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?php
2+
/**
3+
* Example Application
4+
5+
* @package Example-application
6+
*/
7+
8+
require 'smarty/libs/Smarty.class.php';
9+
require 'vars.php';
10+
11+
$smarty = new Smarty();
12+
13+
$smarty->force_compile = true;
14+
//$smarty->debugging = true;
15+
$smarty->caching = true;
16+
//$smarty->cache_lifetime = 120;
17+
18+
$smarty->setTemplateDir(SMARTY_TEMPLATE_DIR);
19+
$smarty->setCompileDir(SMARTY_COMPILE_DIR);
20+
$smarty->setConfigDir(SMARTY_CONFIG_DIR);
21+
$smarty->setCacheDir(SMARTY_CACHE_DIR);
22+
// 1. if a plugins dir not exists, will not cause error
23+
// 2. if two plugin directories have same functions, first will make sense
24+
$smarty->addPluginsDir(SMARTY_PLUGIN_DIR);
25+
26+
//
27+
$smarty->left_delimiter = '{{';
28+
$smarty->right_delimiter = '}}';
29+
30+
31+
$smarty->assign('name','Ned');
32+
33+
//$smarty->assign("Name","Fred Irving Johnathan Bradley Peppergill",true);
34+
//$smarty->assign("FirstName",array("John","Mary","James","Henry"));
35+
//$smarty->assign("LastName",array("Doe","Smith","Johnson","Case"));
36+
//$smarty->assign("Class",array(array("A","B","C","D"), array("E", "F", "G", "H"),
37+
// array("I", "J", "K", "L"), array("M", "N", "O", "P")));
38+
//
39+
//$smarty->assign("contacts", array(array("phone" => "1", "fax" => "2", "cell" => "3"),
40+
// array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234")));
41+
//
42+
//$smarty->assign("option_values", array("NY","NE","KS","IA","OK","TX"));
43+
//$smarty->assign("option_output", array("New York","Nebraska","Kansas","Iowa","Oklahoma","Texas"));
44+
//$smarty->assign("option_selected", "NE");
45+
46+
// relative to $smarty->template_dir
47+
$smarty->display('page/detail.tpl');
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
div{color:#f0c040;}

www/dist/static/css/M5RLt1wqA.app.css

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
div{color:#f0c040;}

www/dist/static/h6HRpR_Vy.kernel.js

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/dist/static/js/+4qwO5pBw.index.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/dist/static/js/02Ar275Op.hello.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__d("g5IOC",function(o,e,s){s.exports="Hello AceMood!"});

www/dist/static/js/0dYH3Zmp5.quickling.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/dist/static/js/126QvFLD7.quickling.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/dist/static/js/5rW0_QWZK.text.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__d("text.t",function(e,t,i){i.exports="Here is brisk demo!"});
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
kerneljs.exec("+aIF5",function(e,t,n){"use strict";var o=t.exec=function(){alert(1e3)};o()});

www/dist/static/js/BvMT+JZAM.text.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__d("UPoCs",function(o,e,s){s.exports="Here is brisk demo!"});

www/dist/static/js/D6iCVzEiB.text.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__d("text.t",function(e,t,o){o.exports="Here is brisk demo!"});

www/dist/static/js/FpfXab68B.index.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/dist/static/js/GhKfk_Gva.index.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/dist/static/js/H8AM4fO7H.hello.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__d("g5IOC",function(o,e,c){c.exports="Hello AceMood!"});

www/dist/static/js/JtKSsyfi+.text.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__d("text.t",function(o,e,t){t.exports="Here is brisk demo!"});

www/dist/static/js/OX8Dzv2ev.index.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/dist/static/js/ObdDxnFff.hello.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__d("hello.t",function(o,e,l){l.exports="Hello AceMood!"});

www/dist/static/js/Oy7A7XqGU.text.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__d("text.t",function(t,i,s){s.exports="Here is brisk demo!"});

www/dist/static/js/UfNLziYgS.quickling.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/dist/static/js/WOlpASaLg.index.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
kerneljs.exec("+aIF5",function(e,t,o){"use strict";var n=t.exec=function(){alert(1e3)};n()});

www/dist/static/js/YKFyk3hfy.hello.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__d("hello.t",function(n,e,t){t.exports="Hello AceMood!"});

www/dist/static/js/Ychmriy7Q.index.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

www/dist/static/js/b9ereiFc0.hello.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__d("hello.t",function(e,t,o){o.exports="Hello AceMood!"});

0 commit comments

Comments
 (0)