mirror of
https://github.com/NotoChen/Jetbrains-Help.git
synced 2025-05-24 23:16:44 +08:00
fix index.html
This commit is contained in:
parent
eea7c81398
commit
4b4f81f01b
|
@ -40,12 +40,14 @@ public class IndexController {
|
|||
private final JetbrainsHelpProperties jetbrainsHelpProperties;
|
||||
|
||||
@GetMapping
|
||||
public String index(Model model) {
|
||||
public String index(HttpServletRequest request,Model model) {
|
||||
String basePath = (request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath());
|
||||
List<ProductsContextHolder.ProductCache> productCacheList = ProductsContextHolder.productCacheList();
|
||||
List<PluginsContextHolder.PluginCache> pluginCacheList = PluginsContextHolder.pluginCacheList();
|
||||
model.addAttribute("products", productCacheList);
|
||||
model.addAttribute("plugins", pluginCacheList);
|
||||
model.addAttribute("defaults", jetbrainsHelpProperties);
|
||||
model.addAttribute("basePath", basePath);
|
||||
return "index";
|
||||
}
|
||||
|
||||
|
|
|
@ -13,7 +13,8 @@
|
|||
<p>
|
||||
🇨🇳 下载 <a href="ja-netfilter" title="Download jetbra first">ja-netfilter.zip</a> , 然后配置
|
||||
你的JetBrains IDE(anything)'s <a onclick="showVmoptins()">IDE.vmoptions</a> 配置文件!<br>
|
||||
🇨🇳 当然你也可以 <a onclick="showLicenseForm()">重新定制激活授权</a> 用以自定义你的激活信息!</br>
|
||||
🇨🇳 当然你也可以 <a onclick="showLicenseForm()">重新定制激活授权</a> 用以自定义你的激活信息!<br>
|
||||
🇨🇳 也可使用Scoop进行安装:<code th:text="'scoop install ' + ${basePath}+'/scoop/ja-netfilter'"></code><br>
|
||||
<strong>🇨🇳 请注意,此页面仅由 <span
|
||||
th:text="${defaults.getDefaultLicenseName()} + '/' + ${defaults.getDefaultAssigneeName()}"></span>
|
||||
个人所有!</strong>
|
||||
|
|
Loading…
Reference in New Issue
Block a user