Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
azure
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
韦鹏飞
azure
Commits
0fccb483
Commit
0fccb483
authored
2 years ago
by
韦鹏飞
Browse files
Options
Downloads
Patches
Plain Diff
tmp
parent
4e702d02
Branches
Branches containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
azure_m/azure_m/azure_m/Services/Utils.cs
+13
-0
13 additions, 0 deletions
azure_m/azure_m/azure_m/Services/Utils.cs
azure_m/azure_m/azure_m/Views/AllResourcesPage.xaml
+26
-7
26 additions, 7 deletions
azure_m/azure_m/azure_m/Views/AllResourcesPage.xaml
with
39 additions
and
7 deletions
azure_m/azure_m/azure_m/Services/Utils.cs
+
13
−
0
View file @
0fccb483
...
...
@@ -29,6 +29,19 @@ namespace azure_m.Services
{
return
req
.
SetQueryParam
(
"api-version"
,
apiVersion
);
}
public
static
class
ImgMap
{
public
static
string
networkWatchers
=
""
;
public
static
string
storageAccounts
=
""
;
public
static
string
disks
=
""
;
public
static
string
sshPublicKeys
=
""
;
public
static
string
virtualMachines
=
""
;
public
static
string
networkInterfaces
=
""
;
public
static
string
netWorkSecurityGroups
=
""
;
public
static
string
publicIPAddresses
=
""
;
public
static
string
virtualNetworks
=
""
;
}
}
}
This diff is collapsed.
Click to expand it.
azure_m/azure_m/azure_m/Views/AllResourcesPage.xaml
+
26
−
7
View file @
0fccb483
...
...
@@ -5,6 +5,28 @@
Title=
"{Binding Title}"
xmlns:local=
"clr-namespace:azure_m.ViewModels"
xmlns:model=
"clr-namespace:azure_m.Models"
>
<ContentPage.Resources>
<Style
TargetType=
"StackLayout"
x:Key=
"resourceCard"
>
<Setter
Property=
"Padding"
Value=
"5,5,5,5"
/>
<Setter
Property=
"VerticalOptions"
Value=
"Center"
/>
</Style>
<Style
TargetType=
"StackLayout"
x:Key=
"resourceCardInner"
>
<Setter
Property=
"HeightRequest"
Value=
"100"
/>
<Setter
Property=
"BackgroundColor"
Value=
"{StaticResource Primary}"
/>
</Style>
</ContentPage.Resources>
<ContentPage.ToolbarItems>
<ToolbarItem
Text=
"test"
/>
</ContentPage.ToolbarItems>
...
...
@@ -30,10 +52,6 @@
<Button
Text=
"筛选器"
/>
</StackLayout>
<StackLayout>
<Button
Text=
"test api"
Command=
"{Binding LoadResourcesCommand}"
/>
</StackLayout>
<RefreshView
x:DataType=
"local:ResourceViewModel"
...
...
@@ -47,15 +65,16 @@
<CollectionView.ItemTemplate>
<DataTemplate>
<StackLayout
Padding=
"10"
Style=
"{StaticResource resourceCard}"
x:DataType=
"model:Resource"
>
<Frame
BorderColor=
"Gray"
HasShadow=
"True"
Padding=
"5"
>
<StackLayout
BackgroundColor=
"{StaticResource Primary}"
>
<StackLayout
Style=
"{StaticResource resourceCardInner}"
>
<Label
Text=
"{Binding
nam
e}"
Text=
"{Binding
typ
e}"
FontSize=
"20"
/>
<Label
Text=
"{Binding location}"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment