Skip to content

Commit 4d2afe5

Browse files
authored
Merge pull request #19 from umbraco/feature/google-compliance
Feature/google compliance
2 parents 64b57fd + c9b81ab commit 4d2afe5

File tree

6 files changed

+15
-26
lines changed

6 files changed

+15
-26
lines changed

azure-pipeline - SEO.GoogleSearchConsole.URLInspectionTool.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
trigger:
2-
- main
2+
- feature/google-compliance
33

44
pool:
55
vmImage: 'windows-latest'
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
.w25r { width: 25rem;}
1+
.w25r { width: 25rem;}
2+
3+
.signin {
4+
display: inline-block;
5+
width: 52%;
6+
}
7+
8+
.disabled { pointer-events: none; }

src/Umbraco.Cms.Integrations.SEO.GoogleSearchConsole.UrlInspectionTool/App_Plugins/UmbracoCms.Integrations/SEO/GoogleSearchConsole/URLInspectionTool/urlInspection.html

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22
<umb-load-indicator ng-if="vm.loading"></umb-load-indicator>
33
<umb-box>
44
<umb-box-header title-key="urlInspectionTool_title">
5-
<umb-button action="vm.onConnectClick()"
6-
type="button"
7-
button-style="primary"
8-
state="init"
9-
label="Connect"
10-
disabled="vm.oauthConfiguration.isConnected">
11-
</umb-button>
5+
<a href="javascript:void(0)" class="signin" ng-click="vm.onConnectClick()" ng-class="{ 'disabled': vm.oauthConfiguration.isConnected }">
6+
<img ng-if="vm.oauthConfiguration.isConnected" src="/App_Plugins/UmbracoCms.Integrations/SEO/GoogleSearchConsole/URLInspectionTool/images/btn_google_signin_dark_disabled_web.png" />
7+
<img ng-if="!vm.oauthConfiguration.isConnected" src="/App_Plugins/UmbracoCms.Integrations/SEO/GoogleSearchConsole/URLInspectionTool/images/btn_google_signin_dark_normal_web.png" />
8+
</a>
129
<umb-button action="vm.onRevokeToken()"
1310
type="button"
1411
button-style="danger"
@@ -41,7 +38,7 @@ <h5>About Google Search Console - URL Inspection API</h5>
4138
<div class="flex justify-start">
4239
<div class="w25r">
4340
<h5>Inspection URL</h5>
44-
<input type="text" class="w-100" ng-if="!vm.inspectionObj.multipleUrls" ng-model="vm.inspectionObj.inspectionUrl"
41+
<input type="text" class="w-100" ng-if="!vm.inspectionObj.multipleUrls" ng-model="vm.inspectionObj.inspectionUrl"
4542
no-dirty-check ng-disabled="!vm.inspectionObj.enabled" />
4643
<select ng-if="vm.inspectionObj.multipleUrls" ng-model="vm.inspectionObj.inspectionUrl" ng-change="vm.onChangeInspectionUrl()"
4744
no-dirty-check class="w-100">
@@ -50,7 +47,7 @@ <h5>Inspection URL</h5>
5047
</div>
5148
<div class="ml3 w25r">
5249
<h5>Site URL</h5>
53-
<input type="text" class="w-100" ng-model="vm.inspectionObj.siteUrl" no-dirty-check ng-disabled="!vm.inspectionObj.enabled"/>
50+
<input type="text" class="w-100" ng-model="vm.inspectionObj.siteUrl" no-dirty-check ng-disabled="!vm.inspectionObj.enabled" />
5451
</div>
5552
</div>
5653
</div>

src/Umbraco.Cms.Integrations.SEO.GoogleSearchConsole.UrlInspectionTool/Umbraco.Cms.Integrations.SEO.GoogleSearchConsole.URLInspectionTool.csproj

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,6 @@
4343
</Content>
4444
</ItemGroup>
4545

46-
<ItemGroup>
47-
<None Remove="App_Plugins\UmbracoCms.Integrations\SEO\GoogleSearchConsole\URLInspectionTool\js\url-inspection-tool.controller.js" />
48-
<None Remove="App_Plugins\UmbracoCms.Integrations\SEO\GoogleSearchConsole\URLInspectionTool\js\url-inspection-tool.resource.js" />
49-
<None Remove="App_Plugins\UmbracoCms.Integrations\SEO\GoogleSearchConsole\URLInspectionTool\lang\en-US.xml" />
50-
<None Remove="App_Plugins\UmbracoCms.Integrations\SEO\GoogleSearchConsole\URLInspectionTool\package.manifest" />
51-
<None Remove="App_Plugins\UmbracoCms.Integrations\SEO\GoogleSearchConsole\URLInspectionTool\urlInspection.css" />
52-
<None Remove="App_Plugins\UmbracoCms.Integrations\SEO\GoogleSearchConsole\URLInspectionTool\urlInspection.html" />
53-
</ItemGroup>
54-
55-
<ItemGroup>
56-
<Content Update="App_Plugins\UmbracoCms.Integrations\SEO\GoogleSearchConsole\URLInspectionTool\lang\en-US.xml">
57-
<PackagePath>App_Plugins\UmbracoCms.Integrations\SEO\GoogleSearchConsole\URLInspectionTool\</PackagePath>
58-
</Content>
59-
</ItemGroup>
60-
6146
<Target Name="RemoveLuceneAnalyzer" BeforeTargets="CoreCompile">
6247
<ItemGroup>
6348
<Analyzer Remove="@(Analyzer)" Condition="%(FileName) == 'Lucene.Net.CodeAnalysis.CSharp'" />

0 commit comments

Comments
 (0)