code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
import {request} from "../utils/index.js";
export function getAcademyInfo(name) {
return request({
url: `/getAcademyInfo?name=${name}`,
method : "get"
})
}
export function addAcademyInfo(data) {
return request({
url: "/addAcademyInfo",
method : "post",
data
})
}... | 2301_81295389/student-java-web-frontend | src/api/academy.js | JavaScript | unknown | 760 |
import {request} from "../utils/index.js";
export function getClassInfo(name) {
return request({
url: `/getClassInfo?name=${name}`,
method : "get"
})
}
export function addClassInfo(data) {
return request({
url: "/addClassInfo",
method : "post",
data
})
}
export... | 2301_81295389/student-java-web-frontend | src/api/classInfo.js | JavaScript | unknown | 1,246 |
import {request} from "../utils/index.js";
export function login(data){
return request({
url:"/login",
method:"post",
data
})
}
export function registered(data) {//注册用户
return request({
url: "/registered",
method:"post",
data
})
} | 2301_81295389/student-java-web-frontend | src/api/login.js | JavaScript | unknown | 304 |
import {request} from "../utils/index.js";
export function getSpecialtyInfo(name) {
return request({
url: `/getSpecialtyInfo?name=${name}`,
method : "get"
})
}
export function addSpecialtyInfo(data) {
return request({
url: "/addSpecialtyInfo",
method : "post",
data
... | 2301_81295389/student-java-web-frontend | src/api/specialty.js | JavaScript | unknown | 951 |
import {request} from "../utils/index.js";
export function getStudentInfo(name) {
return request({
url: `/getStudent?name=${name}`,
method: "get",
})
}
export function addStudent(data) {
return request({
url: "/addStudent",
method: "post",
data
})
}
export func... | 2301_81295389/student-java-web-frontend | src/api/student.js | JavaScript | unknown | 1,010 |
import {request} from "../utils/index.js";
export function getTeacherInfo(name) {
return request({
url: `/getTeacherInfo?name=${name}`,
method : "get"
})
}
export function addTeacherInfo(data) {
return request({
url: "/addTeacherInfo",
method : "post",
data
})
}... | 2301_81295389/student-java-web-frontend | src/api/teacher.js | JavaScript | unknown | 927 |
import { createRoot } from 'react-dom/client'
import App from './App.jsx'
createRoot(document.getElementById('root')).render(
<div>
<App />
</div>,
)
| 2301_81295389/student-java-web-frontend | src/main.jsx | JavaScript | unknown | 159 |
import React, {useEffect, useState} from 'react';
import {Table, Button, Modal, Form, Input, Space, message, Input as AntInput} from 'antd';
import {
addAcademyInfo,
batchDeleteAcademyInfo,
deleteAcademyInfo,
getAcademyInfo,
updateAcademyInfo
} from "../../api/academy.js";
const AcademyPage = () =>... | 2301_81295389/student-java-web-frontend | src/pages/academyPage/AcademyPage.jsx | JavaScript | unknown | 9,123 |
import React, {useState, useMemo, useEffect} from 'react';
import {Table, Button, Modal, Form, Input, Space, message, Input as AntInput, Select} from 'antd';
import {
addClassInfo,
batchDeleteClassInfo,
deleteClassInfo,
getClassInfo,
updateClassInfo
} from "../../api/classInfo.js";
import ClassModal... | 2301_81295389/student-java-web-frontend | src/pages/classPage/ClassPage.jsx | JavaScript | unknown | 8,426 |
import React, { useState, useEffect } from 'react';
import { Modal, Form, Input, Select, Button, message } from 'antd';
import { getSpecialtyByAcademyId } from '../../../api/specialty';
import { getAcademyInfo } from '../../../api/academy';
import { getTeacherInfoByAcademyId } from '../../../api/teacher';
const { Opt... | 2301_81295389/student-java-web-frontend | src/pages/classPage/component/ClassModal.jsx | JavaScript | unknown | 10,866 |
import React, {useEffect, useState} from 'react';
import {Modal, Table, Button, message} from 'antd';
import {getClassStudentInfo, removeClassStudent} from "../../../api/classInfo.js";
const StudentInClassModal = ({ visible, onCancel, checkClass}) => {
const [data,setData] = useState([]);
const [loading, setLoa... | 2301_81295389/student-java-web-frontend | src/pages/classPage/component/StudentInClassModal.jsx | JavaScript | unknown | 2,619 |
import React from 'react';
import {Typography, Row, Col, Card, Space} from 'antd';
import {
ApartmentOutlined,
BookOutlined,
TeamOutlined,
SolutionOutlined,
UserOutlined,
} from '@ant-design/icons';
import {useNavigate} from "react-router-dom";
const {Title, Paragraph} = Typography;
export default... | 2301_81295389/student-java-web-frontend | src/pages/homePage/HomePage.jsx | JavaScript | unknown | 3,230 |
import React from 'react';
import { Layout, Menu, Dropdown, Avatar, Space } from 'antd';
import {
HomeOutlined,
UserOutlined,
BookOutlined,
DownOutlined,
SolutionOutlined,
TeamOutlined,
ApartmentOutlined
} from '@ant-design/icons';
import { Link, Outlet, useNavigate, useLocation } from 'reac... | 2301_81295389/student-java-web-frontend | src/pages/layouts/NavigationLayout.jsx | JavaScript | unknown | 4,330 |
.login-container {
position: relative;
height: 100vh;
width: 100%;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.login-form-wrapper {
position: fixed; /* 改为fixed定位 */
top: 50%;
right: 300px;
transform: translateY(-50%);
width: 400px;
... | 2301_81295389/student-java-web-frontend | src/pages/login/Login.css | CSS | unknown | 1,759 |
import React, {useState} from 'react';
import {Form, Input, Button, message} from 'antd';
import 'antd/dist/reset.css';
import './Login.css'; // 自定义样式
import {useNavigate} from "react-router";
import {login} from "../../api/login.js";
import backgroundImage from '../../../public/loginBackground.png';
const Login = ()... | 2301_81295389/student-java-web-frontend | src/pages/login/Login.jsx | JavaScript | unknown | 3,403 |
.registered-container {
position: relative;
height: 100vh;
width: 100%;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}
.registered-form-wrapper {
position: fixed; /* 改为fixed定位 */
top: 50%;
right: 300px;
transform: translateY(-50%);
width... | 2301_81295389/student-java-web-frontend | src/pages/registeredPage/RegisteredPage.css | CSS | unknown | 1,734 |
import React from 'react';
import {Form, Input, Button, message} from 'antd';
import 'antd/dist/reset.css';
import './RegisteredPage.css';
import {useNavigate} from 'react-router';
import {registered} from "../../api/login.js";
import backgroundImage from "../../../public/loginBackground.png";
const RegisteredPage = (... | 2301_81295389/student-java-web-frontend | src/pages/registeredPage/RegisteredPage.jsx | JavaScript | unknown | 4,542 |
import React, {useEffect, useState} from 'react';
import {Table, Button, Modal, Form, Space, message, Input as AntInput} from 'antd';
import SpecialtyModal from "./component/SpecialtyModal.jsx";
import {
addSpecialtyInfo,
batchDeleteSpecialtyInfo,
deleteSpecialtyInfo,
getSpecialtyInfo,
updateSpecial... | 2301_81295389/student-java-web-frontend | src/pages/specialtyPage/SpecialtyPage.jsx | JavaScript | unknown | 7,955 |
import React, { useState, useEffect } from 'react';
import {Modal, Form, Input, Select, Button, message} from 'antd';
import {getAcademyInfo} from "../../../api/academy.js";
const { Option } = Select;
const SpecialtyModal = ({ visible, onCancel, onOk, editingRecord }) => {
const [form] = Form.useForm();
const... | 2301_81295389/student-java-web-frontend | src/pages/specialtyPage/component/SpecialtyModal.jsx | JavaScript | unknown | 4,061 |
import React, {useState, useEffect} from 'react';
import {Table, Button, Form, Space, message, Input as AntInput, Modal} from 'antd';
import {
getStudentInfo,
addStudent,
deleteStudent,
updateStudent,
batchDeleteStudent,
chooseClass
} from "../../api/student.js";
import StudentFormModal from "./... | 2301_81295389/student-java-web-frontend | src/pages/studentPage/StudentPage.jsx | JavaScript | unknown | 10,473 |
import { Button, Form, message, Modal, Select } from "antd";
import React, { useEffect, useState } from "react";
import { getSameGradeClass } from "../../../api/student";
const { Option } = Select;
const ChooseModal = ({ visible, onCancel, onOk, editingStudent }) => {
const [loading, setLoading] = useState(false)... | 2301_81295389/student-java-web-frontend | src/pages/studentPage/component/ChooseModal.jsx | JavaScript | unknown | 3,093 |
import React, {useState, useEffect} from 'react';
import {Modal, Form, Input, Select, Button, Spin, message} from 'antd';
import {getAcademyInfo} from "../../../api/academy.js";
import {getSpecialtyByAcademyId} from "../../../api/specialty.js";
import {getClassInfoBySpecialtyId} from "../../../api/classInfo.js";
const... | 2301_81295389/student-java-web-frontend | src/pages/studentPage/component/StudentFormModal.jsx | JavaScript | unknown | 14,012 |
import React, {useEffect, useState} from 'react';
import {Table, Button, Modal, Form, Input, Select, message, Space, Input as AntInput} from 'antd';
import TeacherModal from "./component/TeacherModal.jsx";
import {
addTeacherInfo,
batchDeleteTeacherInfo,
deleteTeacherInfo,
getTeacherInfo,
updateTeac... | 2301_81295389/student-java-web-frontend | src/pages/teacherPage/TeacherPage.jsx | JavaScript | unknown | 9,105 |
import React, {useEffect, useState} from 'react';
import {Modal, Form, Input, Select, Button, message} from 'antd';
import {getAcademyInfo} from "../../../api/academy.js";
const { Option } = Select;
const TeacherModal = ({ visible, onOk, onCancel, editingRecord}) => {
const [academyList, setAcademyList] = useStat... | 2301_81295389/student-java-web-frontend | src/pages/teacherPage/component/TeacherModal.jsx | JavaScript | unknown | 5,423 |
import axios from "axios";
import { message } from "antd";
const request = axios.create({
baseURL: "/api", // 开发环境可代理到后端
timeout: 10000,
});
// 请求拦截器(去除 Token 相关逻辑)
request.interceptors.request.use(
(config) => {
// 可以在这里统一设置 Content-Type 等
config.headers["Content-Type"] = "application/jso... | 2301_81295389/student-java-web-frontend | src/utils/axios.js | JavaScript | unknown | 1,219 |
import {request} from "/src/utils/axios.js";
export {
request
} | 2301_81295389/student-java-web-frontend | src/utils/index.js | JavaScript | unknown | 68 |
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
// vite.config.js
// vite.config.js
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://localhost:8080', // 后端服务地址
changeOrigin: true,
... | 2301_81295389/student-java-web-frontend | vite.config.js | JavaScript | unknown | 439 |
import math
import random
def Kmeans(data, k, epsilon=1e-4, max_iterations=100):
# 辅助函数:计算两个向量的欧氏距离
def euclidean_distance(a, b):
return math.sqrt(sum((x - y) ** 2 for x, y in zip(a, b)))
# 辅助函数:将样本分配到最近的聚类中心
def assign_cluster(x, c):
min_distance = float('inf')
cluster_index =... | 2301_80793000/machine-learning-course | assignment3/1班01.py | Python | mit | 2,119 |
import numpy as np
import matplotlib.pyplot as plt
plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams['axes.unicode_minus'] = False
def assign_cluster(x, c):
distances = np.linalg.norm(x[:, np.newaxis] - c, axis=2)
return np.argmin(distances, axis=1)
def Kmeans(data, k, epsilon=1e-4, iteration=100):
... | 2301_80793000/machine-learning-course | assignment3/1班73.py | Python | mit | 1,515 |
import random
import math
def assign_cluster(x, c):
min_dist = float('inf') # 初始最小距离设为无穷大
cluster_idx = 0 # 初始聚类索引设为0
for i, centroid in enumerate(c):
# 计算x与当前质心的欧氏距离(多维向量距离公式)
dist = 0.0
for xi, ci in zip(x, centroid):
dist += (xi - ci) ** 2
dist = mat... | 2301_80793000/machine-learning-course | assignment3/2班63.py | Python | mit | 3,827 |
import numpy as np
import matplotlib.pyplot as plt
from sklearn.datasets import make_blobs
def assign_cluster(x, c):
"""
将样本 x 分配到最近的聚类中心
"""
distances = np.linalg.norm(x[:, np.newaxis] - c, axis=2) # shape: (n_samples, K)
y = np.argmin(distances, axis=1)
return y
def Kmean(data, K, epsilon=... | 2301_80793000/machine-learning-course | assignment3/2班70.py | Python | mit | 1,862 |
import math
import numpy as np
from collections import Counter
from operator import itemgetter
class KNN:
def __init__(self, k=3, task='classification'):
"""
初始化 KNN 模型
参数:
k: 近邻数量
task: 任务类型,'classification' 或 'regression'
"""
self.k = k
se... | 2301_80793000/machine-learning-course | assignment4/1班01.py | Python | mit | 3,396 |
import math
import heapq
def euclidean_distance(x1, x2):
if len(x1) != len(x2):
raise ValueError("两个样本的维度必须一致")
dist_sq = 0.0
for a, b in zip(x1, x2):
dist_sq += (a - b) ** 2
return math.sqrt(dist_sq)
def knn_classify(train_data, train_labels, x, k=3, distance_func=euclidean_distance):... | 2301_80793000/machine-learning-course | assignment4/2班63.py | Python | mit | 3,818 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<!--
=================================================
* 页面名称: 403访问限制模板
* 文件路径: 403.html
* 作者: 孤山寺北
* 邮箱: 3150675236@qq.com
* 网站: https://www.gsav.cn
* 创建日期: 2025-7-3
* 最后更新: 2025-7-3
* 版本: v1.0.0
* 版权声明: Copyright... | 2301_81429280/tamd-status-pages | 403.html | HTML | mit | 5,060 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<!--
=================================================
* 页面名称: 404未发现资源模板
* 文件路径: 404.html
* 作者: 孤山寺北
* 邮箱: 3150675236@qq.com
* 网站: https://www.gsav.cn
* 创建日期: 2025-7-3
* 最后更新: 2025-7-3
* 版本: v1.0.0
* 版权声明: Copyrigh... | 2301_81429280/tamd-status-pages | 404.html | HTML | mit | 8,778 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<!--
=================================================
* 页面名称: 500服务器错误模板
* 文件路径: 500.html
* 作者: 孤山寺北
* 邮箱: 3150675236@qq.com
* 网站: https://www.gsav.cn
* 创建日期: 2025-7-3
* 最后更新: 2025-7-3
* 版本: v1.0.0
... | 2301_81429280/tamd-status-pages | 500.html | HTML | mit | 6,968 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<!--
=================================================
* 页面名称: 无内容模板
* 文件路径: empty-state.html
* 作者: 孤山寺北
* 邮箱: 3150675236@qq.com
* 网站: https://www.gsav.cn
* 创建日期: 2025-7-3
* 最后更新: 2025-7-3
* 版本: v1.0.0... | 2301_81429280/tamd-status-pages | empty-state.html | HTML | mit | 5,760 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<!--
=================================================
* 页面名称: 错误模板
* 文件路径: error.html
* 作者: 孤山寺北
* 邮箱: 3150675236@qq.com
* 网站: https://www.gsav.cn
* 创建日期: 2025-7-3
* 最后更新: 2025-7-3
* 版本: v1.0.0
... | 2301_81429280/tamd-status-pages | error.html | HTML | mit | 9,721 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<!--
=================================================
* 页面名称: 展示页模板
* 文件路径: index.html
* 作者: 孤山寺北
* 邮箱: 3150675236@qq.com
* 网站: https://www.gsav.cn
* 创建日期: 2025-7-3
* 最后更新: 2025-7-3
* 版本: v1.0.0
... | 2301_81429280/tamd-status-pages | index.html | HTML | mit | 12,645 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<!--
=================================================
* 页面名称: 加载页模板
* 文件路径: loading.html
* 作者: 孤山寺北
* 邮箱: 3150675236@qq.com
* 网站: https://www.gsav.cn
* 创建日期: 2025-7-3
* 最后更新: 2025-7-3
* 版本: v1.0.0
... | 2301_81429280/tamd-status-pages | loading.html | HTML | mit | 4,277 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<!--
=================================================
* 页面名称: 退出登录页模板
* 文件路径: logout.html
* 作者: 孤山寺北
* 邮箱: 3150675236@qq.com
* 网站: https://www.gsav.cn
* 创建日期: 2025-7-3
* 最后更新: 2025-7-3
* 版本: v1.0.0
... | 2301_81429280/tamd-status-pages | logout.html | HTML | mit | 8,314 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<!--
=================================================
* 页面名称: 系统维护页模板
* 文件路径: maintenance.html
* 作者: 孤山寺北
* 邮箱: 3150675236@qq.com
* 网站: https://www.gsav.cn
* 创建日期: 2025-7-3
* 最后更新: 2025-7-3
* 版本: v1.0... | 2301_81429280/tamd-status-pages | maintenance.html | HTML | mit | 7,876 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<!--
=================================================
* 页面名称: 没有找到搜索内容页模板
* 文件路径: no-results.html
* 作者: 孤山寺北
* 邮箱: 3150675236@qq.com
* 网站: https://www.gsav.cn
* 创建日期: 2025-7-3
* 最后更新: 2025-7-3
* 版本: v... | 2301_81429280/tamd-status-pages | no-results.html | HTML | mit | 7,553 |
/* 全局变量定义 */
:root {
--primary: #3b82f6; /* 主蓝色 */
--primary-light: #93c5fd; /* 浅蓝色 */
--primary-lighter: #dbeafe; /* 更浅蓝 */
--error: #ef4444; /* 错误红 */
--error-light: #fca5a5; /* 浅红色 */
--warning: #f59e0b; /* 警告橙 */
--warning-light: #fcd34d; /* 浅橙色 */
--success: #10b981; /* ... | 2301_81429280/tamd-status-pages | style.css | CSS | mit | 5,877 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<!--
=================================================
* 页面名称: 操作成功页模板
* 文件路径: success.html
* 作者: 孤山寺北
* 邮箱: 3150675236@qq.com
* 网站: https://www.gsav.cn
* 创建日期: 2025-7-3
* 最后更新: 2025-7-3
* 版本: v1.0.0
... | 2301_81429280/tamd-status-pages | success.html | HTML | mit | 8,296 |
import tushare as ts
import pandas as pd
import numpy as np
from datetime import datetime, timedelta
from sklearn.preprocessing import MinMaxScaler
from sklearn.svm import SVR
from sklearn.ensemble import GradientBoostingRegressor
from sklearn.metrics import (mean_squared_error, mean_absolute_error,
... | 2301_78696cqk/ML | 14_消融实验视角下基于混合神经网络模型的银行股价预测研究.py | Python | unknown | 38,430 |
class Dog {
public String name;
public int age;
public void eat() {
System.out.println(name + "吃狗粮");
}
}
public class test {
public static void main(String[] args) {
Dog dog = new Dog();
dog.name = "小黑";
dog.age = 1;
dog.eat();
System.out.println(d... | 2301_81564787/class | src/test.java | Java | unknown | 601 |
class Student{
public String name;
public int age;
public String setNum;
public Student(){
System.out.println("不带参数的构造方法......");
}
//利用idea的高效开发效率,右键选生成,选择构造函数,直接生成。
public Student(int age, String setNum, String name) {
this.age = age;
this.setNum = setNum;
this.... | 2301_81564787/java7 | src/Test.java | Java | unknown | 659 |
//TIP 要<b>运行</b>代码,请按 <shortcut actionId="Run"/> 或
// 点击装订区域中的 <icon src="AllIcons.Actions.Execute"/> 图标。
public class Main {
public static void main(String[] args) {
//TIP 当文本光标位于高亮显示的文本处时按 <shortcut actionId="ShowIntentionActions"/>
// 查看 IntelliJ IDEA 建议如何修正。
System.out.printf("Hello and ... | 2301_81564787/java.Arrays | src/Main.java | Java | unknown | 791 |
import java.util.Arrays;
public class Test {
//把数组中每个数据扩大2倍
public static int[] func1(int[] array) {
int[] ret = new int[array.length];
for (int i = 0; i < array.length; i++) {
ret[i] = array[i] * 2;
}
return ret;
}
public... | 2301_81564787/java.Arrays | src/Test.java | Java | unknown | 1,124 |
import java.util.Random;
import java.util.Scanner;
public class Test {
public static int sum (int n) {
if (n == 0) {
return 0;
}
return n + sum(n - 1);
}
public static void main(String[] args) {
System.out.println(sum(10));
}
public static vo... | 2301_81564787/Random1 | src/Test.java | Java | unknown | 1,473 |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 2301_79534346/ohos_mpchart | entry/hvigorfile.ts | TypeScript | apache-2.0 | 662 |
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 2301_79534346/ohos_mpchart | entry/src/main/ets/entryability/EntryAbility.ts | TypeScript | apache-2.0 | 2,129 |
/*
* Copyright (C) 2022 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 2301_79534346/ohos_mpchart | entry/src/ohosTest/ets/testrunner/OpenHarmonyTestRunner.ts | TypeScript | apache-2.0 | 2,728 |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 2301_79534346/ohos_mpchart | hvigorfile.ts | TypeScript | apache-2.0 | 661 |
#!/bin/bash
# ----------------------------------------------------------------------------
# Hvigor startup script, version 1.0.0
#
# Required ENV vars:
# ------------------
# NODE_HOME - location of a Node home dir
# or
# Add /usr/local/nodejs/bin to the PATH environment variable
# ---------------------... | 2301_79534346/ohos_mpchart | hvigorw | Shell | apache-2.0 | 1,419 |
@if "%DEBUG%" == "" @echo off
@rem ##########################################################################
@rem
@rem Hvigor startup script for Windows
@rem
@rem ##########################################################################
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Window... | 2301_79534346/ohos_mpchart | hvigorw.bat | Batchfile | apache-2.0 | 1,449 |
/*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 2301_79534346/ohos_mpchart | library/hvigorfile.ts | TypeScript | apache-2.0 | 664 |
/*
* Copyright (C) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 2301_79534346/ohos_mpchart | library/src/main/ets/components/utils/CanvasUtil.ts | TypeScript | apache-2.0 | 824 |
/*
* Copyright (C) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 2301_79534346/ohos_mpchart | library/src/main/ets/components/utils/GCUtils.ts | TypeScript | apache-2.0 | 861 |
class Dog {
public String name;
public int age;
public void eat() {
System.out.println(name + "吃狗粮");
}
}
public class test {
public static void main(String[] args) {
Dog dog = new Dog();
dog.name = "小黑";
dog.age = 1;
dog.eat();
System.out.println(d... | 2301_81564787/this | src/test.java | Java | unknown | 601 |
package cn.bugstack.common; | 2301_81405304/s-pay-mall-mvc | s-pay-mall-common/src/main/java/cn/bugstack/common/package-info.java | Java | unknown | 27 |
package cn.bugstack.dao; | 2301_81405304/s-pay-mall-mvc | s-pay-mall-dao/src/main/java/cn/bugstack/dao/package-info.java | Java | unknown | 24 |
package cn.bugstack.domain; | 2301_81405304/s-pay-mall-mvc | s-pay-mall-domain/src/main/java/cn/bugstack/domain/package-info.java | Java | unknown | 27 |
package cn.bugstack.service; | 2301_81405304/s-pay-mall-mvc | s-pay-mall-service/src/main/java/cn/bugstack/service/package-info.java | Java | unknown | 28 |
package cn.bugstack;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
@SpringBootApplication
@Configuration
public class Application {
public static void main(String[] args) {
... | 2301_81405304/s-pay-mall-mvc | s-pay-mall-web/src/main/java/cn/bugstack/Application.java | Java | unknown | 372 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<title>请升级您的浏览器</title>
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" >
<meta name="renderer" content="webkit">
<base target="_blank" />
<style type="text/css">
html,body,div,span,applet,object... | 2301_81571068/RuoYi-Vue3 | html/ie.html | HTML | mit | 23,623 |
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="icon" href="/favicon.ico">
... | 2301_81571068/RuoYi-Vue3 | index.html | HTML | mit | 5,506 |
<template>
<router-view />
</template>
<script setup>
import useSettingsStore from '@/store/modules/settings'
import { handleThemeStyle } from '@/utils/theme'
onMounted(() => {
nextTick(() => {
// 初始化主题样式
handleThemeStyle(useSettingsStore().theme)
})
})
</script>
| 2301_81571068/RuoYi-Vue3 | src/App.vue | Vue | mit | 309 |
import request from '@/utils/request'
// 登录方法
export function login(username, password, code, uuid) {
const data = {
username,
password,
code,
uuid
}
return request({
url: '/login',
headers: {
isToken: false,
repeatSubmit: false
},
method: 'post',
... | 2301_81571068/RuoYi-Vue3 | src/api/login.js | JavaScript | mit | 978 |
import request from '@/utils/request'
// 获取路由
export const getRouters = () => {
return request({
url: '/getRouters',
method: 'get'
})
} | 2301_81571068/RuoYi-Vue3 | src/api/menu.js | JavaScript | mit | 164 |
import request from '@/utils/request'
// 查询缓存详细
export function getCache() {
return request({
url: '/monitor/cache',
method: 'get'
})
}
// 查询缓存名称列表
export function listCacheName() {
return request({
url: '/monitor/cache/getNames',
method: 'get'
})
}
// 查询缓存键名列表
export funct... | 2301_81571068/RuoYi-Vue3 | src/api/monitor/cache.js | JavaScript | mit | 1,201 |
import request from '@/utils/request'
// 查询定时任务调度列表
export function listJob(query) {
return request({
url: '/monitor/job/list',
method: 'get',
params: query
})
}
// 查询定时任务调度详细
export function getJob(jobId) {
return request({
url: '/monitor/job/' + jobId,
method: 'get'
})
}... | 2301_81571068/RuoYi-Vue3 | src/api/monitor/job.js | JavaScript | mit | 1,274 |
import request from '@/utils/request'
// 查询调度日志列表
export function listJobLog(query) {
return request({
url: '/monitor/jobLog/list',
method: 'get',
params: query
})
}
// 删除调度日志
export function delJobLog(jobLogId) {
return request({
url: '/monitor/jobLog/' + jobLogId,
method: 'd... | 2301_81571068/RuoYi-Vue3 | src/api/monitor/jobLog.js | JavaScript | mit | 509 |
import request from '@/utils/request'
// 查询登录日志列表
export function list(query) {
return request({
url: '/monitor/logininfor/list',
method: 'get',
params: query
})
}
// 删除登录日志
export function delLogininfor(infoId) {
return request({
url: '/monitor/logininfor/' + infoId,
method: ... | 2301_81571068/RuoYi-Vue3 | src/api/monitor/logininfor.js | JavaScript | mit | 696 |
import request from '@/utils/request'
// 查询在线用户列表
export function list(query) {
return request({
url: '/monitor/online/list',
method: 'get',
params: query
})
}
// 强退用户
export function forceLogout(tokenId) {
return request({
url: '/monitor/online/' + tokenId,
method: 'delete'
... | 2301_81571068/RuoYi-Vue3 | src/api/monitor/online.js | JavaScript | mit | 353 |
import request from '@/utils/request'
// 查询操作日志列表
export function list(query) {
return request({
url: '/monitor/operlog/list',
method: 'get',
params: query
})
}
// 删除操作日志
export function delOperlog(operId) {
return request({
url: '/monitor/operlog/' + operId,
method: 'delete'
... | 2301_81571068/RuoYi-Vue3 | src/api/monitor/operlog.js | JavaScript | mit | 504 |
import request from '@/utils/request'
// 获取服务信息
export function getServer() {
return request({
url: '/monitor/server',
method: 'get'
})
} | 2301_81571068/RuoYi-Vue3 | src/api/monitor/server.js | JavaScript | mit | 170 |
import request from '@/utils/request'
// 查询参数列表
export function listConfig(query) {
return request({
url: '/system/config/list',
method: 'get',
params: query
})
}
// 查询参数详细
export function getConfig(configId) {
return request({
url: '/system/config/' + configId,
method: 'get'
... | 2301_81571068/RuoYi-Vue3 | src/api/system/config.js | JavaScript | mit | 1,152 |
import request from '@/utils/request'
// 查询部门列表
export function listDept(query) {
return request({
url: '/system/dept/list',
method: 'get',
params: query
})
}
// 查询部门列表(排除节点)
export function listDeptExcludeChild(deptId) {
return request({
url: '/system/dept/list/exclude/' + deptId,... | 2301_81571068/RuoYi-Vue3 | src/api/system/dept.js | JavaScript | mit | 959 |
import request from '@/utils/request'
// 查询字典数据列表
export function listData(query) {
return request({
url: '/system/dict/data/list',
method: 'get',
params: query
})
}
// 查询字典数据详细
export function getData(dictCode) {
return request({
url: '/system/dict/data/' + dictCode,
method: ... | 2301_81571068/RuoYi-Vue3 | src/api/system/dict/data.js | JavaScript | mit | 1,019 |
import request from '@/utils/request'
// 查询字典类型列表
export function listType(query) {
return request({
url: '/system/dict/type/list',
method: 'get',
params: query
})
}
// 查询字典类型详细
export function getType(dictId) {
return request({
url: '/system/dict/type/' + dictId,
method: 'get... | 2301_81571068/RuoYi-Vue3 | src/api/system/dict/type.js | JavaScript | mit | 1,142 |
import request from '@/utils/request'
// 查询菜单列表
export function listMenu(query) {
return request({
url: '/system/menu/list',
method: 'get',
params: query
})
}
// 查询菜单详细
export function getMenu(menuId) {
return request({
url: '/system/menu/' + menuId,
method: 'get'
})
}
... | 2301_81571068/RuoYi-Vue3 | src/api/system/menu.js | JavaScript | mit | 1,119 |
import request from '@/utils/request'
// 查询公告列表
export function listNotice(query) {
return request({
url: '/system/notice/list',
method: 'get',
params: query
})
}
// 查询公告详细
export function getNotice(noticeId) {
return request({
url: '/system/notice/' + noticeId,
method: 'get'
... | 2301_81571068/RuoYi-Vue3 | src/api/system/notice.js | JavaScript | mit | 799 |
import request from '@/utils/request'
// 查询岗位列表
export function listPost(query) {
return request({
url: '/system/post/list',
method: 'get',
params: query
})
}
// 查询岗位详细
export function getPost(postId) {
return request({
url: '/system/post/' + postId,
method: 'get'
})
}
... | 2301_81571068/RuoYi-Vue3 | src/api/system/post.js | JavaScript | mit | 773 |
import request from '@/utils/request'
// 查询角色列表
export function listRole(query) {
return request({
url: '/system/role/list',
method: 'get',
params: query
})
}
// 查询角色详细
export function getRole(roleId) {
return request({
url: '/system/role/' + roleId,
method: 'get'
})
}
... | 2301_81571068/RuoYi-Vue3 | src/api/system/role.js | JavaScript | mit | 2,296 |
import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";
// 查询用户列表
export function listUser(query) {
return request({
url: '/system/user/list',
method: 'get',
params: query
})
}
// 查询用户详细
export function getUser(userId) {
return request({
url: '/system/... | 2301_81571068/RuoYi-Vue3 | src/api/system/user.js | JavaScript | mit | 2,581 |
import request from '@/utils/request'
// 查询生成表数据
export function listTable(query) {
return request({
url: '/tool/gen/list',
method: 'get',
params: query
})
}
// 查询db数据库列表
export function listDbTable(query) {
return request({
url: '/tool/gen/db/list',
method: 'get',
params: ... | 2301_81571068/RuoYi-Vue3 | src/api/tool/gen.js | JavaScript | mit | 1,607 |
@import './variables.module.scss';
@mixin colorBtn($color) {
background: $color;
&:hover {
color: $color;
&:before,
&:after {
background: $color;
}
}
}
.blue-btn {
@include colorBtn($blue)
}
.light-blue-btn {
@include colorBtn($light-blue)
}
.red-btn {
@in... | 2301_81571068/RuoYi-Vue3 | src/assets/styles/btn.scss | SCSS | mit | 1,476 |
// cover some element-ui styles
.el-breadcrumb__inner,
.el-breadcrumb__inner a {
font-weight: 400 !important;
}
.el-upload {
input[type="file"] {
display: none !important;
}
}
.el-upload__input {
display: none;
}
.cell {
.el-tag {
margin-right: 0px;
}
}
.small-padding {
... | 2301_81571068/RuoYi-Vue3 | src/assets/styles/element-ui.scss | SCSS | mit | 1,421 |
@import './variables.module.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';
@import './ruoyi.scss';
body {
height: 100%;
margin: 0;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
te... | 2301_81571068/RuoYi-Vue3 | src/assets/styles/index.scss | SCSS | mit | 2,853 |
@mixin clearfix {
&:after {
content: "";
display: table;
clear: both;
}
}
@mixin scrollBar {
&::-webkit-scrollbar-track-piece {
background: #d3dce6;
}
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-thumb {
background: #99a9bf;
border-radius: 20p... | 2301_81571068/RuoYi-Vue3 | src/assets/styles/mixin.scss | SCSS | mit | 1,377 |
/**
* 通用css样式布局处理
* Copyright (c) 2019 ruoyi
*/
/** 基础通用 **/
.pt5 {
padding-top: 5px;
}
.pr5 {
padding-right: 5px;
}
.pb5 {
padding-bottom: 5px;
}
.mt5 {
margin-top: 5px;
}
.mr5 {
margin-right: 5px;
}
.mb5 {
margin-bottom: 5px;
}
.mb8 {
margin-bottom: 8px;
}
.ml5 {
margin-left: ... | 2301_81571068/RuoYi-Vue3 | src/assets/styles/ruoyi.scss | SCSS | mit | 4,872 |
#app {
.main-container {
min-height: 100%;
transition: margin-left .28s;
margin-left: $base-sidebar-width;
position: relative;
}
.sidebarHide {
margin-left: 0!important;
}
.sidebar-container {
transition: width 0.28s;
width: $base-sidebar-width !important;
he... | 2301_81571068/RuoYi-Vue3 | src/assets/styles/sidebar.scss | SCSS | mit | 4,707 |
// global transition css
/* fade */
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.28s;
}
.fade-enter,
.fade-leave-active {
opacity: 0;
}
/* fade-transform */
.fade-transform--move,
.fade-transform-leave-active,
.fade-transform-enter-active {
transition: all .5s;
}
.fade-tr... | 2301_81571068/RuoYi-Vue3 | src/assets/styles/transition.scss | SCSS | mit | 786 |
// base color
$blue: #324157;
$light-blue: #333c46;
$red: #C03639;
$pink: #E65D6E;
$green: #30B08F;
$tiffany: #4AB7BD;
$yellow: #FEC171;
$panGreen: #30B08F;
// 默认主题变量
$menuText: #bfcbd9;
$menuActiveText: #409eff;
$menuBg: #304156;
$menuHover: #263445;
// 浅色主题theme-light
$menuLightBg: #ffffff;
$menuL... | 2301_81571068/RuoYi-Vue3 | src/assets/styles/variables.module.scss | SCSS | mit | 5,562 |
<template>
<el-breadcrumb class="app-breadcrumb" separator="/">
<transition-group name="breadcrumb">
<el-breadcrumb-item v-for="(item, index) in levelList" :key="item.path">
<span v-if="item.redirect === 'noRedirect' || index == levelList.length - 1" class="no-redirect">{{ item.meta.title }}</sp... | 2301_81571068/RuoYi-Vue3 | src/components/Breadcrumb/index.vue | Vue | mit | 2,717 |
<template>
<el-form>
<el-form-item>
<el-radio v-model='radioValue' :value="1">
日,允许的通配符[, - * ? / L W]
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model='radioValue' :value="2">
不指定
</el-ra... | 2301_81571068/RuoYi-Vue3 | src/components/Crontab/day.vue | Vue | mit | 5,640 |
<template>
<el-form>
<el-form-item>
<el-radio v-model='radioValue' :value="1">
小时,允许的通配符[, - * /]
</el-radio>
</el-form-item>
<el-form-item>
<el-radio v-model='radioValue' :value="2">
周期从
<el-inpu... | 2301_81571068/RuoYi-Vue3 | src/components/Crontab/hour.vue | Vue | mit | 4,280 |
<template>
<div>
<el-tabs type="border-card">
<el-tab-pane label="秒" v-if="shouldHide('second')">
<CrontabSecond
@update="updateCrontabValue"
:check="checkNumber"
:cron="crontabValueObj"
ref="... | 2301_81571068/RuoYi-Vue3 | src/components/Crontab/index.vue | Vue | mit | 10,110 |