Skip to content

Commit

Permalink
Remove social dropdown and clang-specific features, use explore.dgnu.…
Browse files Browse the repository at this point in the history
…org in privacy policy.
  • Loading branch information
ibuclaw committed Dec 6, 2023
1 parent 678ac05 commit becdc28
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 22 deletions.
2 changes: 1 addition & 1 deletion etc/scripts/parsed-pug/parsed_pug_file.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const path = require('path');
// just update the hash here.
const expectedHashes = {
cookies: '4bc6a34572c2eb78',
privacy: 'dcc79570ddaf4bd8',
privacy: '7fe2d31d105d1a0c',
};

function _execGit(command) {
Expand Down
8 changes: 4 additions & 4 deletions static/generated/privacy.pug
Original file line number Diff line number Diff line change
Expand Up @@ -71,17 +71,17 @@ html(lang="en")
p
| If you choose to share your code using the "Share" dropdown, then the user interface state including the source code
| is stored. For a "Full" link, this information is encoded into the URL as a URL hash (e.g.
| #[code https://godbolt.org/#ui_state_and_code]). For short URLs, the interface state is stored on
| #[code https://explore.dgnu.org/#ui_state_and_code]). For short URLs, the interface state is stored on
| Compiler Explorer's servers, and a shortened name uniquely
| referring to this data is returned. The shortened name comes from a secure hash of the state, and without
| knowing the name it is infeasible to access the data. Only Compiler Explorer administrators can access this data
| directly. Obfuscated IP addresses and creation time are stored alongside this data, to enable spam detection.
| Links of this form look like #[code https://godbolt.org/z/SHORTNAME].
| Links of this form look like #[code https://explore.dgnu.org/z/SHORTNAME].

p
| Prior to storing data itself, Compiler Explorer used an external URL shortening service (
a(href="https://goo.gl/" target="_blank") goo.gl
| ) and the resulting short URL was rewritten as #[code https://godbolt.org/g/SHORTURLPART].
| ) and the resulting short URL was rewritten as #[code https://explore.dgnu.org/g/SHORTURLPART].
| The storage for the user experience state in this case remains with the short URL provider,
| not Compiler Explorer.

Expand All @@ -91,7 +91,7 @@ html(lang="en")
| Compiler Explorer keeps application logs, which contain semi-anonymised IP addresses, but no other personally
| identifying information. When a long URL is clicked, the hash part of the URL is not sent to the server, so the user
| state (including the source code) is NOT exposed in the web log. If a user clicks a short URL, then the short form
| #[em is] exposed in the web log (as #[code https://godbolt.org/g/SHORTURLPART]) and from this the source code can be
| #[em is] exposed in the web log (as #[code https://explore.dgnu.org/g/SHORTURLPART]) and from this the source code can be
| retrieved. As such, if you create a short URL of your code, your source
| code and other user state can in principle be retrieved from the web log of Compiler Explorer.

Expand Down
4 changes: 0 additions & 4 deletions views/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ block prepend content
span.fa.fa-bell
div.dropdown-menu.dropdown-menu-right(aria-labelledby="policiesDropdown")
include menu-policies.pug
li.nav-item.dropdown
button.btn.btn-light.nav-link.dropdown-toggle#otherDropdown(role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") Other
div.dropdown-menu.dropdown-menu-right(aria-labelledby="otherDropdown")
include menu-other.pug

block append footer
include popups/_all
13 changes: 0 additions & 13 deletions views/templates/panes/compiler.pug
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@ mixin newPaneButton(classId, text, title, icon)
span.hideable Filter...
.dropdown-menu
include ../../options-filters
.btn-group.btn-group-sm(role="group" aria-label="Compiler additions")
button.btn.btn-sm.btn-light.show-libs(title="Include libs" aria-label="Toggle libraries dropdown")
span.fas.fa-book
span.dp-text.hideable Libraries
.btn-group.btn-group-sm(role="group" aria-label="Compiler overrides")
button.btn.btn-sm.btn-light.show-overrides(title="Overrides" aria-label="Configure overrides for standards and architectures etc")
span.fas.fa-wrench
span.dp-text.hideable Overrides
.btn-group.btn-group-sm(role="group")
button.btn.btn-sm.btn-light.dropdown-toggle.add-pane(type="button" title="Add a new pane" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="Add new element for this compiler" data-cy="new-compiler-dropdown-btn")
span.fas.fa-plus
Expand All @@ -71,11 +63,6 @@ mixin newPaneButton(classId, text, title, icon)
+newPaneButton("view-gnatdebugtree", "GNAT Debug Tree", "Show GNAT debug tree", "fas fa-tree")
+newPaneButton("view-gnatdebug", "GNAT Debug Expanded Code", "Show GNAT debug expanded code", "fas fa-tree")
+newPaneButton("view-cfg", "Control Flow Graph", "Show assembly control flow graphs", "fas fa-exchange-alt")
.btn-group.btn-group-sm(role="group")
button.btn.btn-sm.btn-light.dropdown-toggle.add-tool(type="button" title="Add tool" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" aria-label="Add tooling to this editor and compiler")
span.fas.fa-screwdriver
span.hideable Add tool...
.dropdown-menu.dropdown-menu-right.new-tool-dropdown
.monaco-placeholder
.bottom-bar.bg-light
if !embedded
Expand Down

0 comments on commit becdc28

Please sign in to comment.