siluzan-tso-cli 1.1.49-beta.4 → 1.1.49-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/skill/_meta.json +2 -2
- package/dist/skill/report-templates/bing-period-report.html +12 -11
- package/dist/skill/report-templates/meta-period-report.html +8 -8
- package/dist/skill/scripts/install.ps1 +1 -1
- package/dist/skill/scripts/install.sh +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,7 +51,7 @@ siluzan-tso init -d /path/to/skills # 写入自定义目录
|
|
|
51
51
|
siluzan-tso init --force # 强制覆盖已存在文件
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
> **注意**:当前为测试版(1.1.49-beta.
|
|
54
|
+
> **注意**:当前为测试版(1.1.49-beta.5),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-tso-cli`。
|
|
55
55
|
|
|
56
56
|
| 助手 | 建议 `--ai` |
|
|
57
57
|
| ----------------------- | ------------------------------------ |
|
package/dist/skill/_meta.json
CHANGED
|
@@ -306,11 +306,11 @@
|
|
|
306
306
|
}
|
|
307
307
|
.chart-box {
|
|
308
308
|
position: relative;
|
|
309
|
-
height:
|
|
310
|
-
margin:
|
|
309
|
+
height: 400px;
|
|
310
|
+
margin: 16px 0 8px;
|
|
311
311
|
}
|
|
312
312
|
.chart-box.sm {
|
|
313
|
-
height:
|
|
313
|
+
height: 320px;
|
|
314
314
|
}
|
|
315
315
|
.chart-grid-2 {
|
|
316
316
|
display: grid;
|
|
@@ -538,7 +538,7 @@
|
|
|
538
538
|
border-radius: 12px;
|
|
539
539
|
}
|
|
540
540
|
.chart-box {
|
|
541
|
-
height: clamp(
|
|
541
|
+
height: clamp(280px, 62vw, 360px);
|
|
542
542
|
}
|
|
543
543
|
.chart-grid-2 {
|
|
544
544
|
grid-template-columns: 1fr;
|
|
@@ -836,8 +836,8 @@
|
|
|
836
836
|
const table =
|
|
837
837
|
sorted.length > 0
|
|
838
838
|
? `<div class="chart-grid-2">
|
|
839
|
-
<div id="chart-devices-pie" class="chart-box" style="height:
|
|
840
|
-
<div id="chart-devices-bar" class="chart-box" style="height:
|
|
839
|
+
<div id="chart-devices-pie" class="chart-box" style="height:380px"></div>
|
|
840
|
+
<div id="chart-devices-bar" class="chart-box" style="height:380px"></div>
|
|
841
841
|
</div>
|
|
842
842
|
<div class="table-wrap"><table>
|
|
843
843
|
<thead><tr><th>设备</th><th class="num">消耗</th><th class="num">展示</th><th class="num">点击</th><th class="num">CTR</th><th class="num">平均CPC</th><th class="num">转化</th><th class="num">CPA</th></tr></thead>
|
|
@@ -875,7 +875,7 @@
|
|
|
875
875
|
.join("");
|
|
876
876
|
const table =
|
|
877
877
|
sorted.length > 0
|
|
878
|
-
? `<div id="chart-geographic" class="chart-box" style="height:
|
|
878
|
+
? `<div id="chart-geographic" class="chart-box" style="height:420px"></div>
|
|
879
879
|
<div class="card-title-row"><h3>地域 Top 10</h3><span class="hint">共 ${rows.length} 个国家/地区,按消耗排序</span></div>
|
|
880
880
|
<div class="table-wrap"><table>
|
|
881
881
|
<thead><tr><th>国家/地区</th><th class="num">消耗</th><th class="num">展示</th><th class="num">点击</th><th class="num">CTR</th><th class="num">平均CPC</th><th class="num">转化</th><th class="num">CPA</th></tr></thead>
|
|
@@ -966,7 +966,7 @@
|
|
|
966
966
|
.join("");
|
|
967
967
|
const table =
|
|
968
968
|
sorted.length > 0
|
|
969
|
-
? `<div id="chart-campaigns" class="chart-box" style="height:
|
|
969
|
+
? `<div id="chart-campaigns" class="chart-box" style="height:380px"></div>
|
|
970
970
|
<div class="card-title-row"><h3>系列 Top 10</h3><span class="hint">共 ${rows.length} 个系列,按消耗排序</span></div>
|
|
971
971
|
<div class="table-wrap"><table>
|
|
972
972
|
<thead><tr><th>广告系列</th><th>状态</th><th class="num">消耗</th><th class="num">展示</th><th class="num">点击</th><th class="num">CTR</th><th class="num">转化</th><th class="num">CPA</th></tr></thead>
|
|
@@ -1180,11 +1180,12 @@ ${titleNotice}
|
|
|
1180
1180
|
{ trigger: "item", formatter: (p) => `${p.name}: ${money(p.value, currency)}` },
|
|
1181
1181
|
TOOLTIP_STYLE,
|
|
1182
1182
|
),
|
|
1183
|
-
legend: { bottom:
|
|
1183
|
+
legend: { bottom: 4, left: "center", textStyle: { color: AXIS_COLOR } },
|
|
1184
1184
|
series: [
|
|
1185
1185
|
{
|
|
1186
1186
|
type: "pie",
|
|
1187
|
-
radius: ["
|
|
1187
|
+
radius: ["36%", "54%"],
|
|
1188
|
+
center: ["50%", "44%"],
|
|
1188
1189
|
itemStyle: { borderColor: "#ffffff", borderWidth: 3, borderRadius: 8 },
|
|
1189
1190
|
data: items.map((d, i) => ({
|
|
1190
1191
|
name: d[nameKey] || "—",
|
|
@@ -1208,7 +1209,7 @@ ${titleNotice}
|
|
|
1208
1209
|
{ trigger: "axis", formatter: (p) => money(p[0].value, currency) },
|
|
1209
1210
|
TOOLTIP_STYLE,
|
|
1210
1211
|
),
|
|
1211
|
-
grid: { left: 140, right:
|
|
1212
|
+
grid: { left: 140, right: 36, top: 28, bottom: 36 },
|
|
1212
1213
|
xAxis: styleAxis({ type: "value" }),
|
|
1213
1214
|
yAxis: styleAxis({
|
|
1214
1215
|
type: "category",
|
|
@@ -347,12 +347,12 @@ window.__META_PERIOD_REPORT__ = window.__META_PERIOD_REPORT__ || null;
|
|
|
347
347
|
var daily = charts.daily || {};
|
|
348
348
|
bindChart(document.getElementById("chartDaily"), {
|
|
349
349
|
tooltip: { trigger: "axis" },
|
|
350
|
-
legend: { data: ["线索", "花费 (" + currency + ")"], textStyle: { color: "#334155" } },
|
|
351
|
-
grid: { left:
|
|
350
|
+
legend: { top: 4, left: "center", data: ["线索", "花费 (" + currency + ")"], textStyle: { color: "#334155" } },
|
|
351
|
+
grid: { left: 56, right: 56, top: 48, bottom: 76 },
|
|
352
352
|
xAxis: { type: "category", data: daily.labels || [], axisLabel: { color: "#64748b", rotate: 45, fontSize: 10 } },
|
|
353
353
|
yAxis: [
|
|
354
|
-
Object.assign({ type: "value", name: "线索", nameTextStyle: { color: "#64748b" } }, axis),
|
|
355
|
-
Object.assign({ type: "value", name: "花费", nameTextStyle: { color: "#64748b" }, splitLine: { show: false } }, axis),
|
|
354
|
+
Object.assign({ type: "value", name: "线索", nameLocation: "middle", nameGap: 40, nameTextStyle: { color: "#64748b" } }, axis),
|
|
355
|
+
Object.assign({ type: "value", name: "花费", nameLocation: "middle", nameGap: 40, nameTextStyle: { color: "#64748b" }, splitLine: { show: false } }, axis),
|
|
356
356
|
],
|
|
357
357
|
series: [
|
|
358
358
|
{
|
|
@@ -368,8 +368,8 @@ window.__META_PERIOD_REPORT__ = window.__META_PERIOD_REPORT__ || null;
|
|
|
368
368
|
var country = charts.country || {};
|
|
369
369
|
bindChart(document.getElementById("chartCountry"), {
|
|
370
370
|
tooltip: { trigger: "axis" },
|
|
371
|
-
legend: { data: ["CPL (" + currency + ")", "花费 (" + currency + ")"], textStyle: { color: "#334155" } },
|
|
372
|
-
grid: { left: 88, right: 48, top:
|
|
371
|
+
legend: { top: 4, left: "center", data: ["CPL (" + currency + ")", "花费 (" + currency + ")"], textStyle: { color: "#334155" } },
|
|
372
|
+
grid: { left: 88, right: 48, top: 56, bottom: 40 },
|
|
373
373
|
yAxis: { type: "category", data: country.labels || [], axisLabel: { color: "#334155" }, inverse: true },
|
|
374
374
|
xAxis: [Object.assign({ type: "value" }, axis), Object.assign({ type: "value", splitLine: { show: false } }, axis)],
|
|
375
375
|
series: [
|
|
@@ -386,8 +386,8 @@ window.__META_PERIOD_REPORT__ = window.__META_PERIOD_REPORT__ || null;
|
|
|
386
386
|
var aud = charts.audience || {};
|
|
387
387
|
bindChart(document.getElementById("chartAudience"), {
|
|
388
388
|
tooltip: { trigger: "axis" },
|
|
389
|
-
legend: { data: ["CPL", "线索"], textStyle: { color: "#334155" } },
|
|
390
|
-
grid: { left:
|
|
389
|
+
legend: { top: 4, left: "center", data: ["CPL", "线索"], textStyle: { color: "#334155" } },
|
|
390
|
+
grid: { left: 56, right: 56, top: 56, bottom: 80 },
|
|
391
391
|
xAxis: { type: "category", data: aud.labels || [], axisLabel: { color: "#64748b", rotate: 40, fontSize: 10 } },
|
|
392
392
|
yAxis: [Object.assign({ type: "value" }, axis), Object.assign({ type: "value", splitLine: { show: false } }, axis)],
|
|
393
393
|
series: [
|
|
@@ -9,7 +9,7 @@ $ErrorActionPreference = 'Stop'
|
|
|
9
9
|
# -- Package info (injected at build time) ------------------------------------
|
|
10
10
|
$PKG_NAME = 'siluzan-tso-cli'
|
|
11
11
|
# PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
|
|
12
|
-
$PKG_VERSION = '1.1.49-beta.
|
|
12
|
+
$PKG_VERSION = '1.1.49-beta.5'
|
|
13
13
|
$CLI_BIN = 'siluzan-tso'
|
|
14
14
|
$SKILL_LABEL = 'Siluzan TSO'
|
|
15
15
|
$INSTALL_CMD = 'npm install -g siluzan-tso-cli@beta'
|
|
@@ -9,7 +9,7 @@ set -euo pipefail
|
|
|
9
9
|
# -- Package info (injected at build time) ------------------------------------
|
|
10
10
|
readonly PKG_NAME="siluzan-tso-cli"
|
|
11
11
|
# PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
|
|
12
|
-
readonly PKG_VERSION="1.1.49-beta.
|
|
12
|
+
readonly PKG_VERSION="1.1.49-beta.5"
|
|
13
13
|
readonly CLI_BIN="siluzan-tso"
|
|
14
14
|
readonly SKILL_LABEL="Siluzan TSO"
|
|
15
15
|
readonly INSTALL_CMD="npm install -g siluzan-tso-cli@beta"
|