@latest-thinking/lt-player 1.0.3-c → 1.0.4-a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/lt-player-main.css +5 -0
- package/dist/css/lt-player-main.css.map +1 -0
- package/dist/js/lt-player-main.js +3 -0
- package/dist/js/lt-player-main.js.map +1 -0
- package/package.json +5 -5
- package/src/assets/sass/abstracts/_mixins.scss +7 -0
- package/src/assets/sass/sections/_share.scss +3 -4
- package/src/assets/sass/sections/_subtitles.scss +6 -0
- package/src/assets/sass/sections/controllers/_botom.scss +14 -4
- package/src/assets/sass/sections/controllers/_notification-rewind-forward.scss +60 -15
- package/src/assets/sass/sections/controllers/_top.scss +18 -1
- package/src/components/LTPlayerManager.ts +2 -6
- package/src/components/LTPlayerType.ts +9 -3
- package/src/components/controls/LTPlayerControlsEvents.ts +25 -164
- package/src/components/events/LTPlayerCommon.ts +4 -1
- package/src/components/events/LTPlayerDesktop.ts +20 -5
- package/src/components/events/LTPlayerMobile.ts +21 -11
- package/src/components/poster/LTPlayerPoster.ts +4 -13
- package/src/components/share/LTPlayerShare.ts +40 -0
- package/src/components/share/LTPlayerShareEvents.ts +103 -0
- package/src/global/controllers/LTPlayerController.ts +3 -1
- package/src/global/types/ModuleTypes.d.ts +6 -0
- package/src/index.ts +1 -3
- package/src/services/IconsService.ts +2 -1
- package/src/views/controls.handlebars +33 -12
- package/src/views/poster.handlebars +5 -7
- package/dist/css/lt-player-app.css +0 -5
- package/dist/css/lt-player-app.css.map +0 -1
- package/dist/js/lt-player-app.js +0 -3
- package/dist/js/lt-player-app.js.map +0 -1
- package/webpack.common.js +0 -49
- package/webpack.config.dev.js +0 -50
- package/webpack.config.prod.js +0 -43
- /package/dist/js/{lt-player-app.js.LICENSE.txt → lt-player-main.js.LICENSE.txt} +0 -0
package/webpack.common.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const Path = require('path');
|
|
2
|
-
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
|
3
|
-
const Dotenv = require('dotenv-webpack');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
entry: {
|
|
8
|
-
app: Path.resolve(__dirname, 'src/index.ts'),
|
|
9
|
-
},
|
|
10
|
-
output: {
|
|
11
|
-
path: Path.join(__dirname, 'dist'),
|
|
12
|
-
filename: 'js/lt-player-[name].js',
|
|
13
|
-
},
|
|
14
|
-
plugins: [
|
|
15
|
-
new CleanWebpackPlugin(),
|
|
16
|
-
new Dotenv()
|
|
17
|
-
],
|
|
18
|
-
resolve: {
|
|
19
|
-
alias: {
|
|
20
|
-
'~': Path.resolve(__dirname, 'src'),
|
|
21
|
-
'handlebars' : 'handlebars/dist/handlebars.js'
|
|
22
|
-
},
|
|
23
|
-
extensions: ['.ts', '.js'],
|
|
24
|
-
},
|
|
25
|
-
module: {
|
|
26
|
-
rules: [
|
|
27
|
-
{
|
|
28
|
-
test: /\.mjs$/,
|
|
29
|
-
include: /node_modules/,
|
|
30
|
-
type: 'javascript/auto',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
test: /\.handlebars$/i,
|
|
34
|
-
use: 'raw-loader'
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
test: /\.html$/i,
|
|
38
|
-
loader: 'html-loader',
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
test: /\.(ico|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff)(\?.*)?$/,
|
|
42
|
-
type: 'asset',
|
|
43
|
-
generator: {
|
|
44
|
-
filename: 'fonts/[hash][ext][query]'
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
},
|
|
49
|
-
};
|
package/webpack.config.dev.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
const Webpack = require('webpack');
|
|
2
|
-
const { merge } = require('webpack-merge');
|
|
3
|
-
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
4
|
-
const common = require('./webpack.common.js');
|
|
5
|
-
|
|
6
|
-
module.exports = merge(common, {
|
|
7
|
-
target: 'web',
|
|
8
|
-
mode: 'development',
|
|
9
|
-
devtool: 'eval-source-map',
|
|
10
|
-
output: {
|
|
11
|
-
filename: 'js/lt-player-[name].js',
|
|
12
|
-
chunkFilename: 'js/lt-player-[name].chunk.js',
|
|
13
|
-
},
|
|
14
|
-
devServer: {
|
|
15
|
-
client: {
|
|
16
|
-
logging: 'error',
|
|
17
|
-
},
|
|
18
|
-
hot: true,
|
|
19
|
-
},
|
|
20
|
-
plugins: [
|
|
21
|
-
new Webpack.DefinePlugin({
|
|
22
|
-
'process.env.NODE_ENV': JSON.stringify('development'),
|
|
23
|
-
}),
|
|
24
|
-
new MiniCssExtractPlugin({filename: 'css/lt-player-[name].css'})
|
|
25
|
-
],
|
|
26
|
-
module: {
|
|
27
|
-
rules: [
|
|
28
|
-
{
|
|
29
|
-
test: /\.tsx?$/,
|
|
30
|
-
exclude: /node_modules/,
|
|
31
|
-
loader: 'babel-loader',
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
{
|
|
35
|
-
test: /\.s?css$/i,
|
|
36
|
-
use: [
|
|
37
|
-
MiniCssExtractPlugin.loader,
|
|
38
|
-
{
|
|
39
|
-
loader: 'css-loader',
|
|
40
|
-
options: {
|
|
41
|
-
sourceMap: true,
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
'postcss-loader',
|
|
45
|
-
'sass-loader'
|
|
46
|
-
],
|
|
47
|
-
}
|
|
48
|
-
],
|
|
49
|
-
},
|
|
50
|
-
});
|
package/webpack.config.prod.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
const Webpack = require('webpack');
|
|
2
|
-
const { merge } = require('webpack-merge');
|
|
3
|
-
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
4
|
-
const common = require('./webpack.common.js');
|
|
5
|
-
|
|
6
|
-
module.exports = merge(common, {
|
|
7
|
-
mode: 'production',
|
|
8
|
-
devtool: 'source-map',
|
|
9
|
-
bail: true,
|
|
10
|
-
output: {
|
|
11
|
-
filename: 'js/lt-player-[name].js',
|
|
12
|
-
chunkFilename: 'js/lt-player-[name].chunk.js',
|
|
13
|
-
},
|
|
14
|
-
plugins: [
|
|
15
|
-
new Webpack.DefinePlugin({
|
|
16
|
-
'process.env.NODE_ENV': JSON.stringify('development'),
|
|
17
|
-
}),
|
|
18
|
-
new MiniCssExtractPlugin({filename: 'css/lt-player-[name].css'})
|
|
19
|
-
],
|
|
20
|
-
module: {
|
|
21
|
-
rules: [
|
|
22
|
-
{
|
|
23
|
-
test: /\.tsx?$/,
|
|
24
|
-
exclude: /node_modules/,
|
|
25
|
-
loader: 'babel-loader',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
test: /\.s?css$/i,
|
|
29
|
-
use: [
|
|
30
|
-
MiniCssExtractPlugin.loader,
|
|
31
|
-
{
|
|
32
|
-
loader: 'css-loader',
|
|
33
|
-
options: {
|
|
34
|
-
sourceMap: true,
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
'postcss-loader',
|
|
38
|
-
'sass-loader'
|
|
39
|
-
],
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
});
|
|
File without changes
|