Warning, /maui/bonsai/src/views/CloneDialog.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.15 0002 import QtQuick.Controls 2.15 0003 import QtQuick.Layouts 1.12 0004 0005 import org.mauikit.controls 1.3 as Maui 0006 import org.mauikit.filebrowsing 1.3 as FB 0007 import org.maui.bonsai 1.0 as Bonsai 0008 0009 Maui.PopupPage 0010 { 0011 id: control 0012 title: i18n("Git URL") 0013 maxWidth: 600 0014 persistent: false 0015 0016 actions: [ 0017 Action 0018 { 0019 text: i18n("Clone") 0020 onTriggered: 0021 { 0022 openProject( _pathField.text+ "/" +_nameField.text, _urlField.text) 0023 control.close() 0024 } 0025 }, 0026 0027 Action 0028 { 0029 text: i18n("Cancel") 0030 onTriggered: control.close() 0031 } 0032 ] 0033 0034 0035 Maui.SectionItem 0036 { 0037 label1.text: i18n("Repo URL") 0038 label2.text: i18n("Remote repo URL") 0039 columns: 1 0040 TextField 0041 { 0042 id: _urlField 0043 Layout.fillWidth: true 0044 placeholderText: i18n("URL") 0045 } 0046 } 0047 0048 0049 Maui.SectionItem 0050 { 0051 label1.text: i18n("Name") 0052 label2.text: i18n("Remote name") 0053 columns: 1 0054 0055 TextField 0056 { 0057 id: _nameField 0058 text: _urlField.text.length ? _urlField.text.split("/").pop() : "" 0059 Layout.fillWidth: true 0060 placeholderText: i18n("Name") 0061 } 0062 } 0063 0064 Maui.SectionItem 0065 { 0066 label1.text: i18n("Location") 0067 label2.text: i18n("Local location to clone") 0068 columns: 1 0069 0070 TextField 0071 { 0072 id: _pathField 0073 Layout.fillWidth: true 0074 placeholderText: i18n("Path") 0075 text: Bonsai.Settings.cloneDir 0076 } 0077 } 0078 0079 Maui.SectionItem 0080 { 0081 label1.text: i18n("Bare") 0082 label2.text: i18n("Create a bare repo") 0083 0084 Switch 0085 { 0086 id: _bareSwitch 0087 } 0088 0089 } 0090 0091 Maui.SectionItem 0092 { 0093 label1.text: i18n("Recursive") 0094 label2.text: i18n("Clone submodules") 0095 0096 Switch 0097 { 0098 id: _recursiveSwitch 0099 } 0100 } 0101 }