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 |
|---|---|---|---|---|---|
def outer(func):
def x(*args, **kwargs):
print("Before function call")
value = func(*args, **kwargs)
print("Outer decorator")
return value
return x
@outer
def send_wechat(body):
print("微信", body)
return 100
if __name__ == '__main__':
res = send_wechat("你好")
p... | 2301_76469554/su_demo | 8.装饰器.py | Python | unknown | 338 |
package com.sky.controller.user;
import com.sky.dto.OrdersPaymentDTO;
import com.sky.dto.OrdersSubmitDTO;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.service.OrderService;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;
import i... | 2301_76541209/WeChatPay | OrderController.java | Java | unknown | 1,749 |
package com.sky.mapper;
import com.github.pagehelper.Page;
import com.sky.dto.GoodsSalesDTO;
import com.sky.dto.OrdersPageQueryDTO;
import com.sky.entity.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import java.time.LocalDateTime;
import java.util.List;
im... | 2301_76541209/WeChatPay | OrderMapper.java | Java | unknown | 784 |
package com.sky.service;
import com.sky.dto.*;
import com.sky.vo.*;
public interface OrderService {
/**
* 用户下单
* @param ordersSubmitDTO
* @return
*/
OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);
/**
* 订单支付
* @param ordersPaymentDTO
* @ret... | 2301_76541209/WeChatPay | OrderService.java | Java | unknown | 565 |
package com.sky.service.impl;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.sky.constant.MessageConstant;
import com.sky.context.BaseContext;
import com.sky.dto.*;
import com.sky.entity.*;
impor... | 2301_76541209/WeChatPay | OrderServiceImpl.java | Java | unknown | 5,911 |
package com.sky.controller.notify;
import com.alibaba.druid.support.json.JSONUtils;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.sky.properties.WeChatProperties;
import com.sky.service.OrderService;
import com.wechat.pay.contrib.apache.httpclient.util.AesUtil;
import lom... | 2301_76541209/WeChatPay | PayNotifyController.java | Java | unknown | 4,018 |
from django.contrib import admin
# Register your models here.
| 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/App/admin.py | Python | unknown | 63 |
from django.apps import AppConfig
class AppConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "App"
| 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/App/apps.py | Python | unknown | 138 |
from django.db import models
# Create your models here.
| 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/App/models.py | Python | unknown | 57 |
from django.test import TestCase
# Create your tests here.
| 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/App/tests.py | Python | unknown | 60 |
from django.shortcuts import render
# Create your views here.
| 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/App/views.py | Python | unknown | 63 |
"""
ASGI config for DjangoPro2 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/5.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_SE... | 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/DjangoPro2/asgi.py | Python | unknown | 397 |
"""
URL configuration for DjangoPro2 project.
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/5.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='h... | 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/DjangoPro2/urls.py | Python | unknown | 1,038 |
"""
WSGI config for DjangoPro2 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/5.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/DjangoPro2/wsgi.py | Python | unknown | 397 |
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "DjangoPro2.settings")
try:
from django.core.management import execute_from_command_line
except I... | 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/manage.py | Python | unknown | 666 |
from django.contrib import admin
from user.models import *
# 后台管理系统的使用:
# 1. 在这里注册对应的模型
# 2. 需要创建超级管理员的账号和密码 python manage.py createsuperuser
# 3. 跟路由urls.py中添加: path('admin/', admin.site.urls),
# 3. 访问后台管理系统:http://127.0.0.1:8000/admin/
admin.site.register(UserModel) | 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/user/admin.py | Python | unknown | 372 |
from django.apps import AppConfig
class UserConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "user"
| 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/user/apps.py | Python | unknown | 140 |
from django.db import models
"""
模型 <==> 表结构
类属性 <==> 字段
对象 <==> 行
"""
class UserModel(models.Model):
name = models.CharField(max_length=30, unique=True) # 对应的SQL:name varchar(30)
age = models.IntegerField(default=18) # 对应的SQL:age int default 18
sex = models.CharField(max_length=20) ... | 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/user/models.py | Python | unknown | 734 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h2>首页</h2>
<p>欢迎来到我的博客</p>
</body>
</html> | 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/user/templates/index.html | HTML | unknown | 179 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>所有用户</title>
</head>
<body>
<h2>所有用户</h2>
<hr>
<ul>
{% for user in users %}
<li>{{ user.name }}, {{ user.age }}</li>
{% endfor %}
</ul>
</body>
</html> | 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/user/templates/user.html | HTML | unknown | 290 |
from django.test import TestCase
# Create your tests here.
| 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/user/tests.py | Python | unknown | 60 |
from django.urls import path
from user.views import *
# 子路由
urlpatterns = [
# url路由写法 django v1.x,v2.x
# url(r'^index/', index),
# v2.x, v3.x, v4.x
path('index/', index, name='index'),
path('index2/', index2, name='index2'),
path('users/', get_users, name='users'),
] | 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/user/urls.py | Python | unknown | 308 |
from django.contrib.auth.models import User
from django.shortcuts import render
from django.http import HttpResponse
from user.models import *
# 视图函数views
def index(request):
pass
# # 返回响应Response
# return HttpResponse('Hello Django!')
# 渲染模版render,渲染html
return render(request, 'index.html')
# 视... | 2301_76469554/Django4 | 01_Django快速入门/code/DjangoPro2/user/views.py | Python | unknown | 576 |
from django.contrib import admin
# Register your models here.
| 2301_76469554/Django4 | 02_Django路由Router/code/DjangoPro1/App/admin.py | Python | unknown | 63 |
from django.apps import AppConfig
class AppConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "App"
| 2301_76469554/Django4 | 02_Django路由Router/code/DjangoPro1/App/apps.py | Python | unknown | 138 |
from django.db import models
# Create your models here.
class UserModel(models.Model):
name = models.CharField(max_length=30)
age = models.PositiveIntegerField() # 非负数 | 2301_76469554/Django4 | 02_Django路由Router/code/DjangoPro1/App/models.py | Python | unknown | 188 |
from django.test import TestCase
# Create your tests here.
| 2301_76469554/Django4 | 02_Django路由Router/code/DjangoPro1/App/tests.py | Python | unknown | 60 |
from django.urls import path
from App.views import *
urlpatterns = [
# 首页
path('index/', index),
# 用户列表
path('userlist/', user_list, name='userlist'),
# 用户详情
path('userdetail/<int:uid>/', user_detail, name='userdetail'),
] | 2301_76469554/Django4 | 02_Django路由Router/code/DjangoPro1/App/urls.py | Python | unknown | 269 |
from django.shortcuts import render
from App.models import *
# 首页
def index(request):
return render(request, 'index.html')
# 用户列表
def user_list(request):
# 获取所有用户信息
users = UserModel.objects.all()
# 渲染模板
return render(request, 'user_list.html', {'users': users})
# 用户详情
def user_detail(request, ... | 2301_76469554/Django4 | 02_Django路由Router/code/DjangoPro1/App/views.py | Python | unknown | 496 |
"""
ASGI config for DjangoPro1 project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/5.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault("DJANGO_SE... | 2301_76469554/Django4 | 02_Django路由Router/code/DjangoPro1/DjangoPro1/asgi.py | Python | unknown | 397 |
from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = "django-insecure-wzig(f=ibdq8&wu9q)fbcb&an-pitw$zg=lfvn256@h5!7^8)0"
DEBUG = True
ALLOWED_HOSTS = []
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
"django.contrib.contenttypes",
"django.con... | 2301_76469554/Django4 | 02_Django路由Router/code/DjangoPro1/DjangoPro1/settings.py | Python | unknown | 2,440 |
"""
URL configuration for DjangoPro1 project.
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/5.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='h... | 2301_76469554/Django4 | 02_Django路由Router/code/DjangoPro1/DjangoPro1/urls.py | Python | unknown | 1,091 |
"""
WSGI config for DjangoPro1 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/5.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | 2301_76469554/Django4 | 02_Django路由Router/code/DjangoPro1/DjangoPro1/wsgi.py | Python | unknown | 397 |
#!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "DjangoPro1.settings")
try:
from django.core.management import execute_from_command_line
except I... | 2301_76469554/Django4 | 02_Django路由Router/code/DjangoPro1/manage.py | Python | unknown | 666 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>首页</title>
</head>
<body>
<h2>首页</h2>
<hr>
{#url路由#}
<a href="/user/userlist/">url路由的方式:进入用户列表页面</a>
<hr>
{# 反向解析 #}
{# userlist 是path路由的name值#}
{# <a href="{% url 'userlist' %}">反向解析的方式:进入用户列表页面</a>#}
... | 2301_76469554/Django4 | 02_Django路由Router/code/DjangoPro1/templates/index.html | HTML | unknown | 582 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>用户详情</title>
</head>
<body>
<h2>用户详情</h2>
<hr>
<p>用户名:{{ user.name }}</p>
<p>用户年龄:{{ user.age }}</p>
</body>
</html> | 2301_76469554/Django4 | 02_Django路由Router/code/DjangoPro1/templates/user_detail.html | HTML | unknown | 245 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>用户列表</title>
</head>
<body>
<h2>用户列表</h2>
<hr>
<ul>
{% for user in users %}
<li>
<a href="{% url 'App:userdetail' user.id %}">
{{ user.name }} - {{ user.age }}
</a>
</li>
{% endf... | 2301_76469554/Django4 | 02_Django路由Router/code/DjangoPro1/templates/user_list.html | HTML | unknown | 363 |
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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_sample | composeApp/src/androidMain/kotlin/com/tencent/compose/MainActivity.kt | Kotlin | apache-2.0 | 1,352 |
/*
* 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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_sample | composeApp/src/androidMain/kotlin/com/tencent/compose/sample/mainpage/DisplaySections.android.kt | Kotlin | apache-2.0 | 917 |
/*
* 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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/DisplaySections.kt | Kotlin | apache-2.0 | 7,460 |
/*
* 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/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/MainPage.kt | Kotlin | apache-2.0 | 7,479 |
package com.tencent.compose.sample.mainpage.material3
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentHeight
import a... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/material3/AlertDialog.kt | Kotlin | apache-2.0 | 2,548 |
package com.tencent.compose.sample.mainpage.material3
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.size
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Favorite
import androidx.compose.material3.Button
import androidx.compose.mate... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/material3/Button.kt | Kotlin | apache-2.0 | 1,305 |
package com.tencent.compose.sample.mainpage.material3
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Card
import androidx.compose.material3.Text
import androidx.compose.runtime.Composab... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/material3/Card.kt | Kotlin | apache-2.0 | 699 |
package com.tencent.compose.sample.mainpage.material3
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.selection.toggleable
import an... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/material3/Checkbox.kt | Kotlin | apache-2.0 | 2,491 |
package com.tencent.compose.sample.mainpage.material3
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.material.DropdownMenu
import androidx.compose.material.DropdownMenuItem
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compo... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/material3/CustomDropdownMenu.kt | Kotlin | apache-2.0 | 1,935 |
package com.tencent.compose.sample.mainpage.material3
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Divider
import androidx.compose.material3.MaterialTheme
import androidx.compos... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/material3/Divider.kt | Kotlin | apache-2.0 | 1,981 |
package com.tencent.compose.sample.mainpage.material3
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/material3/ListItem.kt | Kotlin | apache-2.0 | 4,911 |
package com.tencent.compose.sample.mainpage.material3
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Slider
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
im... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/material3/Slider.kt | Kotlin | apache-2.0 | 1,069 |
package com.tencent.compose.sample.mainpage.material3
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import andro... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/material3/Surface.kt | Kotlin | apache-2.0 | 809 |
package com.tencent.compose.sample.mainpage.material3
import androidx.compose.foundation.layout.size
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Check
import androidx.compose.material3.Icon
import androidx.compose.material3.Switch
import androidx.compose.material3.SwitchD... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/material3/Switch.kt | Kotlin | apache-2.0 | 1,377 |
package com.tencent.compose.sample.mainpage.material3
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.PrimaryTabRow
import androidx.compose.material3.Tab
import androidx.compose... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/material3/Tab.kt | Kotlin | apache-2.0 | 1,518 |
package com.tencent.compose.sample.mainpage.material3
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.buildAnnotatedStrin... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/material3/Text.kt | Kotlin | apache-2.0 | 832 |
package com.tencent.compose.sample.mainpage.material3
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import an... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/material3/TextButton.kt | Kotlin | apache-2.0 | 714 |
package com.tencent.compose.sample.mainpage.material3
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
impo... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/material3/Textfield.kt | Kotlin | apache-2.0 | 2,115 |
// 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/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/AppHomePageView.kt | Kotlin | apache-2.0 | 12,853 |
package com.tencent.compose.sample.mainpage.sectionItem
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.CircleShape
import ... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/BottomAppBar.kt | Kotlin | apache-2.0 | 7,222 |
/*
* 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/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/BouncingBalls.kt | Kotlin | apache-2.0 | 8,259 |
package com.tencent.compose.sample.mainpage.sectionItem
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.Text
import androidx.compose.runtime.Compo... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/Canvas.kt | Kotlin | apache-2.0 | 1,680 |
/*
* 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/kmptpc_compose_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/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/Checkbox.kt | Kotlin | apache-2.0 | 4,608 |
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/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/Compose1500Text.kt | Kotlin | apache-2.0 | 1,076 |
/*
* 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/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/ComposeLazy1500Image.kt | Kotlin | apache-2.0 | 2,904 |
/*
* 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/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/CustomizeImageSnippets.kt | Kotlin | apache-2.0 | 14,122 |
/*
* 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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/Image.kt | Kotlin | apache-2.0 | 4,619 |
package com.tencent.compose.sample.mainpage.sectionItem
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.com... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/LazyLayout.kt | Kotlin | apache-2.0 | 4,017 |
package com.tencent.compose.sample.mainpage.sectionItem
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.itemsIndexed
import androidx.comp... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/LazyRow.kt | Kotlin | apache-2.0 | 1,847 |
// 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/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/PreviewAppTabScreen.kt | Kotlin | apache-2.0 | 6,146 |
/*
* 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/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/ProgressIndicator.kt | Kotlin | apache-2.0 | 5,483 |
package com.tencent.compose.sample.mainpage.sectionItem
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.lazy.LazyColumn
import androidx.... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/Scaffold.kt | Kotlin | apache-2.0 | 2,753 |
/*
* 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/kmptpc_compose_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/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/Switch.kt | Kotlin | apache-2.0 | 3,903 |
package com.tencent.compose.sample.mainpage.sectionItem
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androi... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/Tab.kt | Kotlin | apache-2.0 | 2,307 |
/*
* 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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_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.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.AppBarDefaults
import androidx.compose.material.DrawerValue
import androidx.compose.material.Icon
import androidx.compose.mat... | 2201_76010299/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/TopAppBar.kt | Kotlin | apache-2.0 | 5,299 |
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/kmptpc_compose_sample | composeApp/src/commonMain/kotlin/com/tencent/compose/sample/mainpage/sectionItem/compose1500view.kt | Kotlin | apache-2.0 | 1,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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_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/kmptpc_compose_sample | composeApp/src/iosMain/kotlin/com/tencent/compose/sample/backhandler/BackHandler.ios.kt | Kotlin | apache-2.0 | 903 |