This repository has been archived by the owner on May 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
110 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,32 @@ | ||
Typecho 应用商店 插件 | ||
======== | ||
======================== | ||
|
||
The missing plugins store for Typecho! | ||
|
||
## 如何使用 | ||
|
||
下载地址: https://github.com/typecho-app-store/AppStore/releases | ||
- 方法一 | ||
|
||
解压到usr/plugins/AppStore,启用插件即可。 | ||
进入 [官网](https://typecho.chekun.me/) 搜索 AppStore, 下载对应的版本 | ||
|
||
## Contributors | ||
- 方法二 | ||
|
||
进入 [Github Releases](https://github.com/typecho-app-store/AppStore/releases) 下载对应的版本 | ||
|
||
- 方法三 | ||
|
||
``` | ||
git clone [email protected]:chekun/AppStore.git AppStore | ||
``` | ||
|
||
> 不管使用哪种方法,最终请将得到的文件夹命名为 *AppStore* 放到 *Typecho* 目录的 *usr/plugins* 目录下 | ||
> 进入插件面板,启用本插件即可 | ||
## 代码贡献者 | ||
|
||
- [@chekun](https://github.com/chekun) | ||
- [@jzwalk](https://github.com/jzwalk) | ||
- [@fengyunljp](https://github.com/fengyunljp) | ||
- [@aiwb](https://github.com/aiwb) | ||
|
||
### 欢迎一起完善该项目. | ||
## 欢迎参与开发,共同完善 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,43 @@ | ||
<tr class="as-card" data-name="<?php echo $plugin->name; ?>" data-existed="<?php echo $plugin->existed ?>"> | ||
<td class="as-name"><?php echo $plugin->name; ?></td> | ||
<td class="as-description"><?php echo $plugin->versions[0]->description; ?></td> | ||
<td class="as-versions"> | ||
<select class="as-version-selector"> | ||
<?php foreach ($plugin->versions as $version): ?> | ||
<option value="<?php echo $version->version; ?>" data-activated="<?php echo $version->activated; ?>" data-author="<?php echo $version->author; ?>" data-require="<?php echo $version->require; ?>" data-description="<?php echo $version->description; ?>"><?php echo $version->version; ?></option> | ||
<?php endforeach; ?> | ||
</select> | ||
</td> | ||
<td class="as-require" ><?php echo $plugin->versions[0]->require; ?></td> | ||
<td class="as-author"><a href="<?php echo $plugin->versions[0]->link; ?>" target="_blank"><?php echo $plugin->versions[0]->author; ?></a></td> | ||
<td class="as-operations"> | ||
<?php if ($this->installale): ?> | ||
<?php if ($plugin->existed): ?> | ||
<a class="as-install" href="javascript:;"><?php echo _t("重装"); ?></a> | ||
<?php if ($plugin->type === 'plugin'): ?> | ||
<tr class="as-card" data-name="<?php echo $plugin->name; ?>" data-existed="<?php echo $plugin->existed ?>"> | ||
<td class="as-name"><?php echo $plugin->name; ?></td> | ||
<td class="as-description"><?php echo $plugin->versions[0]->description; ?></td> | ||
<td class="as-versions"> | ||
<select class="as-version-selector"> | ||
<?php foreach ($plugin->versions as $version): ?> | ||
<option value="<?php echo $version->version; ?>" data-activated="<?php echo $version->activated; ?>" data-author="<?php echo $version->author; ?>" data-require="<?php echo $version->require; ?>" data-description="<?php echo $version->description; ?>"><?php echo $version->version; ?></option> | ||
<?php endforeach; ?> | ||
</select> | ||
</td> | ||
<td class="as-require" ><?php echo $plugin->versions[0]->require; ?></td> | ||
<td class="as-author"><a href="<?php echo $plugin->versions[0]->link; ?>" target="_blank"><?php echo $plugin->versions[0]->author; ?></a></td> | ||
<td class="as-operations"> | ||
<?php if ($this->installale): ?> | ||
<?php if ($plugin->existed): ?> | ||
<a class="as-install" href="javascript:;"><?php echo _t("重装"); ?></a> | ||
<?php else: ?> | ||
<a class="as-install" href="javascript:;"><?php echo _t("安装"); ?></a> | ||
<?php endif; ?> | ||
<?php else: ?> | ||
<a class="as-install" href="javascript:;"><?php echo _t("安装"); ?></a> | ||
<a onclick="return confirm('没有写入权限或者运行在云平台中\n点击确认后将进行下载,请手动传到服务器上!');" href="<?php echo $this->server.'archive/'.$plugin->name.'/'.str_replace(' ', '%20', $version->version);?>"><?php echo _t('下载'); ?></a> | ||
<?php endif; ?> | ||
<?php else: ?> | ||
<a onclick="return confirm('没有写入权限或者运行在云平台中\n点击确认后将进行下载,请手动传到服务器上!');" href="<?php echo $this->server.'archive/'.$plugin->name.'/'.str_replace(' ', '%20', $version->version);?>"><?php echo _t('下载'); ?></a> | ||
<?php endif; ?> | ||
</td> | ||
</tr> | ||
</td> | ||
</tr> | ||
<?php else: ?> | ||
<tr class="as-card" data-name="<?php echo $plugin->name; ?>"> | ||
<td class="as-name">「主题」<?php echo $plugin->name; ?></td> | ||
<td class="as-description"><?php echo $plugin->versions[0]->description; ?></td> | ||
<td class="as-versions"> | ||
<select class="as-version-selector"> | ||
<?php foreach ($plugin->versions as $version): ?> | ||
<option value="<?php echo $version->version; ?>" data-activated="<?php echo $version->activated; ?>" data-author="<?php echo $version->author; ?>" data-require="<?php echo $version->require; ?>" data-description="<?php echo $version->description; ?>"><?php echo $version->version; ?></option> | ||
<?php endforeach; ?> | ||
</select> | ||
</td> | ||
<td class="as-require" ><?php echo $plugin->versions[0]->require; ?></td> | ||
<td class="as-author"><a href="<?php echo $plugin->versions[0]->link; ?>" target="_blank"><?php echo $plugin->versions[0]->author; ?></a></td> | ||
<td class="as-operations"> | ||
<a onclick="return confirm('暂不支持主题下载,确定后会定向到官网下载!');" href="https://typecho.chekun.me/"><?php echo _t('下载'); ?></a> | ||
</td> | ||
</tr> | ||
<?php endif; ?> |