forked from baron/baron-sso
dev 병합 후 code-check
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
const fs = require("fs");
|
const fs = require("fs");
|
||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
const { spawnSync } = require("child_process");
|
||||||
|
|
||||||
const ROOT = process.cwd();
|
const ROOT = process.cwd();
|
||||||
const LOCALES_DIR = path.join(ROOT, "locales");
|
const LOCALES_DIR = path.join(ROOT, "locales");
|
||||||
@@ -84,3 +85,12 @@ const output = [
|
|||||||
].join("\n");
|
].join("\n");
|
||||||
|
|
||||||
fs.writeFileSync(OUT_PATH, output, "utf8");
|
fs.writeFileSync(OUT_PATH, output, "utf8");
|
||||||
|
|
||||||
|
const formatResult = spawnSync("dart", ["format", OUT_PATH], {
|
||||||
|
cwd: ROOT,
|
||||||
|
stdio: "inherit",
|
||||||
|
});
|
||||||
|
|
||||||
|
if (formatResult.status !== 0) {
|
||||||
|
process.exit(formatResult.status ?? 1);
|
||||||
|
}
|
||||||
|
|||||||
@@ -58,10 +58,10 @@ class _ConsentScreenState extends State<ConsentScreen> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String _renderConsentText(String key, {String? fallback}) {
|
String _renderConsentText(String key, {String? fallback}) {
|
||||||
return tr(key, fallback: fallback)
|
return tr(
|
||||||
.replaceAll(r'\\n', '\n')
|
key,
|
||||||
.replaceAll(r'\n', '\n')
|
fallback: fallback,
|
||||||
.replaceAll('\\\n', '\n');
|
).replaceAll(r'\\n', '\n').replaceAll(r'\n', '\n').replaceAll('\\\n', '\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
String _renderScopeCountLabel(int count) {
|
String _renderScopeCountLabel(int count) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user