Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* also save project id * also look at pixel eagle for building the website
- Loading branch information
Showing
10 changed files
with
1,117 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::{ImageUrl, SnapshotViewerUrl}; | ||
|
||
pub mod percy; | ||
pub mod pixeleagle; | ||
|
||
#[derive(Debug)] | ||
pub struct ScreenshotData { | ||
/// category / name | ||
pub example: String, | ||
/// URL to the screenshot | ||
pub screenshot: ImageUrl, | ||
pub changed: ScreenshotState, | ||
/// Tag used to differentiate for mobile | ||
pub tag: Option<String>, | ||
pub diff_ratio: f32, | ||
pub snapshot_url: SnapshotViewerUrl, | ||
} | ||
|
||
#[derive(Debug, Deserialize, PartialEq, Eq, Clone, Copy, Serialize)] | ||
pub enum ScreenshotState { | ||
Similar, | ||
Changed, | ||
} |
Oops, something went wrong.