datasette-edit-schema 0.8a2__py3-none-any.whl → 0.8a4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of datasette-edit-schema might be problematic. Click here for more details.

@@ -14,13 +14,14 @@ html body input[type="search"] {
14
14
  font-size: 1em;
15
15
  font-family: Helvetica, sans-serif;
16
16
  }
17
- body form .button-red {
18
- background-color: red;
19
- border-color: red;
20
- }
21
- body form .button-small {
17
+ input[type=submit].button-small {
22
18
  font-size: 0.7em;
23
19
  }
20
+ form input[type=submit].button-red {
21
+ background: red;
22
+ border-color: rgb(171, 112, 112);
23
+ }
24
+
24
25
  select {
25
26
  border: 1px solid #ccc;
26
27
  border-radius: 3px;
@@ -91,7 +92,7 @@ html body label {
91
92
  {% if can_rename_table %}
92
93
  <h2>Rename table</h2>
93
94
 
94
- <form action="{{ base_url }}-/edit-schema/{{ database.name|quote_plus }}/{{ tilde_encode(table) }}" method="post">
95
+ <form class="core" action="{{ base_url }}-/edit-schema/{{ database.name|quote_plus }}/{{ tilde_encode(table) }}" method="post">
95
96
  <input type="hidden" name="csrftoken" value="{{ csrftoken() }}">
96
97
  <p><label>New name&nbsp; <input type="text" name="name"></label>
97
98
  <input type="hidden" name="rename_table" value="1">
@@ -99,7 +100,7 @@ html body label {
99
100
  </form>
100
101
  {% endif %}
101
102
 
102
- <form action="{{ base_url }}-/edit-schema/{{ database.name|quote_plus }}/{{ tilde_encode(table) }}" method="post">
103
+ <form class="core" action="{{ base_url }}-/edit-schema/{{ database.name|quote_plus }}/{{ tilde_encode(table) }}" method="post">
103
104
  <h2>Change existing columns</h2>
104
105
  <ul class="sortable-columns">
105
106
  {% for column in columns %}
@@ -134,7 +135,7 @@ html body label {
134
135
 
135
136
  <h2>Add a column</h2>
136
137
 
137
- <form action="{{ base_url }}-/edit-schema/{{ database.name|quote_plus }}/{{ tilde_encode(table) }}" method="post">
138
+ <form class="core" action="{{ base_url }}-/edit-schema/{{ database.name|quote_plus }}/{{ tilde_encode(table) }}" method="post">
138
139
  <input type="hidden" name="csrftoken" value="{{ csrftoken() }}">
139
140
  <input type="hidden" name="add_column" value="1">
140
141
  <p><label>Name &nbsp;<input type="text" name="name"></label>
@@ -156,7 +157,7 @@ table.foreign-key-options td {
156
157
  }
157
158
  </style>
158
159
 
159
- <form action="{{ base_url }}-/edit-schema/{{ database.name|quote_plus }}/{{ tilde_encode(table) }}" method="post">
160
+ <form class="core" action="{{ base_url }}-/edit-schema/{{ database.name|quote_plus }}/{{ tilde_encode(table) }}" method="post">
160
161
  <input type="hidden" name="csrftoken" value="{{ csrftoken() }}">
161
162
  <input type="hidden" name="action" value="update_foreign_keys">
162
163
  <table class="foreign-key-options">
@@ -180,7 +181,7 @@ table.foreign-key-options td {
180
181
 
181
182
  <p>The primary key column uniquely identifies each row in the table.</p>
182
183
 
183
- <form action="{{ base_url }}-/edit-schema/{{ database.name|quote_plus }}/{{ tilde_encode(table) }}" method="post">
184
+ <form class="core" action="{{ base_url }}-/edit-schema/{{ database.name|quote_plus }}/{{ tilde_encode(table) }}" method="post">
184
185
  <input type="hidden" name="csrftoken" value="{{ csrftoken() }}">
185
186
  <input type="hidden" name="action" value="update_primary_key">
186
187
  <label for="primary_key">Primary key column &nbsp;</label>
@@ -201,7 +202,7 @@ table.foreign-key-options td {
201
202
 
202
203
  <p>Indexes can speed up filter and sort operations against indexed columns.</p>
203
204
 
204
- <form action="{{ base_url }}-/edit-schema/{{ database.name|quote_plus }}/{{ tilde_encode(table) }}" method="post">
205
+ <form class="core" action="{{ base_url }}-/edit-schema/{{ database.name|quote_plus }}/{{ tilde_encode(table) }}" method="post">
205
206
  <input type="hidden" name="csrftoken" value="{{ csrftoken() }}">
206
207
  {% if non_primary_key_columns %}
207
208
  <p><label for="id_add_index_column">
@@ -233,7 +234,7 @@ table.foreign-key-options td {
233
234
  {% if can_drop_table %}
234
235
  <h2>Drop table</h2>
235
236
 
236
- <form id="drop-table-form" action="{{ base_url }}-/edit-schema/{{ database.name|quote_plus }}/{{ tilde_encode(table) }}" method="post">
237
+ <form class="core" id="drop-table-form" action="{{ base_url }}-/edit-schema/{{ database.name|quote_plus }}/{{ tilde_encode(table) }}" method="post">
237
238
  <input type="hidden" name="csrftoken" value="{{ csrftoken() }}">
238
239
  <input type="hidden" name="drop_table" value="1">
239
240
  <input type="submit" class="button-red" value="Drop this table">
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: datasette-edit-schema
3
- Version: 0.8a2
3
+ Version: 0.8a4
4
4
  Summary: Datasette plugin for modifying table schemas
5
5
  Author: Simon Willison
6
6
  License: Apache-2.0
@@ -13,13 +13,14 @@ Classifier: License :: OSI Approved :: Apache Software License
13
13
  Requires-Python: >=3.8
14
14
  Description-Content-Type: text/markdown
15
15
  License-File: LICENSE
16
- Requires-Dist: datasette >=1.0a13
17
- Requires-Dist: sqlite-utils >=3.35
16
+ Requires-Dist: datasette==1.0a19
17
+ Requires-Dist: sqlite-utils>=3.35
18
18
  Provides-Extra: test
19
- Requires-Dist: pytest ; extra == 'test'
20
- Requires-Dist: pytest-asyncio ; extra == 'test'
21
- Requires-Dist: beautifulsoup4 ; extra == 'test'
22
- Requires-Dist: html5lib ; extra == 'test'
19
+ Requires-Dist: pytest; extra == "test"
20
+ Requires-Dist: pytest-asyncio; extra == "test"
21
+ Requires-Dist: beautifulsoup4; extra == "test"
22
+ Requires-Dist: html5lib; extra == "test"
23
+ Dynamic: license-file
23
24
 
24
25
  # datasette-edit-schema
25
26
 
@@ -5,10 +5,10 @@ datasette_edit_schema/static/draggable.1.0.0-beta.11.bundle.min.js,sha256=JlHRb5
5
5
  datasette_edit_schema/templates/edit_schema_create_table.html,sha256=cUiS_LucrtvwpD_Nfb6ER4uZyhzTtPMzl3vkqhx9iGQ,3777
6
6
  datasette_edit_schema/templates/edit_schema_database.html,sha256=gPPBVgTzdAWg4JgwrTfwHWdGBb89cObeqWneng4wQTk,543
7
7
  datasette_edit_schema/templates/edit_schema_index.html,sha256=eNSOFFwv1gsOYP3fNQqcPh0gU5Ny5sDnngVZT5XiUNA,474
8
- datasette_edit_schema/templates/edit_schema_table.html,sha256=8Sd8GjtTYhNXCQAWQuLdCg_awUZmCJD82qyM0RXkkK4,9406
9
- datasette_edit_schema-0.8a2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
10
- datasette_edit_schema-0.8a2.dist-info/METADATA,sha256=nukoMkEvm9sf1Pt60nLvKVi4m64VWZLkE1Un_F4qUc0,5150
11
- datasette_edit_schema-0.8a2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
12
- datasette_edit_schema-0.8a2.dist-info/entry_points.txt,sha256=1-FeujFVTui7tFNBdz3hN5x4vRoanaAydYF5ljYsvp8,48
13
- datasette_edit_schema-0.8a2.dist-info/top_level.txt,sha256=Cbx3sgneHtcDDxV5SVL8IyU8JvsSdXgpmZqw4oDuOzM,22
14
- datasette_edit_schema-0.8a2.dist-info/RECORD,,
8
+ datasette_edit_schema/templates/edit_schema_table.html,sha256=FOTNrw6yN7hIjUqhMXRmipJ4IxkjM5ptG2hI2tM8PZ0,9528
9
+ datasette_edit_schema-0.8a4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
10
+ datasette_edit_schema-0.8a4.dist-info/METADATA,sha256=8IgtTTwJmOeb8DGADCxwhmgR0rfsQOQMQvXPBM3BrGQ,5166
11
+ datasette_edit_schema-0.8a4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ datasette_edit_schema-0.8a4.dist-info/entry_points.txt,sha256=1-FeujFVTui7tFNBdz3hN5x4vRoanaAydYF5ljYsvp8,48
13
+ datasette_edit_schema-0.8a4.dist-info/top_level.txt,sha256=Cbx3sgneHtcDDxV5SVL8IyU8JvsSdXgpmZqw4oDuOzM,22
14
+ datasette_edit_schema-0.8a4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5