Ken 3 dienas atpakaļ
vecāks
revīzija
24ff4fd814
4 mainītis faili ar 3 papildinājumiem un 232 dzēšanām
  1. 3 0
      .gitignore
  2. 0 72
      public/b.html
  3. 0 80
      public/c.html
  4. 0 80
      public/video.html

+ 3 - 0
.gitignore

@@ -5,7 +5,10 @@
 /public/storage
 /public/apidoc/
 /storage/*.key
+/node/
 /storage
+/public/layuiadmin/
+/resources/views/
 /vendor
 .env
 .env.backup

+ 0 - 72
public/b.html

@@ -1,72 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <meta charset="UTF-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>测试</title>
-
-    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
-</head>
-<body>
-<form id="uploadForm" enctype="multipart/form-data">
-    <input type="file" id="fileInput" name="video" accept="image/jpeg, image/png, image/jpg, image/gif" multiple> <!-- 允许选择多个文件 -->
-    <button type="submit">上传图片</button>
-</form>
-
-
-<script>
-    $(document).ready(function () {
-
-
-        function imageToBase64(url, callback) {
-            fetch(url)
-                .then(response => response.blob())  // 获取图片的二进制数据
-                .then(blob => {
-                    const reader = new FileReader();
-                    reader.onloadend = function () {
-                        callback(reader.result);  // 获取 Base64 编码
-                    };
-                    reader.readAsDataURL(blob);  // 转换为 Base64
-                })
-                .catch(error => {
-                    console.error('图片转换失败:', error);
-                });
-        }
-
-        // 使用示例
-        imageToBase64('http://l.cn:23314/storage/images/2fe4aab00cf6b0e88ff8ca0c8763eab2.png', (base64) => {
-            console.log('Base64 编码:', base64);
-        });
-
-
-        $('#uploadForm').on('submit', function (e) {
-            e.preventDefault();
-
-
-            var formData = new FormData();
-            var fileInput = $('#fileInput')[0].files[0]; // 获取文件
-            formData.append('image', fileInput); // 将文件添加到FormData对象中
-            $.ajax({
-                // url: 'https://marry-api.xt528.com/api/user/uploadFile',
-                url: 'http://127.0.0.1:23314/api/user/uploadFile',
-                type: 'POST',
-                data: formData,
-                contentType: false, // 不设置 contentType, jQuery 会自动处理
-                processData: false, // 不对数据进行处理
-                headers: {
-                    Authorization: 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE3MzcwMDE2NTIsImV4cCI6MTczNzAwNTI1Miwic3ViIjoxLCJ1c2VyX2lkIjoxfQ.SRWTBsoFPuAM2B65cSVUeSfyb45siSoAwdK7_x2sknE' //token为登录接口获取到的token
-                },
-                success: function (response) {
-                    console.log('上传成功:', response);
-                },
-                error: function (xhr, status, error) {
-                    console.log('上传失败:', error);
-                }
-            });
-
-            return false;
-        });
-    });
-</script>
-</body>
-</html>

+ 0 - 80
public/c.html

@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
-    <meta charset="UTF-8">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>骨架屏示例</title>
-    <style>
-        body {
-            font-family: Arial, sans-serif;
-            margin: 0;
-            padding: 0;
-            background-color: #f4f4f4;
-        }
-
-        .skeleton-wrapper {
-            width: 80%;
-            margin: 20px auto;
-        }
-
-        /* 骨架屏容器 */
-        .skeleton-item {
-            background-color: #e0e0e0;
-            margin-bottom: 15px;
-            border-radius: 4px;
-        }
-
-        /* 图片骨架 */
-        .skeleton-image {
-            width: 100%;
-            height: 200px;
-            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
-            background-size: 200% 100%;
-            animation: loading 1.5s infinite ease-in-out;
-            border-radius: 4px;
-        }
-
-        /* 文本骨架 */
-        .skeleton-text {
-            height: 20px;
-            margin: 10px 0;
-            background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
-            background-size: 200% 100%;
-            animation: loading 1.5s infinite ease-in-out;
-            border-radius: 4px;
-        }
-
-        /* 动画 */
-        @keyframes loading {
-            0% {
-                background-position: -200% 0;
-            }
-            100% {
-                background-position: 200% 0;
-            }
-        }
-
-        .skeleton-title {
-            width: 50%;
-        }
-
-        .skeleton-paragraph {
-            width: 80%;
-        }
-    </style>
-</head>
-<body>
-<div class="skeleton-wrapper">
-    <!-- 图片骨架 -->
-    <div class="skeleton-item skeleton-image"></div>
-
-    <!-- 标题骨架 -->
-    <div class="skeleton-item skeleton-text skeleton-title"></div>
-
-    <!-- 段落骨架 -->
-    <div class="skeleton-item skeleton-text skeleton-paragraph"></div>
-    <div class="skeleton-item skeleton-text skeleton-paragraph"></div>
-    <div class="skeleton-item skeleton-text skeleton-paragraph"></div>
-</div>
-</body>
-</html>

+ 0 - 80
public/video.html

@@ -1,80 +0,0 @@
-<!DOCTYPE html>
-<html lang="en" style="height: 100%;">
-<head>
-    <meta charset="UTF-8">
-    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-    <meta name="viewport" content="width=device-width, initial-scale=1.0">
-    <title>Document</title>
-    <style>
-        * {
-            margin: 0;
-            padding: 0;
-        }
-
-        video {
-            width: 100%;
-            object-fit: cover;
-            overflow: hidden;
-            /*height: auto !important;*/
-        }
-
-
-        .m-tiktok-video-play-btn {
-            position: absolute;
-            top: 0;
-            left: 0;
-            right: 0;
-            bottom: 0;
-            z-index: 1;
-            display: flex;
-            align-items: center;
-            justify-content: center;
-        }
-    </style>
-
-
-</head>
-<body>
-<video id="video" loop
-       enable-progress-gesture="false"
-       webkit-playsinline="true"
-       object-fit="cover"
-       preload="auto"
-       x5-video-player-type="h5"
-       x5-video-player-fullscreen="true"
-       x5-playsinline
-       autoplay
-       playsinline="true">
-</video>
-<div id="play" class="m-tiktok-video-play-btn" style="z-index: 10;" onclick="play()">
-</div>
-
-
-</body>
-
-<script>
-    let currentUrl = window.location.href;
-    let url = new URL(currentUrl);
-    let height = url.searchParams.get('height');
-    let src = url.searchParams.get('src');
-    let video = document.getElementById('video');
-    let btn = document.getElementById('play');
-
-    if (!height) height = 700;
-    if (!src) src = "https://marry-api.mc626.cc/storage/videos/f4464efc97bedc4f6cbb9ea8ad47d762.mp4";
-
-    btn.style.height = video.style.height = height + "px";
-
-    video.src = src;
-    if (video.paused) btn.innerHTML = `<img style=" width: 60px; height: 60px;opacity: 0.7;" src="/static/img/play.png" />`;
-
-    function play() {
-        if (video.paused) {
-            video.play();  // 如果视频暂停,则播放
-            btn.innerHTML = ``;
-        } else {
-            video.pause(); // 如果视频正在播放,则暂停
-            btn.innerHTML = `<img style=" width: 60px; height: 60px;opacity: 0.7;" src="/static/img/play.png" />`;
-        }
-    }
-</script>