Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
IoTSharp
IoTSharp
提交
2567751f
IoTSharp
项目概览
IoTSharp
/
IoTSharp
9 个月 前同步成功
通知
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,体验更适合开发者的 AI 搜索 >>
提交
2567751f
编写于
8月 22, 2022
作者:
麦壳饼
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://github.com/IoTSharp/IoTSharp
上级
ffa8673d
7e854d56
变更
16
展开全部
隐藏空白更改
内联
并排
Showing
16 changed file
with
1151 addition
and
678 deletion
+1151
-678
.config/dotnet-tools.json
.config/dotnet-tools.json
+12
-0
IoTSharp.Data.Sqlite/IoTSharpDataBuilderExtensions.cs
IoTSharp.Data.Sqlite/IoTSharpDataBuilderExtensions.cs
+13
-0
IoTSharp.Data.Sqlite/Migrations/20220812062443_CreateIdentitySchema.Designer.cs
...igrations/20220812062443_CreateIdentitySchema.Designer.cs
+444
-222
IoTSharp.Data.Sqlite/Migrations/20220812062443_CreateIdentitySchema.cs
....Sqlite/Migrations/20220812062443_CreateIdentitySchema.cs
+220
-220
IoTSharp.Data.Sqlite/Migrations/ApplicationDbContextModelSnapshot.cs
...ta.Sqlite/Migrations/ApplicationDbContextModelSnapshot.cs
+443
-221
IoTSharp.Data.Sqlite/SqliteModelBuilderOptions.cs
IoTSharp.Data.Sqlite/SqliteModelBuilderOptions.cs
+2
-1
IoTSharp.sln
IoTSharp.sln
+1
-0
IoTSharp/ClientApp/src/app/routes/rules/conditionbuilder/conditionbuilder.component.html
...es/rules/conditionbuilder/conditionbuilder.component.html
+6
-6
IoTSharp/ClientApp/src/app/routes/rules/diagram/diagram.component.html
...ntApp/src/app/routes/rules/diagram/diagram.component.html
+1
-1
IoTSharp/ClientApp/src/assets/custom/gh/customContextPad.js
IoTSharp/ClientApp/src/assets/custom/gh/customContextPad.js
+2
-2
IoTSharp/IoTSharp.csproj
IoTSharp/IoTSharp.csproj
+2
-1
tools/ef_db_drop.cmd
tools/ef_db_drop.cmd
+1
-1
tools/ef_mg_add.cmd
tools/ef_mg_add.cmd
+1
-1
tools/ef_mg_remove.cmd
tools/ef_mg_remove.cmd
+1
-1
tools/setnpm.cmd
tools/setnpm.cmd
+1
-0
tools/upgrade_ef.cmd
tools/upgrade_ef.cmd
+1
-1
未找到文件。
.config/dotnet-tools.json
0 → 100644
浏览文件 @
2567751f
{
"version"
:
1
,
"isRoot"
:
true
,
"tools"
:
{
"dotnet-ef"
:
{
"version"
:
"6.0.8"
,
"commands"
:
[
"dotnet-ef"
]
}
}
}
\ No newline at end of file
IoTSharp.Data.Sqlite/IoTSharpDataBuilderExtensions.cs
浏览文件 @
2567751f
...
...
@@ -5,6 +5,7 @@ using IoTSharp.Data.Sqlite;
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.Extensions.DependencyInjection
;
using
System
;
using
System.Linq
;
namespace
Microsoft.Extensions.DependencyInjection
{
...
...
@@ -32,5 +33,17 @@ namespace Microsoft.Extensions.DependencyInjection
builder
.
AddDataSource
(
connectionString
,
ReadWriteType
.
Read
|
ReadWriteType
.
Write
,
DatabaseType
.
SQLite
);
builder
.
SetDateSharding
<
TelemetryData
>(
nameof
(
TelemetryData
.
DateTime
),
expandBy
,
DateTime
.
Now
);
}
public
static
void
SetCaseInsensitiveSearchesForSQLite
(
this
ModelBuilder
modelBuilder
)
{
modelBuilder
.
UseCollation
(
"NOCASE"
);
foreach
(
var
property
in
modelBuilder
.
Model
.
GetEntityTypes
()
.
SelectMany
(
t
=>
t
.
GetProperties
())
.
Where
(
p
=>
p
.
ClrType
==
typeof
(
string
)))
{
property
.
SetCollation
(
"NOCASE"
);
}
}
}
}
IoTSharp.Data.Sqlite/Migrations/202208
0814470
3_CreateIdentitySchema.Designer.cs
→
IoTSharp.Data.Sqlite/Migrations/202208
1206244
3_CreateIdentitySchema.Designer.cs
浏览文件 @
2567751f
此差异已折叠。
点击以展开。
IoTSharp.Data.Sqlite/Migrations/202208
0814470
3_CreateIdentitySchema.cs
→
IoTSharp.Data.Sqlite/Migrations/202208
1206244
3_CreateIdentitySchema.cs
浏览文件 @
2567751f
此差异已折叠。
点击以展开。
IoTSharp.Data.Sqlite/Migrations/ApplicationDbContextModelSnapshot.cs
浏览文件 @
2567751f
此差异已折叠。
点击以展开。
IoTSharp.Data.Sqlite/SqliteModelBuilderOptions.cs
浏览文件 @
2567751f
using
Microsoft.EntityFrameworkCore
;
using
Microsoft.EntityFrameworkCore.Infrastructure
;
using
System
;
using
Microsoft.Extensions.DependencyInjection
;
namespace
IoTSharp.Data.Sqlite
{
...
...
@@ -14,7 +15,7 @@ namespace IoTSharp.Data.Sqlite
public
void
OnModelCreating
(
ModelBuilder
modelBuilder
)
{
modelBuilder
.
SetCaseInsensitiveSearchesForSQLite
();
}
}
}
\ No newline at end of file
IoTSharp.sln
浏览文件 @
2567751f
...
...
@@ -29,6 +29,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tools", "Tools", "{3048484A
tools\ef_mg_add.cmd = tools\ef_mg_add.cmd
tools\ef_mg_remove.cmd = tools\ef_mg_remove.cmd
tools\upgrade_ef.cmd = tools\upgrade_ef.cmd
setnpm.cmd = setnpm.cmd
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "IoTSharp.SDKs", "IoTSharp.SDKs", "{86E9E4E0-24A0-4C89-A98B-B0D41C75B4F1}"
...
...
IoTSharp/ClientApp/src/app/routes/rules/conditionbuilder/conditionbuilder.component.html
浏览文件 @
2567751f
...
...
@@ -19,7 +19,7 @@
<nz-tree-node
*nzTreeNodeDef=
"let node; when: hasChild"
nzTreeNodeIndentLine
>
<nz-tree-node-toggle>
<
i
nz-icon
nzType=
"caret-down"
nzTreeNodeToggleRotateIcon
></i
>
<
em
nz-icon
nzType=
"caret-down"
nzTreeNodeToggleRotateIcon
></em
>
</nz-tree-node-toggle>
<nz-select
[(ngModel)]=
"node.field"
>
...
...
@@ -40,11 +40,11 @@
<nz-option
nzLabel=
"OR"
nzValue=
"||"
></nz-option>
</nz-select>
<button
nz-button
nzType=
"text"
nzSize=
"small"
(click)=
"addNewNode(node)"
>
<
i
nz-icon
nzType=
"plus"
nzTheme=
"outline"
></i
>
<
em
nz-icon
nzType=
"plus"
nzTheme=
"outline"
></em
>
</button>
<button
nz-button
nzType=
"text"
nzSize=
"small"
(click)=
"delete(node)"
>
<
i
nz-icon
nzType=
"minus"
></i
>
<
em
nz-icon
nzType=
"minus"
></em
>
</button>
</nz-tree-node>
</nz-tree-view>
...
...
@@ -53,10 +53,10 @@
<textarea
nz-input
placeholder=
"test expression"
[(ngModel)]=
"expression"
[nzAutosize]=
"{ minRows: 3, maxRows: 5 }"
></textarea>
<ng-template
#suffixTemplateInfo
>
<
i
nz-icon
nz-tooltip
nzTooltipTitle=
""
nzType=
"info-circle"
></i
>
<
em
nz-icon
nz-tooltip
nzTooltipTitle=
""
nzType=
"info-circle"
></em
>
</ng-template>
</nz-row>
<nz-row
class=
"customrow"
>
<button
nz-button
nzType=
"primary"
nzShape=
"round"
(click)=
"create()"
><
i
nz-icon
nzType=
"download"
></i
>
生成
</button>
<button
nz-button
nzType=
"primary"
nzShape=
"round"
(click)=
"close()"
><
i
nz-icon
nzType=
"download"
></i
>
关闭
</button></nz-row>
<button
nz-button
nzType=
"primary"
nzShape=
"round"
(click)=
"create()"
><
em
nz-icon
nzType=
"download"
></em
>
生成
</button>
<button
nz-button
nzType=
"primary"
nzShape=
"round"
(click)=
"close()"
><
em
nz-icon
nzType=
"download"
></em
>
关闭
</button></nz-row>
IoTSharp/ClientApp/src/app/routes/rules/diagram/diagram.component.html
浏览文件 @
2567751f
...
...
@@ -39,7 +39,7 @@
</nz-input-group>
<ng-template
#suffixTemplateInfo
>
<
i
nz-icon
nz-tooltip
nzTooltipTitle=
""
nzType=
"info-circle"
(click)=
"showce()"
></i
>
<
em
nz-icon
nz-tooltip
nzTooltipTitle=
""
nzType=
"info-circle"
(click)=
"showce()"
></em
>
</ng-template>
</se>
...
...
IoTSharp/ClientApp/src/assets/custom/gh/customContextPad.js
浏览文件 @
2567751f
...
...
@@ -34,7 +34,7 @@ export default class CustomContextPad {
autoPlace
.
append
(
element
,
shape
);
}
else
{
appendBuiltinShapeStart
(
event
,
element
);
appendBuiltinShapeStart
(
event
);
}
};
}
...
...
@@ -77,4 +77,4 @@ CustomContextPad.$inject = [
'
elementFactory
'
,
'
injector
'
,
'
translate
'
];
\ No newline at end of file
];
IoTSharp/IoTSharp.csproj
浏览文件 @
2567751f
...
...
@@ -92,6 +92,7 @@
<PackageReference Include="IoTSharp.HealthChecks.Taos" Version="2.0.478" />
<PackageReference Include="MaiKeBing.HostedService.ZeroMQ" Version="1.0.35" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="6.0.7" />
<PackageReference Include="Microsoft.AspNetCore.SpaProxy" Version="6.0.8" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.16.1" />
<PackageReference Include="MQTTnet" Version="4.1.0.247" />
<PackageReference Include="MQTTnet.AspNetCore" Version="4.1.0.247" />
...
...
@@ -106,7 +107,7 @@
<PackageReference Include="Silkier.AspNetCore" Version="1.0.592" />
<PackageReference Include="Silkier.EFCore" Version="1.0.592" />
<PackageReference Include="SilkierQuartz" Version="5.0.356" />
<PackageReference Include="SkiaSharp" Version="2.88.0" />
<PackageReference Include="SkiaSharp
.NativeAssets.Linux.NoDependencies
" Version="2.88.0" />
<PackageReference Include="System.Text.Encoding.CodePages" Version="6.0.0">
<TreatAsUsed>true</TreatAsUsed>
</PackageReference>
...
...
tools/ef_db_drop.cmd
浏览文件 @
2567751f
...
...
@@ -2,4 +2,4 @@ echo off
cls
echo
Drop
to
IoTSharp
.Data.
%
1
set
ASPNETCORE_ENVIRONMENT
=
%
1
dotnet
ef
database
drop
--context
IoTSharp
.Data.ApplicationDbContext
--startup-project
..\IoTSharp\IoTSharp.csproj
--project
..\IoTSharp.Data.
%
1
\IoTSharp.Data.
%
1
.csproj
\ No newline at end of file
dotnet
dotnet
-ef
database
drop
--context
IoTSharp
.Data.ApplicationDbContext
--startup-project
..\IoTSharp\IoTSharp.csproj
--project
..\IoTSharp.Data.
%
1
\IoTSharp.Data.
%
1
.csproj
\ No newline at end of file
tools/ef_mg_add.cmd
浏览文件 @
2567751f
...
...
@@ -2,4 +2,4 @@ echo off
cls
echo
Add
a
migration
name
is
%
2
to
IoTSharp
.Data.
%
1
set
ASPNETCORE_ENVIRONMENT
=
%
1
dotnet
ef
migrations
add
%
2
--context
IoTSharp
.Data.ApplicationDbContext
--startup-project
..\IoTSharp\IoTSharp.csproj
--project
..\IoTSharp.Data.
%
1
\IoTSharp.Data.
%
1
.csproj
\ No newline at end of file
dotnet
dotnet
-ef
migrations
add
%
2
--context
IoTSharp
.Data.ApplicationDbContext
--startup-project
..\IoTSharp\IoTSharp.csproj
--project
..\IoTSharp.Data.
%
1
\IoTSharp.Data.
%
1
.csproj
\ No newline at end of file
tools/ef_mg_remove.cmd
浏览文件 @
2567751f
...
...
@@ -2,4 +2,4 @@ echo off
cls
echo
remove
a
migration
from
IoTSharp
.Data.
%
1
set
ASPNETCORE_ENVIRONMENT
=
%
1
dotnet
ef
migrations
remove
--context
IoTSharp
.Data.ApplicationDbContext
--startup-project
..\IoTSharp\IoTSharp.csproj
--project
..\IoTSharp.Data.
%
1
\IoTSharp.Data.
%
1
.csproj
\ No newline at end of file
dotnet
dotnet
-ef
migrations
remove
--context
IoTSharp
.Data.ApplicationDbContext
--startup-project
..\IoTSharp\IoTSharp.csproj
--project
..\IoTSharp.Data.
%
1
\IoTSharp.Data.
%
1
.csproj
\ No newline at end of file
tools/setnpm.cmd
0 → 100644
浏览文件 @
2567751f
npm
config
set
registry
https
://registry.npmmirror.com
\ No newline at end of file
tools/upgrade_ef.cmd
浏览文件 @
2567751f
dotnet
tool
update
--global
dotnet
-ef
\ No newline at end of file
dotnet
tool
update
dotnet
-ef
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录