From: Perfectfire33 Date: Wed, 29 Jun 2022 02:32:38 +0000 (-0400) Subject: Copied over old code to get started X-Git-Url: http://openhouseparty.us:13001/gitweb/?a=commitdiff_plain;h=8945ed0244626e2ed0da6f3d0df3fc9d2b736aa6;p=openhouseparty.online%2F.git Copied over old code to get started --- 8945ed0244626e2ed0da6f3d0df3fc9d2b736aa6 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..15a15b2 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/flaskr.iml b/.idea/flaskr.iml new file mode 100644 index 0000000..6711606 --- /dev/null +++ b/.idea/flaskr.iml @@ -0,0 +1,11 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..ba24381 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,7 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..a73d108 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..b42d182 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,456 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + add + /pcpart_add_part + add_part + download + pcparts_list + delete_part + part_details + mediaserver_download + delete + download_ + default_path + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Item Subtitle: +
+
Item Description: +
+ +
Item Category: +
+
Item Condition: +
+
Item Condition Description: +
+
Item Cost: +
+
Item Pictures: +
+
Add Item: +
+ + + {% endif %} +
    + {% for item in items %} +
  • {{ item.item_name }}

    {{ item.item_subtitle|safe }} + {{ item.item_desc|safe }} + {{ item.item_category|safe }} + {{ item.item_condition|safe }} + {{ item.item_conditionDesc|safe }} + {{ item.item_cost|safe }} + {% else %} +
  • No Items Found! + {% endfor %} +
