mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-19 14:18:10 +00:00
Merge remote-tracking branch 'A_github_pro/master'
This commit is contained in:
commit
4ae7f22293
@ -25,6 +25,10 @@ class IndexController extends InvokeController
|
|||||||
if ($action) {
|
if ($action) {
|
||||||
$app .= "__" . $action;
|
$app .= "__" . $action;
|
||||||
}
|
}
|
||||||
|
if ($app === 'manifest.txt') {
|
||||||
|
$app = 'manifest';
|
||||||
|
$child = 'txt';
|
||||||
|
}
|
||||||
if (!method_exists($this, $app)) {
|
if (!method_exists($this, $app)) {
|
||||||
$app = method_exists($this, $method) ? $method : 'main';
|
$app = method_exists($this, $method) ? $method : 'main';
|
||||||
}
|
}
|
||||||
@ -33,22 +37,65 @@ class IndexController extends InvokeController
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 首页
|
* 首页
|
||||||
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
|
* @return \Illuminate\Http\Response
|
||||||
*/
|
*/
|
||||||
public function main()
|
public function main()
|
||||||
{
|
{
|
||||||
$hash = 'no';
|
$hash = 'no';
|
||||||
$path = public_path('js/hash');
|
$path = public_path('js/hash');
|
||||||
|
$murl = url('manifest.txt');
|
||||||
if (file_exists($path)) {
|
if (file_exists($path)) {
|
||||||
$hash = trim(file_get_contents(public_path('js/hash')));
|
$hash = trim(file_get_contents(public_path('js/hash')));
|
||||||
if (strlen($hash) > 16) {
|
if (strlen($hash) > 16) {
|
||||||
$hash = 'long';
|
$hash = 'long';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return view('main', [
|
return response()->view('main', [
|
||||||
'version' => Base::getVersion(),
|
'version' => Base::getVersion(),
|
||||||
'hash' => $hash
|
'hash' => $hash
|
||||||
]);
|
])->header('Link', "<{$murl}>; rel=\"prefetch\"");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Manifest
|
||||||
|
* @param $child
|
||||||
|
* @return \Illuminate\Contracts\Foundation\Application|\Illuminate\Contracts\Routing\ResponseFactory|\Illuminate\Http\Response|string
|
||||||
|
*/
|
||||||
|
public function manifest($child = '')
|
||||||
|
{
|
||||||
|
if (empty($child)) {
|
||||||
|
$murl = url('manifest.txt');
|
||||||
|
return response($murl)->header('Link', "<{$murl}>; rel=\"prefetch\"");
|
||||||
|
}
|
||||||
|
$array = [
|
||||||
|
"office/web-apps/apps/api/documents/api.js?hash=" . Base::getVersion(),
|
||||||
|
"office/7.0.1-37/web-apps/vendor/requirejs/require.js",
|
||||||
|
"office/7.0.1-37/web-apps/apps/api/documents/api.js",
|
||||||
|
"office/7.0.1-37/sdkjs/common/AllFonts.js",
|
||||||
|
"office/7.0.1-37/web-apps/vendor/xregexp/xregexp-all-min.js",
|
||||||
|
"office/7.0.1-37/web-apps/vendor/sockjs/sockjs.min.js",
|
||||||
|
"office/7.0.1-37/web-apps/vendor/jszip/jszip.min.js",
|
||||||
|
"office/7.0.1-37/web-apps/vendor/jszip-utils/jszip-utils.min.js",
|
||||||
|
"office/7.0.1-37/sdkjs/common/libfont/wasm/fonts.js",
|
||||||
|
"office/7.0.1-37/sdkjs/common/Charts/ChartStyles.js",
|
||||||
|
"office/7.0.1-37/sdkjs/slide/themes//themes.js",
|
||||||
|
|
||||||
|
"office/7.0.1-37/web-apps/apps/presentationeditor/main/app.js",
|
||||||
|
"office/7.0.1-37/sdkjs/slide/sdk-all-min.js",
|
||||||
|
"office/7.0.1-37/sdkjs/slide/sdk-all.js",
|
||||||
|
|
||||||
|
"office/7.0.1-37/web-apps/apps/documenteditor/main/app.js",
|
||||||
|
"office/7.0.1-37/sdkjs/word/sdk-all-min.js",
|
||||||
|
"office/7.0.1-37/sdkjs/word/sdk-all.js",
|
||||||
|
|
||||||
|
"office/7.0.1-37/web-apps/apps/spreadsheeteditor/main/app.js",
|
||||||
|
"office/7.0.1-37/sdkjs/cell/sdk-all-min.js",
|
||||||
|
"office/7.0.1-37/sdkjs/cell/sdk-all.js",
|
||||||
|
];
|
||||||
|
foreach ($array as &$item) {
|
||||||
|
$item = url($item);
|
||||||
|
}
|
||||||
|
return implode(PHP_EOL, $array);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
<RightBottom/>
|
<RightBottom/>
|
||||||
<NetworkException/>
|
<NetworkException/>
|
||||||
<PreviewImageState/>
|
<PreviewImageState/>
|
||||||
|
<iframe v-if="manifestUrl" v-show="false" :src="manifestUrl"></iframe>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -26,6 +27,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
routePath: this.$route.path,
|
routePath: this.$route.path,
|
||||||
transitionName: null,
|
transitionName: null,
|
||||||
|
manifestUrl: null
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -218,6 +220,7 @@ export default {
|
|||||||
let {action, data} = args;
|
let {action, data} = args;
|
||||||
this.$store.dispatch(action, data);
|
this.$store.dispatch(action, data);
|
||||||
})
|
})
|
||||||
|
this.manifestUrl = $A.apiUrl("../manifest")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
13
resources/assets/sass/dark.scss
vendored
13
resources/assets/sass/dark.scss
vendored
@ -407,4 +407,17 @@ body.dark-mode-reverse {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.chat-input-wrapper {
|
||||||
|
.ql-container {
|
||||||
|
.ql-editor {
|
||||||
|
color: #ccc;
|
||||||
|
&.ql-blank {
|
||||||
|
&::before {
|
||||||
|
color: #333;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user