Skip to content

Commit 0b0fbd2

Browse files
author
Steven Nguyen
authored
Merge branch 'master' into nsfw2
2 parents e0a7d33 + 0a0d7e9 commit 0b0fbd2

File tree

397 files changed

+23727
-8443
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

397 files changed

+23727
-8443
lines changed

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,13 @@ spec/fixtures/sample.txt text eol=lf
1515

1616
# Windows bash scripts are also Unix LF endings
1717
*.sh eol=lf
18+
19+
# The script executables should be LF so they can be edited on Windows
20+
script/bootstrap text eol=lf
21+
script/build text eol=lf
22+
script/cibuild text eol=lf
23+
script/clean text eol=lf
24+
script/lint text eol=lf
25+
script/postprocess-junit-results text eol=lf
26+
script/test text eol=lf
27+
script/verify-snapshot-script text eol=lf

.github/pull.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ rules: # Array of rules
33
- base: upstream_master # Required. Target branch
44
upstream: atom:master # Required. Must be in the same fork network.
55
mergeMethod: hardreset # Optional, one of [none, merge, squash, rebase, hardreset], Default: none.
6-
mergeUnstable: false # Optional, merge pull request even when the mergeable_state is not clean. Default: false
6+
mergeUnstable: true # Optional, merge pull request even when the mergeable_state is not clean. Default: false
77
label: ":arrow_heading_down: pull upstream" # Optional

.github/renovate.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"schedule": ["every weekend"],
3+
"labels": ["dependencies"],
4+
"separateMajorMinor": "false",
5+
"packageRules": [
6+
{
7+
"matchDepTypes": ["devDependencies"],
8+
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest", "lockFileMaintenance", "rollback", "bump"],
9+
"groupName": "devDependencies",
10+
"semanticCommitType": "chore",
11+
"automerge": true
12+
},
13+
{
14+
"matchDepTypes": ["dependencies"],
15+
"matchUpdateTypes": ["major", "minor", "patch", "pin", "digest", "lockFileMaintenance", "rollback", "bump"],
16+
"groupName": "dependencies",
17+
"semanticCommitType": "fix"
18+
}
19+
]
20+
}

.github/workflows/rebase.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
on:
2+
issue_comment:
3+
types: [created]
4+
name: Automatic Rebase
5+
jobs:
6+
rebase:
7+
name: Rebase
8+
if: github.event.issue.pull_request != '' && github.event.comment.author_association == 'MEMBER' && contains(github.event.comment.body, '/rebase')
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout the latest code
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Automatic Rebase
16+
uses: cirrus-actions/rebase@1.3.1
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ Thumbs.db
99
.vscode
1010
.python-version
1111
node_modules
12-
npm-debug.log
13-
debug.log
12+
*.log
1413
/tags
1514
/atom-shell/
1615
/out/
1716
docs/output
1817
docs/includes
1918
spec/fixtures/evil-files/
19+
!spec/fixtures/packages/package-with-incompatible-native-module-loaded-conditionally/node_modules/
2020
out/
2121
/electron/

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Our Pledge
44

5-
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
66

77
## Our Standards
88

