Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
IoTSharp
IoTSharp
提交
d95bd9d2
IoTSharp
项目概览
IoTSharp
/
IoTSharp
大约 1 年 前同步成功
通知
15
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
IoTSharp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d95bd9d2
编写于
7月 16, 2021
作者:
W
wq1234wq
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://github.com/IoTSharp/IoTSharp
上级
46a2dc58
fcc18a74
变更
11
隐藏空白更改
内联
并排
Showing
11 changed file
with
54 addition
and
32 deletion
+54
-32
.gitignore
.gitignore
+2
-0
ClientApp/Vue/.env
ClientApp/Vue/.env
+2
-2
ClientApp/Vue/package.json
ClientApp/Vue/package.json
+8
-6
ClientApp/Vue/src/views/sys/login/Login.vue
ClientApp/Vue/src/views/sys/login/Login.vue
+2
-2
IoTSharp.Data.MySQL/IoTSharp.Data.MySQL.csproj
IoTSharp.Data.MySQL/IoTSharp.Data.MySQL.csproj
+1
-1
IoTSharp.SDKs/IoTSharp.Sdk.MQTT/IoTSharp.Sdk.MQTT.csproj
IoTSharp.SDKs/IoTSharp.Sdk.MQTT/IoTSharp.Sdk.MQTT.csproj
+1
-1
IoTSharp.Test/IoTSharp.Test.csproj
IoTSharp.Test/IoTSharp.Test.csproj
+2
-2
IoTSharp/Controllers/AccountController.cs
IoTSharp/Controllers/AccountController.cs
+1
-1
IoTSharp/Dockerfile
IoTSharp/Dockerfile
+17
-3
IoTSharp/IoTSharp.csproj
IoTSharp/IoTSharp.csproj
+14
-14
README.md
README.md
+4
-0
未找到文件。
.gitignore
浏览文件 @
d95bd9d2
...
@@ -347,3 +347,5 @@ ASALocalRun/
...
@@ -347,3 +347,5 @@ ASALocalRun/
/IoTSharp/TelemetryStorage.db
/IoTSharp/TelemetryStorage.db
/IoTSharp/IoTSharp.db
/IoTSharp/IoTSharp.db
/IoTSharp/health_checks.db
/IoTSharp/health_checks.db
/ClientApp/Vue/build
/ClientApp/Vue/mock
ClientApp/Vue/.env
浏览文件 @
d95bd9d2
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
VITE_PORT = 3100
VITE_PORT = 3100
# spa-title
# spa-title
VITE_GLOB_APP_TITLE = Io
t
Sharp
VITE_GLOB_APP_TITLE = Io
T
Sharp
# spa shortname
# spa shortname
VITE_GLOB_APP_SHORT_NAME = Io
t
Sharp
VITE_GLOB_APP_SHORT_NAME = Io
T
Sharp
ClientApp/Vue/package.json
浏览文件 @
d95bd9d2
{
{
"name"
:
"vben-admin"
,
"name"
:
"vben-admin"
,
"version"
:
"2.5.2"
,
"version"
:
"2.5.2"
,
"author"
:
{
"author"
:
"vben <anncwb@126.com> (https://github.com/anncwb)"
,
"name"
:
"vben"
,
"email"
:
"anncwb@126.com"
,
"url"
:
"https://github.com/anncwb"
},
"scripts"
:
{
"scripts"
:
{
"bootstrap"
:
"yarn install"
,
"bootstrap"
:
"yarn install"
,
"serve"
:
"npm run dev"
,
"serve"
:
"npm run dev"
,
...
@@ -157,5 +153,11 @@
...
@@ -157,5 +153,11 @@
"homepage"
:
"https://github.com/anncwb/vue-vben-admin"
,
"homepage"
:
"https://github.com/anncwb/vue-vben-admin"
,
"engines"
:
{
"engines"
:
{
"node"
:
"^12 || >=14"
"node"
:
"^12 || >=14"
}
},
"description"
:
"<div align=
\"
center
\"
> <a href=
\"
https://github.com/anncwb/vue-vben-admin
\"
> <img alt=
\"
VbenAdmin Logo
\"
width=
\"
200
\"
height=
\"
200
\"
src=
\"
https://anncwb.github.io/anncwb/images/logo.png
\"
> </a> <br> <br>"
,
"main"
:
".eslintrc.js"
,
"directories"
:
{
"test"
:
"tests"
},
"keywords"
:
[]
}
}
ClientApp/Vue/src/views/sys/login/Login.vue
浏览文件 @
d95bd9d2
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
<div
class=
"my-auto"
>
<div
class=
"my-auto"
>
<img
<img
:alt=
"title"
:alt=
"title"
src=
"../../../assets/images/
Logo-F
ull.png"
src=
"../../../assets/images/
logo-f
ull.png"
class=
"w-1/2 -mt-16 -enter-x"
class=
"w-1/2 -mt-16 -enter-x"
/>
/>
<div
class=
"mt-10 font-medium text-red -enter-x"
>
<div
class=
"mt-10 font-medium text-red -enter-x"
>
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
<div
class=
"flex w-full h-full py-5 xl:h-auto xl:py-0 xl:my-0 xl:w-6/12"
>
<div
class=
"flex w-full h-full py-5 xl:h-auto xl:py-0 xl:my-0 xl:w-6/12"
>
<div
<div
:class=
"`$
{prefixCls}-form`"
:class=
"`$
{prefixCls}-form`"
class="relative w-full px-5 py-8 mx-auto my-auto rounded-md shadow-md
xl:ml-16 xl:bg-transparent sm:px-8 xl:p-4 xl:shadow-none sm:w-3/4 lg:w-2/4 xl:w-auto enter-x"
class="relative w-full px-5 py-8 mx-auto my-auto rounded-md shadow-md xl:ml-16 xl:bg-transparent sm:px-8 xl:p-4 xl:shadow-none sm:w-3/4 lg:w-2/4 xl:w-auto enter-x"
>
>
<LoginForm
/>
<LoginForm
/>
<ForgetPasswordForm
/>
<ForgetPasswordForm
/>
...
...
IoTSharp.Data.MySQL/IoTSharp.Data.MySQL.csproj
浏览文件 @
d95bd9d2
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="5.0.7" />
<PackageReference Include="Microsoft.Extensions.Diagnostics.HealthChecks" Version="5.0.7" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="5.0.
0
" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="5.0.
1
" />
<PackageReference Include="EFCore.Sharding.MySql" Version="5.0.13" />
<PackageReference Include="EFCore.Sharding.MySql" Version="5.0.13" />
</ItemGroup>
</ItemGroup>
...
...
IoTSharp.SDKs/IoTSharp.Sdk.MQTT/IoTSharp.Sdk.MQTT.csproj
浏览文件 @
d95bd9d2
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</PropertyGroup>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<PackageReference Include="MQTTnet" Version="3.0.1
5
" />
<PackageReference Include="MQTTnet" Version="3.0.1
6
" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
</ItemGroup>
</ItemGroup>
...
...
IoTSharp.Test/IoTSharp.Test.csproj
浏览文件 @
d95bd9d2
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
<ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.10.0" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.
4
" />
<PackageReference Include="MSTest.TestAdapter" Version="2.2.
5
" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.
4
" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.
5
" />
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
...
...
IoTSharp/Controllers/AccountController.cs
浏览文件 @
d95bd9d2
...
@@ -119,7 +119,7 @@ namespace IoTSharp.Controllers
...
@@ -119,7 +119,7 @@ namespace IoTSharp.Controllers
signingCredentials
:
signinCredentials
);
signingCredentials
:
signinCredentials
);
var
t
=
(
expires
.
Ticks
-
TimeZoneInfo
.
ConvertTimeFromUtc
(
new
System
.
DateTime
(
1970
,
1
,
1
,
0
,
0
,
0
,
0
),
TimeZoneInfo
.
Local
).
Ticks
)
/
10000
;
var
t
=
(
expires
.
Ticks
-
TimeZoneInfo
.
ConvertTimeFromUtc
(
new
System
.
DateTime
(
1970
,
1
,
1
,
0
,
0
,
0
,
0
),
TimeZoneInfo
.
Local
).
Ticks
)
/
10000
;
var
token
=
new
TokenEntity
var
token
=
new
TokenEntity
...
...
IoTSharp/Dockerfile
浏览文件 @
d95bd9d2
...
@@ -33,9 +33,9 @@ RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib n
...
@@ -33,9 +33,9 @@ RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib n
echo
"deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free"
>>
/etc/apt/sources.list
&&
\
echo
"deb https://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free"
>>
/etc/apt/sources.list
&&
\
echo
"deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free"
>>
/etc/apt/sources.list
&&
\
echo
"deb https://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free"
>>
/etc/apt/sources.list
&&
\
echo
"deb https://mirrors.tuna.tsinghua.edu.cn/debian-security jessie/updates main contrib non-free"
>>
/etc/apt/sources.list
&&
\
echo
"deb https://mirrors.tuna.tsinghua.edu.cn/debian-security jessie/updates main contrib non-free"
>>
/etc/apt/sources.list
&&
\
apt-get
-y
-q
update
&&
apt-get
install
-y
-q
git libssl-dev
libcurl3 libssl1.0.0
&&
\
apt-get
-y
-q
update
&&
apt-get
install
-y
-q
git libssl-dev
curl gnupg libcurl4 libssl1.0.0
&&
\
apt-get autoremove
-y
&&
apt-get clean
&&
apt-get autoclean
&&
rm
/var/cache/apt/
*
-rf
&&
\
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
&&
\
ln
-sf
/usr/share/zoneinfo/Asia/Shanghai /etc/localtime
apt-get autoremove
-y
&&
apt-get clean
&&
apt-get autoclean
&&
rm
/var/cache/apt/
*
-rf
WORKDIR
/src
WORKDIR
/src
COPY
["IoTSharp/IoTSharp.csproj", "IoTSharp/"]
COPY
["IoTSharp/IoTSharp.csproj", "IoTSharp/"]
COPY
["IoTSharp.Data/IoTSharp.Data.csproj", "IoTSharp.Data/"]
COPY
["IoTSharp.Data/IoTSharp.Data.csproj", "IoTSharp.Data/"]
...
@@ -49,10 +49,24 @@ COPY . .
...
@@ -49,10 +49,24 @@ COPY . .
WORKDIR
"/src/IoTSharp"
WORKDIR
"/src/IoTSharp"
RUN
dotnet build
"IoTSharp.csproj"
-c
Release
-o
/app/build
RUN
dotnet build
"IoTSharp.csproj"
-c
Release
-o
/app/build
FROM
node:14-buster AS web
WORKDIR
/web
RUN
npm config
set
registry http://registry.npm.taobao.org/
&&
\
yarn config
set
registry http://registry.npm.taobao.org/
COPY
../ClientApp/Vue/package*.json ./
RUN
yarn
install
COPY
../ClientApp/Vue ./
RUN
yarn build
FROM
build AS publish
FROM
build AS publish
RUN
dotnet publish
"IoTSharp.csproj"
-c
Release
-o
/app/publish
RUN
dotnet publish
"IoTSharp.csproj"
-c
Release
-o
/app/publish
FROM
base AS final
FROM
base AS final
WORKDIR
/app
WORKDIR
/app
COPY
--from=publish /app/publish .
COPY
--from=publish /app/publish .
COPY
--from=web /web/dist ./wwwroot
ENTRYPOINT
["dotnet", "IoTSharp.dll"]
ENTRYPOINT
["dotnet", "IoTSharp.dll"]
\ No newline at end of file
IoTSharp/IoTSharp.csproj
浏览文件 @
d95bd9d2
...
@@ -48,19 +48,19 @@
...
@@ -48,19 +48,19 @@
<PackageReference Include="AspNetCore.HealthChecks.Uris" Version="5.0.1" />
<PackageReference Include="AspNetCore.HealthChecks.Uris" Version="5.0.1" />
<PackageReference Include="AspNetCore.HealthChecks.Network" Version="5.0.4" />
<PackageReference Include="AspNetCore.HealthChecks.Network" Version="5.0.4" />
<PackageReference Include="CAP.Extensions" Version="1.0.32" />
<PackageReference Include="CAP.Extensions" Version="1.0.32" />
<PackageReference Include="DotNetCore.CAP" Version="5.1.
0
" />
<PackageReference Include="DotNetCore.CAP" Version="5.1.
1
" />
<PackageReference Include="DotNetCore.CAP.Dashboard" Version="5.1.
0
" />
<PackageReference Include="DotNetCore.CAP.Dashboard" Version="5.1.
1
" />
<PackageReference Include="DotNetCore.CAP.InMemoryStorage" Version="5.1.
0
" />
<PackageReference Include="DotNetCore.CAP.InMemoryStorage" Version="5.1.
1
" />
<PackageReference Include="DotNetCore.CAP.Kafka" Version="5.1.
0
" />
<PackageReference Include="DotNetCore.CAP.Kafka" Version="5.1.
1
" />
<PackageReference Include="DotNetCore.CAP.MongoDB" Version="5.1.
0
" />
<PackageReference Include="DotNetCore.CAP.MongoDB" Version="5.1.
1
" />
<PackageReference Include="DotNetCore.CAP.
PostgreSql" Version="5.1.0
" />
<PackageReference Include="DotNetCore.CAP.
RabbitMQ" Version="5.1.1
" />
<PackageReference Include="DotNetCore.CAP.
RabbitMQ" Version="5.1.0
" />
<PackageReference Include="DotNetCore.CAP.
PostgreSql" Version="5.1.1
" />
<PackageReference Include="EasyCaching.Core" Version="1.3.0" />
<PackageReference Include="EasyCaching.Core" Version="1.3.0" />
<PackageReference Include="EasyCaching.InMemory" Version="1.3.0" />
<PackageReference Include="EasyCaching.InMemory" Version="1.3.0" />
<PackageReference Include="EasyCaching.LiteDB" Version="1.3.0" />
<PackageReference Include="EasyCaching.LiteDB" Version="1.3.0" />
<PackageReference Include="EasyCaching.Redis" Version="1.3.0" />
<PackageReference Include="EasyCaching.Redis" Version="1.3.0" />
<PackageReference Include="hyjiacan.pinyin4net" Version="4.1.0
-release
" />
<PackageReference Include="hyjiacan.pinyin4net" Version="4.1.0" />
<PackageReference Include="InfluxDB.Client" Version="
1.19
.0" />
<PackageReference Include="InfluxDB.Client" Version="
2.0
.0" />
<PackageReference Include="IoTSharp.CoAP.NET" Version="2.0.8" />
<PackageReference Include="IoTSharp.CoAP.NET" Version="2.0.8" />
<PackageReference Include="IoTSharp.X509Extensions" Version="1.4.27" />
<PackageReference Include="IoTSharp.X509Extensions" Version="1.4.27" />
<PackageReference Include="kimbus" Version="2.0.1" />
<PackageReference Include="kimbus" Version="2.0.1" />
...
@@ -78,17 +78,17 @@
...
@@ -78,17 +78,17 @@
<PackageReference Include="Microsoft.Extensions.Options" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="5.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.8" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.8" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="5.0.2" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="5.0.2" />
<PackageReference Include="MQTTnet" Version="3.0.1
5
" />
<PackageReference Include="MQTTnet" Version="3.0.1
6
" />
<PackageReference Include="MQTTnet.AspNetCore" Version="3.0.1
5
" />
<PackageReference Include="MQTTnet.AspNetCore" Version="3.0.1
6
" />
<PackageReference Include="MQTTnet.AspNetCoreEx" Version="3.0.15" />
<PackageReference Include="MQTTnet.AspNetCoreEx" Version="3.0.15" />
<PackageReference Include="MQTTnet.Extensions.Rpc" Version="3.0.1
5
" />
<PackageReference Include="MQTTnet.Extensions.Rpc" Version="3.0.1
6
" />
<PackageReference Include="NetMQ" Version="4.0.1.6" />
<PackageReference Include="NetMQ" Version="4.0.1.6" />
<PackageReference Include="NSwag.AspNetCore" Version="13.11.3" />
<PackageReference Include="NSwag.AspNetCore" Version="13.11.3" />
<PackageReference Include="PinusDB" Version="1.0.10" />
<PackageReference Include="PinusDB" Version="1.0.10" />
<PackageReference Include="PinusDB.HealthChecks" Version="1.0.10" />
<PackageReference Include="PinusDB.HealthChecks" Version="1.0.10" />
<PackageReference Include="ProxyKit" Version="2.3.4" />
<PackageReference Include="ProxyKit" Version="2.3.4" />
<PackageReference Include="Quartz.Serialization.Json" Version="3.3.2" />
<PackageReference Include="Quartz.Serialization.Json" Version="3.3.2" />
<PackageReference Include="Savorboard.CAP.InMemoryMessageQueue" Version="
3
.1.1" />
<PackageReference Include="Savorboard.CAP.InMemoryMessageQueue" Version="
5
.1.1" />
<PackageReference Include="Silkier" Version="1.0.345" />
<PackageReference Include="Silkier" Version="1.0.345" />
<PackageReference Include="Silkier.AspNetCore" Version="1.0.345" />
<PackageReference Include="Silkier.AspNetCore" Version="1.0.345" />
<PackageReference Include="Silkier.EFCore" Version="1.0.345" />
<PackageReference Include="Silkier.EFCore" Version="1.0.345" />
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
<PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.Abstractions" Version="5.0.0" />
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="5.0.1" />
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="5.0.1" />
<PackageReference Include="MQTTnet.Extensions.ManagedClient" Version="3.0.1
5
" />
<PackageReference Include="MQTTnet.Extensions.ManagedClient" Version="3.0.1
6
" />
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<Compile Remove="Migrations\**" />
<Compile Remove="Migrations\**" />
...
...
README.md
浏览文件 @
d95bd9d2
...
@@ -6,6 +6,10 @@
...
@@ -6,6 +6,10 @@
IoTSharp is an open-source IoT platform for data collection, processing, visualization, and device management.
IoTSharp is an open-source IoT platform for data collection, processing, visualization, and device management.
## Here is a blessing for all users of this project
*
May you do good and not evil.
*
May you find forgiveness for yourself and forgive others.
*
May you share freely, never taking more than you give.
## How to install IoTSharp using docker-compose ?
## How to install IoTSharp using docker-compose ?
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录