style🎨(语言调整): 将所有原生展示语言改为中文, 将复制失败的原因详细展示

This commit is contained in:
藏柏 2024-09-05 19:42:44 +08:00
parent 0049df81d5
commit ae3b4f656c
2 changed files with 22 additions and 23 deletions

View File

@ -36,10 +36,9 @@ $(document).ready(function() {
var text = "-javaagent:/(Your Path)/ja-netfilter/ja-netfilter.jar\n" + var text = "-javaagent:/(Your Path)/ja-netfilter/ja-netfilter.jar\n" +
"--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED\n" + "--add-opens=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED\n" +
"--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED"; "--add-opens=java.base/jdk.internal.org.objectweb.asm.tree=ALL-UNNAMED";
navigator.clipboard.writeText(text).then(function() { copyText(text)
alert("已复制:\n" + text); .then((result) => {
}).catch(function(error) { alert(result);
alert("复制失败: " + error);
}); });
}; };
@ -70,10 +69,10 @@ $(document).ready(function() {
const copyText = async (val) => { const copyText = async (val) => {
if (navigator.clipboard && navigator.permissions) { if (navigator.clipboard && navigator.permissions) {
await navigator.clipboard.writeText(val); await navigator.clipboard.writeText(val);
return "The activation code has been copied"; return "已复制成功";
} else { } else {
console.log(val); console.log(val);
return "The system does not support it, please go to the console to copy it manually"; return "系统不支持复制功能,或者当前非SSL访问,若为Local环境,请使用127.0.0.1或者localhost访问.";
} }
}; };

View File

@ -11,15 +11,15 @@
<body> <body>
<header class="tip sticky flex items-center py-6"> <header class="tip sticky flex items-center py-6">
<p> <p>
🇨🇳 Download <a href="ja-netfilter" title="Download jetbra first">ja-netfilter.zip</a> , and configure 🇨🇳 下载 <a href="ja-netfilter" title="Download jetbra first">ja-netfilter.zip</a> , 然后配置
your JetBrains's <a onclick="showVmoptins()">vmoptions!</a> <br> 你的JetBrains IDE(anything)'s <a onclick="showVmoptins()">IDE.vmoptions</a> 配置文件!<br>
🇨🇳 Also you can <a onclick="showLicenseForm()">Refill license information</a> to customizer your license!</br> 🇨🇳 当然你也可以 <a onclick="showLicenseForm()">重新定制激活授权</a> 用以自定义你的激活信息!</br>
<strong>🇨🇳 Please note that this page is only developed and used by <span <strong>🇨🇳 请注意,此页面仅由 <span
th:text="${defaults.getDefaultLicenseName()} + '/' + ${defaults.getDefaultAssigneeName()}"></span> th:text="${defaults.getDefaultLicenseName()} + '/' + ${defaults.getDefaultAssigneeName()}"></span>
personally!</strong> 个人所有!</strong>
</p> </p>
<form class="parent"> <form class="parent">
<input type="text" class="search" id="search" placeholder="Search Product or Plugin"> <input type="text" class="search" id="search" placeholder="搜索IDE或者插件">
</form> </form>
</header> </header>
<main id="product-list" class="px-6 z-grid py-10" style="--space: 20rem; --gutter: 3.5rem"> <main id="product-list" class="px-6 z-grid py-10" style="--space: 20rem; --gutter: 3.5rem">
@ -38,8 +38,8 @@
<div class="pd-6 overflow-hidden bg-card container radius-1"> <div class="pd-6 overflow-hidden bg-card container radius-1">
<h1 class="truncate truncate-1 color-primary mt-0 overflow-ellipsis" th:title="${product.getName()}" <h1 class="truncate truncate-1 color-primary mt-0 overflow-ellipsis" th:title="${product.getName()}"
th:text="${product.getName()}"></h1> th:text="${product.getName()}"></h1>
<p title="Copy to clipboard" class="truncate text-sm text-grey" onclick="copyLicense(this)" <p title="复制到剪贴板" class="truncate text-sm text-grey" onclick="copyLicense(this)"
data-content="Copy to clipboard"> data-content="复制到剪贴板">
********** **********
</p> </p>
</div> </div>
@ -62,8 +62,8 @@
<div class="pd-6 overflow-hidden bg-card container radius-1"> <div class="pd-6 overflow-hidden bg-card container radius-1">
<h1 class="truncate truncate-1 color-primary mt-0 overflow-ellipsis" th:title="${plugin.getName()}" <h1 class="truncate truncate-1 color-primary mt-0 overflow-ellipsis" th:title="${plugin.getName()}"
th:text="${plugin.getName()}"></h1> th:text="${plugin.getName()}"></h1>
<p title="Copy to clipboard" class="truncate text-sm text-grey" onclick="copyLicense(this)" <p title="复制到剪贴板" class="truncate text-sm text-grey" onclick="copyLicense(this)"
data-content="Copy to clipboard"> data-content="复制到剪贴板">
********** **********
</p> </p>
</div> </div>
@ -77,27 +77,27 @@
style="position:fixed;top:0;left:0;z-index:998;width:100%;height:100%;display:none;background-color:#000;opacity:0.5;overflow:hidden;"></div> style="position:fixed;top:0;left:0;z-index:998;width:100%;height:100%;display:none;background-color:#000;opacity:0.5;overflow:hidden;"></div>
<div id="form" style="position:fixed;top:20%;left:40%;width:40%;height:500px;z-index:999;display:none;"> <div id="form" style="position:fixed;top:20%;left:40%;width:40%;height:500px;z-index:999;display:none;">
<div class="form"> <div class="form">
<div class="title">License Form</div> <div class="title">授权信息</div>
<div class="subtitle">Customization is welcome</div> <div class="subtitle">欢迎你自定义</div>
<div class="input-container ic1"> <div class="input-container ic1">
<input id="licenseeName" class="input" type="text" placeholder=" " <input id="licenseeName" class="input" type="text" placeholder=" "
th:value="${defaults.getDefaultLicenseName()}"/> th:value="${defaults.getDefaultLicenseName()}"/>
<div class="cut"></div> <div class="cut"></div>
<label for="licenseeName" class="placeholder">License Name</label> <label for="licenseeName" class="placeholder">许可证名称</label>
</div> </div>
<div class="input-container ic2"> <div class="input-container ic2">
<input id="assigneeName" class="input" type="text" placeholder=" " <input id="assigneeName" class="input" type="text" placeholder=" "
th:value="${defaults.getDefaultAssigneeName()}"/> th:value="${defaults.getDefaultAssigneeName()}"/>
<div class="cut"></div> <div class="cut"></div>
<label for="assigneeName" class="placeholder">Assigne Name</label> <label for="assigneeName" class="placeholder">许可人名称</label>
</div> </div>
<div class="input-container ic2"> <div class="input-container ic2">
<input id="expiryDate" class="input" type="text" placeholder="" <input id="expiryDate" class="input" type="text" placeholder=""
th:value="${defaults.getDefaultExpiryDate()}"/> th:value="${defaults.getDefaultExpiryDate()}"/>
<div class="cut cut-short"></div> <div class="cut cut-short"></div>
<label for="expiryDate" class="placeholder">Expiry Date</label> <label for="expiryDate" class="placeholder">过期时间</label>
</div> </div>
<button class="submit" onclick="submitLicenseInfo(this)">Confirm</button> <button class="submit" onclick="submitLicenseInfo(this)">确认</button>
</div> </div>
</div> </div>
</body> </body>