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/request'
export const userRegisterService = ({ username, password, repassword }) =>
request.post('/api/reg', { username, password, repassword })
export const userLoginService = ({ username, password }) =>
request.post('/api/login', { username, password })
export const userGetInfoServ... | 2302_81331056/big-event | src/api/user.js | JavaScript | unknown | 360 |
body {
margin: 0;
background-color: #f5f5f5;
}
/* fade-slide */
.fade-slide-leave-active,
.fade-slide-enter-active {
transition: all 0.3s;
}
.fade-slide-enter-from {
transform: translateX(-30px);
opacity: 0;
}
.fade-slide-leave-to {
transform: translateX(30px);
opacity: 0;
} | 2302_81331056/big-event | src/assets/main.scss | SCSS | unknown | 292 |
<script setup>
defineProps({
title: {
required: true,
type: String
}
})
</script>
<template>
<el-card class="page-container">
<template #header>
<div class="header">
<span>{{ title }}</span>
<div class="extra">
<slot name="extra"></slot>
</div>
</div>
... | 2302_81331056/big-event | src/components/PageContainer.vue | Vue | unknown | 575 |
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import pinia from '@/stores/index'
import '@/assets/main.scss'
const app = createApp(App)
app.use(pinia)
app.use(router)
app.mount('#app')
| 2302_81331056/big-event | src/main.js | JavaScript | unknown | 231 |
import { createRouter, createWebHistory } from 'vue-router'
import { useUserStore } from '@/stores'
const router = createRouter({
// 不带# 另一个是哈希模式带#
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
{ path: '/login', component: () => import('@/views/login/loginPage.vue') },
{
path: '/',... | 2302_81331056/big-event | src/router/index.js | JavaScript | unknown | 1,271 |
import { createPinia } from 'pinia'
import persist from 'pinia-plugin-persistedstate'
const pinia = createPinia()
pinia.use(persist)
export default pinia
export * from './modules/user'
| 2302_81331056/big-event | src/stores/index.js | JavaScript | unknown | 188 |
import { defineStore } from 'pinia'
import { ref } from 'vue'
import { userGetInfoService } from '@/api/user'
export const useUserStore = defineStore(
'big-user',
() => {
const token = ref('')
const setToken = (newToken) => {
token.value = newToken
}
const removeToken = () => {
token.va... | 2302_81331056/big-event | src/stores/modules/user.js | JavaScript | unknown | 681 |
import { dayjs } from 'element-plus'
export const formatTime = (time) => dayjs(time).format('YYYY年MM月DD日')
| 2302_81331056/big-event | src/utils/format.js | JavaScript | unknown | 114 |
import axios from 'axios'
import { useUserStore } from '@/stores'
import { ElMessage } from 'element-plus'
import router from '@/router'
const baseURL = 'http://big-event-vue-api-t.itheima.net'
const instance = axios.create({
// TODO 1. 基础地址,超时时间
baseURL,
timeout: 10000
})
instance.interceptors.request.use(
... | 2302_81331056/big-event | src/utils/request.js | JavaScript | unknown | 1,099 |
<script setup>
import { ref } from 'vue'
import { Delete, Edit } from '@element-plus/icons-vue'
import { artDelChannelService, artGetChannelsService } from '@/api/article'
import ChannelEdit from './components/ChannelEdit.vue'
const loading = ref(false)
const channelList = ref([])
const dialog = ref()
const getChannel... | 2302_81331056/big-event | src/views/article/articleChannel.vue | Vue | unknown | 2,202 |
<script setup>
import { ref } from 'vue'
import { Delete, Edit } from '@element-plus/icons-vue'
import ChannelSelect from './components/ChannelSelect.vue'
import ArticleEdit from './components/ArticleEdit.vue'
import { artDelService, artGetListService } from '@/api/article.js'
import { formatTime } from '@/utils/format... | 2302_81331056/big-event | src/views/article/articleManage.vue | Vue | unknown | 4,883 |
<script setup>
import { ref } from 'vue'
import ChannelSelect from './ChannelSelect.vue'
import { Plus } from '@element-plus/icons-vue'
import { QuillEditor } from '@vueup/vue-quill'
import '@vueup/vue-quill/dist/vue-quill.snow.css'
import { artPublishService, artGetDetailService } from '@/api/article'
import { baseURL... | 2302_81331056/big-event | src/views/article/components/ArticleEdit.vue | Vue | unknown | 4,625 |
<script setup>
import { ref } from 'vue'
import { artAddChannelService, artEditChannelService } from '@/api/article'
const dialogVisible = ref(false)
const formRef = ref()
const open = async (row) => {
dialogVisible.value = true
formModel.value = { ...row }
}
defineExpose({
open
})
const formModel = ref({
cat... | 2302_81331056/big-event | src/views/article/components/ChannelEdit.vue | Vue | unknown | 2,135 |
<script setup>
import { artGetChannelsService } from '@/api/article.js'
import { ref } from 'vue'
defineProps({
modelValue: {
type: [Number, String]
}
})
const emit = defineEmits(['update:modelValue'])
const channelList = ref([])
const getChannelList = async () => {
const res = await artGetChannelsService()... | 2302_81331056/big-event | src/views/article/components/ChannelSelect.vue | Vue | unknown | 724 |
<script setup>
import { User, Lock } from '@element-plus/icons-vue'
import { ref, watch } from 'vue'
import { userRegisterService, userLoginService } from '@/api/user'
import { useUserStore } from '@/stores'
import { useRouter } from 'vue-router'
const isRegister = ref(true)
const form = ref()
const router = useRouter(... | 2302_81331056/big-event | src/views/login/loginPage.vue | Vue | unknown | 5,358 |
<script setup></script>
<template>
<div>个人页面</div>
</template>
<style></style>
| 2302_81331056/big-event | src/views/user/userAvatar.vue | Vue | unknown | 91 |
<script setup></script>
<template>
<div>个人密码</div>
</template>
<style></style>
| 2302_81331056/big-event | src/views/user/userPassword.vue | Vue | unknown | 91 |
<script setup></script>
<template>
<div>个人信息</div>
</template>
<style></style>
| 2302_81331056/big-event | src/views/user/userProfile.vue | Vue | unknown | 91 |
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
// https://vitejs.dev... | 2302_81331056/big-event | vite.config.js | JavaScript | unknown | 631 |
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>轻松一刻 - 动态风景</title>
<style>
body {
margin: 0;
padding: 0;
overflow: hidden;
background: linear-gradient(... | 2302_81448387/aa | index.html | HTML | unknown | 7,577 |
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=... | 2302_81501109/machine-learning-course | assignment3/2班70.py | Python | mit | 1,862 |
import numpy as np
import matplotlib
matplotlib.use('TkAgg') # 兼容 PyCharm 绘图后端
import matplotlib.pyplot as plt
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
# 解决中文乱码
plt.rcParams['font.sans-serif'] = ['SimHei']
plt.rcParams... | 2302_81501109/machine-learning-course | assignment4/2班70.py | Python | mit | 3,109 |
package com.tjf;
/**
* @author 陶锦锋
* @version 1.0
*/
public class Main {
public static void main(String[] args) {
System.out.println("删除部分文件");
// 添加注释:打印文字
System.out.println("这里进行第四次提交,以测试Git的版本控制");
// 添加注释:打印文字
System.out.println("继续");
// 添加注释:打印文... | 2302_81918214/air_master | src/com/tjf/Main.java | Java | unknown | 489 |
Pod::Spec.new do |spec|
spec.name = 'composeApp'
spec.version = '1.0'
spec.homepage = 'something must not be null'
spec.source = { :http=> ''}
spec.authors = ''
spec.license = ''
spec.sum... | 2201_76010299/ovCompose-sample | composeApp/composeApp.podspec | Ruby | apache-2.0 | 2,324 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/androidMain/kotlin/com/tencent/compose/App.android.kt | Kotlin | apache-2.0 | 765 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/androidMain/kotlin/com/tencent/compose/MainActivity.kt | Kotlin | apache-2.0 | 1,407 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/androidMain/kotlin/com/tencent/compose/Platform.android.kt | Kotlin | apache-2.0 | 967 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/androidMain/kotlin/com/tencent/compose/sample/Images.android.kt | Kotlin | apache-2.0 | 1,195 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/androidMain/kotlin/com/tencent/compose/sample/backhandler/BackHandler.android.kt | Kotlin | apache-2.0 | 959 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/androidMain/kotlin/com/tencent/compose/sample/mainpage/DisplaySections.android.kt | Kotlin | apache-2.0 | 917 |
package net
import io.ktor.client.engine.HttpClientEngineFactory
actual fun ktorEngine(): HttpClientEngineFactory<*> {
TODO("Not yet implemented")
} | 2201_76010299/ovCompose-sample | composeApp/src/androidMain/kotlin/net/Net.android.kt | Kotlin | apache-2.0 | 154 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/Greeting.kt | Kotlin | apache-2.0 | 899 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/Platform.kt | Kotlin | apache-2.0 | 862 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/Images.kt | Kotlin | apache-2.0 | 1,107 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/LinearGradientLine.kt | Kotlin | apache-2.0 | 8,151 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/MultiTouches.kt | Kotlin | apache-2.0 | 2,513 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/backhandler/BackHandler.kt | Kotlin | apache-2.0 | 908 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/data/DisplayItem.kt | Kotlin | apache-2.0 | 1,262 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/DisplaySections.kt | Kotlin | apache-2.0 | 6,037 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/MainPage.kt | Kotlin | apache-2.0 | 7,858 |
package com.tencent.compose.sample.mainpage
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.foundation.layout.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.autom... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/NewMainPage.kt | Kotlin | apache-2.0 | 1,740 |
// AppHomeCompose.kt
package com.tencent.compose.sample
import androidx.compose.animation.animateColorAsState
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.*
import androidx.compose.foundati... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/AppHomePageView.kt | Kotlin | apache-2.0 | 14,303 |
package com.tencent.compose.sample.mainpage.sectionItem
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compos... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/BigImage.kt | Kotlin | apache-2.0 | 1,189 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/BouncingBalls.kt | Kotlin | apache-2.0 | 8,259 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/CarouselTransition.kt | Kotlin | apache-2.0 | 3,813 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/Checkbox.kt | Kotlin | apache-2.0 | 4,608 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/CustomizeImageSnippets.kt | Kotlin | apache-2.0 | 14,186 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/Dialog.kt | Kotlin | apache-2.0 | 10,400 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/DropdownMenu.kt | Kotlin | apache-2.0 | 4,535 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/FallingBalls.kt | Kotlin | apache-2.0 | 6,620 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/GesturesSnippets.kt | Kotlin | apache-2.0 | 10,550 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/Image.kt | Kotlin | apache-2.0 | 4,743 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/ManyViewsPage.kt | Kotlin | apache-2.0 | 2,140 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/ManyViewsPage2.kt | Kotlin | apache-2.0 | 1,946 |
// AppTabScreen.kt
package com.tencent.compose.sample
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.f... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/PreviewAppTabScreen.kt | Kotlin | apache-2.0 | 6,966 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/ProgressIndicator.kt | Kotlin | apache-2.0 | 5,483 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/Slider.kt | Kotlin | apache-2.0 | 3,915 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/Switch.kt | Kotlin | apache-2.0 | 3,903 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/Text.kt | Kotlin | apache-2.0 | 8,778 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/TextField2.kt | Kotlin | apache-2.0 | 3,880 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/TextField3.kt | Kotlin | apache-2.0 | 3,288 |
package com.tencent.compose.sample.mainpage.sectionItem
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundatio... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/The300Threads.kt | Kotlin | apache-2.0 | 12,480 |
package com.tencent.compose.sample.mainpage.sectionItem
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.size
import androidx.compose... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/compose1500view.kt | Kotlin | apache-2.0 | 2,534 |
package concurrency
import kotlinx.coroutines.*
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import kotlin.time.TimeSource
import net.Net
import kotlinx.coroutines.CompletableDeferred
import kotlinx.coroutines.withTimeoutOrNull
private fun isHttpSuccess(code: Int?) = code != null && co... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/concurrency/Runner.kt | Kotlin | apache-2.0 | 9,971 |
package net
import io.ktor.client.HttpClient
import io.ktor.client.network.sockets.ConnectTimeoutException
import io.ktor.client.plugins.HttpRequestRetry
import io.ktor.client.plugins.HttpRequestTimeoutException
import io.ktor.client.plugins.HttpTimeout
import io.ktor.client.request.get
import io.ktor.client.statement... | 2201_76010299/ovCompose-sample | composeApp/src/commonMain/kotlin/net/Net.kt | Kotlin | apache-2.0 | 1,070 |
package net
import io.ktor.client.HttpClient
val client = HttpClient() { /* 配置 */ }
| 2201_76010299/ovCompose-sample | composeApp/src/iosArm64Main/kotlin/net/Net.iosArm64.kt | Kotlin | apache-2.0 | 90 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/iosMain/kotlin/com/tencent/compose/MainViewController.kt | Kotlin | apache-2.0 | 1,537 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/iosMain/kotlin/com/tencent/compose/Platform.ios.kt | Kotlin | apache-2.0 | 1,020 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/iosMain/kotlin/com/tencent/compose/sample/Images.ios.kt | Kotlin | apache-2.0 | 2,150 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/iosMain/kotlin/com/tencent/compose/sample/Vectical2Vectical.kt | Kotlin | apache-2.0 | 3,001 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/iosMain/kotlin/com/tencent/compose/sample/allocObject.kt | Kotlin | apache-2.0 | 1,375 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/iosMain/kotlin/com/tencent/compose/sample/backhandler/BackHandler.ios.kt | Kotlin | apache-2.0 | 903 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/iosMain/kotlin/com/tencent/compose/sample/mainpage/DisplaySections.ios.kt | Kotlin | apache-2.0 | 1,281 |
package net
| 2201_76010299/ovCompose-sample | composeApp/src/iosMain/kotlin/net/Net.ios.kt | Kotlin | apache-2.0 | 13 |
package net
| 2201_76010299/ovCompose-sample | composeApp/src/iosSimulatorArm64Main/kotlin/net/Net.iosSimulatorArm64.kt | Kotlin | apache-2.0 | 13 |
package net
| 2201_76010299/ovCompose-sample | composeApp/src/iosX64Main/kotlin/net/Net.iosX64.kt | Kotlin | apache-2.0 | 13 |
#ifndef GLOBAL_RAW_FILE_H
#define GLOBAL_RAW_FILE_H
#ifdef __cplusplus
extern "C" {
#endif
struct RawFile;
typedef struct RawFile RawFile;
int OH_ResourceManager_ReadRawFile(const RawFile *rawFile, void *buf, size_t length);
long OH_ResourceManager_GetRawFileSize(RawFile *rawFile);
void OH_ResourceManager_CloseRa... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/cinterop/include/raw_file.h | C | apache-2.0 | 414 |
#ifndef GLOBAL_NATIVE_RESOURCE_MANAGER_H
#define GLOBAL_NATIVE_RESOURCE_MANAGER_H
#include "napi/native_api.h"
#include "raw_file.h"
#ifdef __cplusplus
extern "C" {
#endif
struct NativeResourceManager;
typedef struct NativeResourceManager NativeResourceManager;
NativeResourceManager *OH_ResourceManager_InitNativeR... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/cinterop/include/raw_file_manager.h | C | apache-2.0 | 639 |
#ifndef GLOBAL_TEST_0725_H
#define GLOBAL_TEST_0725_H
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
int testNum(int num);
void print_string(char* msg);
void print_const_string(const char* msg);
void trace_tag_begin();
void trace_tag_end();
void trace_tag_cnt(int num);
typedef void (*register_callback_h... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/cinterop/include/test_0725.h | C | apache-2.0 | 918 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/App.ohosArm64.kt | Kotlin | apache-2.0 | 764 |
@file:OptIn(ExperimentalNativeApi::class)
package com.tencent.compose
import kotlinx.cinterop.CFunction
import kotlinx.cinterop.CPointer
import kotlinx.cinterop.ExperimentalForeignApi
import kotlinx.cinterop.StableRef
import kotlinx.cinterop.invoke
import kotlin.experimental.ExperimentalNativeApi
@CName("kotlin_func... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/ExportFunctions.kt | Kotlin | apache-2.0 | 555 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/MainArkUIViewController.kt | Kotlin | apache-2.0 | 1,642 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/Platform.ohos.kt | Kotlin | apache-2.0 | 1,105 |
package com.tencent.compose.sample
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
i... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/ArkCallback.kt | Kotlin | apache-2.0 | 5,232 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/ArkUIView.kt | Kotlin | apache-2.0 | 1,978 |
package com.tencent.compose.sample
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.lay... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/AutoScrollInfiniteList.kt | Kotlin | apache-2.0 | 2,066 |
package com.tencent.compose.sample
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import org.jetbrains.compose.resources.ExperimentalResourceApi
i... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/CApiImage1500.kt | Kotlin | apache-2.0 | 938 |
package com.tencent.compose.sample
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.Text
import a... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/CApiText1500.kt | Kotlin | apache-2.0 | 1,800 |
package com.tencent.compose.sample
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.Text
import ... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/CApiView1500.kt | Kotlin | apache-2.0 | 1,821 |
package com.tencent.compose.sample
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
i... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/CircleReference.kt | Kotlin | apache-2.0 | 12,890 |
package com.tencent.compose.sample
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.mate... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/ComposeImage1500CApi.kt | Kotlin | apache-2.0 | 1,344 |
package com.tencent.compose.sample
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.foundation.lazy.rememberLazyListState
import androidx.compose.material... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/ComposeLazy1500ViewWithString.kt | Kotlin | apache-2.0 | 2,478 |
package com.tencent.compose.sample
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.La... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/ComposeLazyView1500.kt | Kotlin | apache-2.0 | 1,320 |
package com.tencent.compose.sample
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compo... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/ComposeText1500.kt | Kotlin | apache-2.0 | 1,335 |
package com.tencent.compose.sample
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.mate... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/ComposeText1500CApi.kt | Kotlin | apache-2.0 | 1,437 |
package com.tencent.compose.sample
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
//import androidx.compose.ui.Modifier
import k... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/ComposeToC.kt.kt | Kotlin | apache-2.0 | 3,658 |
package com.tencent.compose.sample
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidt... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/ComposeView1500.kt | Kotlin | apache-2.0 | 3,603 |
package com.tencent.compose.sample
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.mate... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/ComposeView1500CApi.kt | Kotlin | apache-2.0 | 1,316 |
package com.tencent.compose.sample
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
internal fun FfiBenchmark() {
... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/FfiBenchmark.kt | Kotlin | apache-2.0 | 501 |
/*
* Tencent is pleased to support the open source community by making ovCompose available.
* Copyright (C) 2025 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may... | 2201_76010299/ovCompose-sample | composeApp/src/ohosArm64Main/kotlin/com/tencent/compose/sample/Images.ohosArm64.kt | Kotlin | apache-2.0 | 2,846 |