CONTRIBUTING.md

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,8 @@ This project and everyone participating in it is governed by the [Atom Code of C
4040
4141
We have an official message board with a detailed FAQ and where the community chimes in with helpful advice if you have questions.
4242

43-
* [Discuss, the official Atom and Electron message board](https://discuss.atom.io)
44-
* [Atom FAQ](https://discuss.atom.io/c/faq)
45-
46-
If chat is more your speed, you can join the Atom and Electron Slack team:
47-
48-
* [Join the Atom and Electron Slack Team](https://atom-slack.herokuapp.com/)
49-
* Even though Slack is a chat service, sometimes it takes several hours for community members to respond — please be patient!
50-
* Use the `#atom` channel for general questions or discussion about Atom
51-
* Use the `#electron` channel for questions about Electron
52-
* Use the `#packages` channel for questions or discussion about writing or contributing to Atom packages (both core and community)
53-
* Use the `#ui` channel for questions and discussion about Atom UI and themes
54-
* There are many other channels available, check the channel list
43+
* [Github Discussions, the official Atom message board](https://github.com/atom/atom/discussions)
44+
* [Atom FAQ](https://flight-manual.atom.io/faq/)
5545

5646
## What should I know before I get started?
5747

@@ -82,12 +72,12 @@ Here's a list of the big ones:
8272
* [language-javascript](https://github.com/atom/language-javascript) - all bundled languages are packages too, and each one has a separate package `language-[name]`. Use these for feedback on syntax highlighting issues that only appear for a specific language.
8373
* [one-dark-ui](https://github.com/atom/one-dark-ui) - the default UI styling for anything but the text editor. UI theme packages (i.e. packages with a `-ui` suffix) provide only styling and it's possible that a bundled package is responsible for a UI issue. There are other bundled UI themes, such as [one-light-ui](https://github.com/atom/one-light-ui).
8474
* [one-dark-syntax](https://github.com/atom/one-dark-syntax) - the default syntax highlighting styles applied for all languages. There are other bundled syntax themes, such as [solarized-dark-syntax](https://github.com/atom/solarized-dark-syntax). You should use these packages for reporting issues that appear in many languages, but disappear if you change to another syntax theme.
85-
* [apm](https://github.com/atom/apm) - the `apm` command line tool (Atom Package Manager). You should use this repository for any contributions related to the `apm` tool and to publishing packages.
75+
* [apm](https://github.com/atom/apm) - the `apm` command line tool (Atom Package Manager). You should use this repository for any contributions related to the `apm` tool and for publishing packages.
8676
* [atom.io](https://github.com/atom/atom.io) - the repository for feedback on the [Atom.io website](https://atom.io) and the [Atom.io package API](https://github.com/atom/atom/blob/master/docs/apm-rest-api.md) used by [apm](https://github.com/atom/apm).
8777

8878
There are many more, but this list should be a good starting point. For more information on how to work with Atom's official packages, see [Contributing to Atom Packages][contributing-to-official-atom-packages].
8979

90-
Also, because Atom is so extensible, it's possible that a feature you've become accustomed to in Atom or an issue you're encountering isn't coming from a bundled package at all, but rather a [community package](https://atom.io/packages) you've installed. Each community package has its own repository too, the [Atom FAQ](https://discuss.atom.io/c/faq) has instructions on how to [contact the maintainers of any Atom community package or theme.](https://discuss.atom.io/t/i-have-a-question-about-a-specific-atom-community-package-where-is-the-best-place-to-ask-it/25581)
80+
Also, because Atom is so extensible, it's possible that a feature you've become accustomed to in Atom or an issue you're encountering isn't coming from a bundled package at all, but rather a [community package](https://atom.io/packages) you've installed. Each community package has its own repository too.
9181

9282
#### Package Conventions
9383

@@ -105,7 +95,7 @@ There are a few conventions that have developed over time around packages:
10595

10696
### Design Decisions
10797

108-
When we make a significant decision in how we maintain the project and what we can or cannot support, we will document it in the [atom/design-decisions repository](https://github.com/atom/design-decisions). If you have a question around how we do things, check to see if it is documented there. If it is *not* documented there, please open a new topic on [Discuss, the official Atom message board](https://discuss.atom.io) and ask your question.
98+
When we make a significant decision in how we maintain the project and what we can or cannot support, we will document it in the [atom/design-decisions repository](https://github.com/atom/design-decisions). If you have a question around how we do things, check to see if it is documented there. If it is *not* documented there, please open a new topic on [Github Discussions, the official Atom message board](https://github.com/atom/atom/discussions) and ask your question.
10999

110100
## How Can I Contribute?
111101

@@ -120,7 +110,7 @@ Before creating bug reports, please check [this list](#before-submitting-a-bug-r
120110
#### Before Submitting A Bug Report
121111

122112
* **Check the [debugging guide](https://flight-manual.atom.io/hacking-atom/sections/debugging/).** You might be able to find the cause of the problem and fix things yourself. Most importantly, check if you can reproduce the problem [in the latest version of Atom](https://flight-manual.atom.io/hacking-atom/sections/debugging/#update-to-the-latest-version), if the problem happens when you run Atom in [safe mode](https://flight-manual.atom.io/hacking-atom/sections/debugging/#check-if-the-problem-shows-up-in-safe-mode), and if you can get the desired behavior by changing [Atom's or packages' config settings](https://flight-manual.atom.io/hacking-atom/sections/debugging/#check-atom-and-package-settings).
123-
* **Check the [FAQs on the forum](https://discuss.atom.io/c/faq)** for a list of common questions and problems.
113+
* **Check the [faq](https://flight-manual.atom.io/faq/) and the [discussions](https://github.com/atom/atom/discussions)** for a list of common questions and problems.
124114
* **Determine [which repository the problem should be reported in](#atom-and-packages)**.
125115
* **Perform a [cursory search](https://github.com/search?q=+is%3Aissue+user%3Aatom)** to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue instead of opening a new one.
126116

@@ -249,7 +239,7 @@ While the prerequisites above must be satisfied prior to having your pull reques
249239

250240
### JavaScript Styleguide
251241

252-
All JavaScript must adhere to [JavaScript Standard Style](https://standardjs.com/).
242+
All JavaScript code is linted with [Prettier](https://prettier.io/).
253243

254244
* Prefer the object spread operator (`{...anotherObj}`) to `Object.assign()`
255245
* Inline `export`s with expressions whenever possible
@@ -354,7 +344,7 @@ This section lists the labels we use to help us track and manage issues and pull
354344

355345
[GitHub search](https://help.github.com/articles/searching-issues/) makes it easy to use labels for finding groups of issues or pull requests you're interested in. For example, you might be interested in [open issues across `atom/atom` and all Atom-owned packages which are labeled as bugs, but still need to be reliably reproduced](https://github.com/search?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+user%3Aatom+label%3Abug+label%3Aneeds-reproduction) or perhaps [open pull requests in `atom/atom` which haven't been reviewed yet](https://github.com/search?utf8=%E2%9C%93&q=is%3Aopen+is%3Apr+repo%3Aatom%2Fatom+comments%3A0). To help you find issues and pull requests, each label is listed with search links for finding open items with that label in `atom/atom` only and also across all Atom repositories. We encourage you to read about [other search filters](https://help.github.com/articles/searching-issues/) which will help you write more focused queries.
356346

357-
The labels are loosely grouped by their purpose, but it's not required that every issue have a label from every group or that an issue can't have more than one label from the same group.
347+
The labels are loosely grouped by their purpose, but it's not required that every issue has a label from every group or that an issue can't have more than one label from the same group.
358348

359349
Please open an issue on `atom/atom` if you have suggestions for new labels, and if you notice some labels are missing on some repositories, then please open an issue on that repository.
360350

Dockerfile

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,31 @@
1-
# VERSION: 0.1
2-
# DESCRIPTION: Image to build Atom and create a .rpm file
1+
# VERSION: 0.2
2+
# DESCRIPTION: Image to build Atom
33

4-
# Base docker image
5-
FROM nodesource/fedora21:4.2.6
4+
FROM ubuntu:20.04
65

76
# Install dependencies
8-
RUN yum install -y \
9-
make \
10-
gcc \
11-
gcc-c++ \
12-
glibc-devel \
13-
git-core \
14-
libsecret-devel \
15-
rpmdevtools
7+
RUN apt-get update && \
8+
DEBIAN_FRONTEND="noninteractive" \
9+
apt-get install -y \
10+
build-essential \
11+
git \
12+
libsecret-1-dev \
13+
fakeroot \
14+
rpm \
15+
libx11-dev \
16+
libxkbfile-dev \
17+
libgdk-pixbuf2.0-dev \
18+
libgtk-3-dev \
19+
libxss-dev \
20+
libasound2-dev \
21+
npm && \
22+
rm -rf /var/lib/apt/lists/*
1623

24+
# Update npm and dependencies
1725
RUN npm install -g npm --loglevel error
1826

19-
ADD . /atom
20-
WORKDIR /atom
27+
# Use python2 by default
28+
RUN npm config set python /usr/bin/python2 -g
29+
30+
ENTRYPOINT ["/usr/bin/env", "sh", "-c"]
31+
CMD ["bash"]

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2011-2020 GitHub Inc.
1+
Copyright (c) 2011-2021 GitHub Inc.
22

33
Permission is hereby granted, free of charge, to any person obtaining
44
a copy of this software and associated documentation files (the

README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
1-
# Atom
1+
# Atom Community
2+
3+
> To get involved with Atom Community please reach out on the [Discord Server](https://discord.gg/2tD9evh8qP) or within the [Discussions Tab](https://github.com/atom-community/atom/discussions). The issues tab is only used for the technical issues.
24
3-
[![Build status](https://dev.azure.com/github/Atom/_apis/build/status/Atom%20Production%20Branches?branchName=master)](https://dev.azure.com/github/Atom/_build/latest?definitionId=32&branchName=master)
4-
[![Dependency Status](https://david-dm.org/atom/atom.svg)](https://david-dm.org/atom/atom)
5-
[![Join the Atom Community on Slack](https://atom-slack.herokuapp.com/badge.svg)](https://atom-slack.herokuapp.com)
5+
6+
> Due to changes in the upstream, the original Atom and its repositories will be archived on December 15, 2022. If you'd like to learn more about the official Atom archiving, you can read about it in their [official announcement](https://github.blog/2022-06-08-sunsetting-atom/).
7+
8+
[![Build Status](https://dev.azure.com/atomcommunity/atomcommunity/_apis/build/status/atom-community/Release%20Branch%20Build?branchName=master)](https://dev.azure.com/atomcommunity/atomcommunity/_build/latest?definitionId=10&branchName=master)
69

710
Atom is a hackable text editor for the 21st century, built on [Electron](https://github.com/electron/electron), and based on everything we love about our favorite editors. We designed it to be deeply customizable, but still approachable using the default configuration.
811

912
![Atom](https://user-images.githubusercontent.com/378023/49132477-f4b77680-f31f-11e8-8357-ac6491761c6c.png)
1013

1114
![Atom Screenshot](https://user-images.githubusercontent.com/378023/49132478-f4b77680-f31f-11e8-9e10-e8454d8d9b7e.png)
1215

13-
Visit [atom.io](https://atom.io) to learn more or visit the [Atom forum](https://discuss.atom.io).
16+
Visit [atom.io](https://atom.io) to learn more or visit the [Atom forum](https://github.com/atom/atom/discussions).
1417

1518
Follow [@AtomEditor](https://twitter.com/atomeditor) on Twitter for important
1619
announcements.
@@ -25,8 +28,7 @@ If you want to read about using Atom or developing packages in Atom, the [Atom F
2528
The [API reference](https://atom.io/docs/api) for developing packages is also documented on Atom.io.
2629

2730
## Installing
28-
29-
### Prerequisites
31+
<!-- ### Prerequisites
3032
- [Git](https://git-scm.com)
3133
3234
### macOS
@@ -59,14 +61,17 @@ An archive is available for people who don't want to install `atom` as root.
5961
This version enables you to install multiple Atom versions in parallel. It has been built on Ubuntu 64-bit,
6062
but should be compatible with other Linux distributions.
6163
62-
1. Install dependencies (on Ubuntu): `sudo apt install git gconf2 gconf-service libgtk2.0-0 libudev1 libgcrypt20 libnotify4 libxtst6 libnss3 python3 gvfs-bin xdg-utils libcap2`
63-
1. (If the `python3` package isn't available, or is too old (Python 3 should be >= 3.5), either `python2` or `python` (2.6 or 2.7) will work in its place.)
64+
1. Install dependencies (on Ubuntu):
65+
```sh
66+
sudo apt install git libasound2 libcurl4 libgbm1 libgcrypt20 libgtk-3-0 libnotify4 libnss3 libglib2.0-bin xdg-utils libx11-xcb1 libxcb-dri3-0 libxss1 libxtst6 libxkbfile1
67+
```
6468
2. Download `atom-amd64.tar.gz` from the [Atom releases page](https://github.com/atom/atom/releases/latest).
6569
3. Run `tar xf atom-amd64.tar.gz` in the directory where you want to extract the Atom folder.
6670
4. Launch Atom using the installed `atom` command from the newly extracted directory.
6771
6872
The Linux version does not currently automatically update so you will need to
69-
repeat these steps to upgrade to future releases.
73+
repeat these steps to upgrade to future releases. -->
74+
Currently, to get binaries based on code by the Atom community, binaries can be downloaded from the [Azure Pipeline](https://dev.azure.com/atomcommunity/atomcommunity/_build/latest?definitionId=10&branchName=master). From this pipeline, the latest run can be selected. From there, the `8 published` link should be selected to download the files.
7075

7176
## Building
7277

@@ -76,8 +81,7 @@ repeat these steps to upgrade to future releases.
7681

7782
## Discussion
7883

79-
* Discuss Atom on our [forums](https://discuss.atom.io/)
80-
* Chat about Atom on our Slack team -- [instructions for joining](https://discuss.atom.io/t/join-us-on-slack/16638?source_topic_id=25406)
84+
* Discuss Atom on [GitHub Discussions](https://github.com/atom/atom/discussions)
8185

8286
## License
8387

0 commit comments

Comments
 (0)