-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Asset Manager Parcel prod.js -> min.js (#17552)
- Loading branch information
Showing
50 changed files
with
289 additions
and
261 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/OrchardCore.Modules/OrchardCore.AuditTrail/Views/AuditTrailAdminList.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/OrchardCore.Modules/OrchardCore.ContentTypes/Assets/js/autocomplete.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { getTechnicalName } from '@orchardcore/theadmin/js/TheAdmin/TheAdmin'; | ||
|
||
const nameElement = document.querySelector('[data-name]') as HTMLInputElement; | ||
const displayNameElement = document.querySelector('[data-displayname]') as HTMLInputElement; | ||
|
||
let nameAltered = false; | ||
|
||
nameElement.addEventListener('keydown', () => { | ||
nameAltered = true; | ||
}); | ||
|
||
const compute = () => { | ||
// stop processing automatically if altered by the user | ||
if (nameAltered) { | ||
return true; | ||
} | ||
|
||
nameElement.value = getTechnicalName(displayNameElement.value); | ||
}; | ||
|
||
displayNameElement.addEventListener('keyup', compute); | ||
displayNameElement.addEventListener('blur', compute); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...OrchardCore.Modules/OrchardCore.ContentTypes/wwwroot/Scripts/autocomplete/autocomplete.js
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...ardCore.Modules/OrchardCore.ContentTypes/wwwroot/Scripts/autocomplete/autocomplete.js.map
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...ardCore.Modules/OrchardCore.ContentTypes/wwwroot/Scripts/autocomplete/autocomplete.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/OrchardCore.Modules/OrchardCore.Contents/Views/ContentsAdminList.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.