2016-11-30 00:26:36 +08:00
|
|
|
|
// Copyright 2016 The Gitea Authors. All rights reserved.
|
2022-11-28 02:20:29 +08:00
|
|
|
|
// SPDX-License-Identifier: MIT
|
2016-11-30 00:26:36 +08:00
|
|
|
|
|
2021-08-25 00:47:09 +08:00
|
|
|
|
//go:build bindata
|
|
|
|
|
|
2016-11-30 00:26:36 +08:00
|
|
|
|
package public
|
|
|
|
|
|
|
|
|
|
import (
|
2020-12-24 12:25:17 +08:00
|
|
|
|
"time"
|
|
|
|
|
|
2023-04-12 18:16:45 +08:00
|
|
|
|
"code.gitea.io/gitea/modules/assetfs"
|
2022-01-07 10:33:17 +08:00
|
|
|
|
"code.gitea.io/gitea/modules/timeutil"
|
2016-11-30 00:26:36 +08:00
|
|
|
|
)
|
|
|
|
|
|
2023-04-12 18:16:45 +08:00
|
|
|
|
var _ GzipBytesProvider = (*vfsgen۰CompressedFileInfo)(nil)
|
|
|
|
|
|
2022-01-10 17:32:37 +08:00
|
|
|
|
// GlobalModTime provide a global mod time for embedded asset files
|
2022-01-07 10:33:17 +08:00
|
|
|
|
func GlobalModTime(filename string) time.Time {
|
|
|
|
|
return timeutil.GetExecutableModTime()
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-12 18:16:45 +08:00
|
|
|
|
func BuiltinAssets() *assetfs.Layer {
|
|
|
|
|
return assetfs.Bindata("builtin(bindata)", Assets)
|
2020-12-24 12:25:17 +08:00
|
|
|
|
}
|