+{% endblock %} \ No newline at end of file diff --git a/templates/dashboard.html b/templates/dashboard.html new file mode 100644 index 0000000..4b4fd01 --- /dev/null +++ b/templates/dashboard.html @@ -0,0 +1,18 @@ +{% extends "layout.html" %} +{% block body %} + +{% endblock %} \ No newline at end of file diff --git a/templates/display_addPart_details.html b/templates/display_addPart_details.html new file mode 100644 index 0000000..b463872 --- /dev/null +++ b/templates/display_addPart_details.html @@ -0,0 +1,372 @@ +{% extends "layout.html" %} +{% block body %} +
    +
  • PC Parts - Add Part - Details

    +
    + {% if session.logged_in %} + + {% if partType == "ssd" %} +
  • Add SSD Specifics +
    + + +
    +
    Form Factor: +
    +
    Storage Capacity: +
    GB +
    Interface: +
    +
    Add Part: +
    +
    +
    + {% endif %} + + {% if partType == "ram" %} +
  • Add RAM Specifics +
    + + +
    +
    Kit Size: +
    Sticks +
    Stick Size: +
    GB +
    Speed: +
    MHz +
    Type: +
    +
    CAS Latency: +
    CL +
    Add Part: +
    +
    +
    + {% endif %} + + {% if partType == "hdd" %} +
  • Add HDD Specifics +
    + + +
    +
    Form Factor: +
    +
    Size: +
    GB +
    Interface: +
    +
    Cache: +
    MB +
    RPM: +
    +
    Add Part: +
    +
    +
    + {% endif %} + + {% if partType == "case" %} +
  • Add Case Specifics +
    + + +
    +
    Form Factor: +
    Width: Inches +
    Height: Inches +
    Length: Inches +
    5.25" Bays: +
    3.5" Bays: +
    2.5" Bays: +
    +
    80mm Fan Slots: +
    120mm Fan Slots: +
    140mm Fan Slots: +
    240mm Fan Slots: +
    Other Fan Slots: +
    +
    Front Speaker Jack: +
    Front Microphone Jack: +
    Front USB 3.0 Slots: +
    Front USB 2.0 Slots: +
    +
    Case PSU Slots: +
    Watercooler Slots: +
    +
    Add Part: +
    +
    +
    + {% endif %} + + {% if partType == "gpu" %} +
  • Add Video Card Specifics +
    + + +
    +
    VRAM Type: +
    VRAM Size: MB +
    Slot Width: Slots +
    Interface: Inches +
    6-pin Power Connectors:: +
    +
    8-pin Power Connectors:: +
    +
    Clock Speed: MHz +
    +
    Memory Clock Speed: MHz +
    Bus Bandwidth: bit +
    Crossfire: +
    SLI: +
    +
    Add Part: +
    +
    +
    + {% endif %} + + {% if partType == "psu" %} +
  • Add Power Supply Specifics +
    + + +
    +
    Wattage: Watts +
    Efficency: +
    +
    8-pin Connectors: +
    6-pin Connectors: +
    4-pin Connectors: +
    Molex Connectors: +
    SATA Connectors: +
    Floppy Connectors: +
    +
    Add Part: +
    +
    +
    + {% endif %} + + {% if partType == "os" %} +
  • Add Operating System Specifics +
    + + +
    +
    Type: +
    Bit: +
    +
    Version: +
    +
    Add Part: +
    +
    +
    + {% endif %} + + {% if partType == "cpuCool" %} +
  • Add Processor Cooler Specifics +
    + + +
    +
    Type: +
    +
    Socket List: +
    Fan Count: +
    Fan Size: mm +
    +
    Add Part: +
    +
    +
    + {% endif %} + + {% if partType == "mobo" %} +
  • Add Motherboard Specifics +
    + + +
    +
    RAM Type: +
    +
    CPU Socket: +
    DIMM Slots: +
    PCI Slots: +
    PCIEx16 Slots: +
    PCIEx8 Slots: +
    PCIEx4 Slots: +
    PCIEx1 Slots: +
    Chipset: +
    +
    Add Part: +
    +
    +
    + {% endif %} + + {% if partType == "fan" %} +
  • Add Fan Specifics +
    + + +
    +
    Fan Size: mm +
    Fan Type: +
    Fan Color: +
    +
    Add Part: +
    +
    +
    + {% endif %} + + {% if partType == "ledkit" %} +
  • Add LED Kit Specifics +
    + + +
    +
    Color: +
    Type: +
    Notes: +
    +
    Add Part: +
    +
    +
    + {% endif %} + + {% if partType == "cpu" %} +
  • Add Processor Specifics +
    + + +
    +
    Socket: +
    Cores: +
    Threads: +
    Frequency: GHz +
    L3 Cache: MB +
    Wattage: Watts +
    +
    Add Part: +
    +
    +
    + {% endif %} + {% endif %} +
      +{% endblock %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/templates/item_list.html b/templates/item_list.html new file mode 100644 index 0000000..664ac0e --- /dev/null +++ b/templates/item_list.html @@ -0,0 +1,18 @@ +{% extends "layout.html" %} +{% block body %} +
        + {% for item in items %} +
      • +

        {{ item.item_name }}

        + {{ item.item_subtitle|safe }} + {{ item.item_desc }} + {{ item.item_category|safe }} + {{ item.item_condition|safe }} + {{ item.item_conditionDesc|safe }} + {{ item.item_cost|safe }} + {% else %} +
      • + No Items Found! + {% endfor %} +
      +{% endblock %} \ No newline at end of file diff --git a/templates/layout.html b/templates/layout.html new file mode 100644 index 0000000..06c664c --- /dev/null +++ b/templates/layout.html @@ -0,0 +1,20 @@ + +Flaskr + +
      +

      Flaskr

      +
      + {% if not session.logged_in %} + Log In + {% else %} + Log Out +
      + Dashboard +
      + {% endif %} +
      + {% for message in get_flashed_messages() %} +
      {{ message }}
      + {% endfor %} + {% block body %}{% endblock %} +
      \ No newline at end of file diff --git a/templates/login.html b/templates/login.html new file mode 100644 index 0000000..a58504a --- /dev/null +++ b/templates/login.html @@ -0,0 +1,14 @@ +{% extends "layout.html" %} +{% block body %} +

      Login

      + {% if error %}

      Error: {{ error }}{% endif %} +

      +
      +
      Username: +
      +
      Password: +
      +
      +
      +
      +{% endblock %} \ No newline at end of file diff --git a/templates/mediaserver_addFile.html b/templates/mediaserver_addFile.html new file mode 100644 index 0000000..00ae620 --- /dev/null +++ b/templates/mediaserver_addFile.html @@ -0,0 +1,18 @@ +{% extends "layout.html" %} +{% block body %} + {% if session.logged_in %} + + +
      +
      +
      File Upload: +
      +
      Add File: +
      +
      +
      +
      + View Files +
      + {% endif %} +{% endblock %} \ No newline at end of file diff --git a/templates/mediaserver_file_list.html b/templates/mediaserver_file_list.html new file mode 100644 index 0000000..69ef2a3 --- /dev/null +++ b/templates/mediaserver_file_list.html @@ -0,0 +1,36 @@ +{% extends "layout.html" %} +{% block body %} +
        + {% for item in items %} +
      • +

        File Name:

        {{ item.file_name }} +
        +
        File path on server: {{ item.file_path }} + {% if item.file_size >= 1000000 %} +
        File size on server: {{ item.file_size / 1000000 }} megabytes + {% endif %} + {% if item.file_size >= 1000 %} + {% if item.file_size < 1000000 %} +
        File size on server: {{ item.file_size / 1000 }} kilobytes + {% endif %} + {% endif %} + {% if item.file_size < 1000 %} +
        File size on server: {{ item.file_size }} bytes + {% endif %} +
        File Upload Date: {{ item.file_today_date }} +
        +
        +
        + + +
        +
        + + +
        + {% else %} +
      • + No Items Found! + {% endfor %} +
      +{% endblock %} \ No newline at end of file diff --git a/templates/mediaserver_settings.html b/templates/mediaserver_settings.html new file mode 100644 index 0000000..b6c4e63 --- /dev/null +++ b/templates/mediaserver_settings.html @@ -0,0 +1,15 @@ +{% extends "layout.html" %} +{% block body %} + {% if session.logged_in %} + Upload File path on server: {{ default_upload_path[0].settings_uploadFilePath }} + +
      +
      +
      Save Location on Server: +
      +
      Save Settings: +
      +
      +
      + {% endif %} +{% endblock %} \ No newline at end of file diff --git a/templates/pcparts/select_ssd.html b/templates/pcparts/select_ssd.html new file mode 100644 index 0000000..f41d87a --- /dev/null +++ b/templates/pcparts/select_ssd.html @@ -0,0 +1,21 @@ +{% extends "layout.html" %} +{% block body %} +
        +
      • PC Parts - Solid State Drives

        +
      • List of Solid State Drives +
      • PC PART ID: {{ pcPartId }} +
        Form Factor: + {{ selected_row.ssd_formFactor }} +
        Storage Capacity: + {{ selected_row.ssd_size|safe }} MB +
        Interface: + {{ selected_row.ssd_interface }} + {% if session.logged_in %} +
        +
        Edit Part: +
        + +
        + {% endif %} +
      +{% endblock %} \ No newline at end of file diff --git a/templates/pcparts/updatePart.html b/templates/pcparts/updatePart.html new file mode 100644 index 0000000..f09d485 --- /dev/null +++ b/templates/pcparts/updatePart.html @@ -0,0 +1,44 @@ +{% extends "layout.html" %} +{% block body %} + {% if session.logged_in %} +
      +
      +
      Part Name: +
      +
      Part Type: +
      +
      Part Model Number: +
      +
      Part Price: +
      Dollars +
      Part Description: +
      +
      Part Brand: +
      +
      Part Condition: +
      +
      Part Notes: +
      +
      Part Age: +
      Years + +
      Update Part: +
      +
      +
      + {% endif %} +{% endblock %} \ No newline at end of file diff --git a/templates/pcparts/updatePart_details.html b/templates/pcparts/updatePart_details.html new file mode 100644 index 0000000..0f809f5 --- /dev/null +++ b/templates/pcparts/updatePart_details.html @@ -0,0 +1,23 @@ +{% extends "layout.html" %} +{% block body %} +
        +
      • PC Parts - Update Part - SSD

        +
      • Update Solid State Specifics +
        + {% if session.logged_in %} +
        +
        +
        Form Factor: +
        +
        Storage Capacity: +
        MB +
        Interface: +
        + +
        Update Part: +
        +
        +
        + {% endif %} +
          +{% endblock %} \ No newline at end of file diff --git a/templates/pcparts_addBuild.html b/templates/pcparts_addBuild.html new file mode 100644 index 0000000..a289aa2 --- /dev/null +++ b/templates/pcparts_addBuild.html @@ -0,0 +1,105 @@ +{% extends "layout.html" %} +{% block body %} + {% if session.logged_in %} +
          +
          +
          Build Name: +
          +
          Build Type: +
          +
          Select Motherboard: +
          +
          Select Case: +
          +
          Select PSU: +
          +
          Select RAM: +
          +
          Select Video Card: +
          +
          Select Solid State Drive: +
          +
          Select Hard Disk Drive: +
          +
          Select Processor: +
          +
          Select CPU Cooler: +
          +
          Select Hard Disk Drive: +
          +
          Select LED Kit: +
          +
          Select Operating System: +
          +
          PC Build Notes: +
          +
          Average Part Age: +
          Years +
          Color Scheme: +
          +
          Add Part: +
          +
          +
          + {% endif %} +{% endblock %} \ No newline at end of file diff --git a/templates/pcparts_addPart.html b/templates/pcparts_addPart.html new file mode 100644 index 0000000..39c3fbe --- /dev/null +++ b/templates/pcparts_addPart.html @@ -0,0 +1,50 @@ +{% extends "layout.html" %} +{% block body %} + {% if session.logged_in %} +
          +
          +
          Part Name: +
          +
          Part Type: +
          +
          Part Model Number: +
          +
          Part Price: Dollars +
          +
          Part Description: +
          +
          Part Brand: +
          +
          Part Condition: +
          +
          Part Notes: +
          +
          Part Age: +
          Years +
          PC Build: +
          +
          Add Part: +
          +
          +
          + {% endif %} +{% endblock %} \ No newline at end of file diff --git a/templates/pcparts_addPart_ssd.html b/templates/pcparts_addPart_ssd.html new file mode 100644 index 0000000..961e477 --- /dev/null +++ b/templates/pcparts_addPart_ssd.html @@ -0,0 +1,23 @@ +{% extends "layout.html" %} +{% block body %} +
            +
          • PC Parts - Add Part - SSD

            +
          • Add Solid State Specifics +
            + {% if session.logged_in %} +
            +
            +
            Form Factor: +
            +
            Storage Capacity: +
            MB +
            Interface: +
            + +
            Add Part: +
            +
            +
            + {% endif %} +
              +{% endblock %} \ No newline at end of file diff --git a/templates/pcparts_list.html b/templates/pcparts_list.html new file mode 100644 index 0000000..3a3207f --- /dev/null +++ b/templates/pcparts_list.html @@ -0,0 +1,34 @@ +{% extends "layout.html" %} +{% block body %} +
                + {% for item in items %} +
              • +

                Part Name: {{ item.pcPart_name }}

                +
                +
                Part Type: {{ item.pcPart_type|safe }} +
                Part Model Number: {{ item.pcPart_modelNumber }} +
                Part Price: ${{ item.pcPart_price }} +
                Part Description: +
                {{ item.pcPart_desc }} +
                Part Brand: {{ item.pcPart_brand }} +
                Part Condition: +
                {{ item.pcPart_condition }} +
                Part Notes: +
                {{ item.pcPart_notes }} +
                Part Age: {{ item.pcPart_age }} years +
                +
                +
                + + +
                +
                + + +
                + {% else %} +
              • + No Items Found! + {% endfor %} +
              +{% endblock %} \ No newline at end of file diff --git a/templates/pcparts_listBuilds.html b/templates/pcparts_listBuilds.html new file mode 100644 index 0000000..51324a4 --- /dev/null +++ b/templates/pcparts_listBuilds.html @@ -0,0 +1,28 @@ +{% extends "layout.html" %} +{% block body %} +
                + {% for pcBuild in pcBuildList %} +
              • +

                Build Name: {{ pcBuild.pcBuild_name }}

                +
                +
                Type: {{ pcBuild.pcBuild_type|safe }} +
                Avg Part Age: {{ pcBuild.pcBuild_avgPartAge }} years +
                Color Scheme: {{ pcBuild.pcBuild_colorScheme }} +
                Notes: +
                {{ pcBuild.pcBuild_notes }} +
                +
                +
                + + +
                +
                + + +
                + {% else %} +
              • + No Items Found! + {% endfor %} +
              +{% endblock %} \ No newline at end of file